svn commit: r370046 - head/www/phpmp

Antoine Brodin antoine at FreeBSD.org
Sun Oct 5 09:29:41 UTC 2014


Author: antoine
Date: Sun Oct  5 09:29:40 2014
New Revision: 370046
URL: https://svnweb.freebsd.org/changeset/ports/370046
QAT: https://qat.redports.org/buildarchive/r370046/

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

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

Modified: head/www/phpmp/Makefile
==============================================================================
--- head/www/phpmp/Makefile	Sun Oct  5 09:25:28 2014	(r370045)
+++ head/www/phpmp/Makefile	Sun Oct  5 09:29:40 2014	(r370046)
@@ -3,6 +3,7 @@
 
 PORTNAME=	phpmp
 PORTVERSION=	0.12.0
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://www.bayofrum.net/dist/${PORTNAME}/
 
@@ -15,15 +16,11 @@ NO_BUILD=	yes
 USE_PHP=	pcre sockets
 
 PHPMP?=		${WWWDIR_REL}
-PLIST_SUB+=	PHPMP=${PHPMP}
+PLIST_SUB=	PHPMP="${PHPMP}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${PHPMP}
 	@${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${PHPMP}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${PHPMP}
 	@${CHMOD} -R 755 ${STAGEDIR}${PREFIX}/${PHPMP}
 
-post-install:
-	@${CAT} ${PKGMESSAGE}
-
 .include <bsd.port.mk>

Modified: head/www/phpmp/pkg-plist
==============================================================================
--- head/www/phpmp/pkg-plist	Sun Oct  5 09:25:28 2014	(r370045)
+++ head/www/phpmp/pkg-plist	Sun Oct  5 09:29:40 2014	(r370046)
@@ -1,11 +1,11 @@
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
 %%PHPMP%%/COPYING
 %%PHPMP%%/ChangeLog
 %%PHPMP%%/INSTALL
 %%PHPMP%%/README
 %%PHPMP%%/TODO
- at unexec if cmp -s %D/%%PHPMP%%/config.php.sample %D/%%PHPMP%%/config.php; then rm -f %D/%%PHPMP%%/config.php; fi
-%%PHPMP%%/config.php.sample
- at exec if [ ! -f %D/%%PHPMP%%/config.php ] ; then cp -p %D/%F %B/config.php; fi
+ at sample %%PHPMP%%/config.php.sample
 %%PHPMP%%/features.php
 %%PHPMP%%/index.php
 %%PHPMP%%/info.php
@@ -18,4 +18,6 @@
 %%PHPMP%%/transparent.gif
 %%PHPMP%%/utils.php
 %%PHPMP%%/xml-parse.php
- at dirrmtry %%PHPMP%%
+ at dir %%PHPMP%%
+ at owner
+ at group


More information about the svn-ports-all mailing list