ports/97355: [maintainer update] security/ipfcount ignores NOPORTDOCS variable
Robert Archer
freebsd at deathbeforedecaf.net
Tue May 16 17:00:43 UTC 2006
>Number: 97355
>Category: ports
>Synopsis: [maintainer update] security/ipfcount ignores NOPORTDOCS variable
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue May 16 17:00:35 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Robert Archer <freebsd at deathbeforedecaf.net>
>Release: FreeBSD 4.11-RELEASE i386
>Organization:
>Environment:
System: FreeBSD gir.0x7e.net 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Wed Sep 14 12:55:17 CST 2005 rob at goo.0x7e.net:/tmp/GIR i386
>Description:
Example files should not be installed if NOPORTDOCS is defined.
>How-To-Repeat:
>Fix:
Patch is at http://deathbeforedecaf.net/misc/patches/ipfcount.2006-05-15
diff -ruN ipfcount-0.2.1/Makefile ipfcount/Makefile
--- ipfcount-0.2.1/Makefile Sun Jan 29 07:15:49 2006
+++ ipfcount/Makefile Sun May 14 23:52:32 2006
@@ -7,6 +7,7 @@
PORTNAME= ipfcount
PORTVERSION= 0.2.1
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://deathbeforedecaf.net/misc/ports/ \
http://users.netleader.com.au/~rob/
@@ -14,16 +15,17 @@
MAINTAINER= freebsd at deathbeforedecaf.net
COMMENT= Summarise ipf logs by counting and sorting the fields
-PLIST_FILES= bin/ipfcount \
- %%EXAMPLESDIR%%/100.ipfcount
-PLIST_DIRS= %%EXAMPLESDIR%%
-
+PLIST_FILES= bin/ipfcount
MAN1= ipfcount.1
-SUB_FILES= pkg-message
-
USE_PERL5= yes
+.if !defined(NOPORTDOCS)
+PLIST_DIRS= %%EXAMPLESDIR%%
+PLIST_FILES+= %%EXAMPLESDIR%%/100.ipfcount
+SUB_FILES= pkg-message
+.endif
+
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
@@ -39,10 +41,14 @@
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ipfcount ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ipfcount.1 ${PREFIX}/man/man1/ipfcount.1
+.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/100.ipfcount ${EXAMPLESDIR}
+.endif
post-install:
+.if !defined(NOPORTDOCS)
@${CAT} ${PKGMESSAGE}
+.endif
.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list