diff options
author | rodrigo <rodrigo@FreeBSD.org> | 2014-06-04 19:14:56 +0800 |
---|---|---|
committer | rodrigo <rodrigo@FreeBSD.org> | 2014-06-04 19:14:56 +0800 |
commit | 9b8136fd1402c81b53fae668d974ba69a64dafe5 (patch) | |
tree | b4d85342c09a722a36de9f6e39e5dbb4ad940d11 /irc | |
parent | 52cc205518bb0748aab91bf5b7fc669fac8e4575 (diff) | |
download | freebsd-ports-gnome-9b8136fd1402c81b53fae668d974ba69a64dafe5.tar.gz freebsd-ports-gnome-9b8136fd1402c81b53fae668d974ba69a64dafe5.tar.zst freebsd-ports-gnome-9b8136fd1402c81b53fae668d974ba69a64dafe5.zip |
- support staging
- changes in per-install & do-install commands
Submitted by: rodrigo@ (maintainer)
Reviewed by: bapt (mentor)
Diffstat (limited to 'irc')
-rw-r--r-- | irc/cgiirc/Makefile | 17 | ||||
-rw-r--r-- | irc/cgiirc/pkg-plist | 8 |
2 files changed, 15 insertions, 10 deletions
diff --git a/irc/cgiirc/Makefile b/irc/cgiirc/Makefile index c2fce5bc8bfe..9bce7ee228de 100644 --- a/irc/cgiirc/Makefile +++ b/irc/cgiirc/Makefile @@ -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> diff --git a/irc/cgiirc/pkg-plist b/irc/cgiirc/pkg-plist index 67c49743e191..fcda5aa4edf7 100644 --- a/irc/cgiirc/pkg-plist +++ b/irc/cgiirc/pkg-plist @@ -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 |