1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/security/phpsecinfo/Makefile
Dmitry Marakasov 14a697a9f1 - Add LICENSE_FILE
- Modernize plist
2015-06-01 01:30:03 +00:00

42 lines
1010 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
LICENSE_FILE= ${WRKSRC}/LICENSE
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>