1 Summary: Routing Software Suite
2 Summary(pl.UTF-8): Zestaw oprogramowania do routingu
7 Group: Networking/Daemons
8 Source0: http://download.savannah.gnu.org/releases/quagga/%{name}-%{version}.tar.xz
9 # Source0-md5: 92dff03272aa9127ac13c6bea9c66187
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 URL: http://www.quagga.net/
41 BuildRequires: autoconf >= 2.53
42 BuildRequires: automake
44 BuildRequires: libtool
45 BuildRequires: ncurses-devel >= 5.1
46 BuildRequires: net-snmp-devel
47 BuildRequires: pam-devel
48 BuildRequires: perl-base
49 BuildRequires: readline-devel >= 4.1
50 BuildRequires: rpmbuild(macros) >= 1.268
51 BuildRequires: texinfo
52 Requires(post): /bin/hostname
53 Requires(post): /sbin/ldconfig
54 Requires(post,preun): /sbin/chkconfig
55 Requires(postun): /usr/sbin/groupdel
56 Requires(postun): /usr/sbin/userdel
57 Requires(pre): /bin/id
58 Requires(pre): /usr/bin/getgid
59 Requires(pre): /usr/sbin/groupadd
60 Requires(pre): /usr/sbin/useradd
62 Provides: group(quagga)
63 Provides: group(quaggavty)
64 Provides: routingdaemon
65 Provides: user(quagga)
71 Conflicts: logrotate < 3.8.0
72 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74 %define _sysconfdir /etc/%{name}
75 %define _includedir %{_prefix}/include/%{name}
76 %define _localstatedir %{_var}/run/%{name}
78 # better fix by proper linking
79 %define skip_post_check_so libzebra.so.* libospf.so.* libospfapiclient.so.*
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.
89 %description -l pl.UTF-8
90 Quagga to zestaw oprogramowania do routingu, dostarczający
91 implementacje OSPFv2, OSPFv3, RIP v1 i v2, RIPv3 i BGPv4 dla platform
92 uniksowych, w szczególności FreeBSD, Linuksa, NetBSD - żeby wymienić
93 tylko kilka. Quagga to odgałęzienie projektu GNU Zebra, który był
94 rozwijany przez Kunihiro Ishiguro. Celem drzewa Quagga jest
95 zgromadzenie bardziej zaangażowanej społeczności wokół projektu, niż w
96 aktualnie scentralizowanym modelu GNU Zebry.
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}
106 BABEL wireless mesh routing daemon. Includes IPv6 support.
108 %description babeld -l pl.UTF-8
109 Demon obsługi protokołu BABEL. Obsługuje także IPv6.
112 Summary: BGP routing daemon
113 Summary(pl.UTF-8): Demon routingu BGP
114 Group: Networking/Daemons
115 Requires(post,preun): /sbin/chkconfig
116 Requires: %{name} = %{version}-%{release}
117 Obsoletes: zebra-xs26-bgpd
120 BGP routing daemon. Includes IPv6 support.
122 %description bgpd -l pl.UTF-8
123 Demon obsługi protokołu BGP. Obsługuje także IPv6.
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}
133 IS-IS routing daemon.
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}
145 %description ospfd -l pl.UTF-8
146 Demon do obsługi protokołu OSPF.
149 Summary: IPv6 OSPF routing daemon
150 Summary(pl.UTF-8): Demon routingu OSPF w sieciach IPv6
151 Group: Networking/Daemons
152 Requires(post,preun): /sbin/chkconfig
153 Requires: %{name} = %{version}-%{release}
154 Obsoletes: zebra-xs26-ospf6d
157 OSPF6 routing daemon for IPv6 networks.
159 %description ospf6d -l pl.UTF-8
160 Demon do obsługi protokołu OSPF w sieciach IPv6.
163 Summary: RIP routing daemon
164 Summary(pl.UTF-8): Demon routingu RIP
165 Group: Networking/Daemons
166 Requires(post,preun): /sbin/chkconfig
167 Requires: %{name} = %{version}-%{release}
170 RIP routing daemon for zebra.
172 %description ripd -l pl.UTF-8
173 Demon obsługi protokołu RIP.
176 Summary: IPv6 RIP routing daemon
177 Summary(pl.UTF-8): Demon routingu RIP w sieciach IPv6
178 Group: Networking/Daemons
179 Requires(post,preun): /sbin/chkconfig
180 Requires: %{name} = %{version}-%{release}
181 Obsoletes: zebra-xs26-ripngd
184 RIP routing daemon for IPv6 networks.
186 %description ripngd -l pl.UTF-8
187 Demon obsługi protokołu RIP w sieciach IPv6.
190 Summary: Header files for quagga libraries
191 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek quagga
192 Group: Development/Libraries
193 Requires: %{name} = %{version}-%{release}
196 Header files for quagga libraries.
198 %description devel -l pl.UTF-8
199 Pliki nagłówkowe bibliotek quagga.
202 Summary: Static version of quagga libraries
203 Summary(pl.UTF-8): Statyczne wersje bibliotek quagga
204 Group: Development/Libraries
205 Requires: %{name}-devel = %{version}-%{release}
208 Static version of quagga libraries.
210 %description static -l pl.UTF-8
211 Statyczne wersje bibliotek quagga.
231 --enable-opaque-lsa \
232 --enable-ospfapi=yes \
233 --enable-ospfclient=yes \
235 --enable-multipath=64 \
236 --enable-user=quagga \
237 --enable-group=quagga \
238 --enable-vty-group=quaggavty \
241 --disable-isis-topology \
243 --disable-watchquagga \
249 rm -rf $RPM_BUILD_ROOT
250 install -d $RPM_BUILD_ROOT/etc/{env.d,logrotate.d,pam.d,rc.d/init.d,sysconfig} \
251 $RPM_BUILD_ROOT/var/log/{archive,}/%{name} \
252 $RPM_BUILD_ROOT%{_var}/run/%{name} \
253 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
256 DESTDIR=$RPM_BUILD_ROOT
258 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/zebra
259 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
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
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
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
288 touch $RPM_BUILD_ROOT/var/log/%{name}/{zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.log
290 touch $RPM_BUILD_ROOT%{_sysconfdir}/{vtysh,zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.conf
292 echo '#VTYSH_PAGER="less -FX"' > $RPM_BUILD_ROOT/etc/env.d/VTYSH_PAGER
295 rm -rf $RPM_BUILD_ROOT
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
303 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
305 /sbin/chkconfig --add zebra >&2
307 if [ ! -s %{_sysconfdir}/zebra.conf ]; then
308 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
310 %service zebra restart "main routing daemon"
313 /sbin/chkconfig --add babeld >&2
314 if [ ! -s %{_sysconfdir}/babeld.conf ]; then
315 echo "hostname `hostname`" > %{_sysconfdir}/babeld.conf
317 %service babeld restart "babeld routing daemon"
320 /sbin/chkconfig --add bgpd >&2
321 if [ ! -s %{_sysconfdir}/bgpd.conf ]; then
322 echo "hostname `hostname`" > %{_sysconfdir}/bgpd.conf
324 %service bgpd restart "bgpd routing daemon"
327 /sbin/chkconfig --add isisd >&2
328 if [ ! -s %{_sysconfdir}/isisd.conf ]; then
329 echo "hostname `hostname`" > %{_sysconfdir}/isisd.conf
331 %service isisd restart "IS-IS routing daemon"
334 /sbin/chkconfig --add ospfd >&2
335 if [ ! -s %{_sysconfdir}/ospfd.conf ]; then
336 echo "hostname `hostname`" > %{_sysconfdir}/ospfd.conf
338 %service ospfd restart "ospfd routing daemon"
341 /sbin/chkconfig --add ospf6d >&2
342 if [ ! -s %{_sysconfdir}/ospf6d.conf ]; then
343 echo "hostname `hostname`" > %{_sysconfdir}/ospf6d.conf
345 %service ospf6d restart "ospf6d routing daemon"
348 /sbin/chkconfig --add ripd >&2
349 if [ ! -s %{_sysconfdir}/ripd.conf ]; then
350 echo "hostname `hostname`" > %{_sysconfdir}/ripd.conf
352 %service ripd restart "ripd routing daemon"
355 /sbin/chkconfig --add ripngd >&2
356 if [ ! -s %{_sysconfdir}/ripngd.conf ]; then
357 echo "hostname `hostname`" > %{_sysconfdir}/ripngd.conf
359 %service ripngd restart "ripngd routing daemon"
362 if [ "$1" = "0" ]; then
364 /sbin/chkconfig --del zebra >&2
368 if [ "$1" = "0" ]; then
370 /sbin/chkconfig --del babeld >&2
374 if [ "$1" = "0" ]; then
376 /sbin/chkconfig --del bgpd >&2
380 if [ "$1" = "0" ]; then
382 /sbin/chkconfig --del isisd >&2
386 if [ "$1" = "0" ]; then
388 /sbin/chkconfig --del ospfd >&2
392 if [ "$1" = "0" ]; then
394 /sbin/chkconfig --del ospf6d >&2
398 if [ "$1" = "0" ]; then
400 /sbin/chkconfig --del ripd >&2
404 if [ "$1" = "0" ]; then
406 /sbin/chkconfig --del ripngd >&2
410 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
411 if [ "$1" = "0" ]; then
414 %groupremove quaggavty
418 %defattr(644,root,root,755)
419 %doc AUTHORS NEWS README REPORTING-BUGS SERVICES TODO
422 %attr(755,root,root) %{_bindir}/*
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
426 %dir %attr(770,root,quagga) %{_sysconfdir}
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
429 %{systemdtmpfilesdir}/%{name}.conf
430 %dir %attr(770,root,quagga) /var/run/%{name}
431 %dir %attr(750,quagga,quagga) /var/log/%{name}
432 %dir %attr(750,quagga,quagga) /var/log/archive/%{name}
433 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
434 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
436 %{_mandir}/man8/zebra*
437 %attr(755,root,root) %{_sbindir}/zebra
438 %attr(754,root,root) /etc/rc.d/init.d/zebra
439 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/zebra
440 %ghost /var/log/%{name}/zebra*
443 %defattr(644,root,root,755)
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*
453 %defattr(644,root,root,755)
455 %{_mandir}/man8/bgpd*
456 %attr(755,root,root) %{_sbindir}/bgpd
457 %attr(754,root,root) /etc/rc.d/init.d/bgpd
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
461 %ghost /var/log/%{name}/bgpd*
464 %defattr(644,root,root,755)
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*
475 %defattr(644,root,root,755)
477 %{_mandir}/man8/ospfd*
478 %{_mandir}/man8/ospfclient*
479 %attr(755,root,root) %{_sbindir}/ospfd
480 %attr(755,root,root) %{_sbindir}/ospfclient
481 %attr(754,root,root) /etc/rc.d/init.d/ospfd
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
485 %ghost /var/log/%{name}/ospfd*
488 %defattr(644,root,root,755)
490 %{_mandir}/man8/ospf6d*
491 %attr(755,root,root) %{_sbindir}/ospf6d
492 %attr(754,root,root) /etc/rc.d/init.d/ospf6d
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
496 %ghost /var/log/%{name}/ospf6d*
499 %defattr(644,root,root,755)
501 %{_mandir}/man8/ripd*
502 %attr(755,root,root) %{_sbindir}/ripd
503 %attr(754,root,root) /etc/rc.d/init.d/ripd
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
507 %ghost /var/log/%{name}/ripd*
510 %defattr(644,root,root,755)
512 %{_mandir}/man8/ripngd*
513 %attr(755,root,root) %{_sbindir}/ripngd
514 %attr(754,root,root) /etc/rc.d/init.d/ripngd
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
518 %ghost /var/log/%{name}/ripngd*
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_libdir}/lib*.so
527 %defattr(644,root,root,755)