Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2014 11:14:56 +0000 (UTC)
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356465 - head/irc/cgiirc
Message-ID:  <201406041114.s54BEu7g040987@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigo
Date: Wed Jun  4 11:14:56 2014
New Revision: 356465
URL: http://svnweb.freebsd.org/changeset/ports/356465
QAT: https://qat.redports.org/buildarchive/r356465/

Log:
  - support staging
  - changes in per-install & do-install commands
  
  Submitted by:	rodrigo@ (maintainer)
  Reviewed by:	bapt (mentor)

Modified:
  head/irc/cgiirc/Makefile
  head/irc/cgiirc/pkg-plist

Modified: head/irc/cgiirc/Makefile
==============================================================================
--- head/irc/cgiirc/Makefile	Wed Jun  4 11:09:26 2014	(r356464)
+++ head/irc/cgiirc/Makefile	Wed Jun  4 11:14:56 2014	(r356465)
@@ -12,18 +12,19 @@ COMMENT=	IRC web gateway written in Perl
 
 LICENSE=	GPLv2
 
-USES=		perl5
+USES=		perl5  shebangfix
 NO_BUILD=	yes
+SHEBANG_FILES=	docs/identd.pl \
+		irc.cgi \
+		client-perl.cgi \
+		nph-irc.cgi
+PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
-NO_STAGE=	yes
 pre-install:
-	@${MV} ${WRKSRC}/cgiirc.config ${WRKSRC}/cgiirc.config.sample 2>/dev/null || true
+	@${MV} ${WRKSRC}/cgiirc.config ${WRKSRC}/cgiirc.config.sample
 
 do-install:
-	${MKDIR} ${PREFIX}/www/cgiirc
-	${CP} -rp ${WRKSRC}/* ${PREFIX}/www/cgiirc
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/cgiirc
-	@[ -f ${PREFIX}/www/cgiirc/cgiirc.config ] || \
-	${CP} ${WRKSRC}/cgiirc.config.sample ${PREFIX}/www/cgiirc/cgiirc.config
+	${MKDIR} ${STAGEDIR}${PREFIX}/www/cgiirc
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/cgiirc
 
 .include <bsd.port.mk>

Modified: head/irc/cgiirc/pkg-plist
==============================================================================
--- head/irc/cgiirc/pkg-plist	Wed Jun  4 11:09:26 2014	(r356464)
+++ head/irc/cgiirc/pkg-plist	Wed Jun  4 11:14:56 2014	(r356465)
@@ -1,7 +1,9 @@
-@unexec if cmp -s %D/www/cgiirc/cgiirc.config %D/www/cgiirc/cgiirc.config.sample; then rm -f %D/www/cgiirc/cgiirc.config; fi
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
+@sample www/cgiirc/cgiirc.config.sample
+www/cgiirc/.htaccess
 www/cgiirc/README
 www/cgiirc/cgiirc.config.full
-www/cgiirc/cgiirc.config.sample
 www/cgiirc/client-perl.cgi
 www/cgiirc/client.c
 www/cgiirc/docs/CHANGES
@@ -129,3 +131,5 @@ www/cgiirc/nph-irc.cgi
 @dirrm www/cgiirc/formats
 @dirrm www/cgiirc/docs
 @dirrmtry www/cgiirc
+@owner root
+@group wheel



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