ports/151394: net/miniupnpd: add option to enable pf rulesets, update to latest version

Eric F Crist ecrist at secure-computing.net
Mon Oct 11 18:20:04 UTC 2010


>Number:         151394
>Category:       ports
>Synopsis:       net/miniupnpd: add option to enable pf rulesets, update to latest version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 11 18:20:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Eric F Crist
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
Secure Computing Networks & ClaimLynx, Inc
>Environment:
System: FreeBSD cartman.secure-computing.net 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Mon Apr 12 12:46:23 CDT 2010 root at cartman.secure-computing.net:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
	This patch updates the port to miniupnpd 1.4.20100921 and adds an option to enable PF filter rules.
	
>How-To-Repeat:
>Fix:
The second patch belongs in /files within the port.

--- miniupnpd.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/miniupnpd/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	18 Jul 2010 15:50:08 -0000	1.14
+++ Makefile	11 Oct 2010 15:48:38 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	miniupnpd
-PORTVERSION=	1.4.20100511
+PORTVERSION=	1.4.20100921
 CATEGORIES=	net
 MASTER_SITES=	http://miniupnp.tuxfamily.org/files/ \
 		http://miniupnp.free.fr/files/
@@ -25,6 +25,13 @@
 
 USE_RC_SUBR=	miniupnpd.sh
 
+OPTIONS=	PF_ENABLE_FILTER_RULES		"Enable pf generation of filter rules" on \
+
+.include <bsd.port.options.mk>
+.if defined(WITH_PF_ENABLE_FILTER_RULES)
+EXTRA_PATCHES=  ${PATCHDIR}/pf_enable_filter_rules.patch
+.endif
+
 do-install:
 	@${INSTALL_PROGRAM} ${WRKSRC}/miniupnpd ${PREFIX}/sbin/miniupnpd
 	@${INSTALL_DATA} ${WRKDIR}/miniupnpd.conf.sample ${PREFIX}/etc/miniupnpd.conf.sample
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/net/miniupnpd/distinfo,v
retrieving revision 1.12
diff -u -r1.12 distinfo
--- distinfo	18 Jul 2010 15:50:08 -0000	1.12
+++ distinfo	11 Oct 2010 12:40:15 -0000
@@ -1,3 +1,3 @@
-MD5 (miniupnpd-1.4.20100511.tar.gz) = fa3491d4de8dbfdee55dc7ff7f0b2b3c
-SHA256 (miniupnpd-1.4.20100511.tar.gz) = 1fce907ecaeb49d8a58524c000536a6b6e79789a952e137c9141d50936ea4f0a
-SIZE (miniupnpd-1.4.20100511.tar.gz) = 93281
+MD5 (miniupnpd-1.4.20100921.tar.gz) = 8840fefae59ad3859f9212dcd780d3bf
+SHA256 (miniupnpd-1.4.20100921.tar.gz) = 4f974a123866819c968bcf2162067a59d6b9776bb77d543cc183f3e357084526
+SIZE (miniupnpd-1.4.20100921.tar.gz) = 95483
--- miniupnpd.diff ends here ---

--- pf_enable_filter_rules.patch begins here ---
--- work/miniupnpd-1.4.20100921/genconfig.sh	2010-09-21 10:36:12.000000000 -0500
+++ genconfig.sh	2010-10-11 10:23:44.000000000 -0500
@@ -209,7 +209,7 @@
 
 echo "/* Uncomment the following line to enable generation of" >> ${CONFIGFILE}
 echo " * filter rules with pf */" >> ${CONFIGFILE}
-echo "/*#define PF_ENABLE_FILTER_RULES*/">> ${CONFIGFILE}
+echo "#define PF_ENABLE_FILTER_RULES">> ${CONFIGFILE}
 echo "" >> ${CONFIGFILE}
 
 echo "/* Uncomment the following line to enable caching of results of" >> ${CONFIGFILE}
--- pf_enable_filter_rules.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list