1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Stage www/phpsysinfo

The pkgmessage logic requiring <pre> and <post> wasn't needed at all.

PR:		189959
Submitted by:	joe (thrallingpenguin.com)
Modifications:	marino
This commit is contained in:
John Marino 2014-07-27 16:18:32 +00:00
parent eea576e5f7
commit 2e886df3a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363079
2 changed files with 9 additions and 20 deletions

View File

@ -3,12 +3,12 @@
PORTNAME= phpsysinfo PORTNAME= phpsysinfo
PORTVERSION= 3.0.10 PORTVERSION= 3.0.10
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= www CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
MAINTAINER= walt@relnor.com MAINTAINER= walt@relnor.com
COMMENT= A PHP script for displaying system information COMMENT= PHP script for displaying system information
LICENSE= GPLv2 LICENSE= GPLv2
@ -22,23 +22,11 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message SUB_FILES= pkg-message
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: do-install:
${MKDIR} ${WWWDIR} ${MKDIR} ${STAGEDIR}${WWWDIR}
cd ${WRKSRC}; ${FIND} . \ cd ${WRKSRC}; ${FIND} . \
| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR} | ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
${CHMOD} -R ${BINMODE} ${WWWDIR} ${CHMOD} -R ${BINMODE} ${STAGEDIR}${WWWDIR}
${FIND} ${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE} ${FIND} ${STAGEDIR}${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
${CP} ${WWWDIR}/config.php.new ${WWWDIR}/config.php
.if !defined(BATCH) .include <bsd.port.mk>
@ ${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>

View File

@ -2,8 +2,9 @@
%%WWWDIR%%/ChangeLog %%WWWDIR%%/ChangeLog
%%WWWDIR%%/README %%WWWDIR%%/README
%%WWWDIR%%/README_PLUGIN %%WWWDIR%%/README_PLUGIN
%%WWWDIR%%/config.php @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 %%WWWDIR%%/config.php.new
@exec if [ ! -f %D/%%WWWDIR%%/config.php ] ; then cp -p %D/%F %B/config.php; fi
%%WWWDIR%%/data/ModelTranslation.txt %%WWWDIR%%/data/ModelTranslation.txt
%%WWWDIR%%/data/distros.ini %%WWWDIR%%/data/distros.ini
%%WWWDIR%%/gfx/ajaxLoader.gif %%WWWDIR%%/gfx/ajaxLoader.gif