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