1 Summary: Routing Software Suite
2 Summary(pl.UTF-8): Zestaw oprogramowania do routingu
7 Group: Networking/Daemons
8 Source0: http://www.quagga.net/download/%{name}-%{version}.tar.gz
9 # Source0-md5: 27ef98abb1820bae19eb71f631a10853
11 Source2: %{name}.tmpfiles
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
18 Source16: %{name}-isisd.init
19 Source17: %{name}-babeld.init
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
26 Source26: %{name}-isisd.sysconfig
27 Source27: %{name}-babeld.sysconfig
28 Source30: %{name}-zebra.logrotate
29 Source31: %{name}-bgpd.logrotate
30 Source32: %{name}-ospfd.logrotate
31 Source33: %{name}-ospf6d.logrotate
32 Source34: %{name}-ripd.logrotate
33 Source35: %{name}-ripngd.logrotate
34 Source36: %{name}-isisd.logrotate
35 Source37: %{name}-babeld.logrotate
36 Patch0: %{name}-info.patch
37 Patch1: %{name}-proc.patch
38 Patch2: %{name}-vtysh-pam.patch
39 Patch3: %{name}-readline.patch
40 Patch4: %{name}-blackhole.patch
41 URL: http://www.quagga.net/
42 BuildRequires: autoconf >= 2.53
43 BuildRequires: automake
45 BuildRequires: libtool
46 BuildRequires: ncurses-devel >= 5.1
47 BuildRequires: net-snmp-devel
48 BuildRequires: pam-devel
49 BuildRequires: perl-base
50 BuildRequires: readline-devel >= 4.1
51 BuildRequires: rpmbuild(macros) >= 1.268
52 BuildRequires: texinfo
53 Requires(post): /bin/hostname
54 Requires(post): /sbin/ldconfig
55 Requires(post,preun): /sbin/chkconfig
56 Requires(postun): /usr/sbin/groupdel
57 Requires(postun): /usr/sbin/userdel
58 Requires(pre): /bin/id
59 Requires(pre): /usr/bin/getgid
60 Requires(pre): /usr/sbin/groupadd
61 Requires(pre): /usr/sbin/useradd
63 Provides: group(quagga)
64 Provides: group(quaggavty)
65 Provides: routingdaemon
66 Provides: user(quagga)
72 Conflicts: logrotate < 3.8.0
73 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75 %define _sysconfdir /etc/%{name}
76 %define _includedir %{_prefix}/include/%{name}
77 %define _localstatedir %{_var}/run/%{name}
79 # better fix by proper linking
80 %define skip_post_check_so libzebra.so.* libospf.so.* libospfapiclient.so.*
83 Quagga is a routing software suite, providing implementations of
84 OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms,
85 particularly FreeBSD and Linux and also NetBSD, to mention a few.
86 Quagga is a fork of GNU Zebra which was developed by Kunihiro
87 Ishiguro. The Quagga tree aims to build a more involved community
88 around Quagga than the current centralised model of GNU Zebra.
90 %description -l pl.UTF-8
91 Quagga to zestaw oprogramowania do routingu, dostarczający
92 implementacje OSPFv2, OSPFv3, RIP v1 i v2, RIPv3 i BGPv4 dla platform
93 uniksowych, w szczególności FreeBSD, Linuksa, NetBSD - żeby wymienić
94 tylko kilka. Quagga to odgałęzienie projektu GNU Zebra, który był
95 rozwijany przez Kunihiro Ishiguro. Celem drzewa Quagga jest
96 zgromadzenie bardziej zaangażowanej społeczności wokół projektu, niż w
97 aktualnie scentralizowanym modelu GNU Zebry.
100 Summary: BABEL wireless mesh routing daemon
101 Summary(pl.UTF-8): Demon routingu BABEL
102 Group: Networking/Daemons
103 Requires(post,preun): /sbin/chkconfig
104 Requires: %{name} = %{version}-%{release}
107 BABEL wireless mesh routing daemon. Includes IPv6 support.
109 %description babeld -l pl.UTF-8
110 Demon obsługi protokołu BABEL. Obsługuje także IPv6.
113 Summary: BGP routing daemon
114 Summary(pl.UTF-8): Demon routingu BGP
115 Group: Networking/Daemons
116 Requires(post,preun): /sbin/chkconfig
117 Requires: %{name} = %{version}-%{release}
118 Obsoletes: zebra-xs26-bgpd
121 BGP routing daemon. Includes IPv6 support.
123 %description bgpd -l pl.UTF-8
124 Demon obsługi protokołu BGP. Obsługuje także IPv6.
127 Summary: IS-IS routing daemon
128 Summary(pl.UTF-8): Demon routingu IS-IS
129 Group: Networking/Daemons
130 Requires(post,preun): /sbin/chkconfig
131 Requires: %{name} = %{version}-%{release}
134 IS-IS routing daemon.
137 Summary: OSPF routing daemon
138 Summary(pl.UTF-8): Demon routingu OSPF
139 Group: Networking/Daemons
140 Requires(post,preun): /sbin/chkconfig
141 Requires: %{name} = %{version}-%{release}
146 %description ospfd -l pl.UTF-8
147 Demon do obsługi protokołu OSPF.
150 Summary: IPv6 OSPF routing daemon
151 Summary(pl.UTF-8): Demon routingu OSPF w sieciach IPv6
152 Group: Networking/Daemons
153 Requires(post,preun): /sbin/chkconfig
154 Requires: %{name} = %{version}-%{release}
155 Obsoletes: zebra-xs26-ospf6d
158 OSPF6 routing daemon for IPv6 networks.
160 %description ospf6d -l pl.UTF-8
161 Demon do obsługi protokołu OSPF w sieciach IPv6.
164 Summary: RIP routing daemon
165 Summary(pl.UTF-8): Demon routingu RIP
166 Group: Networking/Daemons
167 Requires(post,preun): /sbin/chkconfig
168 Requires: %{name} = %{version}-%{release}
171 RIP routing daemon for zebra.
173 %description ripd -l pl.UTF-8
174 Demon obsługi protokołu RIP.
177 Summary: IPv6 RIP routing daemon
178 Summary(pl.UTF-8): Demon routingu RIP w sieciach IPv6
179 Group: Networking/Daemons
180 Requires(post,preun): /sbin/chkconfig
181 Requires: %{name} = %{version}-%{release}
182 Obsoletes: zebra-xs26-ripngd
185 RIP routing daemon for IPv6 networks.
187 %description ripngd -l pl.UTF-8
188 Demon obsługi protokołu RIP w sieciach IPv6.
191 Summary: Header files for quagga libraries
192 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek quagga
193 Group: Development/Libraries
194 Requires: %{name} = %{version}-%{release}
197 Header files for quagga libraries.
199 %description devel -l pl.UTF-8
200 Pliki nagłówkowe bibliotek quagga.
203 Summary: Static version of quagga libraries
204 Summary(pl.UTF-8): Statyczne wersje bibliotek quagga
205 Group: Development/Libraries
206 Requires: %{name}-devel = %{version}-%{release}
209 Static version of quagga libraries.
211 %description static -l pl.UTF-8
212 Statyczne wersje bibliotek quagga.
233 --enable-opaque-lsa \
234 --enable-ospfapi=yes \
235 --enable-ospfclient=yes \
237 --enable-multipath=64 \
238 --enable-user=quagga \
239 --enable-group=quagga \
240 --enable-vty-group=quaggavty \
243 --disable-isis-topology \
245 --disable-watchquagga \
251 rm -rf $RPM_BUILD_ROOT
252 install -d $RPM_BUILD_ROOT/etc/{env.d,logrotate.d,pam.d,rc.d/init.d,sysconfig} \
253 $RPM_BUILD_ROOT/var/log/{archive,}/%{name} \
254 $RPM_BUILD_ROOT%{_var}/run/%{name} \
255 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
258 DESTDIR=$RPM_BUILD_ROOT
260 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/zebra
261 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
263 cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/zebra
264 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bgpd
265 cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/ospf6d
266 cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/ospfd
267 cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/rc.d/init.d/ripd
268 cp -p %{SOURCE15} $RPM_BUILD_ROOT/etc/rc.d/init.d/ripngd
269 cp -p %{SOURCE16} $RPM_BUILD_ROOT/etc/rc.d/init.d/isisd
270 cp -p %{SOURCE17} $RPM_BUILD_ROOT/etc/rc.d/init.d/babeld
272 cp -p %{SOURCE20} $RPM_BUILD_ROOT/etc/sysconfig/zebra
273 cp -p %{SOURCE21} $RPM_BUILD_ROOT/etc/sysconfig/bgpd
274 cp -p %{SOURCE22} $RPM_BUILD_ROOT/etc/sysconfig/ospf6d
275 cp -p %{SOURCE23} $RPM_BUILD_ROOT/etc/sysconfig/ospfd
276 cp -p %{SOURCE24} $RPM_BUILD_ROOT/etc/sysconfig/ripd
277 cp -p %{SOURCE25} $RPM_BUILD_ROOT/etc/sysconfig/ripngd
278 cp -p %{SOURCE26} $RPM_BUILD_ROOT/etc/sysconfig/isisd
279 cp -p %{SOURCE27} $RPM_BUILD_ROOT/etc/sysconfig/babeld
281 cp -p %{SOURCE30} $RPM_BUILD_ROOT/etc/logrotate.d/zebra
282 cp -p %{SOURCE31} $RPM_BUILD_ROOT/etc/logrotate.d/bgpd
283 cp -p %{SOURCE32} $RPM_BUILD_ROOT/etc/logrotate.d/ospfd
284 cp -p %{SOURCE33} $RPM_BUILD_ROOT/etc/logrotate.d/ospf6d
285 cp -p %{SOURCE34} $RPM_BUILD_ROOT/etc/logrotate.d/ripd
286 cp -p %{SOURCE35} $RPM_BUILD_ROOT/etc/logrotate.d/ripngd
287 cp -p %{SOURCE36} $RPM_BUILD_ROOT/etc/logrotate.d/isisd
288 cp -p %{SOURCE37} $RPM_BUILD_ROOT/etc/logrotate.d/babeld
290 touch $RPM_BUILD_ROOT/var/log/%{name}/{zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.log
292 touch $RPM_BUILD_ROOT%{_sysconfdir}/{vtysh,zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.conf
294 echo '#VTYSH_PAGER="less -FX"' > $RPM_BUILD_ROOT/etc/env.d/VTYSH_PAGER
297 rm -rf $RPM_BUILD_ROOT
300 %groupadd -g 127 quagga
301 %groupadd -g 128 quaggavty
302 %useradd -u 127 -d /tmp -s /bin/false -c "Quagga User" -g quagga quagga
305 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
307 /sbin/chkconfig --add zebra >&2
309 if [ ! -s %{_sysconfdir}/zebra.conf ]; then
310 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
312 %service zebra restart "main routing daemon"
315 /sbin/chkconfig --add babeld >&2
316 if [ ! -s %{_sysconfdir}/babeld.conf ]; then
317 echo "hostname `hostname`" > %{_sysconfdir}/babeld.conf
319 %service babeld restart "babeld routing daemon"
322 /sbin/chkconfig --add bgpd >&2
323 if [ ! -s %{_sysconfdir}/bgpd.conf ]; then
324 echo "hostname `hostname`" > %{_sysconfdir}/bgpd.conf
326 %service bgpd restart "bgpd routing daemon"
329 /sbin/chkconfig --add isisd >&2
330 if [ ! -s %{_sysconfdir}/isisd.conf ]; then
331 echo "hostname `hostname`" > %{_sysconfdir}/isisd.conf
333 %service isisd restart "IS-IS routing daemon"
336 /sbin/chkconfig --add ospfd >&2
337 if [ ! -s %{_sysconfdir}/ospfd.conf ]; then
338 echo "hostname `hostname`" > %{_sysconfdir}/ospfd.conf
340 %service ospfd restart "ospfd routing daemon"
343 /sbin/chkconfig --add ospf6d >&2
344 if [ ! -s %{_sysconfdir}/ospf6d.conf ]; then
345 echo "hostname `hostname`" > %{_sysconfdir}/ospf6d.conf
347 %service ospf6d restart "ospf6d routing daemon"
350 /sbin/chkconfig --add ripd >&2
351 if [ ! -s %{_sysconfdir}/ripd.conf ]; then
352 echo "hostname `hostname`" > %{_sysconfdir}/ripd.conf
354 %service ripd restart "ripd routing daemon"
357 /sbin/chkconfig --add ripngd >&2
358 if [ ! -s %{_sysconfdir}/ripngd.conf ]; then
359 echo "hostname `hostname`" > %{_sysconfdir}/ripngd.conf
361 %service ripngd restart "ripngd routing daemon"
364 if [ "$1" = "0" ]; then
366 /sbin/chkconfig --del zebra >&2
370 if [ "$1" = "0" ]; then
372 /sbin/chkconfig --del babeld >&2
376 if [ "$1" = "0" ]; then
378 /sbin/chkconfig --del bgpd >&2
382 if [ "$1" = "0" ]; then
384 /sbin/chkconfig --del isisd >&2
388 if [ "$1" = "0" ]; then
390 /sbin/chkconfig --del ospfd >&2
394 if [ "$1" = "0" ]; then
396 /sbin/chkconfig --del ospf6d >&2
400 if [ "$1" = "0" ]; then
402 /sbin/chkconfig --del ripd >&2
406 if [ "$1" = "0" ]; then
408 /sbin/chkconfig --del ripngd >&2
412 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
413 if [ "$1" = "0" ]; then
416 %groupremove quaggavty
420 %defattr(644,root,root,755)
421 %doc AUTHORS NEWS README REPORTING-BUGS SERVICES TODO
424 %attr(755,root,root) %{_bindir}/*
425 %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/VTYSH_PAGER
426 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/zebra
427 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/zebra
428 %dir %attr(770,root,quagga) %{_sysconfdir}
429 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/vtysh.conf
430 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/zebra.conf
431 %{systemdtmpfilesdir}/%{name}.conf
432 %dir %attr(770,root,quagga) /var/run/%{name}
433 %dir %attr(750,quagga,quagga) /var/log/%{name}
434 %dir %attr(750,quagga,quagga) /var/log/archive/%{name}
435 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
436 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
438 %{_mandir}/man8/zebra*
439 %attr(755,root,root) %{_sbindir}/zebra
440 %attr(754,root,root) /etc/rc.d/init.d/zebra
441 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/zebra
442 %ghost /var/log/%{name}/zebra*
445 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_sbindir}/babeld
448 %attr(754,root,root) /etc/rc.d/init.d/babeld
449 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/babeld.conf
450 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/babeld
451 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/babeld
452 %ghost /var/log/%{name}/babeld*
455 %defattr(644,root,root,755)
457 %{_mandir}/man8/bgpd*
458 %attr(755,root,root) %{_sbindir}/bgpd
459 %attr(754,root,root) /etc/rc.d/init.d/bgpd
460 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/bgpd.conf
461 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/bgpd
462 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/bgpd
463 %ghost /var/log/%{name}/bgpd*
466 %defattr(644,root,root,755)
468 %{_mandir}/man8/isisd*
469 %attr(755,root,root) %{_sbindir}/isisd
470 %attr(754,root,root) /etc/rc.d/init.d/isisd
471 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/isisd.conf
472 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/isisd
473 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/isisd
474 %ghost /var/log/%{name}/isisd*
477 %defattr(644,root,root,755)
479 %{_mandir}/man8/ospfd*
480 %{_mandir}/man8/ospfclient*
481 %attr(755,root,root) %{_sbindir}/ospfd
482 %attr(755,root,root) %{_sbindir}/ospfclient
483 %attr(754,root,root) /etc/rc.d/init.d/ospfd
484 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ospfd.conf
485 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ospfd
486 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ospfd
487 %ghost /var/log/%{name}/ospfd*
490 %defattr(644,root,root,755)
492 %{_mandir}/man8/ospf6d*
493 %attr(755,root,root) %{_sbindir}/ospf6d
494 %attr(754,root,root) /etc/rc.d/init.d/ospf6d
495 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ospf6d.conf
496 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ospf6d
497 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ospf6d
498 %ghost /var/log/%{name}/ospf6d*
501 %defattr(644,root,root,755)
503 %{_mandir}/man8/ripd*
504 %attr(755,root,root) %{_sbindir}/ripd
505 %attr(754,root,root) /etc/rc.d/init.d/ripd
506 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ripd.conf
507 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ripd
508 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ripd
509 %ghost /var/log/%{name}/ripd*
512 %defattr(644,root,root,755)
514 %{_mandir}/man8/ripngd*
515 %attr(755,root,root) %{_sbindir}/ripngd
516 %attr(754,root,root) /etc/rc.d/init.d/ripngd
517 %config(noreplace) %verify(not md5 mtime size) %attr(660,root,quagga) %{_sysconfdir}/ripngd.conf
518 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/ripngd
519 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/logrotate.d/ripngd
520 %ghost /var/log/%{name}/ripngd*
523 %defattr(644,root,root,755)
524 %attr(755,root,root) %{_libdir}/lib*.so
529 %defattr(644,root,root,755)