summaryrefslogtreecommitdiffstats
path: root/www/bacon
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-08-23 18:40:48 +0000
committerdwcjr <dwcjr@FreeBSD.org>2001-08-23 18:40:48 +0000
commit972ce42a9b78e6f2f6937548694abd51250863c4 (patch)
treeb0ba503027a8ba46770374704f8e38766084e828 /www/bacon
parenta8eb04ed438e3e3e221d9488cb27e05f1b106f0d (diff)
downloadFreeBSD-ports-972ce42a9b78e6f2f6937548694abd51250863c4.zip
FreeBSD-ports-972ce42a9b78e6f2f6937548694abd51250863c4.tar.gz
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/Makefile20
-rw-r--r--www/bacon/pkg-message2
-rw-r--r--www/bacon/pkg-plist6
3 files changed, 15 insertions, 13 deletions
diff --git a/www/bacon/Makefile b/www/bacon/Makefile
index 9bea708..18d73a92 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 a70497e..9250a98 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 74eddef..684e67c 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
OpenPOWER on IntegriCloud