Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2014 13:08:54 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374655 - head/www/rt42
Message-ID:  <201412131308.sBDD8sWX058468@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: matthew
Date: Sat Dec 13 13:08:53 2014
New Revision: 374655
URL: https://svnweb.freebsd.org/changeset/ports/374655
QAT: https://qat.redports.org/buildarchive/r374655/

Log:
  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

Modified:
  head/www/rt42/Makefile
  head/www/rt42/pkg-plist

Modified: head/www/rt42/Makefile
==============================================================================
--- head/www/rt42/Makefile	Sat Dec 13 12:08:11 2014	(r374654)
+++ head/www/rt42/Makefile	Sat Dec 13 13:08:53 2014	(r374655)
@@ -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")

Modified: head/www/rt42/pkg-plist
==============================================================================
--- head/www/rt42/pkg-plist	Sat Dec 13 12:08:11 2014	(r374654)
+++ head/www/rt42/pkg-plist	Sat Dec 13 13:08:53 2014	(r374655)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412131308.sBDD8sWX058468>