diff options
author | miwi <miwi@FreeBSD.org> | 2014-06-05 09:38:33 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-06-05 09:38:33 +0800 |
commit | 4117fa619ead6515c17a98297bd2d9adfab8531c (patch) | |
tree | 1a1f7daf1ebfdbd316ff050bab6b80fedec8ef69 /www | |
parent | 28122d6eaa3a7c869233a2b28aab420f04ff84ea (diff) | |
download | freebsd-ports-gnome-4117fa619ead6515c17a98297bd2d9adfab8531c.tar.gz freebsd-ports-gnome-4117fa619ead6515c17a98297bd2d9adfab8531c.tar.zst freebsd-ports-gnome-4117fa619ead6515c17a98297bd2d9adfab8531c.zip |
- Stage support
PR: 190633
Diffstat (limited to 'www')
-rw-r--r-- | www/rt38/Makefile | 5 | ||||
-rw-r--r-- | www/rt38/pkg-deinstall | 20 | ||||
-rw-r--r-- | www/rt38/pkg-install | 21 | ||||
-rw-r--r-- | www/rt38/pkg-plist | 8 |
4 files changed, 8 insertions, 46 deletions
diff --git a/www/rt38/Makefile b/www/rt38/Makefile index 2979d0b49533..a442181a9d5f 100644 --- a/www/rt38/Makefile +++ b/www/rt38/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ -NO_STAGE= yes # TODO: # o etc/rt38 files permissions # o GRANTS @@ -121,6 +120,7 @@ WEB_USER?= ${WWWOWN} WEB_GROUP?= ${WWWGRP} LIBS_GROUP?= wheel +GROUPS= rt LATEST_LINK= rt38 HAS_CONFIGURE= yes NO_BUILD= yes @@ -170,11 +170,8 @@ post-patch: pre-install: @${RM} -f ${WRKSRC}/lib/RT.pm.in - @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: - @[ -f ${RT_ETC_PATH}/RT_SiteConfig.pm ] || \ - ${CP} -p ${RT_ETC_PATH}/RT_SiteConfig.pm-dist ${RT_ETC_PATH}/RT_SiteConfig.pm ${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/www/rt38/pkg-deinstall b/www/rt38/pkg-deinstall deleted file mode 100644 index c1fda56a2586..000000000000 --- a/www/rt38/pkg-deinstall +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -# - -if [ "$2" != "POST-DEINSTALL" ]; then - exit 0 -fi - -GROUP=rt - -if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then - if pw groupdel ${GROUP}; then - echo "Removed group \"${GROUP}\"." - else - echo "Removing group \"${GROUP}\" failed..." - exit 1 - fi -fi - -exit 0 diff --git a/www/rt38/pkg-install b/www/rt38/pkg-install deleted file mode 100644 index e81180cf8621..000000000000 --- a/www/rt38/pkg-install +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -# - -if [ "$2" != "PRE-INSTALL" ]; then - exit 0 -fi - -GROUP=rt -GROUPID=180 - -if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then - if pw groupadd ${GROUP} -g ${GROUPID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi -fi - -exit 0 diff --git a/www/rt38/pkg-plist b/www/rt38/pkg-plist index bade03103983..f2b389f26c0f 100644 --- a/www/rt38/pkg-plist +++ b/www/rt38/pkg-plist @@ -1167,7 +1167,13 @@ share/rt38/html/dhandler share/rt38/html/index.html share/rt38/html/l share/rt38/html/l_unsafe -@dirrmtry www/rt38 +@dirrmtry %%WWWDIR%%38 +@unexec rmdir "/var/run/%%AP_NAME%%38/mason_data/cache" >/dev/null 2>&1 || : +@unexec rmdir "/var/run/%%AP_NAME%%38/mason_data/etc" >/dev/null 2>&1 || : +@unexec rmdir "/var/run/%%AP_NAME%%38/mason_data/obj" >/dev/null 2>&1 || : +@unexec rmdir "/var/run/%%AP_NAME%%38/mason_data" >/dev/null 2>&1 || : +@unexec rmdir "/var/run/%%AP_NAME%%38/session_data" >/dev/null 2>&1 || : +@unexec rmdir "/var/run/%%AP_NAME%%38" >/dev/null 2>&1 || : @dirrm share/rt38/po @exec mkdir -p %D/share/rt38/plugins @dirrm share/rt38/plugins |