]>
Commit | Line | Data |
---|---|---|
8b8dba10 | 1 | Summary: Routing Software Suite |
c2342226 | 2 | Summary(pl.UTF-8): Zestaw oprogramowania do routingu |
8b8dba10 | 3 | Name: quagga |
7f780b21 | 4 | Version: 0.99.22.4 |
d1e83386 | 5 | Release: 1 |
316fda9d | 6 | License: GPL v2+ |
8b8dba10 AM |
7 | Group: Networking/Daemons |
8 | Source0: http://www.quagga.net/download/%{name}-%{version}.tar.gz | |
7f780b21 | 9 | # Source0-md5: 27ef98abb1820bae19eb71f631a10853 |
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 SP |
39 | Patch3: %{name}-readline.patch |
40 | Patch4: %{name}-blackhole.patch | |
7685f7c2 | 41 | URL: http://www.quagga.net/ |
d9a7bec1 | 42 | BuildRequires: autoconf >= 2.53 |
8b8dba10 | 43 | BuildRequires: automake |
64f04639 | 44 | BuildRequires: gawk |
5a839817 | 45 | BuildRequires: libtool |
8b8dba10 | 46 | BuildRequires: ncurses-devel >= 5.1 |
8b8dba10 | 47 | BuildRequires: net-snmp-devel |
d9a7bec1 | 48 | BuildRequires: pam-devel |
4f492e58 | 49 | BuildRequires: perl-base |
d9a7bec1 | 50 | BuildRequires: readline-devel >= 4.1 |
c89c61d5 | 51 | BuildRequires: rpmbuild(macros) >= 1.268 |
d9a7bec1 | 52 | BuildRequires: texinfo |
8b8dba10 | 53 | Requires(post): /bin/hostname |
5e6a6443 | 54 | Requires(post): /sbin/ldconfig |
4f492e58 | 55 | Requires(post,preun): /sbin/chkconfig |
56 | Requires(postun): /usr/sbin/groupdel | |
57 | Requires(postun): /usr/sbin/userdel | |
b3bd2fb3 ER |
58 | Requires(pre): /bin/id |
59 | Requires(pre): /usr/bin/getgid | |
60 | Requires(pre): /usr/sbin/groupadd | |
61 | Requires(pre): /usr/sbin/useradd | |
62 | Requires: rc-scripts | |
4f492e58 | 63 | Provides: group(quagga) |
64 | Provides: group(quaggavty) | |
8b8dba10 | 65 | Provides: routingdaemon |
4f492e58 | 66 | Provides: user(quagga) |
8b8dba10 AM |
67 | Obsoletes: bird |
68 | Obsoletes: gated | |
69 | Obsoletes: mrt | |
dcae8163 | 70 | Obsoletes: quagga |
b3bd2fb3 | 71 | Obsoletes: zebra-xs26 |
b913f293 | 72 | Conflicts: logrotate < 3.8.0 |
5e6a6443 | 73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8b8dba10 | 74 | |
579bb749 AM |
75 | %define _sysconfdir /etc/%{name} |
76 | %define _includedir %{_prefix}/include/%{name} | |
3b2e22c4 | 77 | %define _localstatedir %{_var}/run/%{name} |
8b8dba10 | 78 | |
a2bc7d16 | 79 | # better fix by proper linking |
18d4b98f | 80 | %define skip_post_check_so libzebra.so.* libospf.so.* libospfapiclient.so.* |
a2bc7d16 | 81 | |
8b8dba10 | 82 | %description |
cae7acba JB |
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. | |
89 | ||
dff29096 JR |
90 | %description -l pl.UTF-8 |
91 | Quagga to zestaw oprogramowania do routingu, dostarczający | |
cae7acba | 92 | implementacje OSPFv2, OSPFv3, RIP v1 i v2, RIPv3 i BGPv4 dla platform |
dff29096 JR |
93 | uniksowych, w szczególności FreeBSD, Linuksa, NetBSD - żeby wymienić |
94 | tylko kilka. Quagga to odgałęzienie projektu GNU Zebra, który był | |
cae7acba | 95 | rozwijany przez Kunihiro Ishiguro. Celem drzewa Quagga jest |
dff29096 | 96 | zgromadzenie bardziej zaangażowanej społeczności wokół projektu, niż w |
cae7acba | 97 | aktualnie scentralizowanym modelu GNU Zebry. |
8b8dba10 | 98 | |
7f780b21 | 99 | %package babeld |
f012ea02 SP |
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} | |
7f780b21 SP |
105 | |
106 | %description babeld | |
107 | BABEL wireless mesh routing daemon. Includes IPv6 support. | |
108 | ||
109 | %description babeld -l pl.UTF-8 | |
110 | Demon obsługi protokołu BABEL. Obsługuje także IPv6. | |
111 | ||
8b8dba10 AM |
112 | %package bgpd |
113 | Summary: BGP routing daemon | |
c2342226 | 114 | Summary(pl.UTF-8): Demon routingu BGP |
8b8dba10 AM |
115 | Group: Networking/Daemons |
116 | Requires(post,preun): /sbin/chkconfig | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | Obsoletes: zebra-xs26-bgpd | |
119 | ||
120 | %description bgpd | |
121 | BGP routing daemon. Includes IPv6 support. | |
122 | ||
dff29096 JR |
123 | %description bgpd -l pl.UTF-8 |
124 | Demon obsługi protokołu BGP. Obsługuje także IPv6. | |
8b8dba10 | 125 | |
58147bbf TP |
126 | %package isisd |
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} | |
132 | ||
133 | %description isisd | |
134 | IS-IS routing daemon. | |
135 | ||
d41d3c7a TP |
136 | %package ospfd |
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} | |
142 | ||
8b8dba10 AM |
143 | %description ospfd |
144 | OSPF routing daemon. | |
145 | ||
dff29096 JR |
146 | %description ospfd -l pl.UTF-8 |
147 | Demon do obsługi protokołu OSPF. | |
8b8dba10 AM |
148 | |
149 | %package ospf6d | |
150 | Summary: IPv6 OSPF routing daemon | |
c2342226 | 151 | Summary(pl.UTF-8): Demon routingu OSPF w sieciach IPv6 |
8b8dba10 | 152 | Group: Networking/Daemons |
8b8dba10 | 153 | Requires(post,preun): /sbin/chkconfig |
b3bd2fb3 | 154 | Requires: %{name} = %{version}-%{release} |
8b8dba10 AM |
155 | Obsoletes: zebra-xs26-ospf6d |
156 | ||
157 | %description ospf6d | |
158 | OSPF6 routing daemon for IPv6 networks. | |
159 | ||
dff29096 JR |
160 | %description ospf6d -l pl.UTF-8 |
161 | Demon do obsługi protokołu OSPF w sieciach IPv6. | |
8b8dba10 AM |
162 | |
163 | %package ripd | |
164 | Summary: RIP routing daemon | |
c2342226 | 165 | Summary(pl.UTF-8): Demon routingu RIP |
8b8dba10 AM |
166 | Group: Networking/Daemons |
167 | Requires(post,preun): /sbin/chkconfig | |
168 | Requires: %{name} = %{version}-%{release} | |
169 | ||
170 | %description ripd | |
171 | RIP routing daemon for zebra. | |
172 | ||
dff29096 JR |
173 | %description ripd -l pl.UTF-8 |
174 | Demon obsługi protokołu RIP. | |
8b8dba10 AM |
175 | |
176 | %package ripngd | |
177 | Summary: IPv6 RIP routing daemon | |
c2342226 | 178 | Summary(pl.UTF-8): Demon routingu RIP w sieciach IPv6 |
8b8dba10 | 179 | Group: Networking/Daemons |
8b8dba10 | 180 | Requires(post,preun): /sbin/chkconfig |
b3bd2fb3 | 181 | Requires: %{name} = %{version}-%{release} |
8b8dba10 AM |
182 | Obsoletes: zebra-xs26-ripngd |
183 | ||
184 | %description ripngd | |
185 | RIP routing daemon for IPv6 networks. | |
186 | ||
dff29096 JR |
187 | %description ripngd -l pl.UTF-8 |
188 | Demon obsługi protokołu RIP w sieciach IPv6. | |
8b8dba10 | 189 | |
579bb749 | 190 | %package devel |
5e6a6443 | 191 | Summary: Header files for quagga libraries |
c2342226 | 192 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek quagga |
f510db03 | 193 | Group: Development/Libraries |
5e6a6443 | 194 | Requires: %{name} = %{version}-%{release} |
579bb749 AM |
195 | |
196 | %description devel | |
5e6a6443 | 197 | Header files for quagga libraries. |
579bb749 | 198 | |
dff29096 JR |
199 | %description devel -l pl.UTF-8 |
200 | Pliki nagłówkowe bibliotek quagga. | |
5e6a6443 JB |
201 | |
202 | %package static | |
203 | Summary: Static version of quagga libraries | |
c2342226 | 204 | Summary(pl.UTF-8): Statyczne wersje bibliotek quagga |
5e6a6443 JB |
205 | Group: Development/Libraries |
206 | Requires: %{name}-devel = %{version}-%{release} | |
207 | ||
208 | %description static | |
209 | Static version of quagga libraries. | |
210 | ||
dff29096 | 211 | %description static -l pl.UTF-8 |
5e6a6443 | 212 | Statyczne wersje bibliotek quagga. |
579bb749 | 213 | |
8b8dba10 | 214 | %prep |
d9a7bec1 JB |
215 | %setup -q |
216 | %patch0 -p1 | |
217 | %patch1 -p1 | |
cfd2ab15 | 218 | %patch2 -p1 |
219 | %patch3 -p1 | |
ff62871a | 220 | %patch4 -p1 |
8b8dba10 AM |
221 | |
222 | %build | |
7082381a | 223 | %{__libtoolize} |
8b8dba10 AM |
224 | %{__aclocal} |
225 | %{__autoconf} | |
226 | %{__automake} | |
227 | %{__autoheader} | |
228 | %configure \ | |
d9a7bec1 | 229 | --enable-ipv6 \ |
8b8dba10 AM |
230 | --enable-vtysh \ |
231 | --enable-netlink \ | |
232 | --enable-snmp \ | |
8b8dba10 AM |
233 | --enable-opaque-lsa \ |
234 | --enable-ospfapi=yes \ | |
235 | --enable-ospfclient=yes \ | |
236 | --enable-ospf-te \ | |
237 | --enable-multipath=64 \ | |
238 | --enable-user=quagga \ | |
239 | --enable-group=quagga \ | |
240 | --enable-vty-group=quaggavty \ | |
241 | --enable-rtadv \ | |
fd21ab64 AF |
242 | --enable-isisd \ |
243 | --disable-isis-topology \ | |
244 | --enable-irdp \ | |
ce053553 | 245 | --disable-watchquagga \ |
8b8dba10 AM |
246 | --with-libpam |
247 | ||
248 | %{__make} | |
249 | ||
250 | %install | |
251 | rm -rf $RPM_BUILD_ROOT | |
58147bbf | 252 | install -d $RPM_BUILD_ROOT/etc/{env.d,logrotate.d,pam.d,rc.d/init.d,sysconfig} \ |
e9d9a312 | 253 | $RPM_BUILD_ROOT/var/log/{archive,}/%{name} \ |
5b13a62a | 254 | $RPM_BUILD_ROOT%{_var}/run/%{name} \ |
f012ea02 | 255 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
8b8dba10 AM |
256 | |
257 | %{__make} install \ | |
258 | DESTDIR=$RPM_BUILD_ROOT | |
259 | ||
f012ea02 SP |
260 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/zebra |
261 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
262 | ||
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 | |
271 | ||
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 | |
280 | ||
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 | |
8b8dba10 | 289 | |
7f780b21 | 290 | touch $RPM_BUILD_ROOT/var/log/%{name}/{zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.log |
8b8dba10 | 291 | |
7f780b21 | 292 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{vtysh,zebra,babeld,bgpd,isisd,ospf6d,ospfd,ripd,ripngd}.conf |
8b8dba10 | 293 | |
9a1297dd | 294 | echo '#VTYSH_PAGER="less -FX"' > $RPM_BUILD_ROOT/etc/env.d/VTYSH_PAGER |
58147bbf | 295 | |
8b8dba10 AM |
296 | %clean |
297 | rm -rf $RPM_BUILD_ROOT | |
298 | ||
3b2e22c4 | 299 | %pre |
8ac69389 ER |
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 | |
3b2e22c4 | 303 | |
8b8dba10 AM |
304 | %post |
305 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
5e6a6443 | 306 | /sbin/ldconfig |
8b8dba10 AM |
307 | /sbin/chkconfig --add zebra >&2 |
308 | umask 027 | |
309 | if [ ! -s %{_sysconfdir}/zebra.conf ]; then | |
f510db03 | 310 | echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf |
8b8dba10 | 311 | fi |
06b02d7f | 312 | %service zebra restart "main routing daemon" |
8b8dba10 | 313 | |
7f780b21 SP |
314 | %post babeld |
315 | /sbin/chkconfig --add babeld >&2 | |
316 | if [ ! -s %{_sysconfdir}/babeld.conf ]; then | |
317 | echo "hostname `hostname`" > %{_sysconfdir}/babeld.conf | |
318 | fi | |
319 | %service babeld restart "babeld routing daemon" | |
320 | ||
8b8dba10 AM |
321 | %post bgpd |
322 | /sbin/chkconfig --add bgpd >&2 | |
adc31047 | 323 | if [ ! -s %{_sysconfdir}/bgpd.conf ]; then |
324 | echo "hostname `hostname`" > %{_sysconfdir}/bgpd.conf | |
325 | fi | |
b3bd2fb3 | 326 | %service bgpd restart "bgpd routing daemon" |
8b8dba10 | 327 | |
58147bbf TP |
328 | %post isisd |
329 | /sbin/chkconfig --add isisd >&2 | |
330 | if [ ! -s %{_sysconfdir}/isisd.conf ]; then | |
331 | echo "hostname `hostname`" > %{_sysconfdir}/isisd.conf | |
332 | fi | |
333 | %service isisd restart "IS-IS routing daemon" | |
334 | ||
8b8dba10 AM |
335 | %post ospfd |
336 | /sbin/chkconfig --add ospfd >&2 | |
adc31047 | 337 | if [ ! -s %{_sysconfdir}/ospfd.conf ]; then |
338 | echo "hostname `hostname`" > %{_sysconfdir}/ospfd.conf | |
339 | fi | |
06b02d7f | 340 | %service ospfd restart "ospfd routing daemon" |
8b8dba10 AM |
341 | |
342 | %post ospf6d | |
343 | /sbin/chkconfig --add ospf6d >&2 | |
adc31047 | 344 | if [ ! -s %{_sysconfdir}/ospf6d.conf ]; then |
345 | echo "hostname `hostname`" > %{_sysconfdir}/ospf6d.conf | |
346 | fi | |
06b02d7f | 347 | %service ospf6d restart "ospf6d routing daemon" |
8b8dba10 AM |
348 | |
349 | %post ripd | |
350 | /sbin/chkconfig --add ripd >&2 | |
adc31047 | 351 | if [ ! -s %{_sysconfdir}/ripd.conf ]; then |
352 | echo "hostname `hostname`" > %{_sysconfdir}/ripd.conf | |
353 | fi | |
06b02d7f | 354 | %service ripd restart "ripd routing daemon" |
8b8dba10 AM |
355 | |
356 | %post ripngd | |
357 | /sbin/chkconfig --add ripngd >&2 | |
adc31047 | 358 | if [ ! -s %{_sysconfdir}/ripngd.conf ]; then |
359 | echo "hostname `hostname`" > %{_sysconfdir}/ripngd.conf | |
360 | fi | |
06b02d7f | 361 | %service ripngd restart "ripngd routing daemon" |
8b8dba10 AM |
362 | |
363 | %preun | |
364 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 365 | %service zebra stop |
f510db03 | 366 | /sbin/chkconfig --del zebra >&2 |
8b8dba10 AM |
367 | fi |
368 | ||
7f780b21 SP |
369 | %preun babeld |
370 | if [ "$1" = "0" ]; then | |
371 | %service babeld stop | |
372 | /sbin/chkconfig --del babeld >&2 | |
373 | fi | |
374 | ||
8b8dba10 AM |
375 | %preun bgpd |
376 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 377 | %service bgpd stop |
f510db03 | 378 | /sbin/chkconfig --del bgpd >&2 |
8b8dba10 AM |
379 | fi |
380 | ||
58147bbf TP |
381 | %preun isisd |
382 | if [ "$1" = "0" ]; then | |
383 | %service isisd stop | |
384 | /sbin/chkconfig --del isisd >&2 | |
385 | fi | |
386 | ||
8b8dba10 AM |
387 | %preun ospfd |
388 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 389 | %service ospfd stop |
f510db03 | 390 | /sbin/chkconfig --del ospfd >&2 |
8b8dba10 AM |
391 | fi |
392 | ||
393 | %preun ospf6d | |
394 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 395 | %service ospf6d stop |
f510db03 | 396 | /sbin/chkconfig --del ospf6d >&2 |
8b8dba10 AM |
397 | fi |
398 | ||
399 | %preun ripd | |
400 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 401 | %service ripd stop |
f510db03 | 402 | /sbin/chkconfig --del ripd >&2 |
8b8dba10 AM |
403 | fi |
404 | ||
405 | %preun ripngd | |
406 | if [ "$1" = "0" ]; then | |
b3bd2fb3 | 407 | %service ripngd stop |
f510db03 | 408 | /sbin/chkconfig --del ripngd >&2 |
8b8dba10 AM |
409 | fi |
410 | ||
411 | %postun | |
412 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
3b2e22c4 | 413 | if [ "$1" = "0" ]; then |
4f492e58 | 414 | %userremove quagga |
415 | %groupremove quagga | |
416 | %groupremove quaggavty | |
3b2e22c4 | 417 | fi |
8b8dba10 AM |
418 | |
419 | %files | |
420 | %defattr(644,root,root,755) | |
421 | %doc AUTHORS NEWS README REPORTING-BUGS SERVICES TODO | |
422 | %{_infodir}/*info* | |
423 | %{_mandir}/man1/* | |
424 | %attr(755,root,root) %{_bindir}/* | |
58147bbf TP |
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 | |
51d8e3f9 | 428 | %dir %attr(770,root,quagga) %{_sysconfdir} |
0214ad6f JB |
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 | |
f012ea02 | 431 | %{systemdtmpfilesdir}/%{name}.conf |
3b2e22c4 | 432 | %dir %attr(770,root,quagga) /var/run/%{name} |
ecddf7e2 | 433 | %dir %attr(750,quagga,quagga) /var/log/%{name} |
4a4a0363 | 434 | %dir %attr(750,quagga,quagga) /var/log/archive/%{name} |
5e6a6443 | 435 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
7d2c3bbd | 436 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.0 |
8b8dba10 AM |
437 | %doc zebra/*sample* |
438 | %{_mandir}/man8/zebra* | |
439 | %attr(755,root,root) %{_sbindir}/zebra | |
440 | %attr(754,root,root) /etc/rc.d/init.d/zebra | |
0214ad6f | 441 | %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/zebra |
3b2e22c4 | 442 | %ghost /var/log/%{name}/zebra* |
8b8dba10 | 443 | |
7f780b21 SP |
444 | %files babeld |
445 | %defattr(644,root,root,755) | |
446 | %doc babeld/*sample* | |
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* | |
453 | ||
8b8dba10 AM |
454 | %files bgpd |
455 | %defattr(644,root,root,755) | |
456 | %doc bgpd/*sample* | |
457 | %{_mandir}/man8/bgpd* | |
458 | %attr(755,root,root) %{_sbindir}/bgpd | |
459 | %attr(754,root,root) /etc/rc.d/init.d/bgpd | |
0214ad6f JB |
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 | |
3b2e22c4 | 463 | %ghost /var/log/%{name}/bgpd* |
8b8dba10 | 464 | |
58147bbf TP |
465 | %files isisd |
466 | %defattr(644,root,root,755) | |
467 | %doc isisd/*sample* | |
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* | |
475 | ||
8b8dba10 AM |
476 | %files ospfd |
477 | %defattr(644,root,root,755) | |
478 | %doc ospfd/*sample* | |
479 | %{_mandir}/man8/ospfd* | |
7f780b21 | 480 | %{_mandir}/man8/ospfclient* |
8b8dba10 | 481 | %attr(755,root,root) %{_sbindir}/ospfd |
579bb749 | 482 | %attr(755,root,root) %{_sbindir}/ospfclient |
8b8dba10 | 483 | %attr(754,root,root) /etc/rc.d/init.d/ospfd |
0214ad6f JB |
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 | |
3b2e22c4 | 487 | %ghost /var/log/%{name}/ospfd* |
8b8dba10 AM |
488 | |
489 | %files ospf6d | |
490 | %defattr(644,root,root,755) | |
491 | %doc ospf6d/*sample* | |
492 | %{_mandir}/man8/ospf6d* | |
493 | %attr(755,root,root) %{_sbindir}/ospf6d | |
494 | %attr(754,root,root) /etc/rc.d/init.d/ospf6d | |
0214ad6f JB |
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 | |
3b2e22c4 | 498 | %ghost /var/log/%{name}/ospf6d* |
8b8dba10 AM |
499 | |
500 | %files ripd | |
501 | %defattr(644,root,root,755) | |
502 | %doc ripd/*sample* | |
503 | %{_mandir}/man8/ripd* | |
504 | %attr(755,root,root) %{_sbindir}/ripd | |
505 | %attr(754,root,root) /etc/rc.d/init.d/ripd | |
0214ad6f JB |
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 | |
3b2e22c4 | 509 | %ghost /var/log/%{name}/ripd* |
8b8dba10 AM |
510 | |
511 | %files ripngd | |
512 | %defattr(644,root,root,755) | |
513 | %doc ripngd/*sample* | |
514 | %{_mandir}/man8/ripngd* | |
515 | %attr(755,root,root) %{_sbindir}/ripngd | |
516 | %attr(754,root,root) /etc/rc.d/init.d/ripngd | |
0214ad6f JB |
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 | |
3b2e22c4 | 520 | %ghost /var/log/%{name}/ripngd* |
579bb749 AM |
521 | |
522 | %files devel | |
523 | %defattr(644,root,root,755) | |
5e6a6443 JB |
524 | %attr(755,root,root) %{_libdir}/lib*.so |
525 | %{_libdir}/lib*.la | |
579bb749 | 526 | %{_includedir} |
5e6a6443 JB |
527 | |
528 | %files static | |
529 | %defattr(644,root,root,755) | |
579bb749 | 530 | %{_libdir}/*.a |