aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsylvio <sylvio@FreeBSD.org>2009-11-27 09:33:34 +0800
committersylvio <sylvio@FreeBSD.org>2009-11-27 09:33:34 +0800
commit7e136855cb44bafbc5c7a9ca5ccfbed044b3c5b1 (patch)
tree0ceaf55818ee210f1aa1fd74f31653d5732e6e2e
parentddf4ee5c9ac75c1ff5f9a03da84e909e6fcde1ce (diff)
downloadfreebsd-ports-gnome-7e136855cb44bafbc5c7a9ca5ccfbed044b3c5b1.tar.gz
freebsd-ports-gnome-7e136855cb44bafbc5c7a9ca5ccfbed044b3c5b1.tar.zst
freebsd-ports-gnome-7e136855cb44bafbc5c7a9ca5ccfbed044b3c5b1.zip
- Fix build
- BUMP PORTREVISION PR: ports/140861 Submitted by: maintainer Approved by: miwi (mentor) Reported by: pointyhat via pav
-rw-r--r--net/miniupnpd/Makefile1
-rw-r--r--net/miniupnpd/files/patch-genconfig.sh40
2 files changed, 41 insertions, 0 deletions
diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile
index b5547e659d89..607aed5e3a77 100644
--- a/net/miniupnpd/Makefile
+++ b/net/miniupnpd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= miniupnpd
PORTVERSION= 1.4
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://miniupnp.tuxfamily.org/files/ \
http://miniupnp.free.fr/files/
diff --git a/net/miniupnpd/files/patch-genconfig.sh b/net/miniupnpd/files/patch-genconfig.sh
new file mode 100644
index 000000000000..b81040fa382c
--- /dev/null
+++ b/net/miniupnpd/files/patch-genconfig.sh
@@ -0,0 +1,40 @@
+--- genconfig.sh.orig 2009-09-04 18:21:24.000000000 +0200
++++ genconfig.sh 2009-11-25 12:31:04.344410750 +0100
+@@ -66,18 +66,25 @@
+ fi
+ # new way to see which one to use PF or IPF.
+ # see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957
+- # source file with handy subroutines like checkyesno
+- . /etc/rc.subr
+- # source config file so we can probe vars
+- . /etc/rc.conf
+- if checkyesno ipfilter_enable; then
+- echo "Using ipf"
+- FW=ipf
+- echo "#define USE_IPF 1" >> ${CONFIGFILE}
+- elif checkyesno pf_enable; then
+- echo "Using pf"
+- FW=pf
+- echo "#define USE_PF 1" >> ${CONFIGFILE}
++ # source file wource config file so we can probe vars
++ if [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ]; then
++ # source file with handy subroutines like checkyesno
++ . /etc/rc.subr
++ # source config file so we can probe vars
++ . /etc/rc.conf
++ if checkyesno ipfilter_enable; then
++ echo "Using ipf"
++ FW=ipf
++ echo "#define USE_IPF 1" >> ${CONFIGFILE}
++ elif checkyesno pf_enable; then
++ echo "Using pf"
++ FW=pf
++ echo "#define USE_PF 1" >> ${CONFIGFILE}
++ else
++ echo "Could not detect usage of ipf or pf. Compiling for pf by default"
++ FW=pf
++ echo "#define USE_PF 1" >> ${CONFIGFILE}
++ fi
+ # TODO : Add support for IPFW
+ # echo "#define USE_IPFW 1" >> ${CONFIGFILE}
+ # FW=ipfw