aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormatthew <matthew@FreeBSD.org>2014-12-13 21:08:53 +0800
committermatthew <matthew@FreeBSD.org>2014-12-13 21:08:53 +0800
commitc535794197e0702fd46fcf0556045875fca37eaf (patch)
treea50e9a724a0aa1954e23f33093a1ff8b406f7cf2 /www
parenteffb8ef0525b8a062eac6340488a71aa7f821122 (diff)
downloadfreebsd-ports-gnome-c535794197e0702fd46fcf0556045875fca37eaf.tar.gz
freebsd-ports-gnome-c535794197e0702fd46fcf0556045875fca37eaf.tar.zst
freebsd-ports-gnome-c535794197e0702fd46fcf0556045875fca37eaf.zip
Make the port 'poudriere testport' clean
- Remove ${STAGEDIR}/usr/local/www/rt42 which is unused - Add ${DATADIR}/{etc,lib,plugins} as empty directories: these are used by RT extensions. - Use @dir() to manage directories created under /var. This will prevent the unconditional removal and replacement of the cache directories during updates, which results in those directories ending up with the wrong ownership. PR: 195871 Submitted by: me@nileshgr.com
Diffstat (limited to 'www')
-rw-r--r--www/rt42/Makefile3
-rw-r--r--www/rt42/pkg-plist15
2 files changed, 11 insertions, 7 deletions
diff --git a/www/rt42/Makefile b/www/rt42/Makefile
index 6a71c0a4ea2e..b49be93c45df 100644
--- a/www/rt42/Makefile
+++ b/www/rt42/Makefile
@@ -2,7 +2,7 @@
PORTNAME= rt
DISTVERSION= 4.2.9
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://download.bestpractical.com/pub/rt/release/
PKGNAMESUFFIX= 42
@@ -198,6 +198,7 @@ pre-install:
@${RM} -f ${WRKSRC}/lib/RT.pm.in
post-install:
+ @${RM} -rf ${STAGEDIR}/${WWWDIR}${PKGNAMESUFFIX}
${MKDIR} ${STAGEDIR}${DOCSDIR}/upgrade
(cd ${WRKSRC}/etc && \
${COPYTREE_SHARE} upgrade ${STAGEDIR}${DOCSDIR} "! -name *\.in")
diff --git a/www/rt42/pkg-plist b/www/rt42/pkg-plist
index c1b51238f987..1036bb816d21 100644
--- a/www/rt42/pkg-plist
+++ b/www/rt42/pkg-plist
@@ -492,6 +492,7 @@ sbin/standalone_httpd
%%PORTDOCS%%%%DOCSDIR%%/upgrade/vulnerable-passwords
%%PORTDOCS%%%%DOCSDIR%%/web_deployment.pod
%%PORTDOCS%%%%DOCSDIR%%/writing_extensions.pod
+@dir %%DATADIR%%/etc
%%DATADIR%%/fonts/Droid.README
%%DATADIR%%/fonts/DroidSans.ttf
%%DATADIR%%/fonts/DroidSansFallback.ttf
@@ -1055,6 +1056,8 @@ sbin/standalone_httpd
%%DATADIR%%/html/m/ticket/select_create_queue
%%DATADIR%%/html/m/ticket/show
%%DATADIR%%/html/m/tickets/search
+@dir %%DATADIR%%/lib
+@dir %%DATADIR%%/plugins
%%DATADIR%%/po/ar.po
%%DATADIR%%/po/bg.po
%%DATADIR%%/po/ca.po
@@ -1500,9 +1503,9 @@ sbin/standalone_httpd
%%DATADIR%%/static/js/supersubs.js
%%DATADIR%%/static/js/titlebox-state.js
%%DATADIR%%/static/js/util.js
-@unexec rmdir "/var/run/rt42/mason_data/cache" >/dev/null 2>&1 || :
-@unexec rmdir "/var/run/rt42/mason_data/etc" >/dev/null 2>&1 || :
-@unexec rmdir "/var/run/rt42/mason_data/obj" >/dev/null 2>&1 || :
-@unexec rmdir "/var/run/rt42/mason_data" >/dev/null 2>&1 || :
-@unexec rmdir "/var/run/rt42/session_data" >/dev/null 2>&1 || :
-@unexec rmdir "/var/run/rt42" >/dev/null 2>&1 || :
+@dir(www,www,755) /var/run/rt42/mason_data/cache
+@dir(www,www,755) /var/run/rt42/mason_data/etc
+@dir(www,www,755) /var/run/rt42/mason_data/obj
+@dir(www,www,755) /var/run/rt42/mason_data
+@dir(www,www,755) /var/run/rt42/session_data
+@dir /var/run/rt42