svn commit: r356465 - head/irc/cgiirc
Rodrigo Osorio
rodrigo at FreeBSD.org
Wed Jun 4 11:14:57 UTC 2014
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 @@
- at unexec if cmp -s %D/www/cgiirc/cgiirc.config %D/www/cgiirc/cgiirc.config.sample; then rm -f %D/www/cgiirc/cgiirc.config; fi
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
+ at 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
+ at owner root
+ at group wheel
More information about the svn-ports-all
mailing list