Gentoo Archives: gentoo-commits

From: "Bjarke Istrup Pedersen (gurligebis)" <gurligebis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/miniupnpd/files: miniupnpd-nettools_newoutput.patch
Date: Wed, 28 Dec 2011 14:58:55
Message-Id: 20111228145845.855AB2004B@flycatcher.gentoo.org
1 gurligebis 11/12/28 14:58:45
2
3 Added: miniupnpd-nettools_newoutput.patch
4 Log:
5 Bumping to 1.7_pre20111118 and adding support for new ifconfig output format.
6
7 (Portage version: 2.2.0_alpha83/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 net-misc/miniupnpd/files/miniupnpd-nettools_newoutput.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-nettools_newoutput.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-nettools_newoutput.patch?rev=1.1&content-type=text/plain
14
15 Index: miniupnpd-nettools_newoutput.patch
16 ===================================================================
17 diff -aurp netfilter/iptables_init_and_clean.sh netfilter/iptables_init_and_clean.sh
18 --- netfilter/iptables_init_and_clean.sh 2011-12-28 14:48:58.207334111 +0000
19 +++ netfilter/iptables_init_and_clean.sh 2011-12-28 14:50:31.982327230 +0000
20 @@ -5,7 +5,7 @@
21
22 EXTIF=eth0
23 IPTABLES=/sbin/iptables
24 -EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
25 +EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet ' | awk '{print $2}' | sed -e 's/.*://'`"
26 NDIRTY="`LC_ALL=C /sbin/iptables -t nat -L -n | grep 'MINIUPNPD' | awk '{printf $1}'`"
27 FDIRTY="`LC_ALL=C /sbin/iptables -t filter -L -n | grep 'MINIUPNPD' | awk '{printf $1}'`"
28 echo "External IP = $EXTIP"
29 diff -aurp netfilter/iptables_init.sh netfilter/iptables_init.sh
30 --- netfilter/iptables_init.sh 2011-12-28 14:48:58.207334111 +0000
31 +++ netfilter/iptables_init.sh 2011-12-28 14:50:41.214329654 +0000
32 @@ -4,7 +4,7 @@ IPTABLES=/sbin/iptables
33
34 #change this parameters :
35 EXTIF=eth0
36 -EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
37 +EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet ' | awk '{print $2}' | sed -e 's/.*://'`"
38 echo "External IP = $EXTIP"
39
40 #adding the MINIUPNPD chain for nat
41 diff -aurp netfilter/iptables_removeall.sh netfilter/iptables_removeall.sh
42 --- netfilter/iptables_removeall.sh 2011-12-28 14:48:58.207334111 +0000
43 +++ netfilter/iptables_removeall.sh 2011-12-28 14:50:47.822327499 +0000
44 @@ -4,7 +4,7 @@ IPTABLES=/sbin/iptables
45
46 #change this parameters :
47 EXTIF=eth0
48 -EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
49 +EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet ' | awk '{print $2}' | sed -e 's/.*://'`"
50
51 #removing the MINIUPNPD chain for nat
52 $IPTABLES -t nat -F MINIUPNPD