Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 16:20:09 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338024 - head/www/cgichk
Message-ID:  <201312291620.rBTGK9OV009296@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Dec 29 16:20:08 2013
New Revision: 338024
URL: http://svnweb.freebsd.org/changeset/ports/338024

Log:
  Stage support

Deleted:
  head/www/cgichk/pkg-message
Modified:
  head/www/cgichk/Makefile
  head/www/cgichk/pkg-plist

Modified: head/www/cgichk/Makefile
==============================================================================
--- head/www/cgichk/Makefile	Sun Dec 29 16:19:57 2013	(r338023)
+++ head/www/cgichk/Makefile	Sun Dec 29 16:20:08 2013	(r338024)
@@ -9,12 +9,11 @@ MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A web site vulnerability scanner
+COMMENT=	Web site vulnerability scanner
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 ALL_TARGET=	cgichk
 
-NO_STAGE=	yes
 post-patch:
 	${REINPLACE_CMD} -e "s/^(CC|CFLAGS).+//g" ${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e \
@@ -22,10 +21,7 @@ post-patch:
 		${WRKSRC}/cgichk.h
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/cgichk ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/cgichk.cfg ${PREFIX}/etc/cgichk.cfg.sample
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
+	${INSTALL_PROGRAM} ${WRKSRC}/cgichk ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/cgichk.cfg ${STAGEDIR}${PREFIX}/etc/cgichk.cfg.sample
 
 .include <bsd.port.mk>

Modified: head/www/cgichk/pkg-plist
==============================================================================
--- head/www/cgichk/pkg-plist	Sun Dec 29 16:19:57 2013	(r338023)
+++ head/www/cgichk/pkg-plist	Sun Dec 29 16:20:08 2013	(r338024)
@@ -1,2 +1,4 @@
 bin/cgichk
+@unexec if cmp -s %D/etc/cgichk.cfg %D/etc/cgichk.cfg.sample; then rm -f %D/etc/cgichk.cfg; fi
 etc/cgichk.cfg.sample
+@exec if [ ! -f %B/cgichk.cfg ]; then cp -p %B/%f %B/cgichk.cfg; fi



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