diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2001-08-24 02:40:48 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2001-08-24 02:40:48 +0800 |
commit | 972ce42a9b78e6f2f6937548694abd51250863c4 (patch) | |
tree | b0ba503027a8ba46770374704f8e38766084e828 | |
parent | a8eb04ed438e3e3e221d9488cb27e05f1b106f0d (diff) | |
download | freebsd-ports-gnome-972ce42a9b78e6f2f6937548694abd51250863c4.tar.gz freebsd-ports-gnome-972ce42a9b78e6f2f6937548694abd51250863c4.tar.zst freebsd-ports-gnome-972ce42a9b78e6f2f6937548694abd51250863c4.zip |
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
-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 |