blob: b156475e3ea6188a73a35bd703df0fa792956c8f [file] [log] [blame]
pauledd7c242003-06-04 13:59:38 +00001# configure options
paulb64d92a2005-04-25 15:13:42 +00002#
3# Some can be overriden on rpmbuild commandline with:
4# rpmbuild --define 'variable value'
5#
Paul Jakma283d5d72016-02-11 13:54:23 +00006# E.g. rpmbuild --define 'release_rev 02' may be useful if building
7# rpms again and again on the same day, so the newer rpms can be installed.
8# bumping the number each time.
paulb64d92a2005-04-25 15:13:42 +00009
paul11890752005-11-05 16:29:54 +000010####################### Quagga configure options #########################
11# with-feature options
12%{!?with_snmp: %define with_snmp 1 }
13%{!?with_vtysh: %define with_vtysh 1 }
14%{!?with_ospf_te: %define with_ospf_te 1 }
15%{!?with_nssa: %define with_nssa 1 }
16%{!?with_opaque_lsa: %define with_opaque_lsa 1 }
17%{!?with_tcp_zebra: %define with_tcp_zebra 0 }
18%{!?with_vtysh: %define with_vtysh 1 }
19%{!?with_pam: %define with_pam 1 }
paul11890752005-11-05 16:29:54 +000020%{!?with_ospfclient: %define with_ospfclient 1 }
21%{!?with_ospfapi: %define with_ospfapi 1 }
22%{!?with_irdp: %define with_irdp 1 }
23%{!?with_rtadv: %define with_rtadv 1 }
24%{!?with_isisd: %define with_isisd 1 }
Paul Jakmae07068c2015-09-04 14:25:13 +010025%{!?with_pimd: %define with_pimd 1 }
paul11890752005-11-05 16:29:54 +000026%{!?with_shared: %define with_shared 1 }
27%{!?with_multipath: %define with_multipath 64 }
28%{!?quagga_user: %define quagga_user quagga }
29%{!?vty_group: %define vty_group quaggavty }
paul30b9d892003-01-18 22:57:15 +000030
31# path defines
paul6bd8fd32003-08-12 12:54:13 +000032%define _sysconfdir /etc/quagga
paul8f754982003-01-20 04:55:51 +000033%define zeb_src %{_builddir}/%{name}-%{version}
34%define zeb_rh_src %{zeb_src}/redhat
35%define zeb_docs %{zeb_src}/doc
paul788cdc62003-01-18 00:22:08 +000036
paule0626852003-03-18 14:11:36 +000037# defines for configure
paul6bd8fd32003-08-12 12:54:13 +000038%define _libexecdir %{_exec_prefix}/libexec/quagga
paul6bd8fd32003-08-12 12:54:13 +000039%define _libdir %{_exec_prefix}/%{_lib}/quagga
paul15d74e92003-12-30 11:16:21 +000040%define _includedir %{_prefix}/include
paul6bd8fd32003-08-12 12:54:13 +000041%define _localstatedir /var/run/quagga
paul11890752005-11-05 16:29:54 +000042############################################################################
43
44####################### distro specific tweaks #############################
Andrew J. Schorr2cb87162006-06-15 22:31:39 +000045# default distro. Override with rpmbuild -D "dist XXX"
46%{expand: %%define default_dist %(rpm -q --qf 'fc%%{VERSION}' fedora-release | grep -v 'not installed')}
paul11890752005-11-05 16:29:54 +000047%{!?dist: %define dist %{default_dist}}
48
49# as distros change packages we depend on, our Requires have to change, sadly.
Paul Jakmae07068c2015-09-04 14:25:13 +010050%define quagga_buildreqs texi2html texinfo autoconf pam-devel
51%define quagga_buildreqs %{expand:%{quagga_buildreqs}} patch libcap-devel
paul11890752005-11-05 16:29:54 +000052
53# FC4 and 5 split texi2html out of tetex package.
Paul Jakmae07068c2015-09-04 14:25:13 +010054%define quagga_buildreqs %{expand:%{quagga_buildreqs}} texi2html
paul11890752005-11-05 16:29:54 +000055
Paul Jakmae07068c2015-09-04 14:25:13 +010056# man page probably needs groff for groff_ms macros
57%define quagga_buildreqs %{expand:%{quagga_buildreqs}} groff
58
59############################################################################
paule0626852003-03-18 14:11:36 +000060
paul15d74e92003-12-30 11:16:21 +000061# misc internal defines
paulb64d92a2005-04-25 15:13:42 +000062%{!?quagga_uid: %define quagga_uid 92 }
63%{!?quagga_gid: %define quagga_gid 92 }
paul54b25dc2004-09-30 04:56:26 +000064%define daemon_list zebra ripd ospfd bgpd
paul0df63b52004-11-07 22:12:23 +000065
David Lamparter5460bae2015-05-19 00:35:04 +020066%define daemonv6_list ripngd ospf6d
paul0df63b52004-11-07 22:12:23 +000067
paul54b25dc2004-09-30 04:56:26 +000068%if %{with_isisd}
paul69f5d262004-10-07 16:23:36 +000069%define daemon_other isisd
70%else
71%define daemon_other ""
paul15d74e92003-12-30 11:16:21 +000072%endif
73
ajsb3324e22004-12-22 17:52:29 +000074%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_other} watchquagga
75
paulb5f310c2004-09-13 13:15:25 +000076# allow build dir to be kept
paulb64d92a2005-04-25 15:13:42 +000077%{!?keep_build: %define keep_build 0 }
paulb5f310c2004-09-13 13:15:25 +000078
paul4859e202005-11-20 02:09:32 +000079#release sub-revision (the two digits after the CONFDATE)
80%{!?release_rev: %define release_rev 01 }
81
paul788cdc62003-01-18 00:22:08 +000082Summary: Routing daemon
paul6bd8fd32003-08-12 12:54:13 +000083Name: quagga
paul6382b6f2003-05-20 00:17:45 +000084Version: @VERSION@
paul4859e202005-11-20 02:09:32 +000085Release: @CONFDATE@%{release_rev}
paul788cdc62003-01-18 00:22:08 +000086License: GPL
87Group: System Environment/Daemons
paul6bd8fd32003-08-12 12:54:13 +000088Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
89URL: http://www.quagga.net
paul54b25dc2004-09-30 04:56:26 +000090%if %{with_snmp}
paulb63cef72004-08-19 03:36:13 +000091BuildRequires: net-snmp-devel
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +000092Requires(pre): net-snmp
paul788cdc62003-01-18 00:22:08 +000093%endif
paul54b25dc2004-09-30 04:56:26 +000094%if %{with_vtysh}
paul30b9d892003-01-18 22:57:15 +000095BuildRequires: readline readline-devel ncurses ncurses-devel
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +000096Requires(pre): ncurses
pauld7ccae22003-01-18 00:24:00 +000097%endif
Paul Jakmae07068c2015-09-04 14:25:13 +010098BuildRequires: %{quagga_buildreqs}
paul788cdc62003-01-18 00:22:08 +000099# Initscripts > 5.60 is required for IPv6 support
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +0000100Requires(pre): initscripts >= 5.60
101Requires(pre): ncurses pam
102Requires(pre): /sbin/install-info
paul788cdc62003-01-18 00:22:08 +0000103Provides: routingdaemon
104BuildRoot: %{_tmppath}/%{name}-%{version}-root
paul6bd8fd32003-08-12 12:54:13 +0000105Obsoletes: bird gated mrt zebra
paul788cdc62003-01-18 00:22:08 +0000106
107%description
paul6bd8fd32003-08-12 12:54:13 +0000108Quagga is a free software that manages TCP/IP based routing
paul788cdc62003-01-18 00:22:08 +0000109protocol. It takes multi-server and multi-thread approach to resolve
110the current complexity of the Internet.
111
paul6bd8fd32003-08-12 12:54:13 +0000112Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
paul788cdc62003-01-18 00:22:08 +0000113
paul6bd8fd32003-08-12 12:54:13 +0000114Quagga is intended to be used as a Route Server and a Route Reflector. It is
115not a toolkit, it provides full routing power under a new architecture.
116Quagga by design has a process for each protocol.
117
118Quagga is a fork of GNU Zebra.
paul788cdc62003-01-18 00:22:08 +0000119
paul448ed4a2003-03-01 15:43:28 +0000120%package contrib
paul6bd8fd32003-08-12 12:54:13 +0000121Summary: contrib tools for quagga
paul448ed4a2003-03-01 15:43:28 +0000122Group: System Environment/Daemons
123
124%description contrib
paul6bd8fd32003-08-12 12:54:13 +0000125Contributed/3rd party tools which may be of use with quagga.
paul448ed4a2003-03-01 15:43:28 +0000126
paule0626852003-03-18 14:11:36 +0000127%package devel
paul6bd8fd32003-08-12 12:54:13 +0000128Summary: Header and object files for quagga development
paule0626852003-03-18 14:11:36 +0000129Group: System Environment/Daemons
130
131%description devel
paul6bd8fd32003-08-12 12:54:13 +0000132The quagga-devel package contains the header and object files neccessary for
133developing OSPF-API and quagga applications.
paule0626852003-03-18 14:11:36 +0000134
paul788cdc62003-01-18 00:22:08 +0000135%prep
136%setup -q
paul788cdc62003-01-18 00:22:08 +0000137
138%build
ajs7966b972004-11-10 22:02:05 +0000139
140# For standard gcc verbosity, uncomment these lines:
141#CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith"
142#CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
143
144# For ultra gcc verbosity, uncomment these lines also:
145#CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
146#CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
147#CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
148#CFLAGS="${CFLAGS} -Wpacked -Wpadded"
149
paul788cdc62003-01-18 00:22:08 +0000150%configure \
paul54b25dc2004-09-30 04:56:26 +0000151%if !%{with_shared}
152 --disable-shared \
153%endif
paul54b25dc2004-09-30 04:56:26 +0000154%if %{with_snmp}
paul788cdc62003-01-18 00:22:08 +0000155 --enable-snmp \
156%endif
paul54b25dc2004-09-30 04:56:26 +0000157%if %{with_multipath}
158 --enable-multipath=%{with_multipath} \
paul788cdc62003-01-18 00:22:08 +0000159%endif
paul54b25dc2004-09-30 04:56:26 +0000160%if %{with_tcp_zebra}
paul788cdc62003-01-18 00:22:08 +0000161 --enable-tcp-zebra \
162%endif
paul54b25dc2004-09-30 04:56:26 +0000163%if %{with_nssa}
paul788cdc62003-01-18 00:22:08 +0000164 --enable-nssa \
165%endif
paul54b25dc2004-09-30 04:56:26 +0000166%if %{with_opaque_lsa}
paul788cdc62003-01-18 00:22:08 +0000167 --enable-opaque-lsa \
168%endif
paul54b25dc2004-09-30 04:56:26 +0000169%if %{with_ospf_te}
paul788cdc62003-01-18 00:22:08 +0000170 --enable-ospf-te \
171%endif
paul54b25dc2004-09-30 04:56:26 +0000172%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000173 --enable-vtysh \
174%endif
paul54b25dc2004-09-30 04:56:26 +0000175%if %{with_ospfclient}
paul68980082003-03-25 05:07:42 +0000176 --enable-ospfclient=yes \
177%else
178 --enable-ospfclient=no\
179%endif
paul54b25dc2004-09-30 04:56:26 +0000180%if %{with_ospfapi}
paul68980082003-03-25 05:07:42 +0000181 --enable-ospfapi=yes \
182%else
183 --enable-ospfapi=no \
184%endif
paul54b25dc2004-09-30 04:56:26 +0000185%if %{with_irdp}
paul5b819262004-07-28 14:11:55 +0000186 --enable-irdp=yes \
187%else
188 --enable-irdp=no \
189%endif
paule7cd37b2005-09-08 15:18:39 +0000190%if %{with_rtadv}
191 --enable-rtadv=yes \
192%else
193 --enable-rtadv=no \
194%endif
paul54b25dc2004-09-30 04:56:26 +0000195%if %{with_isisd}
196 --enable-isisd \
197%else
paul69f5d262004-10-07 16:23:36 +0000198 --disable-isisd \
paul54b25dc2004-09-30 04:56:26 +0000199%endif
200%if %{with_pam}
pauledd7c242003-06-04 13:59:38 +0000201 --with-libpam \
paul788cdc62003-01-18 00:22:08 +0000202%endif
paul6bd8fd32003-08-12 12:54:13 +0000203%if %quagga_user
204 --enable-user=%quagga_user \
205 --enable-group=%quagga_user \
pauledd7c242003-06-04 13:59:38 +0000206%endif
207%if %vty_group
208 --enable-vty-group=%vty_group \
209%endif
ajsfc43ecc2005-01-12 16:41:33 +0000210--enable-netlink --enable-gcc-rdynamic
paul788cdc62003-01-18 00:22:08 +0000211
212make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
213
214pushd doc
Paul Jakmae07068c2015-09-04 14:25:13 +0100215texi2html --number-footnotes --number-sections quagga.texi
paul788cdc62003-01-18 00:22:08 +0000216popd
217
218%install
219rm -rf $RPM_BUILD_ROOT
220
221install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \
paul6bd8fd32003-08-12 12:54:13 +0000222 $RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir}
paul788cdc62003-01-18 00:22:08 +0000223
224make install \
225 DESTDIR=$RPM_BUILD_ROOT
226
paul9a344b72003-08-05 23:24:58 +0000227# Remove this file, as it is uninstalled and causes errors when building on RH9
228rm -rf $RPM_BUILD_ROOT/usr/share/info/dir
229
paul15d74e92003-12-30 11:16:21 +0000230# install etc sources
ajsb3324e22004-12-22 17:52:29 +0000231for daemon in %{all_daemons} ; do
paulda29c6b2004-10-08 00:49:09 +0000232 if [ x"${daemon}" != x"" ] ; then
233 install %{zeb_rh_src}/${daemon}.init \
234 $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon}
235 fi
paul15d74e92003-12-30 11:16:21 +0000236done
Paul Jakma283d5d72016-02-11 13:54:23 +0000237install -m644 %{zeb_rh_src}/quagga.pam \
paul15d74e92003-12-30 11:16:21 +0000238 $RPM_BUILD_ROOT/etc/pam.d/quagga
239install -m644 %{zeb_rh_src}/quagga.logrotate \
240 $RPM_BUILD_ROOT/etc/logrotate.d/quagga
241install -m644 %{zeb_rh_src}/quagga.sysconfig \
242 $RPM_BUILD_ROOT/etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000243install -d -m750 $RPM_BUILD_ROOT/var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000244
245%pre
246# add vty_group
247%if %vty_group
paule7cd37b2005-09-08 15:18:39 +0000248if getent group %vty_group > /dev/null ; then : ; else \
249 /usr/sbin/groupadd -r %vty_group > /dev/null || : ; fi
pauledd7c242003-06-04 13:59:38 +0000250%endif
paule7cd37b2005-09-08 15:18:39 +0000251
paul6bd8fd32003-08-12 12:54:13 +0000252# add quagga user and group
253%if %quagga_user
paule7cd37b2005-09-08 15:18:39 +0000254# Ensure that quagga_gid gets correctly allocated
255if getent group %quagga_user >/dev/null; then : ; else \
256 /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \
257fi
258if getent passwd %quagga_user >/dev/null ; then : ; else \
259 /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \
260 -M -r -s /sbin/nologin -c "Quagga routing suite" \
261 -d %_localstatedir %quagga_user 2> /dev/null || : ; \
262fi
pauledd7c242003-06-04 13:59:38 +0000263%endif
paul788cdc62003-01-18 00:22:08 +0000264
paul788cdc62003-01-18 00:22:08 +0000265%post
paul30b9d892003-01-18 22:57:15 +0000266# zebra_spec_add_service <service name> <port/proto> <comment>
paul788cdc62003-01-18 00:22:08 +0000267# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
268
269zebra_spec_add_service ()
270{
271 # Add port /etc/services entry if it isn't already there
paul6b637e92004-10-23 00:48:51 +0000272 if [ -f /etc/services ] && \
273 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
paul788cdc62003-01-18 00:22:08 +0000274 echo "$1 $2 # $3" >> /etc/services
275 fi
276}
277
278zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
279zebra_spec_add_service zebra 2601/tcp "zebra vty"
280zebra_spec_add_service ripd 2602/tcp "RIPd vty"
281zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
282zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
283zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
284zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
paul54b25dc2004-09-30 04:56:26 +0000285%if %{with_ospfapi}
paul7021c422003-07-15 12:52:22 +0000286zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
287%endif
paul54b25dc2004-09-30 04:56:26 +0000288%if %{with_isisd}
jardin5a514b12003-12-23 10:50:21 +0000289zebra_spec_add_service isisd 2608/tcp "ISISd vty"
paul54b25dc2004-09-30 04:56:26 +0000290%endif
Everton Marques871dbcf2009-08-11 15:43:05 -0300291%if %{with_pimd}
292zebra_spec_add_service pimd 2611/tcp "PIMd vty"
293%endif
paul788cdc62003-01-18 00:22:08 +0000294
paul15d74e92003-12-30 11:16:21 +0000295for daemon in %daemon_list ; do
296 /sbin/chkconfig --add ${daemon}
297done
paul788cdc62003-01-18 00:22:08 +0000298
paul6bd8fd32003-08-12 12:54:13 +0000299/sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000300
301# Create dummy files if they don't exist so basic functions can be used.
302if [ ! -e %{_sysconfdir}/zebra.conf ]; then
303 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
paule7cd37b2005-09-08 15:18:39 +0000304%if %{quagga_user}
305 chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf
306%endif
paul788cdc62003-01-18 00:22:08 +0000307 chmod 640 %{_sysconfdir}/zebra.conf
308fi
309if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
310 touch %{_sysconfdir}/vtysh.conf
311 chmod 640 %{_sysconfdir}/vtysh.conf
312fi
313
314%postun
ajsfc43ecc2005-01-12 16:41:33 +0000315if [ "$1" -ge 1 ]; then
316 # Find out which daemons need to be restarted.
ajsb3324e22004-12-22 17:52:29 +0000317 for daemon in %all_daemons ; do
ajsfc43ecc2005-01-12 16:41:33 +0000318 if [ -f /var/lock/subsys/$daemon ]; then
319 eval restart_$daemon=yes
320 else
321 eval restart_$daemon=no
322 fi
paul15d74e92003-12-30 11:16:21 +0000323 done
ajsfc43ecc2005-01-12 16:41:33 +0000324 # Rename restart flags for daemons handled specially.
325 running_zebra="$restart_zebra"
326 restart_zebra=no
327 running_watchquagga="$restart_watchquagga"
328 restart_watchquagga=no
329 # Stop watchquagga first.
330 [ "$running_watchquagga" = yes ] && \
331 /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1
332 # Stop all daemons other than zebra and watchquagga.
333 for daemon in %all_daemons ; do
334 eval restart=\$restart_${daemon}
335 [ "$restart" = yes ] && \
336 /etc/rc.d/init.d/$daemon stop >/dev/null 2>&1
337 done
338 # Restart zebra.
339 [ "$running_zebra" = yes ] && \
340 /etc/rc.d/init.d/zebra restart >/dev/null 2>&1
341 # Start all daemons other than zebra and watchquagga.
342 for daemon in %all_daemons ; do
343 eval restart=\$restart_${daemon}
344 [ "$restart" = yes ] && \
345 /etc/rc.d/init.d/$daemon start >/dev/null 2>&1
346 done
347 # Start watchquagga last.
ajsb8540382005-01-15 17:26:48 +0000348 # Avoid postun scriptlet error if watchquagga is not running.
ajsfc43ecc2005-01-12 16:41:33 +0000349 [ "$running_watchquagga" = yes ] && \
ajsb8540382005-01-15 17:26:48 +0000350 /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || :
paul788cdc62003-01-18 00:22:08 +0000351fi
paule7cd37b2005-09-08 15:18:39 +0000352/sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000353
354%preun
355if [ "$1" = "0" ]; then
ajsb3324e22004-12-22 17:52:29 +0000356 for daemon in %all_daemons ; do
paul15d74e92003-12-30 11:16:21 +0000357 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
358 /sbin/chkconfig --del ${daemon}
359 done
360 /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000361fi
362
363%clean
paulb5f310c2004-09-13 13:15:25 +0000364%if !%{keep_build}
365rm -rf $RPM_BUILD_ROOT
366%endif
paul788cdc62003-01-18 00:22:08 +0000367
368%files
369%defattr(-,root,root)
paul448ed4a2003-03-01 15:43:28 +0000370%doc */*.sample* AUTHORS COPYING
paul6bd8fd32003-08-12 12:54:13 +0000371%doc doc/quagga.html
paul30b9d892003-01-18 22:57:15 +0000372%doc doc/mpls
paul8f754982003-01-20 04:55:51 +0000373%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
paul54b25dc2004-09-30 04:56:26 +0000374%if %{quagga_user}
paul6bd8fd32003-08-12 12:54:13 +0000375%dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
376%dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga
377%dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000378%else
paul788cdc62003-01-18 00:22:08 +0000379%dir %attr(750,root,root) %{_sysconfdir}
paul6bd8fd32003-08-12 12:54:13 +0000380%dir %attr(750,root,root) /var/log/quagga
paul788cdc62003-01-18 00:22:08 +0000381%dir %attr(755,root,root) /usr/share/info
paul6bd8fd32003-08-12 12:54:13 +0000382%dir %attr(750,root,root) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000383%endif
paul54b25dc2004-09-30 04:56:26 +0000384%if %{vty_group}
paul6bd8fd32003-08-12 12:54:13 +0000385%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
pauledd7c242003-06-04 13:59:38 +0000386%endif
paul788cdc62003-01-18 00:22:08 +0000387%{_infodir}/*info*
388%{_mandir}/man*/*
paul54b25dc2004-09-30 04:56:26 +0000389%{_sbindir}/zebra
390%{_sbindir}/ospfd
391%{_sbindir}/ripd
392%{_sbindir}/bgpd
ajsb3324e22004-12-22 17:52:29 +0000393%{_sbindir}/watchquagga
paul54b25dc2004-09-30 04:56:26 +0000394%{_sbindir}/ripngd
395%{_sbindir}/ospf6d
Paul Jakma283d5d72016-02-11 13:54:23 +0000396%if %{with_pimd}
397%{_sbindir}/pimd
paul54b25dc2004-09-30 04:56:26 +0000398%endif
399%if %{with_isisd}
400%{_sbindir}/isisd
401%endif
paulcfc18422004-10-23 00:05:41 +0000402%dir %attr(755,root,root) %{_libdir}
paul28f79722004-10-29 05:35:43 +0000403%if %{with_shared}
paule7cd37b2005-09-08 15:18:39 +0000404%dir %{_libdir}
paul2ff9e822004-07-20 11:19:47 +0000405%{_libdir}/lib*.so
406%{_libdir}/lib*.so.*
paul54b25dc2004-09-30 04:56:26 +0000407%endif
408%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000409%{_bindir}/*
pauld7ccae22003-01-18 00:24:00 +0000410%endif
paul6bd8fd32003-08-12 12:54:13 +0000411%config /etc/quagga/[!v]*
paul788cdc62003-01-18 00:22:08 +0000412%config /etc/rc.d/init.d/*
paul15d74e92003-12-30 11:16:21 +0000413%config(noreplace) /etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000414%config(noreplace) /etc/pam.d/quagga
paul788cdc62003-01-18 00:22:08 +0000415%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
416
paul448ed4a2003-03-01 15:43:28 +0000417%files contrib
418%defattr(-,root,root)
419%doc tools
420
paule0626852003-03-18 14:11:36 +0000421%files devel
422%defattr(-,root,root)
paulda29c6b2004-10-08 00:49:09 +0000423%if %{with_ospfclient}
424%{_sbindir}/ospfclient
425%endif
paul28f79722004-10-29 05:35:43 +0000426%{_libdir}/*.a
427%{_libdir}/*.la
paulcfc18422004-10-23 00:05:41 +0000428%dir %attr(755,root,root) %{_includedir}/%{name}
paul28f79722004-10-29 05:35:43 +0000429%{_includedir}/%name/*.h
paulcfc18422004-10-23 00:05:41 +0000430%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
paul28f79722004-10-29 05:35:43 +0000431%{_includedir}/%name/ospfd/*.h
paul54b25dc2004-09-30 04:56:26 +0000432%if %{with_ospfapi}
paulcfc18422004-10-23 00:05:41 +0000433%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
paul28f79722004-10-29 05:35:43 +0000434%{_includedir}/%name/ospfapi/*.h
paul68980082003-03-25 05:07:42 +0000435%endif
paule0626852003-03-18 14:11:36 +0000436
paul788cdc62003-01-18 00:22:08 +0000437%changelog
Paul Jakmae07068c2015-09-04 14:25:13 +0100438* Fri Sep 4 2015 Paul Jakma <paul@jakma.org> - %{version}
Paul Jakma283d5d72016-02-11 13:54:23 +0000439- package the pimd binary
440- remove with_ipv6 conditionals, always build v6
441- Fix UTF-8 char in spec changelog
442- remove quagga.pam.stack, long deprecated.
443
444* Fri Sep 4 2015 Paul Jakma <paul@jakma.org> - %{version}
Paul Jakmae07068c2015-09-04 14:25:13 +0100445- buildreq updates
446- add a default define for with_pimd
447
paule7cd37b2005-09-08 15:18:39 +0000448* Thu Sep 12 2005 Paul Jakma <paul@dishone.st>
449- Steal some changes from Fedora spec file:
450- Add with_rtadv variable
451- Test for groups/users with getent before group/user adding
452- Readline need not be an explicit prerequisite
453- install-info delete should be postun, not preun
454
ajsfc43ecc2005-01-12 16:41:33 +0000455* Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
456- on package upgrade, implement careful, phased restart logic
457- use gcc -rdynamic flag when linking for better backtraces
458
ajsb3324e22004-12-22 17:52:29 +0000459* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsf3931752004-12-23 00:00:58 +0000460- daemonv6_list should contain only IPv6 daemons
461
462* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsb3324e22004-12-22 17:52:29 +0000463- watchquagga added
464- on upgrade, all daemons should be condrestart'ed
465- on removal, all daemons should be stopped
466
paul36002ae2004-11-08 17:36:29 +0000467* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
468- Use makeinfo --html to generate quagga.html
469
paul0df63b52004-11-07 22:12:23 +0000470* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
471- Fix with_ipv6 set to 0 build
472
paulcfc18422004-10-23 00:05:41 +0000473* Sat Oct 23 2004 Paul Jakma <paul@dishone.st>
474- Update to 0.97.2
475
476* Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com>
477- Make directories be owned by the packages concerned
478- Update logrotate scripts to use correct path to killall and use pid files
479
paulda29c6b2004-10-08 00:49:09 +0000480* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
481- Update to 0.97.0
482
paul54b25dc2004-09-30 04:56:26 +0000483* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>
484- build snmp support by default
485- build irdp support
486- build with shared libs
487- devel subpackage for archives and headers
488
paul00bc5602004-01-09 16:30:52 +0000489* Thu Jan 08 2004 Paul Jakma <paul@dishone.st>
490- updated sysconfig files to specify local dir
491- added ospf_dump.c crash quick fix patch
492- added ospfd persistent interface configuration patch
493
paul15d74e92003-12-30 11:16:21 +0000494* Tue Dec 30 2003 Paul Jakma <paul@dishone.st>
495- sync to CVS
496- integrate RH sysconfig patch to specify daemon options (RH)
497- default to have vty listen only to 127.1 (RH)
498- add user with fixed UID/GID (RH)
499- create user with shell /sbin/nologin rather than /bin/false (RH)
500- stop daemons on uninstall (RH)
501- delete info file on %preun, not %postun to avoid deletion on upgrade. (RH)
502- isisd added
503- cleanup tasks carried out for every daemon
504
paul406f7002003-11-02 07:30:52 +0000505* Sun Nov 2 2003 Paul Jakma <paul@dishone.st>
506- Fix -devel package to include all files
507- Sync to 0.96.4
508
paul6bd8fd32003-08-12 12:54:13 +0000509* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
510- Renamed to Quagga
511- Sync to Quagga release 0.96
512
pauledd7c242003-06-04 13:59:38 +0000513* Tue Mar 20 2003 Paul Jakma <paul@dishone.st>
514- zebra privileges support
515
paule0626852003-03-18 14:11:36 +0000516* Mon Mar 18 2003 Paul Jakma <paul@dishone.st>
517- Fix mem leak in 'show thread cpu'
518- Ralph Keller's OSPF-API
519- Amir: Fix configure.ac for net-snmp
520
paul448ed4a2003-03-01 15:43:28 +0000521* Sat Mar 1 2003 Paul Jakma <paul@dishone.st>
522- ospfd IOS prefix to interface matching for 'network' statement
523- temporary fix for PtP and IPv6
524- sync to zebra.org CVS
525
paul8f754982003-01-20 04:55:51 +0000526* Mon Jan 20 2003 Paul Jakma <paul@dishone.st>
527- update to latest cvs
528- Yon's "show thread cpu" patch - 17217
529- walk up tree - 17218
530- ospfd NSSA fixes - 16681
531- ospfd nsm fixes - 16824
532- ospfd OLSA fixes and new feature - 16823
533- KAME and ifindex fixes - 16525
534- spec file changes to allow redhat files to be in tree
535
pauld7ccae22003-01-18 00:24:00 +0000536* Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com>
537- Added conditionals for building with(out) IPv6, vtysh, RIP, BGP
538- Fixed up some build requirements (patch)
539- Added conditional build requirements for vtysh / snmp
540- Added conditional to %files for %_bindir depending on vtysh
541
paul788cdc62003-01-18 00:22:08 +0000542* Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie>
543- update to latest CVS
544- add Greg Troxel's md5 buffer copy/dup fix
545- add RIPv1 fix
546- add Frank's multicast flag fix
547
548* Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie>
549- update to latest CVS
550- timestamped crypt_seqnum patch
551- oi->on_write_q fix
552
553* Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie>
554- update to latest CVS
555- add vtysh 'write-config (integrated|daemon)' patch
556- always 'make rebuild' in vtysh/ to catch new commands
557
558* Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie>
559- update to 0.93b
560
561* Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie>
562- update to latest CVS
563- add "/sbin/ip route flush proto zebra" to zebra RH init on startup
564
565* Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie>
566- update to current CVS
567- add OSPF point to multipoint patch
568- add OSPF bugfixes
569- add BGP hash optimisation patch
570
571* Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie>
572- update to 0.93-pre1 / CVS
573- add link state detection support
574- add generic PtP and RFC3021 support
575- various bug fixes
576
577* Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
578- Fix bug #51336
579
Paul Jakma283d5d72016-02-11 13:54:23 +0000580* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
paul788cdc62003-01-18 00:22:08 +0000581- Use generic initscript strings instead of initscript specific
582 ( "Starting foo: " -> "Starting $prog:" )
583
584* Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4
585- Bump the release when rebuilding into the dist.
586
587* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
588- built for Powertools
589
590* Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi>
591- Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org.
592- Update to 0.91a
593- Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc.
594- Should be quite Red Hat'isque now.