]>
Commit | Line | Data |
---|---|---|
1 | # configure options | |
2 | # | |
3 | # Some can be overriden on rpmbuild commandline with: | |
4 | # rpmbuild --define 'variable value' | |
5 | # (use any value, ie 1 for flag "with_XXXX" definitions) | |
6 | # | |
7 | # E.g. rpmbuild --define 'release_rev 02' may be useful if building | |
8 | # rpms again and again on the same day, so the newer rpms can be installed. | |
9 | # bumping the number each time. | |
10 | ||
11 | ####################### Quagga configure options ######################### | |
12 | # with-feature options | |
13 | %{!?with_tcp_zebra: %global with_tcp_zebra 0 } | |
14 | %{!?with_pam: %global with_pam 0 } | |
15 | %{!?with_ospfclient: %global with_ospfclient 1 } | |
16 | %{!?with_ospfapi: %global with_ospfapi 1 } | |
17 | %{!?with_irdp: %global with_irdp 1 } | |
18 | %{!?with_rtadv: %global with_rtadv 1 } | |
19 | %{!?with_mpls: %global with_mpls 0 } | |
20 | %{!?with_ldpd: %global with_ldpd 0 } | |
21 | %{!?with_shared: %global with_shared 1 } | |
22 | %{!?with_multipath: %global with_multipath 256 } | |
23 | %{!?quagga_user: %global quagga_user quagga } | |
24 | %{!?vty_group: %global vty_group quaggavty } | |
25 | %{!?with_fpm: %global with_fpm 0 } | |
26 | %{!?with_watchquagga: %global with_watchquagga 1 } | |
27 | ||
28 | # path defines | |
29 | %define _sysconfdir /etc/quagga | |
30 | %define _sbindir /usr/lib/quagga | |
31 | %define zeb_src %{_builddir}/%{name}-%{quaggaversion} | |
32 | %define zeb_rh_src %{zeb_src}/redhat | |
33 | %define zeb_docs %{zeb_src}/doc | |
34 | %define quagga_tools %{zeb_src}/tools | |
35 | %define cumulus_dir %{zeb_src}/cumulus/etc | |
36 | ||
37 | # defines for configure | |
38 | %define _localstatedir /var/run/quagga | |
39 | ############################################################################ | |
40 | ||
41 | #### Version String tweak | |
42 | # Remove invalid characters form version string and replace with _ | |
43 | %{expand: %%global rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )} | |
44 | %define quaggaversion @VERSION@ | |
45 | ||
46 | #### Check version of texi2html | |
47 | # Old versions don't support "--number-footnotes" option. | |
48 | %{expand: %%global texi2htmlversion %(/usr/bin/texi2html --version | cut -d. -f1)} | |
49 | ||
50 | #### Check for systemd or init.d (upstart) | |
51 | # Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7) | |
52 | %{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)} | |
53 | # | |
54 | # If init system is systemd, then always disable watchquagga | |
55 | # | |
56 | %if "%{initsystem}" == "systemd" | |
57 | # Note: For systems with systemd, watchquagga will NOT be built. Systemd | |
58 | # takes over the role of restarting crashed processes. Value will | |
59 | # be overwritten with 0 below for systemd independent on the setting here | |
60 | %global with_watchquagga 1 | |
61 | %endif | |
62 | ||
63 | # if FPM is enabled, then enable tcp_zebra as well | |
64 | # | |
65 | %if %{with_fpm} | |
66 | %global with_tcp_zebra 1 | |
67 | %endif | |
68 | ||
69 | # misc internal defines | |
70 | %{!?quagga_uid: %global quagga_uid 92 } | |
71 | %{!?quagga_gid: %global quagga_gid 92 } | |
72 | %{!?vty_gid: %global vty_gid 85 } | |
73 | ||
74 | %define daemon_list zebra ripd ospfd bgpd isisd pimd ripngd ospfd6d | |
75 | ||
76 | %if %{with_ldpd} | |
77 | %define daemon_ldpd ldpd | |
78 | %else | |
79 | %define daemon_ldpd "" | |
80 | %endif | |
81 | ||
82 | %if %{with_watchquagga} | |
83 | %define daemon_watchquagga watchquagga | |
84 | %else | |
85 | %define daemon_watchquagga "" | |
86 | %endif | |
87 | ||
88 | %define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_watchquagga} | |
89 | ||
90 | # allow build dir to be kept | |
91 | %{!?keep_build: %global keep_build 0 } | |
92 | ||
93 | #release sub-revision (the two digits after the CONFDATE) | |
94 | %{!?release_rev: %global release_rev 01 } | |
95 | ||
96 | Summary: Routing daemon | |
97 | Name: quagga | |
98 | Version: %{rpmversion} | |
99 | Release: @CONFDATE@%{release_rev}%{?dist} | |
100 | License: GPLv2+ | |
101 | Group: System Environment/Daemons | |
102 | Source0: http://download.savannah.gnu.org/releases/quagga/%{name}-%{quaggaversion}.tar.gz | |
103 | URL: http://www.quagga.net | |
104 | Requires: ncurses | |
105 | Requires(pre): /sbin/install-info | |
106 | Requires(preun): /sbin/install-info | |
107 | Requires(post): /sbin/install-info | |
108 | BuildRequires: texi2html texinfo autoconf patch libcap-devel groff | |
109 | BuildRequires: readline readline-devel ncurses ncurses-devel | |
110 | Requires: ncurses initscripts | |
111 | %if %{with_pam} | |
112 | BuildRequires: pam-devel | |
113 | Requires: pam | |
114 | %endif | |
115 | %if "%{initsystem}" == "systemd" | |
116 | BuildRequires: systemd | |
117 | Requires(post): systemd | |
118 | Requires(preun): systemd | |
119 | Requires(postun): systemd | |
120 | %else | |
121 | # Initscripts > 5.60 is required for IPv6 support | |
122 | Requires(pre): initscripts >= 5.60 | |
123 | %endif | |
124 | Provides: routingdaemon = %{version}-%{release} | |
125 | BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
126 | Obsoletes: bird gated mrt zebra quagga-sysvinit | |
127 | ||
128 | %description | |
129 | Quagga is a free software that manages TCP/IP based routing | |
130 | protocol. It takes multi-server and multi-thread approach to resolve | |
131 | the current complexity of the Internet. | |
132 | ||
133 | Quagga supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng and PIM. | |
134 | ||
135 | Quagga is intended to be used as a Route Server and a Route Reflector. It is | |
136 | not a toolkit, it provides full routing power under a new architecture. | |
137 | Quagga by design has a process for each protocol. | |
138 | ||
139 | Quagga is a fork of GNU Zebra. | |
140 | ||
141 | %package contrib | |
142 | Summary: contrib tools for quagga | |
143 | Group: System Environment/Daemons | |
144 | ||
145 | %description contrib | |
146 | Contributed/3rd party tools which may be of use with quagga. | |
147 | ||
148 | %package devel | |
149 | Summary: Header and object files for quagga development | |
150 | Group: System Environment/Daemons | |
151 | Requires: %{name} = %{version}-%{release} | |
152 | ||
153 | %description devel | |
154 | The quagga-devel package contains the header and object files neccessary for | |
155 | developing OSPF-API and quagga applications. | |
156 | ||
157 | %prep | |
158 | %setup -q -n quagga-%{quaggaversion} | |
159 | ||
160 | %build | |
161 | ||
162 | # For standard gcc verbosity, uncomment these lines: | |
163 | #CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith" | |
164 | #CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings" | |
165 | ||
166 | # For ultra gcc verbosity, uncomment these lines also: | |
167 | #CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes" | |
168 | #CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn" | |
169 | #CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code" | |
170 | #CFLAGS="${CFLAGS} -Wpacked -Wpadded" | |
171 | ||
172 | %configure \ | |
173 | --sbindir=%{_sbindir} \ | |
174 | --sysconfdir=%{_sysconfdir} \ | |
175 | --libdir=%{_libdir} \ | |
176 | --libexecdir=%{_libexecdir} \ | |
177 | --localstatedir=%{_localstatedir} \ | |
178 | --disable-werror \ | |
179 | %if !%{with_shared} | |
180 | --disable-shared \ | |
181 | %endif | |
182 | %if %{with_multipath} | |
183 | --enable-multipath=%{with_multipath} \ | |
184 | %endif | |
185 | %if %{with_tcp_zebra} | |
186 | --enable-tcp-zebra \ | |
187 | %endif | |
188 | --enable-vtysh \ | |
189 | %if %{with_ospfclient} | |
190 | --enable-ospfclient=yes \ | |
191 | %else | |
192 | --enable-ospfclient=no\ | |
193 | %endif | |
194 | %if %{with_ospfapi} | |
195 | --enable-ospfapi=yes \ | |
196 | %else | |
197 | --enable-ospfapi=no \ | |
198 | %endif | |
199 | %if %{with_irdp} | |
200 | --enable-irdp=yes \ | |
201 | %else | |
202 | --enable-irdp=no \ | |
203 | %endif | |
204 | %if %{with_rtadv} | |
205 | --enable-rtadv=yes \ | |
206 | %else | |
207 | --enable-rtadv=no \ | |
208 | %endif | |
209 | %if %{with_mpls} | |
210 | --enable-mpls=yes \ | |
211 | %else | |
212 | --disable-mpls \ | |
213 | %endif | |
214 | %if %{with_ldpd} | |
215 | --enable-ldpd \ | |
216 | %else | |
217 | --disable-ldpd \ | |
218 | %endif | |
219 | %if %{with_pam} | |
220 | --with-libpam \ | |
221 | %endif | |
222 | %if 0%{?quagga_user:1} | |
223 | --enable-user=%quagga_user \ | |
224 | --enable-group=%quagga_user \ | |
225 | %endif | |
226 | %if 0%{?vty_group:1} | |
227 | --enable-vty-group=%vty_group \ | |
228 | %endif | |
229 | %if %{with_fpm} | |
230 | --enable-fpm \ | |
231 | %else | |
232 | --disable-fpm \ | |
233 | %endif | |
234 | %if %{with_watchquagga} | |
235 | --enable-watchquagga \ | |
236 | %else | |
237 | --disable-watchquagga \ | |
238 | %endif | |
239 | --enable-gcc-rdynamic \ | |
240 | --enable-isisd=yes \ | |
241 | --enable-systemd=yes \ | |
242 | --enable-poll=yes | |
243 | ||
244 | make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" | |
245 | ||
246 | pushd doc | |
247 | %if %{texi2htmlversion} < 5 | |
248 | texi2html --number-sections quagga.texi | |
249 | %else | |
250 | texi2html --number-footnotes --number-sections quagga.texi | |
251 | %endif | |
252 | popd | |
253 | ||
254 | %install | |
255 | mkdir -p %{buildroot}/etc/{quagga,sysconfig,logrotate.d,pam.d,default} \ | |
256 | %{buildroot}/var/log/quagga %{buildroot}%{_infodir} | |
257 | make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install | |
258 | ||
259 | # Remove this file, as it is uninstalled and causes errors when building on RH9 | |
260 | rm -rf %{buildroot}/usr/share/info/dir | |
261 | ||
262 | ||
263 | # install /etc sources | |
264 | %if "%{initsystem}" == "systemd" | |
265 | mkdir -p %{buildroot}%{_unitdir} | |
266 | install %{quagga_tools}/quagga.service \ | |
267 | %{buildroot}%{_unitdir}/quagga.service | |
268 | %else | |
269 | mkdir -p %{buildroot}/etc/rc.d/init.d | |
270 | for daemon in %{all_daemons} ; do | |
271 | if [ x"${daemon}" != x"" ] ; then | |
272 | install %{zeb_rh_src}/${daemon}.init \ | |
273 | %{buildroot}/etc/rc.d/init.d/${daemon} | |
274 | fi | |
275 | done | |
276 | %endif | |
277 | ||
278 | install %{cumulus_dir}/quagga/debian.conf %{buildroot}/etc/quagga | |
279 | install %{cumulus_dir}/quagga/daemons %{buildroot}/etc/quagga | |
280 | install -m644 %{cumulus_dir}/default/quagga %{buildroot}/etc/default | |
281 | install -m644 %{zeb_rh_src}/quagga.pam \ | |
282 | %{buildroot}/etc/pam.d/quagga | |
283 | install -m644 %{zeb_rh_src}/quagga.logrotate \ | |
284 | %{buildroot}/etc/logrotate.d/quagga | |
285 | install -d -m750 %{buildroot}/var/run/quagga | |
286 | ||
287 | %pre | |
288 | # add vty_group | |
289 | %if 0%{?vty_group:1} | |
290 | if getent group %vty_group > /dev/null ; then : ; else \ | |
291 | /usr/sbin/groupadd -r -g %vty_gid %vty_group > /dev/null || : ; fi | |
292 | %endif | |
293 | ||
294 | # add quagga user and group | |
295 | %if 0%{?quagga_user:1} | |
296 | # Ensure that quagga_gid gets correctly allocated | |
297 | if getent group %quagga_user >/dev/null; then : ; else \ | |
298 | /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \ | |
299 | fi | |
300 | if getent passwd %quagga_user >/dev/null ; then : ; else \ | |
301 | /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \ | |
302 | -M -r -s /sbin/nologin -c "Quagga routing suite" \ | |
303 | -d %_localstatedir %quagga_user 2> /dev/null || : ; \ | |
304 | fi | |
305 | %if 0%{?vty_group:1} | |
306 | /usr/sbin/usermod -a -G %vty_group %quagga_user | |
307 | %endif | |
308 | %endif | |
309 | ||
310 | ||
311 | %post | |
312 | # zebra_spec_add_service <service name> <port/proto> <comment> | |
313 | # e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service" | |
314 | ||
315 | zebra_spec_add_service () | |
316 | { | |
317 | # Add port /etc/services entry if it isn't already there | |
318 | if [ -f /etc/services ] && \ | |
319 | ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then | |
320 | echo "$1 $2 # $3" >> /etc/services | |
321 | fi | |
322 | } | |
323 | ||
324 | zebra_spec_add_service zebrasrv 2600/tcp "zebra service" | |
325 | zebra_spec_add_service zebra 2601/tcp "zebra vty" | |
326 | zebra_spec_add_service ripd 2602/tcp "RIPd vty" | |
327 | zebra_spec_add_service ripngd 2603/tcp "RIPngd vty" | |
328 | zebra_spec_add_service ospfd 2604/tcp "OSPFd vty" | |
329 | zebra_spec_add_service bgpd 2605/tcp "BGPd vty" | |
330 | zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty" | |
331 | %if %{with_ospfapi} | |
332 | zebra_spec_add_service ospfapi 2607/tcp "OSPF-API" | |
333 | %endif | |
334 | zebra_spec_add_service isisd 2608/tcp "ISISd vty" | |
335 | zebra_spec_add_service pimd 2611/tcp "PIMd vty" | |
336 | %if %{with_ldpd} | |
337 | zebra_spec_add_service ldpd 2612/tcp "LDPd vty" | |
338 | %endif | |
339 | ||
340 | %if "%{initsystem}" == "systemd" | |
341 | for daemon in %all_daemons ; do | |
342 | %systemd_post quagga.service | |
343 | done | |
344 | %else | |
345 | for daemon in %all_daemons ; do | |
346 | /sbin/chkconfig --add ${daemon} | |
347 | done | |
348 | %endif | |
349 | ||
350 | /sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir | |
351 | ||
352 | # Create dummy files if they don't exist so basic functions can be used. | |
353 | if [ ! -e %{_sysconfdir}/zebra.conf ]; then | |
354 | echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf | |
355 | %if 0%{?quagga_user:1} | |
356 | chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf* | |
357 | %endif | |
358 | chmod 640 %{_sysconfdir}/zebra.conf | |
359 | fi | |
360 | for daemon in %{all_daemons} ; do | |
361 | if [ ! -e %{_sysconfdir}/${daemon}.conf ]; then | |
362 | touch %{_sysconfdir}/${daemon}.conf | |
363 | %if 0%{?quagga_user:1} | |
364 | chown %quagga_user:%quagga_user %{_sysconfdir}/${daemon}.conf* | |
365 | %endif | |
366 | fi | |
367 | done | |
368 | %if %{with_watchquagga} | |
369 | # No config for watchquagga - this is part of /etc/sysconfig/quagga | |
370 | rm -f %{_sysconfdir}/watchquagga.* | |
371 | %endif | |
372 | ||
373 | if [ ! -e %{_sysconfdir}/vtysh.conf ]; then | |
374 | touch %{_sysconfdir}/vtysh.conf | |
375 | chmod 640 %{_sysconfdir}/vtysh.conf | |
376 | %if 0%{?vty_group:1} | |
377 | chown quagga:%{vty_group} %{_sysconfdir}/vtysh.conf* | |
378 | %endif | |
379 | fi | |
380 | ||
381 | %postun | |
382 | if [ "$1" -ge 1 ]; then | |
383 | # Find out which daemons need to be restarted. | |
384 | for daemon in %all_daemons ; do | |
385 | if [ -f /var/lock/subsys/${daemon} ]; then | |
386 | eval restart_${daemon}=yes | |
387 | else | |
388 | eval restart_${daemon}=no | |
389 | fi | |
390 | done | |
391 | # Rename restart flags for daemons handled specially. | |
392 | running_zebra="$restart_zebra" | |
393 | restart_zebra=no | |
394 | %if %{with_watchquagga} | |
395 | running_watchquagga="$restart_watchquagga" | |
396 | restart_watchquagga=no | |
397 | %endif | |
398 | ||
399 | %if "%{initsystem}" == "systemd" | |
400 | ## | |
401 | ## Systemd Version | |
402 | ## | |
403 | # No watchquagga for systemd version | |
404 | # | |
405 | # Stop all daemons other than zebra. | |
406 | for daemon in %all_daemons ; do | |
407 | eval restart=\$restart_${daemon} | |
408 | [ "$restart" = yes ] && \ | |
409 | %systemd_postun ${daemon}.service | |
410 | done | |
411 | # Restart zebra. | |
412 | [ "$running_zebra" = yes ] && \ | |
413 | %systemd_postun_with_restart $daemon.service | |
414 | # Start all daemons other than zebra. | |
415 | for daemon in %all_daemons ; do | |
416 | eval restart=\$restart_${daemon} | |
417 | [ "$restart" = yes ] && \ | |
418 | %systemd_post ${daemon}.service | |
419 | done | |
420 | %else | |
421 | ## | |
422 | ## init.d Version | |
423 | ## | |
424 | %if %{with_watchquagga} | |
425 | # Stop watchquagga first. | |
426 | [ "$running_watchquagga" = yes ] && \ | |
427 | /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1 | |
428 | %endif | |
429 | # Stop all daemons other than zebra and watchquagga. | |
430 | for daemon in %all_daemons ; do | |
431 | eval restart=\$restart_${daemon} | |
432 | [ "$restart" = yes ] && \ | |
433 | /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1 | |
434 | done | |
435 | # Restart zebra. | |
436 | [ "$running_zebra" = yes ] && \ | |
437 | /etc/rc.d/init.d/zebra restart >/dev/null 2>&1 | |
438 | # Start all daemons other than zebra and watchquagga. | |
439 | for daemon in %all_daemons ; do | |
440 | eval restart=\$restart_${daemon} | |
441 | [ "$restart" = yes ] && \ | |
442 | /etc/rc.d/init.d/${daemon} start >/dev/null 2>&1 | |
443 | done | |
444 | %if %{with_watchquagga} | |
445 | # Start watchquagga last. | |
446 | # Avoid postun scriptlet error if watchquagga is not running. | |
447 | [ "$running_watchquagga" = yes ] && \ | |
448 | /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || : | |
449 | %endif | |
450 | %endif | |
451 | fi | |
452 | ||
453 | %preun | |
454 | %if "%{initsystem}" == "systemd" | |
455 | ## | |
456 | ## Systemd Version | |
457 | ## | |
458 | if [ "$1" = "0" ]; then | |
459 | for daemon in %all_daemons ; do | |
460 | %systemd_preun ${daemon}.service | |
461 | done | |
462 | fi | |
463 | %else | |
464 | ## | |
465 | ## init.d Version | |
466 | ## | |
467 | if [ "$1" = "0" ]; then | |
468 | for daemon in %all_daemons ; do | |
469 | /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1 | |
470 | /sbin/chkconfig --del ${daemon} | |
471 | done | |
472 | fi | |
473 | %endif | |
474 | /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir | |
475 | ||
476 | %clean | |
477 | %if !0%{?keep_build:1} | |
478 | rm -rf %{buildroot} | |
479 | %endif | |
480 | ||
481 | %files | |
482 | %defattr(-,root,root) | |
483 | %doc */*.sample* AUTHORS COPYING | |
484 | %doc doc/quagga.html | |
485 | %doc doc/mpls | |
486 | %doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO | |
487 | %if 0%{?quagga_user:1} | |
488 | %dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir} | |
489 | %dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga | |
490 | %dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga | |
491 | %else | |
492 | %dir %attr(750,root,root) %{_sysconfdir} | |
493 | %dir %attr(750,root,root) /var/log/quagga | |
494 | %dir %attr(750,root,root) /var/run/quagga | |
495 | %endif | |
496 | %if 0%{?vty_group:1} | |
497 | %attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample | |
498 | %endif | |
499 | %{_infodir}/quagga.info.gz | |
500 | %{_mandir}/man*/* | |
501 | %{_sbindir}/zebra | |
502 | %{_sbindir}/ospfd | |
503 | %{_sbindir}/ripd | |
504 | %{_sbindir}/bgpd | |
505 | %{_sbindir}/ssd | |
506 | %{_sbindir}/quagga | |
507 | %{_sbindir}/quagga-reload.py | |
508 | %{_sbindir}/quagga-reload.pyc | |
509 | %{_sbindir}/quagga-reload.pyo | |
510 | %if %{with_watchquagga} | |
511 | %{_sbindir}/watchquagga | |
512 | %endif | |
513 | %{_sbindir}/ripngd | |
514 | %{_sbindir}/ospf6d | |
515 | %{_sbindir}/pimd | |
516 | %{_sbindir}/isisd | |
517 | %if %{with_ldpd} | |
518 | %{_sbindir}/ldpd | |
519 | %endif | |
520 | %if %{with_shared} | |
521 | %attr(755,root,root) %{_libdir}/lib*.so | |
522 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
523 | %endif | |
524 | %{_bindir}/* | |
525 | %config /etc/quagga/[!v]* | |
526 | %if "%{initsystem}" == "systemd" | |
527 | %config %{_unitdir}/quagga.service | |
528 | %else | |
529 | %config /etc/rc.d/init.d/zebra | |
530 | %if %{with_watchquagga} | |
531 | %config /etc/rc.d/init.d/watchquagga | |
532 | %endif | |
533 | %config /etc/rc.d/init.d/ripd | |
534 | %config /etc/rc.d/init.d/ospfd | |
535 | %config /etc/rc.d/init.d/bgpd | |
536 | %config /etc/rc.d/init.d/ripngd | |
537 | %config /etc/rc.d/init.d/ospf6d | |
538 | %config /etc/rc.d/init.d/isisd | |
539 | %config /etc/rc.d/init.d/pimd | |
540 | %if %{with_ldpd} | |
541 | %config /etc/rc.d/init.d/ldpd | |
542 | %endif | |
543 | %endif | |
544 | %config(noreplace) /etc/default/quagga | |
545 | %config(noreplace) /etc/pam.d/quagga | |
546 | %config(noreplace) %attr(640,root,root) /etc/logrotate.d/* | |
547 | ||
548 | %files contrib | |
549 | %defattr(-,root,root) | |
550 | %doc tools | |
551 | ||
552 | %files devel | |
553 | %defattr(-,root,root) | |
554 | %if %{with_ospfclient} | |
555 | %{_sbindir}/ospfclient | |
556 | %endif | |
557 | %{_libdir}/*.a | |
558 | %{_libdir}/*.la | |
559 | %dir %attr(755,root,root) %{_includedir}/%{name} | |
560 | %{_includedir}/%name/*.h | |
561 | %dir %attr(755,root,root) %{_includedir}/%{name}/ospfd | |
562 | %{_includedir}/%name/ospfd/*.h | |
563 | %if %{with_ospfapi} | |
564 | %dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi | |
565 | %{_includedir}/%name/ospfapi/*.h | |
566 | %endif | |
567 | ||
568 | %changelog | |
569 | * Thu Feb 11 2016 Paul Jakma <paul@jakma.org> - %{version} | |
570 | - remove with_ipv6 conditionals, always build v6 | |
571 | - Fix UTF-8 char in spec changelog | |
572 | - remove quagga.pam.stack, long deprecated. | |
573 | ||
574 | * Thu Oct 22 2015 Martin Winter <mwinter@opensourcerouting.org> | |
575 | - Cleanup configure: remove --enable-ipv6 (default now), --enable-nssa, | |
576 | --enable-netlink | |
577 | - Remove support for old fedora 4/5 | |
578 | - Fix for package nameing | |
579 | - Fix Weekdays of previous changelogs (bogus dates) | |
580 | - Add conditional logic to only build tex footnotes with supported texi2html | |
581 | - Added pimd to files section and fix double listing of /var/lib*/quagga | |
582 | - Numerous fixes to unify upstart/systemd startup into same spec file | |
583 | - Only allow use of watchquagga for non-systemd systems. no need with systemd | |
584 | ||
585 | * Fri Sep 4 2015 Paul Jakma <paul@jakma.org> | |
586 | - buildreq updates | |
587 | - add a default define for with_pimd | |
588 | ||
589 | * Mon Sep 12 2005 Paul Jakma <paul@dishone.st> | |
590 | - Steal some changes from Fedora spec file: | |
591 | - Add with_rtadv variable | |
592 | - Test for groups/users with getent before group/user adding | |
593 | - Readline need not be an explicit prerequisite | |
594 | - install-info delete should be postun, not preun | |
595 | ||
596 | * Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu> | |
597 | - on package upgrade, implement careful, phased restart logic | |
598 | - use gcc -rdynamic flag when linking for better backtraces | |
599 | ||
600 | * Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu> | |
601 | - daemonv6_list should contain only IPv6 daemons | |
602 | ||
603 | * Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu> | |
604 | - watchquagga added | |
605 | - on upgrade, all daemons should be condrestart'ed | |
606 | - on removal, all daemons should be stopped | |
607 | ||
608 | * Mon Nov 08 2004 Paul Jakma <paul@dishone.st> | |
609 | - Use makeinfo --html to generate quagga.html | |
610 | ||
611 | * Sun Nov 07 2004 Paul Jakma <paul@dishone.st> | |
612 | - Fix with_ipv6 set to 0 build | |
613 | ||
614 | * Sat Oct 23 2004 Paul Jakma <paul@dishone.st> | |
615 | - Update to 0.97.2 | |
616 | ||
617 | * Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com> | |
618 | - Make directories be owned by the packages concerned | |
619 | - Update logrotate scripts to use correct path to killall and use pid files | |
620 | ||
621 | * Fri Oct 08 2004 Paul Jakma <paul@dishone.st> | |
622 | - Update to 0.97.0 | |
623 | ||
624 | * Wed Sep 15 2004 Paul Jakma <paul@dishone.st> | |
625 | - build snmp support by default | |
626 | - build irdp support | |
627 | - build with shared libs | |
628 | - devel subpackage for archives and headers | |
629 | ||
630 | * Thu Jan 08 2004 Paul Jakma <paul@dishone.st> | |
631 | - updated sysconfig files to specify local dir | |
632 | - added ospf_dump.c crash quick fix patch | |
633 | - added ospfd persistent interface configuration patch | |
634 | ||
635 | * Tue Dec 30 2003 Paul Jakma <paul@dishone.st> | |
636 | - sync to CVS | |
637 | - integrate RH sysconfig patch to specify daemon options (RH) | |
638 | - default to have vty listen only to 127.1 (RH) | |
639 | - add user with fixed UID/GID (RH) | |
640 | - create user with shell /sbin/nologin rather than /bin/false (RH) | |
641 | - stop daemons on uninstall (RH) | |
642 | - delete info file on preun, not postun to avoid deletion on upgrade. (RH) | |
643 | - isisd added | |
644 | - cleanup tasks carried out for every daemon | |
645 | ||
646 | * Sun Nov 2 2003 Paul Jakma <paul@dishone.st> | |
647 | - Fix -devel package to include all files | |
648 | - Sync to 0.96.4 | |
649 | ||
650 | * Tue Aug 12 2003 Paul Jakma <paul@dishone.st> | |
651 | - Renamed to Quagga | |
652 | - Sync to Quagga release 0.96 | |
653 | ||
654 | * Thu Mar 20 2003 Paul Jakma <paul@dishone.st> | |
655 | - zebra privileges support | |
656 | ||
657 | * Tue Mar 18 2003 Paul Jakma <paul@dishone.st> | |
658 | - Fix mem leak in 'show thread cpu' | |
659 | - Ralph Keller's OSPF-API | |
660 | - Amir: Fix configure.ac for net-snmp | |
661 | ||
662 | * Sat Mar 1 2003 Paul Jakma <paul@dishone.st> | |
663 | - ospfd IOS prefix to interface matching for 'network' statement | |
664 | - temporary fix for PtP and IPv6 | |
665 | - sync to zebra.org CVS | |
666 | ||
667 | * Mon Jan 20 2003 Paul Jakma <paul@dishone.st> | |
668 | - update to latest cvs | |
669 | - Yon's "show thread cpu" patch - 17217 | |
670 | - walk up tree - 17218 | |
671 | - ospfd NSSA fixes - 16681 | |
672 | - ospfd nsm fixes - 16824 | |
673 | - ospfd OLSA fixes and new feature - 16823 | |
674 | - KAME and ifindex fixes - 16525 | |
675 | - spec file changes to allow redhat files to be in tree | |
676 | ||
677 | * Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com> | |
678 | - Added conditionals for building with(out) IPv6, vtysh, RIP, BGP | |
679 | - Fixed up some build requirements (patch) | |
680 | - Added conditional build requirements for vtysh / snmp | |
681 | - Added conditional to files for _bindir depending on vtysh | |
682 | ||
683 | * Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie> | |
684 | - update to latest CVS | |
685 | - add Greg Troxel's md5 buffer copy/dup fix | |
686 | - add RIPv1 fix | |
687 | - add Frank's multicast flag fix | |
688 | ||
689 | * Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie> | |
690 | - update to latest CVS | |
691 | - timestamped crypt_seqnum patch | |
692 | - oi->on_write_q fix | |
693 | ||
694 | * Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie> | |
695 | - update to latest CVS | |
696 | - add vtysh 'write-config (integrated|daemon)' patch | |
697 | - always 'make rebuild' in vtysh/ to catch new commands | |
698 | ||
699 | * Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie> | |
700 | - update to 0.93b | |
701 | ||
702 | * Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie> | |
703 | - update to latest CVS | |
704 | - add "/sbin/ip route flush proto zebra" to zebra RH init on startup | |
705 | ||
706 | * Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie> | |
707 | - update to current CVS | |
708 | - add OSPF point to multipoint patch | |
709 | - add OSPF bugfixes | |
710 | - add BGP hash optimisation patch | |
711 | ||
712 | * Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie> | |
713 | - update to 0.93-pre1 / CVS | |
714 | - add link state detection support | |
715 | - add generic PtP and RFC3021 support | |
716 | - various bug fixes | |
717 | ||
718 | * Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6 | |
719 | - Fix bug #51336 | |
720 | ||
721 | * Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5 | |
722 | - Use generic initscript strings instead of initscript specific | |
723 | ( "Starting foo: " -> "Starting $prog:" ) | |
724 | ||
725 | * Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4 | |
726 | - Bump the release when rebuilding into the dist. | |
727 | ||
728 | * Tue Feb 6 2001 Tim Powers <timp@redhat.com> | |
729 | - built for Powertools | |
730 | ||
731 | * Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi> | |
732 | - Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org. | |
733 | - Update to 0.91a | |
734 | - Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc. | |
735 | - Should be quite Red Hat'isque now. |