diff options
author | William Grzybowski <wg@FreeBSD.org> | 2014-06-21 15:52:16 +0000 |
---|---|---|
committer | William Grzybowski <wg@FreeBSD.org> | 2014-06-21 15:52:16 +0000 |
commit | 0c80db04b3057df48325921e83d3bd176399c716 (patch) | |
tree | 7942872325c4e9ef65a8a70349dab3f67bf307e2 /net/miniupnpd | |
parent | Upgrade to version 0.97. (diff) |
net/miniupnpd: update to 1.8.20140523
- Expose more config options
PR: 189061
Submitted by: razzfazz gmail com
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=358711
Diffstat (limited to 'net/miniupnpd')
-rw-r--r-- | net/miniupnpd/Makefile | 15 | ||||
-rw-r--r-- | net/miniupnpd/distinfo | 4 | ||||
-rw-r--r-- | net/miniupnpd/files/enable_check_portinuse.patch | 11 | ||||
-rw-r--r-- | net/miniupnpd/files/enable_igdv2.patch | 11 | ||||
-rw-r--r-- | net/miniupnpd/files/enable_ipv6.patch | 11 | ||||
-rw-r--r-- | net/miniupnpd/files/enable_leasefile.patch | 11 | ||||
-rw-r--r-- | net/miniupnpd/files/enable_upnp_strict.patch | 11 | ||||
-rw-r--r-- | net/miniupnpd/files/patch-Makefile | 51 |
8 files changed, 120 insertions, 5 deletions
diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile index 29f233ca2793..d7c6cf13fc91 100644 --- a/net/miniupnpd/Makefile +++ b/net/miniupnpd/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= miniupnpd -PORTVERSION= 1.8.20140310 +PORTVERSION= 1.8.20140523 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= http://miniupnp.tuxfamily.org/files/ \ @@ -15,17 +15,26 @@ SUB_FILES= miniupnpd.conf.sample SUB_LIST= UUID=${UUID} UUID!= uuidgen -FWNAME?= pf PLIST_FILES= etc/miniupnpd.conf.sample sbin/miniupnpd \ man/man8/miniupnpd.8.gz MAKE_JOBS_UNSAFE=yes USE_RC_SUBR= miniupnpd -OPTIONS_DEFINE= PF_ENABLE_FILTER_RULES +OPTIONS_DEFINE= PF_ENABLE_FILTER_RULES CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE PF_ENABLE_FILTER_RULES_DESC= Enable pf generation of filter rules +CHECK_PORTINUSE_DESC= Check if ports are in use +IPV6_DESC= Enable IPv6 +UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 +UPNP_STRICT_DESC= Be more strict regarding compliance with UPnP specifications +LEASEFILE_DESC= Enable lease file PF_ENABLE_FILTER_RULES_EXTRA_PATCHES= ${PATCHDIR}/pf_enable_filter_rules.patch +CHECK_PORTINUSE_EXTRA_PATCHES= ${PATCHDIR}/enable_check_portinuse.patch +IPV6_EXTRA_PATCHES= ${PATCHDIR}/enable_ipv6.patch +UPNP_IGDV2_EXTRA_PATCHES= ${PATCHDIR}/enable_igdv2.patch +UPNP_STRICT_EXTRA_PATCHES= ${PATCHDIR}/enable_upnp_strict.patch +LEASEFILE_EXTRA_PATCHES= ${PATCHDIR}/enable_leasefile.patch post-patch: @${REINPLACE_CMD} 's|CFLAGS ?= -pipe -Os|CFLAGS ?= -pipe|' \ diff --git a/net/miniupnpd/distinfo b/net/miniupnpd/distinfo index 6809c1f2f400..dd3396826999 100644 --- a/net/miniupnpd/distinfo +++ b/net/miniupnpd/distinfo @@ -1,2 +1,2 @@ -SHA256 (miniupnpd-1.8.20140310.tar.gz) = 733530eee970bfc29f90b0a793612d2c721eb4f19f9c50f6d7677b6e0d59a726 -SIZE (miniupnpd-1.8.20140310.tar.gz) = 176585 +SHA256 (miniupnpd-1.8.20140523.tar.gz) = e72cd1e515aa9e6281e519e1814fe74e7689f5da71ce463a996a17e787ffe490 +SIZE (miniupnpd-1.8.20140523.tar.gz) = 190936 diff --git a/net/miniupnpd/files/enable_check_portinuse.patch b/net/miniupnpd/files/enable_check_portinuse.patch new file mode 100644 index 000000000000..e6b46a974da4 --- /dev/null +++ b/net/miniupnpd/files/enable_check_portinuse.patch @@ -0,0 +1,11 @@ +--- genconfig.sh.orig 2014-04-22 00:37:51.000000000 -0700 ++++ genconfig.sh 2014-04-22 09:30:24.000000000 -0700 +@@ -401,7 +401,7 @@ + if [ -n "$PORTINUSE" ]; then + echo "#define CHECK_PORTINUSE" >> ${CONFIGFILE} + else +- echo "/*#define CHECK_PORTINUSE*/" >> ${CONFIGFILE} ++ echo "#define CHECK_PORTINUSE" >> ${CONFIGFILE} + fi + echo "" >> ${CONFIGFILE} + diff --git a/net/miniupnpd/files/enable_igdv2.patch b/net/miniupnpd/files/enable_igdv2.patch new file mode 100644 index 000000000000..2890f82fc25f --- /dev/null +++ b/net/miniupnpd/files/enable_igdv2.patch @@ -0,0 +1,11 @@ +--- genconfig.sh.orig 2014-04-11 01:16:49.000000000 -0700 ++++ genconfig.sh 2014-04-26 18:22:26.000000000 -0700 +@@ -436,7 +436,7 @@ + if [ -n "$IGD2" ]; then + echo "#define IGD_V2" >> ${CONFIGFILE} + else +- echo "/*#define IGD_V2*/" >> ${CONFIGFILE} ++ echo "#define IGD_V2" >> ${CONFIGFILE} + fi + echo "" >> ${CONFIGFILE} + diff --git a/net/miniupnpd/files/enable_ipv6.patch b/net/miniupnpd/files/enable_ipv6.patch new file mode 100644 index 000000000000..52e59733edef --- /dev/null +++ b/net/miniupnpd/files/enable_ipv6.patch @@ -0,0 +1,11 @@ +--- genconfig.sh.orig 2014-04-11 01:16:49.000000000 -0700 ++++ genconfig.sh 2014-04-26 18:23:04.000000000 -0700 +@@ -417,7 +417,7 @@ + if [ -n "$IPV6" ]; then + echo "#define ENABLE_IPV6" >> ${CONFIGFILE} + else +- echo "/*#define ENABLE_IPV6*/" >> ${CONFIGFILE} ++ echo "#define ENABLE_IPV6" >> ${CONFIGFILE} + fi + echo "" >> ${CONFIGFILE} + diff --git a/net/miniupnpd/files/enable_leasefile.patch b/net/miniupnpd/files/enable_leasefile.patch new file mode 100644 index 000000000000..8806b3cce380 --- /dev/null +++ b/net/miniupnpd/files/enable_leasefile.patch @@ -0,0 +1,11 @@ +--- genconfig.sh.orig 2014-04-22 00:37:51.000000000 -0700 ++++ genconfig.sh 2014-04-26 18:01:49.000000000 -0700 +@@ -393,7 +393,7 @@ + if [ -n "$LEASEFILE" ] ; then + echo "#define ENABLE_LEASEFILE" >> ${CONFIGFILE} + else +- echo "/*#define ENABLE_LEASEFILE*/" >> ${CONFIGFILE} ++ echo "#define ENABLE_LEASEFILE" >> ${CONFIGFILE} + fi + echo "" >> ${CONFIGFILE} + diff --git a/net/miniupnpd/files/enable_upnp_strict.patch b/net/miniupnpd/files/enable_upnp_strict.patch new file mode 100644 index 000000000000..78d15a95f358 --- /dev/null +++ b/net/miniupnpd/files/enable_upnp_strict.patch @@ -0,0 +1,11 @@ +--- genconfig.sh.orig 2014-04-11 01:16:49.000000000 -0700 ++++ genconfig.sh 2014-04-26 18:23:27.000000000 -0700 +@@ -472,7 +472,7 @@ + if [ -n "$STRICT" ] ; then + echo "#define UPNP_STRICT" >> ${CONFIGFILE} + else +- echo "/*#define UPNP_STRICT*/" >> ${CONFIGFILE} ++ echo "#define UPNP_STRICT" >> ${CONFIGFILE} + fi + echo "" >> ${CONFIGFILE} + diff --git a/net/miniupnpd/files/patch-Makefile b/net/miniupnpd/files/patch-Makefile new file mode 100644 index 000000000000..7ee99c33d946 --- /dev/null +++ b/net/miniupnpd/files/patch-Makefile @@ -0,0 +1,51 @@ +--- Makefile.orig 2014-04-20 09:47:29.000000000 -0700 ++++ Makefile 2014-06-20 22:53:14.863342337 -0700 +@@ -15,7 +15,7 @@ + # $ CONFIG_OPTIONS="--ipv6 --igd2" make + # + +-CFLAGS ?= -pipe -Os ++CFLAGS ?= -pipe + #CFLAGS = -pipe -O -g -DDEBUG + #CFLAGS += -ansi + CFLAGS += -Wall +@@ -45,25 +45,36 @@ + .endif + + # better way to find if we are using ipf or pf +-.if exists(/etc/rc.subr) && exists(/etc/rc.conf) + .if $(OSNAME) == "FreeBSD" ++.if exists(/etc/rc.subr) && exists(/etc/rc.conf) + FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ +- if checkyesno ipfilter_enable; then \ ++ if checkyesno firewall_enable; then \ ++ echo "ipfw"; elif checkyesno ipfilter_enable; then \ + echo "ipf"; elif checkyesno pf_enable; then \ +- echo "pf"; else echo "ipfw"; fi ++ echo "pf"; else echo "pf"; fi ++.else ++FWNAME = pf ++.endif + .endif + + .if $(OSNAME) == "NetBSD" ++.if exists(/etc/rc.subr) && exists(/etc/rc.conf) + FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ + if checkyesno ipfilter; then \ + echo "ipf"; else echo "pf"; fi ++.else ++FWNAME = pf ++.endif + .endif + + .if $(OSNAME) == "DragonFly" ++.if exists(/etc/rc.subr) && exists(/etc/rc.conf) + FWNAME != . /etc/rc.subr; . /etc/rc.conf; \ + if checkyesno ipfilter; then \ + echo "ipf"; elif checkyesno pf_enable; then \ + echo "pf"; else echo "ipfw"; fi ++.else ++FWNAME = ipfw + .endif + .endif + |