Add NOPORTDOCS
Remove www and www/cgi-bin directories properly to not cause error by bento Better display pkg-message PR: 29481 Submitted by: pat@databits.net
This commit is contained in:
parent
fb5f04ef29
commit
a547db965e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46736
@ -12,22 +12,22 @@ MASTER_SITES= ftp://samurai.ruin.org/pub/All/
|
||||
|
||||
MAINTAINER= jmrobins@samurai.ruin.org
|
||||
|
||||
USE_PERL5= YES
|
||||
USE_PERL5= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DIST= bacon.pl
|
||||
|
||||
do-build:
|
||||
@cd ${WRKSRC}; ${MV} ${DIST} ${DIST}.orig; \
|
||||
${SED} -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \
|
||||
${DIST}.orig > ${DIST}
|
||||
pre-patch:
|
||||
@${PERL} -pi.orig -e 's|${LOCALBASE}/bin/perl|${PERL}|' \
|
||||
${WRKSRC}/bacon.pl
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/www/cgi-bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bacon.pl ${PREFIX}/www/cgi-bin/bacon.pl
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/share/doc/bacon/
|
||||
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/bacon/INSTALL
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
||||
.endif
|
||||
@${SED} -e "s|INSTALL|${DOCSDIR}/INSTALL|" ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
---------------------------------------------------------------------
|
||||
Please read the ${PREFIX}/share/doc/bacon/INSTALL file for info on
|
||||
Please read the INSTALL file for info on
|
||||
configuring this program."
|
||||
---------------------------------------------------------------------
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
www/cgi-bin/bacon.pl
|
||||
share/doc/bacon/INSTALL
|
||||
@dirrm share/doc/bacon
|
||||
%%PORTDOCS%%share/doc/bacon/INSTALL
|
||||
%%PORTDOCS%%@dirrm share/doc/bacon
|
||||
@unexec rmdir %D/www/cgi-bin 2>/dev/null || true
|
||||
@unexec rmdir %D/www 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user