mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +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:
parent
eea576e5f7
commit
2e886df3a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363079
@ -3,12 +3,12 @@
|
||||
|
||||
PORTNAME= phpsysinfo
|
||||
PORTVERSION= 3.0.10
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
|
||||
|
||||
MAINTAINER= walt@relnor.com
|
||||
COMMENT= A PHP script for displaying system information
|
||||
COMMENT= PHP script for displaying system information
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
@ -22,23 +22,11 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
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:
|
||||
${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}
|
||||
.endif
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -2,8 +2,9 @@
|
||||
%%WWWDIR%%/ChangeLog
|
||||
%%WWWDIR%%/README
|
||||
%%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
|
||||
@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
|
||||
|
Loading…
Reference in New Issue
Block a user