mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- support staging
- changes in per-install & do-install commands Submitted by: rodrigo@ (maintainer) Reviewed by: bapt (mentor)
This commit is contained in:
parent
bcfb7e6986
commit
63c133eeb4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356465
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user