diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2001-08-23 18:40:48 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2001-08-23 18:40:48 +0000 |
commit | a547db965ee7836ad9ba5cba024b07f362c4b63d (patch) | |
tree | 285d4cd51b1b77d16b157c8c85fb5d017b056e9f /www/bacon | |
parent | Fix linker errors by undefining HAVE_WCHAR_H (ours seems incomplete) (diff) |
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
Diffstat (limited to 'www/bacon')
-rw-r--r-- | www/bacon/Makefile | 20 | ||||
-rw-r--r-- | www/bacon/pkg-message | 2 | ||||
-rw-r--r-- | www/bacon/pkg-plist | 6 |
3 files changed, 15 insertions, 13 deletions
diff --git a/www/bacon/Makefile b/www/bacon/Makefile index 9bea708fdae5..18d73a92dd3c 100644 --- a/www/bacon/Makefile +++ b/www/bacon/Makefile @@ -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> diff --git a/www/bacon/pkg-message b/www/bacon/pkg-message index a70497e1ef83..9250a9888e9c 100644 --- a/www/bacon/pkg-message +++ b/www/bacon/pkg-message @@ -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." --------------------------------------------------------------------- diff --git a/www/bacon/pkg-plist b/www/bacon/pkg-plist index 74eddef3a63e..684e67c3a29a 100644 --- a/www/bacon/pkg-plist +++ b/www/bacon/pkg-plist @@ -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 |