diff options
author | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2009-11-27 01:33:34 +0000 |
---|---|---|
committer | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2009-11-27 01:33:34 +0000 |
commit | dd3c2cf2244e543722758fbd77b0e491a442606e (patch) | |
tree | 1cd683b956b1cb2ebf1358ff56a5bb9511ea71b0 /net/miniupnpd | |
parent | 49648caa4b0266be7440ac665a022a9b813ede52 (diff) | |
download | ports-dd3c2cf2244e543722758fbd77b0e491a442606e.tar.gz ports-dd3c2cf2244e543722758fbd77b0e491a442606e.zip |
Notes
Diffstat (limited to 'net/miniupnpd')
-rw-r--r-- | net/miniupnpd/Makefile | 1 | ||||
-rw-r--r-- | net/miniupnpd/files/patch-genconfig.sh | 40 |
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 |