1 |
gurligebis 09/04/24 23:43:23 |
2 |
|
3 |
Added: miniupnpd-1.3-iptables_path.diff |
4 |
miniupnpd-1.3-conf.d |
5 |
miniupnpd-1.3-Makefile_fix.diff |
6 |
miniupnpd-1.3-init.d |
7 |
Removed: miniupnpd-20090214-iptables.diff |
8 |
miniupnpd-20090214-init.d |
9 |
miniupnpd-20090214-iptables_compile.diff |
10 |
miniupnpd-20090214-conf.d |
11 |
miniupnpd-20090214-iptables_path.diff |
12 |
Log: |
13 |
Bumping to 1.3, which is stable from upstream and fixes compiling with |
14 |
iptables >=1.4.3 |
15 |
(Portage version: 2.2_rc31/cvs/Linux i686) |
16 |
|
17 |
Revision Changes Path |
18 |
1.1 net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff |
19 |
|
20 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff?rev=1.1&view=markup |
21 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff?rev=1.1&content-type=text/plain |
22 |
|
23 |
Index: miniupnpd-1.3-iptables_path.diff |
24 |
=================================================================== |
25 |
diff -aurp old/netfilter/iptables_display.sh new/netfilter/iptables_display.sh |
26 |
--- old/netfilter/iptables_display.sh 2009-04-19 20:17:14.000000000 +0000 |
27 |
+++ new/netfilter/iptables_display.sh 2009-04-19 20:17:52.000000000 +0000 |
28 |
@@ -1,6 +1,6 @@ |
29 |
#! /bin/sh |
30 |
# $Id: iptables_display.sh,v 1.3 2006/11/23 12:32:56 nanard Exp $ |
31 |
-IPTABLES=iptables |
32 |
+IPTABLES=/sbin/iptables |
33 |
|
34 |
#display all chains relative to miniupnpd |
35 |
$IPTABLES -v -n -t nat -L PREROUTING |
36 |
diff -aurp old/netfilter/iptables_flush.sh new/netfilter/iptables_flush.sh |
37 |
--- old/netfilter/iptables_flush.sh 2009-04-19 20:17:14.000000000 +0000 |
38 |
+++ new/netfilter/iptables_flush.sh 2009-04-19 20:17:52.000000000 +0000 |
39 |
@@ -1,6 +1,6 @@ |
40 |
#! /bin/sh |
41 |
# $Id: iptables_flush.sh,v 1.2 2006/11/23 12:32:57 nanard Exp $ |
42 |
-IPTABLES=iptables |
43 |
+IPTABLES=/sbin/iptables |
44 |
|
45 |
#flush all rules owned by miniupnpd |
46 |
$IPTABLES -t nat -F MINIUPNPD |
47 |
diff -aurp old/netfilter/iptables_init.sh new/netfilter/iptables_init.sh |
48 |
--- old/netfilter/iptables_init.sh 2009-04-19 20:17:14.000000000 +0000 |
49 |
+++ new/netfilter/iptables_init.sh 2009-04-19 20:18:19.000000000 +0000 |
50 |
@@ -1,6 +1,6 @@ |
51 |
#! /bin/sh |
52 |
# $Id: iptables_init.sh,v 1.4 2008/04/25 18:15:08 nanard Exp $ |
53 |
-IPTABLES=iptables |
54 |
+IPTABLES=/sbin/iptables |
55 |
|
56 |
#change this parameters : |
57 |
EXTIF=eth0 |
58 |
@@ -16,5 +16,5 @@ $IPTABLES -t nat -A PREROUTING -i $EXTIF |
59 |
#adding the MINIUPNPD chain for filter |
60 |
$IPTABLES -t filter -N MINIUPNPD |
61 |
#adding the rule to MINIUPNPD |
62 |
-$IPTABLES -t filter -A FORWARD -i $EXTIF -o ! $EXTIF -j MINIUPNPD |
63 |
+$IPTABLES -t filter -A FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD |
64 |
|
65 |
diff -aurp old/netfilter/iptables_removeall.sh new/netfilter/iptables_removeall.sh |
66 |
--- old/netfilter/iptables_removeall.sh 2009-04-19 20:17:14.000000000 +0000 |
67 |
+++ new/netfilter/iptables_removeall.sh 2009-04-19 20:18:27.000000000 +0000 |
68 |
@@ -1,6 +1,6 @@ |
69 |
#! /bin/sh |
70 |
# $Id: iptables_removeall.sh,v 1.4 2008/04/25 18:15:09 nanard Exp $ |
71 |
-IPTABLES=iptables |
72 |
+IPTABLES=/sbin/iptables |
73 |
|
74 |
#change this parameters : |
75 |
EXTIF=eth0 |
76 |
@@ -16,6 +16,6 @@ $IPTABLES -t nat -X MINIUPNPD |
77 |
#removing the MINIUPNPD chain for filter |
78 |
$IPTABLES -t filter -F MINIUPNPD |
79 |
#adding the rule to MINIUPNPD |
80 |
-$IPTABLES -t filter -D FORWARD -i $EXTIF -o ! $EXTIF -j MINIUPNPD |
81 |
+$IPTABLES -t filter -D FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD |
82 |
$IPTABLES -t filter -X MINIUPNPD |
83 |
|
84 |
|
85 |
|
86 |
|
87 |
1.1 net-misc/miniupnpd/files/miniupnpd-1.3-conf.d |
88 |
|
89 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-conf.d?rev=1.1&view=markup |
90 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-conf.d?rev=1.1&content-type=text/plain |
91 |
|
92 |
Index: miniupnpd-1.3-conf.d |
93 |
=================================================================== |
94 |
ARGS='-f /etc/miniupnpd/miniupnpd.conf' |
95 |
|
96 |
|
97 |
|
98 |
|
99 |
1.1 net-misc/miniupnpd/files/miniupnpd-1.3-Makefile_fix.diff |
100 |
|
101 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-Makefile_fix.diff?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-Makefile_fix.diff?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: miniupnpd-1.3-Makefile_fix.diff |
105 |
=================================================================== |
106 |
--- Makefile.old 2009-04-23 11:43:02.000000000 +0000 |
107 |
+++ Makefile 2009-04-23 11:43:16.000000000 +0000 |
108 |
@@ -59,6 +59,8 @@ LIBS = $(IPTABLESPATH)/libiptc/libiptc.a |
109 |
endif |
110 |
endif |
111 |
|
112 |
+CFLAGS := $(CFLAGS) -DIPTABLES_143 |
113 |
+ |
114 |
TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o |
115 |
|
116 |
EXECUTABLES = miniupnpd testupnpdescgen testgetifstats \ |
117 |
|
118 |
|
119 |
|
120 |
1.1 net-misc/miniupnpd/files/miniupnpd-1.3-init.d |
121 |
|
122 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-init.d?rev=1.1&view=markup |
123 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-init.d?rev=1.1&content-type=text/plain |
124 |
|
125 |
Index: miniupnpd-1.3-init.d |
126 |
=================================================================== |
127 |
#!/sbin/runscript |
128 |
# Copyright 1999-2008 Gentoo Foundation |
129 |
# Distributed under the terms of the GNU General Public License v2 |
130 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-1.3-init.d,v 1.1 2009/04/24 23:43:23 gurligebis Exp $ |
131 |
|
132 |
depend() { |
133 |
need net iptables |
134 |
} |
135 |
|
136 |
start() { |
137 |
ebegin "Starting miniupnpd" |
138 |
/etc/miniupnpd/iptables_init.sh |
139 |
start-stop-daemon --start --pidfile /var/run/miniupnpd.pid --startas /usr/sbin/miniupnpd -- ${ARGS} |
140 |
eend $? |
141 |
} |
142 |
|
143 |
stop() { |
144 |
ebegin "Stopping miniupnpd" |
145 |
start-stop-daemon --stop --pidfile /var/run/miniupnpd.pid |
146 |
eend $? |
147 |
/etc/miniupnpd/iptables_removeall.sh |
148 |
} |