svn commit: r368511 - head/www/php-plurk-api

Antoine Brodin antoine at FreeBSD.org
Thu Sep 18 19:39:54 UTC 2014


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 @@
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
 %%WWWDIR%%/ChangeLog
 %%WWWDIR%%/README
 %%WWWDIR%%/config.php
@@ -29,3 +31,5 @@
 @dirrm %%WWWDIR%%/documents/default
 @dirrm %%WWWDIR%%/documents
 @dirrm %%WWWDIR%%
+ at owner root
+ at group wheel


More information about the svn-ports-head mailing list