Add support for staging and set license to 3-clause BSD.
Approved by: antoine (mentor)
This commit is contained in:
parent
02625d7d3b
commit
a741276e94
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356111
@ -9,6 +9,8 @@ MASTER_SITES= LOCAL/chinsan
|
||||
MAINTAINER= ports@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}
|
||||
|
@ -1,3 +1,5 @@
|
||||
@owner %%WWWOWN%%
|
||||
@group %%WWWGRP%%
|
||||
%%WWWDIR%%/CHANGELOG
|
||||
%%WWWDIR%%/LICENSE
|
||||
%%WWWDIR%%/PhpSecInfo/PhpSecInfo.php
|
||||
|
Loading…
Reference in New Issue
Block a user