diff options
author | Philippe Audeoud <jadawin@FreeBSD.org> | 2008-03-06 13:41:16 +0000 |
---|---|---|
committer | Philippe Audeoud <jadawin@FreeBSD.org> | 2008-03-06 13:41:16 +0000 |
commit | c32484602f4723c343a2a994ba65d6246f6d2502 (patch) | |
tree | 21aff53ec214961803312323294eb81e1010820d /www/phpsysinfo-dev/Makefile | |
parent | 9a74e910d55d2759eb01096dd4b1a9282b15cc3d (diff) |
Notes
Diffstat (limited to 'www/phpsysinfo-dev/Makefile')
-rw-r--r-- | www/phpsysinfo-dev/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/www/phpsysinfo-dev/Makefile b/www/phpsysinfo-dev/Makefile index 8253bd557c3d..727f2e0a8daa 100644 --- a/www/phpsysinfo-dev/Makefile +++ b/www/phpsysinfo-dev/Makefile @@ -5,11 +5,11 @@ # $FreeBSD$ PORTNAME= phpSysInfo -DISTVERSION= 3.0-RC3 +DISTVERSION= 3.0-RC4 CATEGORIES= www MASTER_SITES= SF -MAINTAINER= jadawin@tuxaco.net +MAINTAINER= jadawin@FreeBSD.org COMMENT= A php script that displays info about the host being accessed USE_PHP= pcre xml @@ -17,15 +17,13 @@ WANT_PHP_WEB= yes WRKSRC= ${WRKDIR}/${PORTNAME:L} NO_BUILD= yes -PLIST= ${WRKDIR}/plist -post-patch: - ${RM} -f ${PLIST} - cd ${WRKSRC};\ - ${FIND} . ! -type d | ${SORT} | ${SED} "s|^\.|${WWWDIR_REL}|"\ - >${PLIST};\ - ${FIND} . -type d | ${SORT} -r | ${SED} "s|^\.|@dirrm ${WWWDIR_REL}|"\ - >>${PLIST} +.include <bsd.port.pre.mk> + +post-install: + @if [ ! -f ${WWWDIR}/config.php ]; then \ + ${CP} -p ${WWWDIR}/config.php ${WWWDIR}/config.php.bak ; \ + fi do-install: ${MKDIR} ${WWWDIR} @@ -33,5 +31,6 @@ do-install: | ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHMOD} -R ${BINMODE} ${WWWDIR} ${FIND} ${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE} + ${CP} ${WWWDIR}/config.php.new ${WWWDIR}/config.php -.include <bsd.port.mk> +.include <bsd.port.post.mk> |