1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/security/phpsecinfo/Makefile
Stefan Eßer a741276e94 Add support for staging and set license to 3-clause BSD.
Approved by:	antoine (mentor)
2014-06-01 12:41:12 +00:00

41 lines
978 B
Makefile

# Created by: chinsan
# $FreeBSD$
PORTNAME= phpsecinfo
PORTVERSION= 0.2.1
CATEGORIES= security www
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
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-20070406
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist
PLIST_SUB= WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP}
do-install:
@${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} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm %%WWWDIR%%/|' >> ${TEMP_PLIST} \
&& ${ECHO_CMD} "@dirrmtry %%WWWDIR%%" >> ${TEMP_PLIST}
.include <bsd.port.mk>