1 |
flameeyes 10/09/05 17:09:37 |
2 |
|
3 |
Added: quagga-services.init zebra.init.2 |
4 |
quagga-0.99.14-fix-ipremove.patch |
5 |
quagga-0.99.17-libcap.patch |
6 |
Log: |
7 |
Version bump (bug #311865), remove old non-stable ebuilds as they are vulnerable (bug #334303). Take co-maintainership of the package; change the libcap patch (sent upstream) and avoid using a tarball for the patches for now; the other two feature, optional patches are fetched from their respective websites if the flags are enabled; rewrite init scripts almost from scratch so that they recreate their state directory if missing, and make all the services, beside zebra, share the same init script file, drop --quiet, make sure that s-s-d knows about the pidfile as well; install sample files in the documentation directory and not /etc; only use libpcre if not using glibc (could actually be unneeded on other systems as well); don't add /usr/lib/quagga to the library path (the build system will take care of using rpath; if the libraries have to be linked against from third parties, open a bug as they should be in /usr/lib directly). |
8 |
|
9 |
(Portage version: 2.2_rc75/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 net-misc/quagga/files/quagga-services.init |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: quagga-services.init |
18 |
=================================================================== |
19 |
#!/sbin/runscript |
20 |
# Copyright 1999-2010 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init,v 1.1 2010/09/05 17:09:37 flameeyes Exp $ |
23 |
|
24 |
depend() { |
25 |
need zebra |
26 |
} |
27 |
|
28 |
start() { |
29 |
if [ ! -e /etc/quagga/${SVCNAME}.conf ] ; then |
30 |
eerror "Before starting ${SVCNAME} you have to configure it, by creating" |
31 |
eerror "a /etc/quagga/${SVCNAME}.conf file." |
32 |
eerror "" |
33 |
eerror "A sample file has been installed in `ls /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample`" |
34 |
return 1 |
35 |
fi |
36 |
|
37 |
if [ ! -d /var/run/quagga ] ; then |
38 |
mkdir -p /var/run/quagga |
39 |
chown quagga:quagga /var/run/quagga |
40 |
chmod 0750 /var/run/quagga |
41 |
fi |
42 |
|
43 |
ebegin "Starting ${SVCNAME}" |
44 |
start-stop-daemon \ |
45 |
--start --exec /usr/sbin/${SVCNAME} \ |
46 |
--pidfile /var/run/quagga/${SVCNAME}.pid \ |
47 |
-- -d -f /etc/quagga/${SVCNAME}.conf ${EXTRA_OPTS} \ |
48 |
--pid_file /var/run/quagga/${SVCNAME}.pid |
49 |
|
50 |
eend $? |
51 |
} |
52 |
|
53 |
stop() { |
54 |
ebegin "Stopping ${SVCNAME}" |
55 |
start-stop-daemon --stop \ |
56 |
--pidfile /var/run/quagga/${SVCNAME}.pid |
57 |
eend $? |
58 |
} |
59 |
|
60 |
|
61 |
|
62 |
1.1 net-misc/quagga/files/zebra.init.2 |
63 |
|
64 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.2?rev=1.1&view=markup |
65 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.2?rev=1.1&content-type=text/plain |
66 |
|
67 |
Index: zebra.init.2 |
68 |
=================================================================== |
69 |
#!/sbin/runscript |
70 |
# Copyright 1999-2010 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init.2,v 1.1 2010/09/05 17:09:37 flameeyes Exp $ |
73 |
|
74 |
depend() { |
75 |
need net |
76 |
} |
77 |
|
78 |
start() { |
79 |
if [ ! -e /etc/quagga/${SVCNAME}.conf ] ; then |
80 |
eerror "Before starting ${SVCNAME} you have to configure it, by creating" |
81 |
eerror "a /etc/quagga/${SVCNAME}.conf file." |
82 |
eerror "" |
83 |
eerror "A sample file has been installed in `ls /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample`" |
84 |
return 1 |
85 |
fi |
86 |
|
87 |
if [ ! -d /var/run/quagga ] ; then |
88 |
mkdir -p /var/run/quagga |
89 |
chown quagga:quagga /var/run/quagga |
90 |
chmod 0750 /var/run/quagga |
91 |
fi |
92 |
|
93 |
ebegin "Cleaning up stale zebra routes..." |
94 |
ip route flush proto zebra |
95 |
eend $? |
96 |
|
97 |
ebegin "Starting ${SVCNAME}" |
98 |
start-stop-daemon \ |
99 |
--start --exec /usr/sbin/${SVCNAME} \ |
100 |
--pidfile /var/run/quagga/${SVCNAME}.pid \ |
101 |
-- -d -f /etc/quagga/${SVCNAME}.conf ${EXTRA_OPTS} \ |
102 |
--pid_file /var/run/quagga/${SVCNAME}.pid |
103 |
|
104 |
eend $? |
105 |
} |
106 |
|
107 |
stop() { |
108 |
ebegin "Stopping ${SVCNAME}" |
109 |
start-stop-daemon --stop \ |
110 |
--pidfile /var/run/quagga/${SVCNAME}.pid |
111 |
eend $? |
112 |
} |
113 |
|
114 |
|
115 |
|
116 |
1.1 net-misc/quagga/files/quagga-0.99.14-fix-ipremove.patch |
117 |
|
118 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.14-fix-ipremove.patch?rev=1.1&view=markup |
119 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.14-fix-ipremove.patch?rev=1.1&content-type=text/plain |
120 |
|
121 |
Index: quagga-0.99.14-fix-ipremove.patch |
122 |
=================================================================== |
123 |
diff -ur quagga-0.99.14/zebra/interface.c quagga-0.99.14-fix-ipremove/zebra/interface.c |
124 |
--- quagga-0.99.14/zebra/interface.c 2009-07-21 13:11:21.000000000 +0100 |
125 |
+++ quagga-0.99.14-fix-ipremove/zebra/interface.c 2009-08-12 17:04:14.000000000 +0100 |
126 |
@@ -1293,17 +1293,17 @@ |
127 |
return CMD_WARNING; |
128 |
} |
129 |
|
130 |
-#if 0 |
131 |
/* Redistribute this information. */ |
132 |
zebra_interface_address_delete_update (ifp, ifc); |
133 |
|
134 |
/* Remove connected route. */ |
135 |
connected_down_ipv4 (ifp, ifc); |
136 |
|
137 |
+ if_subnet_delete(ifp, ifc); |
138 |
+ |
139 |
/* Free address information. */ |
140 |
listnode_delete (ifp->connected, ifc); |
141 |
connected_free (ifc); |
142 |
-#endif |
143 |
|
144 |
return CMD_SUCCESS; |
145 |
} |
146 |
|
147 |
|
148 |
|
149 |
1.1 net-misc/quagga/files/quagga-0.99.17-libcap.patch |
150 |
|
151 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.17-libcap.patch?rev=1.1&view=markup |
152 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.17-libcap.patch?rev=1.1&content-type=text/plain |
153 |
|
154 |
Index: quagga-0.99.17-libcap.patch |
155 |
=================================================================== |
156 |
From 63e97633d01908da6d3776ac61e4033e6fa91e5c Mon Sep 17 00:00:00 2001 |
157 |
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××.com> |
158 |
Date: Sun, 5 Sep 2010 18:19:09 +0200 |
159 |
Subject: [PATCH] build: fix linking position for libcap |
160 |
MIME-Version: 1.0 |
161 |
Content-Type: text/plain; charset=UTF-8 |
162 |
Content-Transfer-Encoding: 8bit |
163 |
|
164 |
* lib/Makefile.am: link libzebra to libcap, since it uses symbols |
165 |
from there. |
166 |
* zebra/Makefile.am: no need to link libcap here now, since it's not |
167 |
used directly (libtool with apply transitive dependencies for |
168 |
static linking). |
169 |
|
170 |
Signed-off-by: Diego Elio Pettenò <flameeyes@×××××.com> |
171 |
--- |
172 |
lib/Makefile.am | 2 +- |
173 |
zebra/Makefile.am | 5 ++--- |
174 |
2 files changed, 3 insertions(+), 4 deletions(-) |
175 |
|
176 |
diff --git a/lib/Makefile.am b/lib/Makefile.am |
177 |
index 315e919..6e69993 100644 |
178 |
--- a/lib/Makefile.am |
179 |
+++ b/lib/Makefile.am |
180 |
@@ -18,7 +18,7 @@ BUILT_SOURCES = memtypes.h route_types.h |
181 |
|
182 |
libzebra_la_DEPENDENCIES = @LIB_REGEX@ |
183 |
|
184 |
-libzebra_la_LIBADD = @LIB_REGEX@ |
185 |
+libzebra_la_LIBADD = @LIB_REGEX@ $(LIBCAP) |
186 |
|
187 |
pkginclude_HEADERS = \ |
188 |
buffer.h checksum.h command.h filter.h getopt.h hash.h \ |
189 |
diff --git a/zebra/Makefile.am b/zebra/Makefile.am |
190 |
index 542f36f..d09a209 100644 |
191 |
--- a/zebra/Makefile.am |
192 |
+++ b/zebra/Makefile.am |
193 |
@@ -5,7 +5,6 @@ DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@ |
194 |
INSTALL_SDATA=@INSTALL@ -m 600 |
195 |
|
196 |
LIB_IPV6 = @LIB_IPV6@ |
197 |
-LIBCAP = @LIBCAP@ |
198 |
|
199 |
ipforward = @IPFORWARD@ |
200 |
if_method = @IF_METHOD@ |
201 |
@@ -39,9 +38,9 @@ noinst_HEADERS = \ |
202 |
connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \ |
203 |
interface.h ipforward.h irdp.h router-id.h kernel_socket.h |
204 |
|
205 |
-zebra_LDADD = $(otherobj) $(LIBCAP) $(LIB_IPV6) ../lib/libzebra.la |
206 |
+zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIB_IPV6) |
207 |
|
208 |
-testzebra_LDADD = $(LIBCAP) $(LIB_IPV6) ../lib/libzebra.la |
209 |
+testzebra_LDADD = ../lib/libzebra.la $(LIB_IPV6) |
210 |
|
211 |
zebra_DEPENDENCIES = $(otherobj) |
212 |
|
213 |
-- |
214 |
1.7.2.2 |