svn commit: r368770 - head/devel/gitphp

Antoine Brodin antoine at FreeBSD.org
Sun Sep 21 15:19:45 UTC 2014


Author: antoine
Date: Sun Sep 21 15:19:44 2014
New Revision: 368770
URL: http://svnweb.freebsd.org/changeset/ports/368770
QAT: https://qat.redports.org/buildarchive/r368770/

Log:
  - Allow staging as a regular user
  - Bump portrevision as files were not packaged with intended owner

Modified:
  head/devel/gitphp/Makefile
  head/devel/gitphp/pkg-plist

Modified: head/devel/gitphp/Makefile
==============================================================================
--- head/devel/gitphp/Makefile	Sun Sep 21 15:18:07 2014	(r368769)
+++ head/devel/gitphp/Makefile	Sun Sep 21 15:19:44 2014	(r368770)
@@ -2,6 +2,7 @@
 
 PORTNAME=	gitphp
 PORTVERSION=	0.2.8
+PORTREVISION=	1
 CATEGORIES=	devel www
 MASTER_SITES=	http://www.gitphp.org/attachments/download/47/
 
@@ -15,6 +16,7 @@ USE_PHP=	bz2 fileinfo mbstring memcache 
 WANT_PHP_WEB=	yes
 NO_BUILD=	yes
 
+PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
 SUB_FILES=	pkg-message
 
 RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdiff.so:${PORTSDIR}/textproc/pecl-xdiff
@@ -22,11 +24,7 @@ RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP
 do-install:
 	${MKDIR} ${STAGEDIR}${WWWDIR}
 	(cd ${WRKSRC} \
-		 && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR})
-	${CHOWN} -R www:www ${STAGEDIR}${WWWDIR}
+		 && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
 	${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 644 '{}' +
 
-.if !defined(BATCH)
-	@ ${CAT} ${PKGMESSAGE}
-.endif
 .include <bsd.port.mk>

Modified: head/devel/gitphp/pkg-plist
==============================================================================
--- head/devel/gitphp/pkg-plist	Sun Sep 21 15:18:07 2014	(r368769)
+++ head/devel/gitphp/pkg-plist	Sun Sep 21 15:19:44 2014	(r368770)
@@ -1,3 +1,5 @@
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
 %%WWWDIR%%/config/gitphp.conf.defaults.php
 %%WWWDIR%%/config/gitphp.conf.php.example
 %%WWWDIR%%/config/projects.conf.php.example
@@ -798,3 +800,5 @@
 @dirrm %%WWWDIR%%/config
 @dirrm %%WWWDIR%%/cache
 @dirrm %%WWWDIR%%
+ at owner root
+ at group wheel


More information about the svn-ports-head mailing list