svn commit: r356111 - head/security/phpsecinfo

Stefan Esser se at FreeBSD.org
Sun Jun 1 12:41:13 UTC 2014


Author: se
Date: Sun Jun  1 12:41:12 2014
New Revision: 356111
URL: http://svnweb.freebsd.org/changeset/ports/356111
QAT: https://qat.redports.org/buildarchive/r356111/

Log:
  Add support for staging and set license to 3-clause BSD.
  
  Approved by:	antoine (mentor)

Modified:
  head/security/phpsecinfo/Makefile
  head/security/phpsecinfo/pkg-plist

Modified: head/security/phpsecinfo/Makefile
==============================================================================
--- head/security/phpsecinfo/Makefile	Sun Jun  1 12:39:59 2014	(r356110)
+++ head/security/phpsecinfo/Makefile	Sun Jun  1 12:41:12 2014	(r356111)
@@ -9,6 +9,8 @@ MASTER_SITES=	LOCAL/chinsan
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	PHP environment security auditing tool
 
+LICENSE=	BSD3CLAUSE
+
 USES=		zip
 USE_PHP=	pcre
 WANT_PHP_WEB=	yes
@@ -17,17 +19,20 @@ NO_BUILD=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-20070406
 TEMP_PLIST=	${WRKDIR}/temp-pkg-plist
 
-NO_STAGE=	yes
+PLIST_SUB=	WWWOWN=${WWWOWN} \
+		WWWGRP=${WWWGRP}
+
 do-install:
-	@${MKDIR} ${WWWDIR}
-	@${CP} -R ${WRKSRC}/ ${WWWDIR}/
-	@${CHOWN} -R ${WWWOWN}:${WWWGROUP} ${WWWDIR}
+	@${MKDIR} ${STAGEDIR}${WWWDIR}
+	@${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
 
 # This target is only meant to be used by the port maintainer.
 x-generate-plist:
 	@make makesum extract
+	@${ECHO_CMD} "@owner %%WWWOWN%%" > ${TEMP_PLIST}
+	@${ECHO_CMD} "@group %%WWWGRP%%" >> ${TEMP_PLIST}
 	@cd ${WRKSRC} && ${FIND} -s . -type f | \
-		${SED} -e 's|^./||;s|^|%%WWWDIR%%/|' > ${TEMP_PLIST} \
+		${SED} -e 's|^./||;s|^|%%WWWDIR%%/|' >> ${TEMP_PLIST} \
 		&& ${FIND} -d * -type d | \
 		${SED} -e 's|^|@dirrm %%WWWDIR%%/|' >> ${TEMP_PLIST} \
 		&& ${ECHO_CMD} "@dirrmtry %%WWWDIR%%" >> ${TEMP_PLIST}

Modified: head/security/phpsecinfo/pkg-plist
==============================================================================
--- head/security/phpsecinfo/pkg-plist	Sun Jun  1 12:39:59 2014	(r356110)
+++ head/security/phpsecinfo/pkg-plist	Sun Jun  1 12:41:12 2014	(r356111)
@@ -1,3 +1,5 @@
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
 %%WWWDIR%%/CHANGELOG
 %%WWWDIR%%/LICENSE
 %%WWWDIR%%/PhpSecInfo/PhpSecInfo.php


More information about the svn-ports-head mailing list