]>
Commit | Line | Data |
---|---|---|
8b8dba10 | 1 | Summary: Routing Software Suite |
c2342226 | 2 | Summary(pl.UTF-8): Zestaw oprogramowania do routingu |
8b8dba10 | 3 | Name: quagga |
392ebbfc | 4 | Version: 0.99.23 |
5b9b055d | 5 | Release: 7 |
316fda9d | 6 | License: GPL v2+ |
8b8dba10 | 7 | Group: Networking/Daemons |
392ebbfc SP |
8 | Source0: http://download.savannah.gnu.org/releases/quagga/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 92dff03272aa9127ac13c6bea9c66187 | |
8b8dba10 | 10 | Source1: %{name}.pam |
5b13a62a | 11 | Source2: %{name}.tmpfiles |
8b8dba10 AM |
12 | Source10: %{name}-zebra.init |
13 | Source11: %{name}-bgpd.init | |
14 | Source12: %{name}-ospf6d.init | |
15 | Source13: %{name}-ospfd.init | |
16 | Source14: %{name}-ripd.init | |
17 | Source15: %{name}-ripngd.init | |
fd21ab64 | 18 | Source16: %{name}-isisd.init |
7f780b21 | 19 | Source17: %{name}-babeld.init |
8b8dba10 AM |
20 | Source20: %{name}-zebra.sysconfig |
21 | Source21: %{name}-bgpd.sysconfig | |
22 | Source22: %{name}-ospf6d.sysconfig | |
23 | Source23: %{name}-ospfd.sysconfig | |
24 | Source24: %{name}-ripd.sysconfig | |
25 | Source25: %{name}-ripngd.sysconfig | |
fd21ab64 | 26 | Source26: %{name}-isisd.sysconfig |
7f780b21 | 27 | Source27: %{name}-babeld.sysconfig |
8b8dba10 AM |
28 | Source30: %{name}-zebra.logrotate |
29 | Source31: %{name}-bgpd.logrotate | |
30 | Source32: %{name}-ospfd.logrotate | |
31 | Source33: %{name}-ospf6d.logrotate | |
fd21ab64 AF |
32 | Source34: %{name}-ripd.logrotate |
33 | Source35: %{name}-ripngd.logrotate | |
34 | Source36: %{name}-isisd.logrotate | |
7f780b21 | 35 | Source37: %{name}-babeld.logrotate |
d9a7bec1 JB |
36 | Patch0: %{name}-info.patch |
37 | Patch1: %{name}-proc.patch | |
cfd2ab15 | 38 | Patch2: %{name}-vtysh-pam.patch |
7f780b21 | 39 | Patch3: %{name}-readline.patch |
7685f7c2 | 40 | URL: http://www.quagga.net/ |
d9a7bec1 | 41 | BuildRequires: autoconf >= 2.53 |
8b8dba10 | 42 | BuildRequires: automake |
64f04639 | 43 | BuildRequires: gawk |
5a839817 | 44 | BuildRequires: libtool |
8b8dba10 | 45 | BuildRequires: ncurses-devel >= 5.1 |
8b8dba10 | 46 | BuildRequires: net-snmp-devel |
d9a7bec1 | 47 | BuildRequires: pam-devel |
4f492e58 | 48 | BuildRequires: perl-base |
d9a7bec1 | 49 | BuildRequires: readline-devel >= 4.1 |
c89c61d5 | 50 | BuildRequires: rpmbuild(macros) >= 1.268 |
d9a7bec1 | 51 | BuildRequires: texinfo |
8b8dba10 | 52 | Requires(post): /bin/hostname |
5e6a6443 | 53 | Requires(post): /sbin/ldconfig |
4f492e58 | 54 | Requires(post,preun): /sbin/chkconfig |
55 | Requires(postun): /usr/sbin/groupdel | |
56 | Requires(postun): /usr/sbin/userdel | |
b3bd2fb3 ER |
57 | Requires(pre): /bin/id |
58 | Requires(pre): /usr/bin/getgid | |
59 | Requires(pre): /usr/sbin/groupadd | |
60 | Requires(pre): /usr/sbin/useradd | |
61 | Requires: rc-scripts | |
4f492e58 | 62 | Provides: group(quagga) |
63 | Provides: group(quaggavty) | |
8b8dba10 | 64 | Provides: routingdaemon |
4f492e58 | 65 | Provides: user(quagga) |
8b8dba10 AM |
66 | Obsoletes: bird |
67 | Obsoletes: gated | |
68 | Obsoletes: mrt | |
dcae8163 | 69 | Obsoletes: quagga |
b3bd2fb3 | 70 | Obsoletes: zebra-xs26 |
b913f293 | 71 | Conflicts: logrotate < 3.8.0 |
5e6a6443 | 72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8b8dba10 | 73 | |
579bb749 AM |
74 | %define _sysconfdir /etc/%{name} |
75 | %define _includedir %{_prefix}/include/%{name} | |
3b2e22c4 | 76 | %define _localstatedir %{_var}/run/%{name} |
8b8dba10 | 77 | |
a2bc7d16 | 78 | # better fix by proper linking |
18d4b98f | 79 | %define skip_post_check_so libzebra.so.* libospf.so.* libospfapiclient.so.* |
a2bc7d16 | 80 | |
8b8dba10 | 81 | %description |
cae7acba JB |
82 | Quagga is a routing software suite, providing implementations of |
83 | OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms, | |
84 | particularly FreeBSD and Linux and also NetBSD, to mention a few. | |
85 | Quagga is a fork of GNU Zebra which was developed by Kunihiro | |
86 | Ishiguro. The Quagga tree aims to build a more involved community | |
87 | around Quagga than the current centralised model of GNU Zebra. | |
88 | ||
dff29096 JR |
89 | %description -l pl.UTF-8 |
90 | Quagga to zestaw oprogramowania do routingu, dostarczający | |
cae7acba | 91 | implementacje OSPFv2, OSPFv3, RIP v1 i v2, RIPv3 i BGPv4 dla platform |
dff29096 JR |
92 | uniksowych, w szczególności FreeBSD, Linuksa, NetBSD - żeby wymienić |
93 | tylko kilka. Quagga to odgałęzienie projektu GNU Zebra, który był | |
cae7acba | 94 | rozwijany przez Kunihiro Ishiguro. Celem drzewa Quagga jest |
dff29096 | 95 | zgromadzenie bardziej zaangażowanej społeczności wokół projektu, niż w |
cae7acba | 96 | aktualnie scentralizowanym modelu GNU Zebry. |
8b8dba10 | 97 | |
7f780b21 | 98 | %package babeld |
f012ea02 SP |
99 | Summary: BABEL wireless mesh routing daemon |
100 | Summary(pl.UTF-8): Demon routingu BABEL | |
101 | Group: Networking/Daemons | |
102 | Requires(post,preun): /sbin/chkconfig | |
103 | Requires: %{name} = %{version}-%{release} | |
7f780b21 SP |
104 | |
105 | %description babeld | |
106 | BABEL wireless mesh routing daemon. Includes IPv6 support. | |
107 | ||
108 | %description babeld -l pl.UTF-8 | |
109 | Demon obsługi protokołu BABEL. Obsługuje także IPv6. | |
110 | ||
8b8dba10 AM |
111 | %package bgpd |
112 | Summary: BGP routing daemon | |
c2342226 | 113 | Summary(pl.UTF-8): Demon routingu BGP |
8b8dba10 AM |
114 | Group: Networking/Daemons |
115 | Requires(post,preun): /sbin/chkconfig | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | Obsoletes: zebra-xs26-bgpd | |
118 | ||
119 | %description bgpd | |
120 | BGP routing daemon. Includes IPv6 support. | |
121 | ||
dff29096 JR |
122 | %description bgpd -l pl.UTF-8 |
123 | Demon obsługi protokołu BGP. Obsługuje także IPv6. | |
8b8dba10 | 124 | |
58147bbf TP |
125 | %package isisd |
126 | Summary: IS-IS routing daemon | |
127 | Summary(pl.UTF-8): Demon routingu IS-IS | |
128 | Group: Networking/Daemons | |
129 | Requires(post,preun): /sbin/chkconfig | |
130 | Requires: %{name} = %{version}-%{release} | |
131 | ||
132 | %description isisd | |
133 | IS-IS routing daemon. | |
134 | ||
d41d3c7a TP |
135 | %package ospfd |
136 | Summary: OSPF routing daemon | |
137 | Summary(pl.UTF-8): Demon routingu OSPF | |
138 | Group: Networking/Daemons | |
139 | Requires(post,preun): /sbin/chkconfig | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
8b8dba10 AM |
142 | %description ospfd |
143 | OSPF routing daemon. | |
144 | ||
dff29096 JR |
145 | %description ospfd -l pl.UTF-8 |
146 | Demon do obsługi protokołu OSPF. | |
8b8dba10 AM |
147 | |
148 | %package ospf6d | |
149 | Summary: IPv6 OSPF routing daemon | |
c2342226 | 150 | Summary(pl.UTF-8): Demon routingu OSPF w sieciach IPv6 |
8b8dba10 | 151 | Group: Networking/Daemons |
8b8dba10 | 152 | Requires(post,preun): /sbin/chkconfig |
b3bd2fb3 | 153 | Requires: %{name} = %{version}-%{release} |
8b8dba10 AM |
154 | Obsoletes: zebra-xs26-ospf6d |
155 | ||
156 | %description ospf6d | |
157 | OSPF6 routing daemon for IPv6 networks. | |
158 | ||
dff29096 JR |
159 | %description ospf6d -l pl.UTF-8 |
160 | Demon do obsługi protokołu OSPF w sieciach IPv6. | |
8b8dba10 AM |
161 | |
162 | %package ripd | |
163 | Summary: RIP routing daemon | |
c2342226 | 164 | Summary(pl.UTF-8): Demon routingu RIP |
8b8dba10 AM |
165 | Group: Networking/Daemons |
166 | Requires(post,preun): /sbin/chkconfig | |
167 | Requires: %{name} = %{version}-%{release} | |
168 | ||
169 | %description ripd | |
170 | RIP routing daemon for zebra. | |
171 | ||
dff29096 JR |
172 | %description ripd -l pl.UTF-8 |
173 | Demon obsługi protokołu RIP. | |
8b8dba10 AM |
174 | |
175 | %package ripngd | |
176 | Summary: IPv6 RIP routing daemon | |
c2342226 | 177 | Summary(pl.UTF-8): Demon routingu RIP w sieciach IPv6 |
8b8dba10 | 178 | Group: Networking/Daemons |
8b8dba10 | 179 | Requires(post,preun): /sbin/chkconfig |
b3bd2fb3 | 180 | Requires: %{name} = %{version}-%{release} |
8b8dba10 AM |
181 | Obsoletes: zebra-xs26-ripngd |
182 | ||
183 | %description ripngd | |
184 | RIP routing daemon for IPv6 networks. | |
185 | ||
dff29096 JR |
186 | %description ripngd -l pl.UTF-8 |
187 | Demon obsługi protokołu RIP w sieciach IPv6. | |
8b8dba10 | 188 | |
579bb749 | 189 | %package devel |
5e6a6443 | 190 | Summary: Header files for quagga libraries |
c2342226 | 191 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek quagga |
f510db03 | 192 | Group: Development/Libraries |
5e6a6443 | 193 | Requires: %{name} = %{version}-%{release} |
579bb749 AM |
194 | |
195 | %description devel | |
5e6a6443 | 196 | Header files for quagga libraries. |
579bb749 | 197 | |
dff29096 JR |
198 | %description devel -l pl.UTF-8 |
199 | Pliki nagłówkowe bibliotek quagga. | |
5e6a6443 JB |
200 | |
201 | %package static | |
202 | Summary: Static version of quagga libraries | |
c2342226 | 203 | Summary(pl.UTF-8): Statyczne wersje bibliotek quagga |
5e6a6443 JB |
204 | Group: Development/Libraries |
205 | Requires: %{name}-devel = %{version}-%{release} | |
206 | ||
207 | %description static | |
208 | Static version of quagga libraries. | |
209 | ||
dff29096 | 210 | %description static -l pl.UTF-8 |
5e6a6443 | 211 | Statyczne wersje bibliotek quagga. |
579bb749 | 212 | |
8b8dba10 | 213 | %prep |
d9a7bec1 JB |
214 | %setup -q |
215 | %patch0 -p1 | |
216 | %patch1 -p1 | |
cfd2ab15 | 217 | %patch2 -p1 |
218 | %patch3 -p1 | |
8b8dba10 AM |
219 | |
220 | %build | |
7082381a | 221 | %{__libtoolize} |
8b8dba10 AM |
222 | %{__aclocal} |
223 | %{__autoconf} | |
224 | %{__automake} | |
225 | %{__autoheader} | |
226 | %configure \ | |
d9a7bec1 | 227 | --enable-ipv6 \ |
8b8dba10 AM |
228 | --enable-vtysh \ |
229 | --enable-netlink \ | |
230 | --enable-snmp \ | |
8b8dba10 AM |
231 | --enable-opaque-lsa \ |
232 | --enable-ospfapi=yes \ | |
233 | --enable-ospfclient=yes \ | |
234 | --enable-ospf-te \ | |
235 | --enable-multipath=64 \ | |
236 | --enable-user=quagga \ | |
237 | --enable-group=quagga \ | |
238 | --enable-vty-group=quaggavty \ | |
239 | --enable-rtadv \ | |
fd21ab64 AF |
240 | --enable-isisd \ |
241 | --disable-isis-topology \ | |
242 | --enable-irdp \ | |
ce053553 | 243 | --disable-watchquagga \ |
8b8dba10 AM |
244 | --with-libpam |
245 | ||
246 | %{__make} | |
247 | ||
248 | %install | |
249 | rm -rf $RPM_BUILD_ROOT | |
58147bbf | 250 | install -d $RPM_BUILD_ROOT/etc/{env.d,logrotate.d,pam.d,rc.d/init.d,sysconfig} \ |
e9d9a312 | 251 | $RPM_BUILD_ROOT/var/log/{archive,}/%{name} \ |
5b13a62a | 252 | $RPM_BUILD_ROOT%{_var}/run/%{name} \ |
f012ea02 | 253 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
8b8dba10 AM |
254 | |
255 | %{__make} install \ | |
256 | DESTDIR=$RPM_BUILD_ROOT | |
257 | ||
1629f6f8 SP |
258 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/zebra |
259 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
260 | ||
261 | install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/zebra | |
262 | install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bgpd | |
263 | install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/ospf6d | |
264 | install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/ospfd | |
265 | install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/rc.d/init.d/ripd | |
266 | install -p %{SOURCE15} $RPM_BUILD_ROOT/etc/rc.d/init.d/ripngd | |
267 | install -p %{SOURCE16} $RPM_BUILD_ROOT/etc/rc.d/init.d/isisd | |
268 | install -p %{SOURCE17} $RPM_BUILD_ROOT/etc/rc.d/init.d/babeld | |
269 | ||
270 | cp -p %{SOURCE20} $RPM_BUILD_ROOT/etc/sysconfig/zebra | |
271 | cp -p %{SOURCE21} $RPM_BUILD_ROOT/etc/sysconfig/bgpd | |
272 | cp -p %{SOURCE22} $RPM_BUILD_ROOT/etc/sysconfig/ospf6d | |
273 | cp -p %{SOURCE23} $RPM_BUILD_ROOT/etc/sysconfig/ospfd | |
274 | cp -p %{SOURCE24} $RPM_BUILD_ROOT/etc/sysconfig/ripd | |
275 | cp -p %{SOURCE25} $RPM_BUILD_ROOT/etc/sysconfig/ripngd | |
276 | cp -p %{SOURCE26} $RPM_BUILD_ROOT/etc/sysconfig/isisd | |
277 | cp -p %{SOURCE27} $RPM_BUILD_ROOT/etc/sysconfig/babeld | |
278 | ||
279 | cp -p %{SOURCE30} $RPM_BUILD_ROOT/etc/logrotate.d/zebra | |
280 | cp -p %{SOURCE31} $RPM_BUILD_ROOT/etc/logrotate.d/bgpd | |
281 | cp -p %{SOURCE32} $RPM_BUILD_ROOT/etc/logrotate.d/ospfd | |
282 | cp -p %{SOURCE33} $RPM_BUILD_ROOT/etc/logrotate.d/ospf6d | |
283 | cp -p %{SOURCE34} $RPM_BUILD_ROOT/etc/logrotate.d/ripd | |
284 | cp -p %{SOURCE35} $RPM_BUILD_ROOT/etc/logrotate.d/ripngd | |
285 | cp -p %{SOURCE36} $RPM_BUILD_ROOT/etc/logrotate.d/isisd | |
286 | cp -p %{SOURCE37} $RPM_BUILD_ROOT/etc/logrotate.d/babeld | |
8b8dba10 | 287 | |
7f780b21 | 288 | touch $RPM_BUILD_ROOT/var/log/%{name}/{zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.log |
8b8dba10 | 289 | |
7f780b21 | 290 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{vtysh,zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.conf |
8b8dba10 | 291 | |
9a1297dd | 292 | echo '#VTYSH_PAGER="less -FX"' > $RPM_BUILD_ROOT/etc/env.d/VTYSH_PAGER |
58147bbf | 293 | |
8b8dba10 AM |
294 | %clean |
295 | rm -rf $RPM_BUILD_ROOT | |
296 | ||
3b2e22c4 | 297 | %pre |
8ac69389 ER |
298 | %groupadd -g 127 quagga |
299 | %groupadd -g 128 quaggavty | |
300 | %useradd -u 127 -d /tmp -s /bin/false -c "Quagga User" -g quagga quagga | |
3b2e22c4 | 301 | |
8b8dba10 AM |
302 | %post |
303 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
5e6a6443 | 304 | /sbin/ldconfig |
8b8dba10 AM |
305 | /sbin/chkconfig --add zebra >&2 |
306 | umask 027 | |
307 | if [ ! -s %{_sysconfdir}/zebra.conf ]; then | |
f510db03 | 308 | echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf |
8b8dba10 | 309 | fi |
06b02d7f | 310 | %service zebra restart "main routing daemon" |
8b8dba10 | 311 | |
7f780b21 SP |
312 | %post babeld |
313 | /sbin/chkconfig --add babeld >&2 | |
314 | if [ ! -s %{_sysconfdir}/babeld.conf ]; then | |
315 | echo "hostname `hostname`" > %{_sysconfdir}/babeld.conf | |
316 | fi | |
317 | %service babeld restart "babeld routing daemon" | |
318 | ||
8b8dba10 AM |
319 | %post bgpd |
320 | /sbin/chkconfig --add bgpd >&2 | |
adc31047 | 321 | if [ ! -s %{_sysconfdir}/bgpd.conf ]; then |
322 | echo "hostname `hostname`" > %{_sysconfdir}/bgpd.conf | |
323 | fi | |
b3bd2fb3 | 324 | %service bgpd restart "bgpd routing daemon" |
8b8dba10 | 325 | |
58147bbf TP |
326 | %post isisd |
327 | /sbin/chkconfig --add isisd >&2 | |
328 | if [ ! -s %{_sysconfdir}/isisd.conf ]; then | |
329 | echo "hostname `hostname`" > %{_sysconfdir}/isisd.conf | |
330 | fi | |
331 | %service isisd restart "IS-IS routing daemon" | |
332 | ||
8b8dba10 AM |
333 | %post ospfd |
334 | /sbin/chkconfig --add ospfd >&2 | |
adc31047 | 335 | if [ ! -s %{_sysconfdir}/ospfd.conf ]; then |
336 | echo "hostname `hostname`" > %{_sysconfdir}/ospfd.conf | |
337 | fi | |
06b02d7f | 338 | %service ospfd restart "ospfd routing daemon" |
8b8dba10 AM |
339 | |
340 | %post ospf6d | |
341 | /sbin/chkconfig --add ospf6d >&2 | |
adc31047 | 342 | if [ ! -s %{_sysconfdir}/ospf6d.conf ]; then |
343 | echo "hostname `hostname`" > %{_sysconfdir}/ospf6d.conf | |
344 | fi | |
06b02d7f | 345 | %service ospf6d restart "ospf6d routing daemon" |
8b8dba10 AM |
346 | |
347 | %post ripd | |
348 | /sbin/chkconfig --add ripd >&2 | |
adc31047 | 349 | if [ ! -s %{_sysconfdir}/ripd.conf ]; then |
350 | echo "hostname `hostname`" > %{_sysconfdir}/ripd.conf | |
351 | fi | |
06b02d7f | 352 | %service ripd restart "ripd routing daemon" |
8b8dba10 AM |
353 | |
354 | %post ripngd | |
355 | /sbin/chkconfig --add ripngd >&2 | |
adc31047 | 356 | if [ ! -s %{_sysconfdir}/ripngd.conf ]; then |
357 | echo "hostname `hostname`" > %{_sysconfdir}/ripngd.conf | |
358 | fi | |
06b02d7f | 359 | %service ripngd restart "ripngd routing daemon" |
8b8dba10 AM |
360 | |
361 | %preun | |
362 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 363 | %service zebra stop |
f510db03 | 364 | /sbin/chkconfig --del zebra >&2 |
8b8dba10 AM |
365 | fi |
366 | ||
7f780b21 SP |
367 | %preun babeld |
368 | if [ "$1" = "0" ]; then | |
369 | %service babeld stop | |
370 | /sbin/chkconfig --del babeld >&2 | |
371 | fi | |
372 | ||
8b8dba10 AM |
373 | %preun bgpd |
374 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 375 | %service bgpd stop |
f510db03 | 376 | /sbin/chkconfig --del bgpd >&2 |
8b8dba10 AM |
377 | fi |
378 | ||
58147bbf TP |
379 | %preun isisd |
380 | if [ "$1" = "0" ]; then | |
381 | %service isisd stop | |
382 | /sbin/chkconfig --del isisd >&2 | |
383 | fi | |
384 | ||
8b8dba10 AM |
385 | %preun ospfd |
386 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 387 | %service ospfd stop |
f510db03 | 388 | /sbin/chkconfig --del ospfd >&2 |
8b8dba10 AM |
389 | fi |
390 | ||
391 | %preun ospf6d | |
392 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 393 | %service ospf6d stop |
f510db03 | 394 | /sbin/chkconfig --del ospf6d >&2 |
8b8dba10 AM |
395 | fi |
396 | ||
397 | %preun ripd | |
398 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 399 | %service ripd stop |
f510db03 | 400 | /sbin/chkconfig --del ripd >&2 |
8b8dba10 AM |
401 | fi |
402 | ||
403 | %preun ripngd | |
404 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 405 | %service ripngd stop |
f510db03 | 406 | /sbin/chkconfig --del ripngd >&2 |
8b8dba10 AM |
407 | fi |
408 | ||
409 | %postun | |
410 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
3b2e22c4 | 411 | if [ "$1" = "0" ]; then |
4f492e58 | 412 | %userremove quagga |
413 | %groupremove quagga | |
414 | %groupremove quaggavty | |
3b2e22c4 | 415 | fi |
8b8dba10 AM |
416 | |
417 | %files | |
418 | %defattr(644,root,root,755) | |
419 | %doc AUTHORS NEWS README REPORTING-BUGS SERVICES TODO | |
420 | %{_infodir}/*info* | |
421 | %{_mandir}/man1/* | |
422 | %attr(755,root,root) %{_bindir}/* | |
58147bbf TP |
423 | %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/VTYSH_PAGER |
424 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/zebra | |
425 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/zebra | |
51d8e3f9 | 426 | %dir %attr(770,root,quagga) %{_sysconfdir} |
0214ad6f JB |
427 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/vtysh.conf |
428 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/zebra.conf | |
f012ea02 | 429 | %{systemdtmpfilesdir}/%{name}.conf |
3b2e22c4 | 430 | %dir %attr(770,root,quagga) /var/run/%{name} |
ecddf7e2 | 431 | %dir %attr(750,quagga,quagga) /var/log/%{name} |
4a4a0363 | 432 | %dir %attr(750,quagga,quagga) /var/log/archive/%{name} |
5e6a6443 | 433 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
7d2c3bbd | 434 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.0 |
8b8dba10 AM |
435 | %doc zebra/*sample* |
436 | %{_mandir}/man8/zebra* | |
437 | %attr(755,root,root) %{_sbindir}/zebra | |
438 | %attr(754,root,root) /etc/rc.d/init.d/zebra | |
0214ad6f | 439 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/zebra |
3b2e22c4 | 440 | %ghost /var/log/%{name}/zebra* |
8b8dba10 | 441 | |
7f780b21 SP |
442 | %files babeld |
443 | %defattr(644,root,root,755) | |
444 | %doc babeld/*sample* | |
445 | %attr(755,root,root) %{_sbindir}/babeld | |
446 | %attr(754,root,root) /etc/rc.d/init.d/babeld | |
447 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/babeld.conf | |
448 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/babeld | |
449 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/babeld | |
450 | %ghost /var/log/%{name}/babeld* | |
451 | ||
8b8dba10 AM |
452 | %files bgpd |
453 | %defattr(644,root,root,755) | |
454 | %doc bgpd/*sample* | |
455 | %{_mandir}/man8/bgpd* | |
456 | %attr(755,root,root) %{_sbindir}/bgpd | |
457 | %attr(754,root,root) /etc/rc.d/init.d/bgpd | |
0214ad6f JB |
458 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/bgpd.conf |
459 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/bgpd | |
460 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/bgpd | |
3b2e22c4 | 461 | %ghost /var/log/%{name}/bgpd* |
8b8dba10 | 462 | |
58147bbf TP |
463 | %files isisd |
464 | %defattr(644,root,root,755) | |
465 | %doc isisd/*sample* | |
466 | %{_mandir}/man8/isisd* | |
467 | %attr(755,root,root) %{_sbindir}/isisd | |
468 | %attr(754,root,root) /etc/rc.d/init.d/isisd | |
469 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/isisd.conf | |
470 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/isisd | |
471 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/isisd | |
472 | %ghost /var/log/%{name}/isisd* | |
473 | ||
8b8dba10 AM |
474 | %files ospfd |
475 | %defattr(644,root,root,755) | |
476 | %doc ospfd/*sample* | |
477 | %{_mandir}/man8/ospfd* | |
7f780b21 | 478 | %{_mandir}/man8/ospfclient* |
8b8dba10 | 479 | %attr(755,root,root) %{_sbindir}/ospfd |
579bb749 | 480 | %attr(755,root,root) %{_sbindir}/ospfclient |
8b8dba10 | 481 | %attr(754,root,root) /etc/rc.d/init.d/ospfd |
0214ad6f JB |
482 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ospfd.conf |
483 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ospfd | |
484 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ospfd | |
3b2e22c4 | 485 | %ghost /var/log/%{name}/ospfd* |
8b8dba10 AM |
486 | |
487 | %files ospf6d | |
488 | %defattr(644,root,root,755) | |
489 | %doc ospf6d/*sample* | |
490 | %{_mandir}/man8/ospf6d* | |
491 | %attr(755,root,root) %{_sbindir}/ospf6d | |
492 | %attr(754,root,root) /etc/rc.d/init.d/ospf6d | |
0214ad6f JB |
493 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ospf6d.conf |
494 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ospf6d | |
495 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ospf6d | |
3b2e22c4 | 496 | %ghost /var/log/%{name}/ospf6d* |
8b8dba10 AM |
497 | |
498 | %files ripd | |
499 | %defattr(644,root,root,755) | |
500 | %doc ripd/*sample* | |
501 | %{_mandir}/man8/ripd* | |
502 | %attr(755,root,root) %{_sbindir}/ripd | |
503 | %attr(754,root,root) /etc/rc.d/init.d/ripd | |
0214ad6f JB |
504 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ripd.conf |
505 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ripd | |
506 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ripd | |
3b2e22c4 | 507 | %ghost /var/log/%{name}/ripd* |
8b8dba10 AM |
508 | |
509 | %files ripngd | |
510 | %defattr(644,root,root,755) | |
511 | %doc ripngd/*sample* | |
512 | %{_mandir}/man8/ripngd* | |
513 | %attr(755,root,root) %{_sbindir}/ripngd | |
514 | %attr(754,root,root) /etc/rc.d/init.d/ripngd | |
0214ad6f JB |
515 | %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ripngd.conf |
516 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ripngd | |
517 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ripngd | |
3b2e22c4 | 518 | %ghost /var/log/%{name}/ripngd* |
579bb749 AM |
519 | |
520 | %files devel | |
521 | %defattr(644,root,root,755) | |
5e6a6443 JB |
522 | %attr(755,root,root) %{_libdir}/lib*.so |
523 | %{_libdir}/lib*.la | |
579bb749 | 524 | %{_includedir} |
5e6a6443 JB |
525 | |
526 | %files static | |
527 | %defattr(644,root,root,755) | |
579bb749 | 528 | %{_libdir}/*.a |