Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 19:39:53 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368511 - head/www/php-plurk-api
Message-ID:  <201409181939.s8IJdrna019123@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Thu Sep 18 19:39:53 2014
New Revision: 368511
URL: http://svnweb.freebsd.org/changeset/ports/368511
QAT: https://qat.redports.org/buildarchive/r368511/

Log:
  Allow staging as a regular user

Modified:
  head/www/php-plurk-api/Makefile
  head/www/php-plurk-api/pkg-plist

Modified: head/www/php-plurk-api/Makefile
==============================================================================
--- head/www/php-plurk-api/Makefile	Thu Sep 18 19:33:53 2014	(r368510)
+++ head/www/php-plurk-api/Makefile	Thu Sep 18 19:39:53 2014	(r368511)
@@ -16,23 +16,14 @@ USE_PHP=	json curl
 USES=		zip
 WRKSRC=		${WRKDIR}/${PORTVERSION}
 
+PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
 SUB_LIST=	PKGNAME=${PKGNAME}
 SUB_FILES=	pkg-message
 
 do-install:
 	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
 	@${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
-	@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
-		${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
 	@${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
-	@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
-		${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
 	@${CHMOD} 755 ${STAGEDIR}${WWWDIR}/example.php
-	@${ECHO_CMD} '@exec ${CHMOD} 755 ${WWWDIR}/example.php' >> ${TMPPLIST}
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Modified: head/www/php-plurk-api/pkg-plist
==============================================================================
--- head/www/php-plurk-api/pkg-plist	Thu Sep 18 19:33:53 2014	(r368510)
+++ head/www/php-plurk-api/pkg-plist	Thu Sep 18 19:39:53 2014	(r368511)
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
 %%WWWDIR%%/ChangeLog
 %%WWWDIR%%/README
 %%WWWDIR%%/config.php
@@ -29,3 +31,5 @@
 @dirrm %%WWWDIR%%/documents/default
 @dirrm %%WWWDIR%%/documents
 @dirrm %%WWWDIR%%
+@owner root
+@group wheel



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