ports/189960: [patch] Add staging support to www/phpsysinfo-dev
Joseph Benden
joe at thrallingpenguin.com
Mon May 19 17:10:00 UTC 2014
>Number: 189960
>Category: ports
>Synopsis: [patch] Add staging support to www/phpsysinfo-dev
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon May 19 17:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Joseph Benden
>Release: FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014 root at lucy:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Adds staging support to www/phpsysinfo-dev.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/www/phpsysinfo-dev/Makefile b/www/phpsysinfo-dev/Makefile
index ffd1133..8764c70 100644
--- a/www/phpsysinfo-dev/Makefile
+++ b/www/phpsysinfo-dev/Makefile
@@ -22,21 +22,14 @@ NO_BUILD= yes
SUB_FILES= pkg-message
LATEST_LINK= phpsysinfo
-NO_STAGE= yes
.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}
+ ${MKDIR} ${STAGEDIR}${WWWDIR}
cd ${WRKSRC}; ${FIND} . \
- | ${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
+ | ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+ ${CHMOD} -R ${BINMODE} ${STAGEDIR}${WWWDIR}
+ ${FIND} ${STAGEDIR}${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
.if !defined(BATCH)
@ ${CAT} ${PKGMESSAGE}
diff --git a/www/phpsysinfo-dev/pkg-plist b/www/phpsysinfo-dev/pkg-plist
index a15cb4b..9c039a7 100644
--- a/www/phpsysinfo-dev/pkg-plist
+++ b/www/phpsysinfo-dev/pkg-plist
@@ -2,8 +2,9 @@
%%WWWDIR%%/ChangeLog
%%WWWDIR%%/README
%%WWWDIR%%/README_PLUGIN
-%%WWWDIR%%/config.php
+ at unexec if cmp -s %D/%%WWWDIR%%/config.php.new %D/%%WWWDIR%%/config.php; then rm -f %D/%%WWWDIR%%/config.php; fi
%%WWWDIR%%/config.php.new
+ at exec if [ ! -f %D/%%WWWDIR%%/config.php ] ; then cp -p %D/%F %B/config.php; fi
%%WWWDIR%%/data/ModelTranslation.txt
%%WWWDIR%%/data/distros.ini
%%WWWDIR%%/gfx/ajaxLoader.gif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list