Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2006 02:24:02 +0930
From:      Robert Archer <freebsd@deathbeforedecaf.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97355: [maintainer update] security/ipfcount ignores NOPORTDOCS variable
Message-ID:  <20060516165428.9906943D76@mx1.FreeBSD.org>
Resent-Message-ID: <200605161700.k4GH0ZaI010553@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060516165428.9906943D76>