]> git.proxmox.com Git - mirror_frr.git/blame - redhat/quagga.spec.in
lib: add skiplist
[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 }
c63f5f2c 14%{!?with_pam: %global with_pam 0 }
f755bf6d
MW
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 }
b021388f
RW
19%{!?with_mpls: %global with_mpls 0 }
20%{!?with_ldpd: %global with_ldpd 0 }
f755bf6d 21%{!?with_shared: %global with_shared 1 }
c63f5f2c 22%{!?with_multipath: %global with_multipath 256 }
f755bf6d 23%{!?quagga_user: %global quagga_user quagga }
95786d9e 24%{!?vty_group: %global vty_group quaggavty }
f755bf6d
MW
25%{!?with_fpm: %global with_fpm 0 }
26%{!?with_watchquagga: %global with_watchquagga 1 }
30b9d89b 27
28# path defines
6bd8fd3b 29%define _sysconfdir /etc/quagga
c63f5f2c 30%define _sbindir /usr/lib/quagga
f755bf6d 31%define zeb_src %{_builddir}/%{name}-%{quaggaversion}
8f754983 32%define zeb_rh_src %{zeb_src}/redhat
33%define zeb_docs %{zeb_src}/doc
c63f5f2c
DS
34%define quagga_tools %{zeb_src}/tools
35%define cumulus_dir %{zeb_src}/cumulus/etc
788cdc6d 36
e0626854 37# defines for configure
6bd8fd3b 38%define _localstatedir /var/run/quagga
1189075b 39############################################################################
40
f755bf6d
MW
41#### Version String tweak
42# Remove invalid characters form version string and replace with _
d4fbc1de 43%{expand: %%global rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )}
f755bf6d 44%define quaggaversion @VERSION@
1189075b 45
f755bf6d
MW
46#### Check version of texi2html
47# Old versions don't support "--number-footnotes" option.
d4fbc1de 48%{expand: %%global texi2htmlversion %(/usr/bin/texi2html --version | cut -d. -f1)}
1189075b 49
f755bf6d
MW
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
c63f5f2c 60 %global with_watchquagga 1
f755bf6d 61%endif
7c08d77f 62
f755bf6d
MW
63# if FPM is enabled, then enable tcp_zebra as well
64#
65%if %{with_fpm}
66 %global with_tcp_zebra 1
67%endif
e0626854 68
15d74e93 69# misc internal defines
c63f5f2c
DS
70%{!?quagga_uid: %global quagga_uid 92 }
71%{!?quagga_gid: %global quagga_gid 92 }
72%{!?vty_gid: %global vty_gid 85 }
f755bf6d 73
341969b3 74%define daemon_list zebra ripd ospfd bgpd isisd pimd ripngd ospfd6d
0df63b52 75
b021388f
RW
76%if %{with_ldpd}
77%define daemon_ldpd ldpd
78%else
79%define daemon_ldpd ""
80%endif
81
f755bf6d
MW
82%if %{with_watchquagga}
83%define daemon_watchquagga watchquagga
84%else
85%define daemon_watchquagga ""
86%endif
87
b021388f 88%define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_watchquagga}
b3324e27 89
b5f310cb 90# allow build dir to be kept
f755bf6d 91%{!?keep_build: %global keep_build 0 }
b5f310cb 92
4859e20c 93#release sub-revision (the two digits after the CONFDATE)
c63f5f2c 94%{!?release_rev: %global release_rev 01 }
4859e20c 95
788cdc6d 96Summary: Routing daemon
f755bf6d
MW
97Name: quagga
98Version: %{rpmversion}
99Release: @CONFDATE@%{release_rev}%{?dist}
100License: GPLv2+
101Group: System Environment/Daemons
102Source0: http://download.savannah.gnu.org/releases/quagga/%{name}-%{quaggaversion}.tar.gz
103URL: http://www.quagga.net
104Requires: ncurses
105Requires(pre): /sbin/install-info
106Requires(preun): /sbin/install-info
107Requires(post): /sbin/install-info
108BuildRequires: texi2html texinfo autoconf patch libcap-devel groff
30b9d89b 109BuildRequires: readline readline-devel ncurses ncurses-devel
f676b06e 110Requires: ncurses initscripts
f755bf6d
MW
111%if %{with_pam}
112BuildRequires: pam-devel
113Requires: pam
114%endif
115%if "%{initsystem}" == "systemd"
116BuildRequires: systemd
117Requires(post): systemd
118Requires(preun): systemd
119Requires(postun): systemd
120%else
788cdc6d 121# Initscripts > 5.60 is required for IPv6 support
fa75585d 122Requires(pre): initscripts >= 5.60
f755bf6d
MW
123%endif
124Provides: routingdaemon = %{version}-%{release}
125BuildRoot: %{_tmppath}/%{name}-%{version}-root
126Obsoletes: bird gated mrt zebra quagga-sysvinit
788cdc6d 127
128%description
6bd8fd3b 129Quagga is a free software that manages TCP/IP based routing
788cdc6d 130protocol. It takes multi-server and multi-thread approach to resolve
131the current complexity of the Internet.
132
f755bf6d 133Quagga supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng and PIM.
788cdc6d 134
6bd8fd3b 135Quagga is intended to be used as a Route Server and a Route Reflector. It is
136not a toolkit, it provides full routing power under a new architecture.
137Quagga by design has a process for each protocol.
138
139Quagga is a fork of GNU Zebra.
788cdc6d 140
448ed4a2 141%package contrib
6bd8fd3b 142Summary: contrib tools for quagga
448ed4a2 143Group: System Environment/Daemons
144
145%description contrib
6bd8fd3b 146Contributed/3rd party tools which may be of use with quagga.
448ed4a2 147
e0626854 148%package devel
6bd8fd3b 149Summary: Header and object files for quagga development
e0626854 150Group: System Environment/Daemons
f755bf6d 151Requires: %{name} = %{version}-%{release}
e0626854 152
153%description devel
6bd8fd3b 154The quagga-devel package contains the header and object files neccessary for
155developing OSPF-API and quagga applications.
e0626854 156
788cdc6d 157%prep
f755bf6d 158%setup -q -n quagga-%{quaggaversion}
788cdc6d 159
160%build
7966b97c 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
788cdc6d 172%configure \
c63f5f2c 173 --sbindir=%{_sbindir} \
f755bf6d
MW
174 --sysconfdir=%{_sysconfdir} \
175 --libdir=%{_libdir} \
176 --libexecdir=%{_libexecdir} \
177 --localstatedir=%{_localstatedir} \
178 --disable-werror \
54b25dca 179%if !%{with_shared}
180 --disable-shared \
181%endif
54b25dca 182%if %{with_multipath}
183 --enable-multipath=%{with_multipath} \
788cdc6d 184%endif
54b25dca 185%if %{with_tcp_zebra}
788cdc6d 186 --enable-tcp-zebra \
187%endif
788cdc6d 188 --enable-vtysh \
54b25dca 189%if %{with_ospfclient}
68980084 190 --enable-ospfclient=yes \
191%else
192 --enable-ospfclient=no\
193%endif
54b25dca 194%if %{with_ospfapi}
68980084 195 --enable-ospfapi=yes \
196%else
197 --enable-ospfapi=no \
198%endif
54b25dca 199%if %{with_irdp}
5b819262 200 --enable-irdp=yes \
201%else
202 --enable-irdp=no \
203%endif
e7cd37bf 204%if %{with_rtadv}
205 --enable-rtadv=yes \
206%else
207 --enable-rtadv=no \
208%endif
b021388f
RW
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
54b25dca 219%if %{with_pam}
edd7c245 220 --with-libpam \
788cdc6d 221%endif
f755bf6d 222%if 0%{?quagga_user:1}
6bd8fd3b 223 --enable-user=%quagga_user \
224 --enable-group=%quagga_user \
edd7c245 225%endif
f755bf6d 226%if 0%{?vty_group:1}
edd7c245 227 --enable-vty-group=%vty_group \
228%endif
f755bf6d
MW
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
c63f5f2c 239 --enable-gcc-rdynamic \
8c05b72b 240 --enable-isisd=yes \
c63f5f2c
DS
241 --enable-systemd=yes \
242 --enable-poll=yes
788cdc6d 243
244make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
245
246pushd doc
f755bf6d
MW
247%if %{texi2htmlversion} < 5
248texi2html --number-sections quagga.texi
249%else
7c08d77f 250texi2html --number-footnotes --number-sections quagga.texi
f755bf6d 251%endif
788cdc6d 252popd
253
254%install
c63f5f2c 255mkdir -p %{buildroot}/etc/{quagga,sysconfig,logrotate.d,pam.d,default} \
f755bf6d
MW
256 %{buildroot}/var/log/quagga %{buildroot}%{_infodir}
257make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
788cdc6d 258
9a344b74 259# Remove this file, as it is uninstalled and causes errors when building on RH9
f755bf6d 260rm -rf %{buildroot}/usr/share/info/dir
9a344b74 261
c63f5f2c 262
f755bf6d
MW
263# install /etc sources
264%if "%{initsystem}" == "systemd"
265mkdir -p %{buildroot}%{_unitdir}
c63f5f2c
DS
266install %{quagga_tools}/quagga.service \
267 %{buildroot}%{_unitdir}/quagga.service
f755bf6d
MW
268%else
269mkdir -p %{buildroot}/etc/rc.d/init.d
b3324e27 270for daemon in %{all_daemons} ; do
da29c6b0 271 if [ x"${daemon}" != x"" ] ; then
272 install %{zeb_rh_src}/${daemon}.init \
f755bf6d 273 %{buildroot}/etc/rc.d/init.d/${daemon}
da29c6b0 274 fi
15d74e93 275done
f755bf6d
MW
276%endif
277
c63f5f2c
DS
278install %{cumulus_dir}/quagga/debian.conf %{buildroot}/etc/quagga
279install %{cumulus_dir}/quagga/daemons %{buildroot}/etc/quagga
280install -m644 %{cumulus_dir}/default/quagga %{buildroot}/etc/default
30da4585 281install -m644 %{zeb_rh_src}/quagga.pam \
f755bf6d 282 %{buildroot}/etc/pam.d/quagga
15d74e93 283install -m644 %{zeb_rh_src}/quagga.logrotate \
f755bf6d 284 %{buildroot}/etc/logrotate.d/quagga
f755bf6d 285install -d -m750 %{buildroot}/var/run/quagga
edd7c245 286
287%pre
288# add vty_group
f755bf6d 289%if 0%{?vty_group:1}
e7cd37bf 290if getent group %vty_group > /dev/null ; then : ; else \
f755bf6d 291 /usr/sbin/groupadd -r -g %vty_gid %vty_group > /dev/null || : ; fi
edd7c245 292%endif
e7cd37bf 293
6bd8fd3b 294# add quagga user and group
f755bf6d 295%if 0%{?quagga_user:1}
e7cd37bf 296# Ensure that quagga_gid gets correctly allocated
297if getent group %quagga_user >/dev/null; then : ; else \
298 /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \
299fi
300if 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 || : ; \
304fi
f676b06e
DS
305%if 0%{?vty_group:1}
306/usr/sbin/usermod -a -G %vty_group %quagga_user
edd7c245 307%endif
f676b06e
DS
308%endif
309
788cdc6d 310
788cdc6d 311%post
30b9d89b 312# zebra_spec_add_service <service name> <port/proto> <comment>
788cdc6d 313# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
314
315zebra_spec_add_service ()
316{
317 # Add port /etc/services entry if it isn't already there
6b637e96 318 if [ -f /etc/services ] && \
319 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
788cdc6d 320 echo "$1 $2 # $3" >> /etc/services
321 fi
322}
323
324zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
325zebra_spec_add_service zebra 2601/tcp "zebra vty"
326zebra_spec_add_service ripd 2602/tcp "RIPd vty"
327zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
328zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
329zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
330zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
54b25dca 331%if %{with_ospfapi}
7021c425 332zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
333%endif
5a514b14 334zebra_spec_add_service isisd 2608/tcp "ISISd vty"
12e41d03 335zebra_spec_add_service pimd 2611/tcp "PIMd vty"
b021388f
RW
336%if %{with_ldpd}
337zebra_spec_add_service ldpd 2612/tcp "LDPd vty"
338%endif
788cdc6d 339
f755bf6d
MW
340%if "%{initsystem}" == "systemd"
341for daemon in %all_daemons ; do
c63f5f2c 342 %systemd_post quagga.service
f755bf6d
MW
343done
344%else
345for daemon in %all_daemons ; do
15d74e93 346 /sbin/chkconfig --add ${daemon}
347done
f755bf6d 348%endif
788cdc6d 349
6bd8fd3b 350/sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir
788cdc6d 351
352# Create dummy files if they don't exist so basic functions can be used.
353if [ ! -e %{_sysconfdir}/zebra.conf ]; then
354 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
f755bf6d
MW
355%if 0%{?quagga_user:1}
356 chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf*
e7cd37bf 357%endif
788cdc6d 358 chmod 640 %{_sysconfdir}/zebra.conf
359fi
f755bf6d
MW
360for 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
367done
368%if %{with_watchquagga}
369 # No config for watchquagga - this is part of /etc/sysconfig/quagga
370 rm -f %{_sysconfdir}/watchquagga.*
371%endif
372
788cdc6d 373if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
374 touch %{_sysconfdir}/vtysh.conf
375 chmod 640 %{_sysconfdir}/vtysh.conf
f755bf6d
MW
376%if 0%{?vty_group:1}
377 chown quagga:%{vty_group} %{_sysconfdir}/vtysh.conf*
378%endif
788cdc6d 379fi
380
381%postun
fc43ecc7 382if [ "$1" -ge 1 ]; then
383 # Find out which daemons need to be restarted.
b3324e27 384 for daemon in %all_daemons ; do
f755bf6d
MW
385 if [ -f /var/lock/subsys/${daemon} ]; then
386 eval restart_${daemon}=yes
fc43ecc7 387 else
f755bf6d 388 eval restart_${daemon}=no
fc43ecc7 389 fi
15d74e93 390 done
fc43ecc7 391 # Rename restart flags for daemons handled specially.
392 running_zebra="$restart_zebra"
393 restart_zebra=no
f755bf6d
MW
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
788cdc6d 451fi
788cdc6d 452
453%preun
f755bf6d
MW
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
788cdc6d 475
476%clean
f755bf6d
MW
477%if !0%{?keep_build:1}
478rm -rf %{buildroot}
b5f310cb 479%endif
788cdc6d 480
481%files
482%defattr(-,root,root)
448ed4a2 483%doc */*.sample* AUTHORS COPYING
6bd8fd3b 484%doc doc/quagga.html
30b9d89b 485%doc doc/mpls
8f754983 486%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
f755bf6d 487%if 0%{?quagga_user:1}
6bd8fd3b 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
edd7c245 491%else
788cdc6d 492%dir %attr(750,root,root) %{_sysconfdir}
6bd8fd3b 493%dir %attr(750,root,root) /var/log/quagga
6bd8fd3b 494%dir %attr(750,root,root) /var/run/quagga
edd7c245 495%endif
f755bf6d 496%if 0%{?vty_group:1}
6bd8fd3b 497%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
edd7c245 498%endif
f755bf6d 499%{_infodir}/quagga.info.gz
788cdc6d 500%{_mandir}/man*/*
54b25dca 501%{_sbindir}/zebra
502%{_sbindir}/ospfd
503%{_sbindir}/ripd
504%{_sbindir}/bgpd
c63f5f2c
DS
505%{_sbindir}/ssd
506%{_sbindir}/quagga
507%{_sbindir}/quagga-reload.py
508%{_sbindir}/quagga-reload.pyc
509%{_sbindir}/quagga-reload.pyo
f755bf6d
MW
510%if %{with_watchquagga}
511 %{_sbindir}/watchquagga
512%endif
54b25dca 513%{_sbindir}/ripngd
514%{_sbindir}/ospf6d
30da4585 515%{_sbindir}/pimd
54b25dca 516%{_sbindir}/isisd
b021388f
RW
517%if %{with_ldpd}
518%{_sbindir}/ldpd
519%endif
28f79728 520%if %{with_shared}
f755bf6d
MW
521%attr(755,root,root) %{_libdir}/lib*.so
522%attr(755,root,root) %{_libdir}/lib*.so.*
54b25dca 523%endif
788cdc6d 524%{_bindir}/*
6bd8fd3b 525%config /etc/quagga/[!v]*
f755bf6d 526%if "%{initsystem}" == "systemd"
c63f5f2c 527 %config %{_unitdir}/quagga.service
f755bf6d
MW
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
d4fbc1de
DS
538 %config /etc/rc.d/init.d/isisd
539 %config /etc/rc.d/init.d/pimd
b021388f
RW
540 %if %{with_ldpd}
541 %config /etc/rc.d/init.d/ldpd
542 %endif
f755bf6d 543%endif
c63f5f2c 544%config(noreplace) /etc/default/quagga
6bd8fd3b 545%config(noreplace) /etc/pam.d/quagga
788cdc6d 546%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
547
448ed4a2 548%files contrib
549%defattr(-,root,root)
550%doc tools
551
e0626854 552%files devel
553%defattr(-,root,root)
da29c6b0 554%if %{with_ospfclient}
555%{_sbindir}/ospfclient
556%endif
28f79728 557%{_libdir}/*.a
558%{_libdir}/*.la
cfc1842b 559%dir %attr(755,root,root) %{_includedir}/%{name}
28f79728 560%{_includedir}/%name/*.h
cfc1842b 561%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
28f79728 562%{_includedir}/%name/ospfd/*.h
54b25dca 563%if %{with_ospfapi}
cfc1842b 564%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
28f79728 565%{_includedir}/%name/ospfapi/*.h
68980084 566%endif
e0626854 567
788cdc6d 568%changelog
f755bf6d 569* Thu Feb 11 2016 Paul Jakma <paul@jakma.org> - %{version}
30da4585
PJ
570- remove with_ipv6 conditionals, always build v6
571- Fix UTF-8 char in spec changelog
572- remove quagga.pam.stack, long deprecated.
573
f755bf6d
MW
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>
7c08d77f
PJ
586- buildreq updates
587- add a default define for with_pimd
588
f755bf6d 589* Mon Sep 12 2005 Paul Jakma <paul@dishone.st>
e7cd37bf 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
fc43ecc7 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
f3931751 600* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
601- daemonv6_list should contain only IPv6 daemons
602
b3324e27 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
36002ae5 608* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
609- Use makeinfo --html to generate quagga.html
610
0df63b52 611* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
612- Fix with_ipv6 set to 0 build
613
cfc1842b 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
da29c6b0 621* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
622- Update to 0.97.0
623
54b25dca 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
00bc5603 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
15d74e93 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)
f755bf6d 642- delete info file on preun, not postun to avoid deletion on upgrade. (RH)
15d74e93 643- isisd added
644- cleanup tasks carried out for every daemon
645
406f7000 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
6bd8fd3b 650* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
651- Renamed to Quagga
652- Sync to Quagga release 0.96
653
f755bf6d 654* Thu Mar 20 2003 Paul Jakma <paul@dishone.st>
edd7c245 655- zebra privileges support
656
f755bf6d 657* Tue Mar 18 2003 Paul Jakma <paul@dishone.st>
e0626854 658- Fix mem leak in 'show thread cpu'
659- Ralph Keller's OSPF-API
660- Amir: Fix configure.ac for net-snmp
661
448ed4a2 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
8f754983 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
d7ccae28 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
f755bf6d 681- Added conditional to files for _bindir depending on vtysh
d7ccae28 682
788cdc6d 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
f755bf6d 721* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
788cdc6d 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.