Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jul 2014 16:18:32 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363079 - head/www/phpsysinfo
Message-ID:  <201407271618.s6RGIWqn087271@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Jul 27 16:18:32 2014
New Revision: 363079
URL: http://svnweb.freebsd.org/changeset/ports/363079
QAT: https://qat.redports.org/buildarchive/r363079/

Log:
  Stage www/phpsysinfo
  
  The pkgmessage logic requiring <pre> and <post> wasn't needed at all.
  
  PR:		189959
  Submitted by:	joe (thrallingpenguin.com)
  Modifications:	marino

Modified:
  head/www/phpsysinfo/Makefile
  head/www/phpsysinfo/pkg-plist

Modified: head/www/phpsysinfo/Makefile
==============================================================================
--- head/www/phpsysinfo/Makefile	Sun Jul 27 16:04:25 2014	(r363078)
+++ head/www/phpsysinfo/Makefile	Sun Jul 27 16:18:32 2014	(r363079)
@@ -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
-
-.if !defined(BATCH)
-	@ ${CAT} ${PKGMESSAGE}
-.endif
-.include <bsd.port.post.mk>
+		| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+	${CHMOD} -R ${BINMODE} ${STAGEDIR}${WWWDIR}
+	${FIND} ${STAGEDIR}${WWWDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
+
+.include <bsd.port.mk>

Modified: head/www/phpsysinfo/pkg-plist
==============================================================================
--- head/www/phpsysinfo/pkg-plist	Sun Jul 27 16:04:25 2014	(r363078)
+++ head/www/phpsysinfo/pkg-plist	Sun Jul 27 16:18:32 2014	(r363079)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407271618.s6RGIWqn087271>