From b5adf62c75a45bc09fdd93201f297304c9ead2d0 Mon Sep 17 00:00:00 2001 From: Ryan Wagoner Date: Fri, 24 Nov 2006 01:40:39 +0000 Subject: bump miniupnpd version -- fixes http socket address in use --- packages/miniupnpd/miniupnpd.inc | 30 +++++++++++++++++------------- packages/miniupnpd/miniupnpd.xml | 2 +- packages/miniupnpd/sbin/miniupnpd | Bin 51285 -> 44737 bytes pkg_config.xml | 2 +- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc index e69dcb26..fa5160c6 100644 --- a/packages/miniupnpd/miniupnpd.inc +++ b/packages/miniupnpd/miniupnpd.inc @@ -102,19 +102,23 @@ } /* valid paramters lets create rc file and start miniupnpd */ - - $stop = "if [ `pgrep miniupnpd | wc -l` != 0 ]; then\n"; - $stop .= "\t\t/usr/bin/killall miniupnpd\n"; - $stop .= "\t\twhile [ `pgrep miniupnpd | wc -l` != 0 ]; do sleep 1; done\n"; - $stop .= "\tfi\n"; - $stop .= "\t# Clear existing rules and rdr entries\n"; - $stop .= "\tif [ `pfctl -aminiupnpd -sr | wc -l` != 0 ]; then\n"; - $stop .= "\t\t/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n"; - $stop .= "\tfi\n"; - $stop .= "\tif [ `pfctl -aminiupnpd -sn | wc -l` != 0 ]; then\n"; - $stop .= "\t\t/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n"; - $stop .= "\tfi"; - + + $stop = <<&1 >/dev/null + fi + if [ `pfctl -aminiupnpd -sn | wc -l` != 0 ]; then + /sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null + fi +EOD; + $start = $stop."\n\t/usr/local/sbin/miniupnpd -p 2869 -i {$wanif}{$ifaces_final}"; /* define maximum downstream and upstream bitrates */ diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml index 4b166bad..15c99139 100644 --- a/packages/miniupnpd/miniupnpd.xml +++ b/packages/miniupnpd/miniupnpd.xml @@ -2,7 +2,7 @@ Services: Miniupnpd miniupnpd - 20061110 + 20061123 Change /usr/local/pkg/miniupnpd.inc status_upnp.php diff --git a/packages/miniupnpd/sbin/miniupnpd b/packages/miniupnpd/sbin/miniupnpd index 800a0472..447b925d 100755 Binary files a/packages/miniupnpd/sbin/miniupnpd and b/packages/miniupnpd/sbin/miniupnpd differ diff --git a/pkg_config.xml b/pkg_config.xml index ba16b6de..f4b2c7a1 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -121,7 +121,7 @@ http://miniupnp.free.fr/ Network Management seth.mos@xs4all.nl ryan@wgnrs.dynu.com - 20061110 + 20061123 1.0 BETA http://www.pfsense.com/packages/config/miniupnpd/miniupnpd.xml -- cgit v1.2.3