blob: 5e36b9d36f87162ad7ec10a1e5f6d03920c6a198 [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#
6
paul11890752005-11-05 16:29:54 +00007####################### Quagga configure options #########################
8# with-feature options
9%{!?with_snmp: %define with_snmp 1 }
10%{!?with_vtysh: %define with_vtysh 1 }
11%{!?with_ospf_te: %define with_ospf_te 1 }
12%{!?with_nssa: %define with_nssa 1 }
13%{!?with_opaque_lsa: %define with_opaque_lsa 1 }
14%{!?with_tcp_zebra: %define with_tcp_zebra 0 }
15%{!?with_vtysh: %define with_vtysh 1 }
16%{!?with_pam: %define with_pam 1 }
17%{!?with_ipv6: %define with_ipv6 1 }
18%{!?with_ospfclient: %define with_ospfclient 1 }
19%{!?with_ospfapi: %define with_ospfapi 1 }
20%{!?with_irdp: %define with_irdp 1 }
21%{!?with_rtadv: %define with_rtadv 1 }
22%{!?with_isisd: %define with_isisd 1 }
Paul Jakmae07068c2015-09-04 14:25:13 +010023%{!?with_pimd: %define with_pimd 1 }
paul11890752005-11-05 16:29:54 +000024%{!?with_shared: %define with_shared 1 }
25%{!?with_multipath: %define with_multipath 64 }
26%{!?quagga_user: %define quagga_user quagga }
27%{!?vty_group: %define vty_group quaggavty }
paul30b9d892003-01-18 22:57:15 +000028
29# path defines
paul6bd8fd32003-08-12 12:54:13 +000030%define _sysconfdir /etc/quagga
paul8f754982003-01-20 04:55:51 +000031%define zeb_src %{_builddir}/%{name}-%{version}
32%define zeb_rh_src %{zeb_src}/redhat
33%define zeb_docs %{zeb_src}/doc
paul788cdc62003-01-18 00:22:08 +000034
paule0626852003-03-18 14:11:36 +000035# defines for configure
paul6bd8fd32003-08-12 12:54:13 +000036%define _libexecdir %{_exec_prefix}/libexec/quagga
paul6bd8fd32003-08-12 12:54:13 +000037%define _libdir %{_exec_prefix}/%{_lib}/quagga
paul15d74e92003-12-30 11:16:21 +000038%define _includedir %{_prefix}/include
paul6bd8fd32003-08-12 12:54:13 +000039%define _localstatedir /var/run/quagga
paul11890752005-11-05 16:29:54 +000040############################################################################
41
42####################### distro specific tweaks #############################
Andrew J. Schorr2cb87162006-06-15 22:31:39 +000043# default distro. Override with rpmbuild -D "dist XXX"
44%{expand: %%define default_dist %(rpm -q --qf 'fc%%{VERSION}' fedora-release | grep -v 'not installed')}
paul11890752005-11-05 16:29:54 +000045%{!?dist: %define dist %{default_dist}}
46
47# as distros change packages we depend on, our Requires have to change, sadly.
Paul Jakmae07068c2015-09-04 14:25:13 +010048%define quagga_buildreqs texi2html texinfo autoconf pam-devel
49%define quagga_buildreqs %{expand:%{quagga_buildreqs}} patch libcap-devel
paul11890752005-11-05 16:29:54 +000050
51# FC4 and 5 split texi2html out of tetex package.
Paul Jakmae07068c2015-09-04 14:25:13 +010052%define quagga_buildreqs %{expand:%{quagga_buildreqs}} texi2html
paul11890752005-11-05 16:29:54 +000053
Paul Jakmae07068c2015-09-04 14:25:13 +010054# pam_stack was deprecated in FC5
paul11890752005-11-05 16:29:54 +000055# default to pam_stack, default should be changed later.
David Lamparter1b477642015-02-04 06:15:34 +010056%if "%dist" == "fc4" || "%dist" == "fc3"
Everton Marques871dbcf2009-08-11 15:43:05 -030057%define quagga_pam_source quagga.pam.stack
David Lamparter1b477642015-02-04 06:15:34 +010058%else
59%define quagga_pam_source quagga.pam
paul11890752005-11-05 16:29:54 +000060%endif
paul11890752005-11-05 16:29:54 +000061
Paul Jakmae07068c2015-09-04 14:25:13 +010062# man page probably needs groff for groff_ms macros
63%define quagga_buildreqs %{expand:%{quagga_buildreqs}} groff
64
65############################################################################
paule0626852003-03-18 14:11:36 +000066
paul15d74e92003-12-30 11:16:21 +000067# misc internal defines
paulb64d92a2005-04-25 15:13:42 +000068%{!?quagga_uid: %define quagga_uid 92 }
69%{!?quagga_gid: %define quagga_gid 92 }
paul54b25dc2004-09-30 04:56:26 +000070%define daemon_list zebra ripd ospfd bgpd
paul0df63b52004-11-07 22:12:23 +000071
paul54b25dc2004-09-30 04:56:26 +000072%if %{with_ipv6}
David Lamparter5460bae2015-05-19 00:35:04 +020073%define daemonv6_list ripngd ospf6d
paul0df63b52004-11-07 22:12:23 +000074%else
75%define daemonv6_list ""
paul54b25dc2004-09-30 04:56:26 +000076%endif
paul0df63b52004-11-07 22:12:23 +000077
paul54b25dc2004-09-30 04:56:26 +000078%if %{with_isisd}
paul69f5d262004-10-07 16:23:36 +000079%define daemon_other isisd
80%else
81%define daemon_other ""
paul15d74e92003-12-30 11:16:21 +000082%endif
83
ajsb3324e22004-12-22 17:52:29 +000084%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_other} watchquagga
85
paulb5f310c2004-09-13 13:15:25 +000086# allow build dir to be kept
paulb64d92a2005-04-25 15:13:42 +000087%{!?keep_build: %define keep_build 0 }
paulb5f310c2004-09-13 13:15:25 +000088
paul4859e202005-11-20 02:09:32 +000089#release sub-revision (the two digits after the CONFDATE)
90%{!?release_rev: %define release_rev 01 }
91
paul788cdc62003-01-18 00:22:08 +000092Summary: Routing daemon
paul6bd8fd32003-08-12 12:54:13 +000093Name: quagga
paul6382b6f2003-05-20 00:17:45 +000094Version: @VERSION@
paul4859e202005-11-20 02:09:32 +000095Release: @CONFDATE@%{release_rev}
paul788cdc62003-01-18 00:22:08 +000096License: GPL
97Group: System Environment/Daemons
paul6bd8fd32003-08-12 12:54:13 +000098Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
99URL: http://www.quagga.net
paul54b25dc2004-09-30 04:56:26 +0000100%if %{with_snmp}
paulb63cef72004-08-19 03:36:13 +0000101BuildRequires: net-snmp-devel
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +0000102Requires(pre): net-snmp
paul788cdc62003-01-18 00:22:08 +0000103%endif
paul54b25dc2004-09-30 04:56:26 +0000104%if %{with_vtysh}
paul30b9d892003-01-18 22:57:15 +0000105BuildRequires: readline readline-devel ncurses ncurses-devel
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +0000106Requires(pre): ncurses
pauld7ccae22003-01-18 00:24:00 +0000107%endif
Paul Jakmae07068c2015-09-04 14:25:13 +0100108BuildRequires: %{quagga_buildreqs}
paul788cdc62003-01-18 00:22:08 +0000109# Initscripts > 5.60 is required for IPv6 support
Matti-Oskari Leppänenfa755852013-02-15 10:12:55 +0000110Requires(pre): initscripts >= 5.60
111Requires(pre): ncurses pam
112Requires(pre): /sbin/install-info
paul788cdc62003-01-18 00:22:08 +0000113Provides: routingdaemon
114BuildRoot: %{_tmppath}/%{name}-%{version}-root
paul6bd8fd32003-08-12 12:54:13 +0000115Obsoletes: bird gated mrt zebra
paul788cdc62003-01-18 00:22:08 +0000116
117%description
paul6bd8fd32003-08-12 12:54:13 +0000118Quagga is a free software that manages TCP/IP based routing
paul788cdc62003-01-18 00:22:08 +0000119protocol. It takes multi-server and multi-thread approach to resolve
120the current complexity of the Internet.
121
paul6bd8fd32003-08-12 12:54:13 +0000122Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
paul788cdc62003-01-18 00:22:08 +0000123
paul6bd8fd32003-08-12 12:54:13 +0000124Quagga is intended to be used as a Route Server and a Route Reflector. It is
125not a toolkit, it provides full routing power under a new architecture.
126Quagga by design has a process for each protocol.
127
128Quagga is a fork of GNU Zebra.
paul788cdc62003-01-18 00:22:08 +0000129
paul448ed4a2003-03-01 15:43:28 +0000130%package contrib
paul6bd8fd32003-08-12 12:54:13 +0000131Summary: contrib tools for quagga
paul448ed4a2003-03-01 15:43:28 +0000132Group: System Environment/Daemons
133
134%description contrib
paul6bd8fd32003-08-12 12:54:13 +0000135Contributed/3rd party tools which may be of use with quagga.
paul448ed4a2003-03-01 15:43:28 +0000136
paule0626852003-03-18 14:11:36 +0000137%package devel
paul6bd8fd32003-08-12 12:54:13 +0000138Summary: Header and object files for quagga development
paule0626852003-03-18 14:11:36 +0000139Group: System Environment/Daemons
140
141%description devel
paul6bd8fd32003-08-12 12:54:13 +0000142The quagga-devel package contains the header and object files neccessary for
143developing OSPF-API and quagga applications.
paule0626852003-03-18 14:11:36 +0000144
paul788cdc62003-01-18 00:22:08 +0000145%prep
146%setup -q
paul788cdc62003-01-18 00:22:08 +0000147
148%build
ajs7966b972004-11-10 22:02:05 +0000149
150# For standard gcc verbosity, uncomment these lines:
151#CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith"
152#CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
153
154# For ultra gcc verbosity, uncomment these lines also:
155#CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
156#CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
157#CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
158#CFLAGS="${CFLAGS} -Wpacked -Wpadded"
159
paul788cdc62003-01-18 00:22:08 +0000160%configure \
paul54b25dc2004-09-30 04:56:26 +0000161%if !%{with_shared}
162 --disable-shared \
163%endif
164%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000165 --enable-ipv6 \
166%endif
paul54b25dc2004-09-30 04:56:26 +0000167%if %{with_snmp}
paul788cdc62003-01-18 00:22:08 +0000168 --enable-snmp \
169%endif
paul54b25dc2004-09-30 04:56:26 +0000170%if %{with_multipath}
171 --enable-multipath=%{with_multipath} \
paul788cdc62003-01-18 00:22:08 +0000172%endif
paul54b25dc2004-09-30 04:56:26 +0000173%if %{with_tcp_zebra}
paul788cdc62003-01-18 00:22:08 +0000174 --enable-tcp-zebra \
175%endif
paul54b25dc2004-09-30 04:56:26 +0000176%if %{with_nssa}
paul788cdc62003-01-18 00:22:08 +0000177 --enable-nssa \
178%endif
paul54b25dc2004-09-30 04:56:26 +0000179%if %{with_opaque_lsa}
paul788cdc62003-01-18 00:22:08 +0000180 --enable-opaque-lsa \
181%endif
paul54b25dc2004-09-30 04:56:26 +0000182%if %{with_ospf_te}
paul788cdc62003-01-18 00:22:08 +0000183 --enable-ospf-te \
184%endif
paul54b25dc2004-09-30 04:56:26 +0000185%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000186 --enable-vtysh \
187%endif
paul54b25dc2004-09-30 04:56:26 +0000188%if %{with_ospfclient}
paul68980082003-03-25 05:07:42 +0000189 --enable-ospfclient=yes \
190%else
191 --enable-ospfclient=no\
192%endif
paul54b25dc2004-09-30 04:56:26 +0000193%if %{with_ospfapi}
paul68980082003-03-25 05:07:42 +0000194 --enable-ospfapi=yes \
195%else
196 --enable-ospfapi=no \
197%endif
paul54b25dc2004-09-30 04:56:26 +0000198%if %{with_irdp}
paul5b819262004-07-28 14:11:55 +0000199 --enable-irdp=yes \
200%else
201 --enable-irdp=no \
202%endif
paule7cd37b2005-09-08 15:18:39 +0000203%if %{with_rtadv}
204 --enable-rtadv=yes \
205%else
206 --enable-rtadv=no \
207%endif
paul54b25dc2004-09-30 04:56:26 +0000208%if %{with_isisd}
209 --enable-isisd \
210%else
paul69f5d262004-10-07 16:23:36 +0000211 --disable-isisd \
paul54b25dc2004-09-30 04:56:26 +0000212%endif
213%if %{with_pam}
pauledd7c242003-06-04 13:59:38 +0000214 --with-libpam \
paul788cdc62003-01-18 00:22:08 +0000215%endif
paul6bd8fd32003-08-12 12:54:13 +0000216%if %quagga_user
217 --enable-user=%quagga_user \
218 --enable-group=%quagga_user \
pauledd7c242003-06-04 13:59:38 +0000219%endif
220%if %vty_group
221 --enable-vty-group=%vty_group \
222%endif
ajsfc43ecc2005-01-12 16:41:33 +0000223--enable-netlink --enable-gcc-rdynamic
paul788cdc62003-01-18 00:22:08 +0000224
225make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
226
227pushd doc
Paul Jakmae07068c2015-09-04 14:25:13 +0100228texi2html --number-footnotes --number-sections quagga.texi
paul788cdc62003-01-18 00:22:08 +0000229popd
230
231%install
232rm -rf $RPM_BUILD_ROOT
233
234install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \
paul6bd8fd32003-08-12 12:54:13 +0000235 $RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir}
paul788cdc62003-01-18 00:22:08 +0000236
237make install \
238 DESTDIR=$RPM_BUILD_ROOT
239
paul9a344b72003-08-05 23:24:58 +0000240# Remove this file, as it is uninstalled and causes errors when building on RH9
241rm -rf $RPM_BUILD_ROOT/usr/share/info/dir
242
paul15d74e92003-12-30 11:16:21 +0000243# install etc sources
ajsb3324e22004-12-22 17:52:29 +0000244for daemon in %{all_daemons} ; do
paulda29c6b2004-10-08 00:49:09 +0000245 if [ x"${daemon}" != x"" ] ; then
246 install %{zeb_rh_src}/${daemon}.init \
247 $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon}
248 fi
paul15d74e92003-12-30 11:16:21 +0000249done
paul11890752005-11-05 16:29:54 +0000250install -m644 %{zeb_rh_src}/%{quagga_pam_source} \
paul15d74e92003-12-30 11:16:21 +0000251 $RPM_BUILD_ROOT/etc/pam.d/quagga
252install -m644 %{zeb_rh_src}/quagga.logrotate \
253 $RPM_BUILD_ROOT/etc/logrotate.d/quagga
254install -m644 %{zeb_rh_src}/quagga.sysconfig \
255 $RPM_BUILD_ROOT/etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000256install -d -m750 $RPM_BUILD_ROOT/var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000257
258%pre
259# add vty_group
260%if %vty_group
paule7cd37b2005-09-08 15:18:39 +0000261if getent group %vty_group > /dev/null ; then : ; else \
262 /usr/sbin/groupadd -r %vty_group > /dev/null || : ; fi
pauledd7c242003-06-04 13:59:38 +0000263%endif
paule7cd37b2005-09-08 15:18:39 +0000264
paul6bd8fd32003-08-12 12:54:13 +0000265# add quagga user and group
266%if %quagga_user
paule7cd37b2005-09-08 15:18:39 +0000267# Ensure that quagga_gid gets correctly allocated
268if getent group %quagga_user >/dev/null; then : ; else \
269 /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \
270fi
271if getent passwd %quagga_user >/dev/null ; then : ; else \
272 /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \
273 -M -r -s /sbin/nologin -c "Quagga routing suite" \
274 -d %_localstatedir %quagga_user 2> /dev/null || : ; \
275fi
pauledd7c242003-06-04 13:59:38 +0000276%endif
paul788cdc62003-01-18 00:22:08 +0000277
paul788cdc62003-01-18 00:22:08 +0000278%post
paul30b9d892003-01-18 22:57:15 +0000279# zebra_spec_add_service <service name> <port/proto> <comment>
paul788cdc62003-01-18 00:22:08 +0000280# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
281
282zebra_spec_add_service ()
283{
284 # Add port /etc/services entry if it isn't already there
paul6b637e92004-10-23 00:48:51 +0000285 if [ -f /etc/services ] && \
286 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
paul788cdc62003-01-18 00:22:08 +0000287 echo "$1 $2 # $3" >> /etc/services
288 fi
289}
290
291zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
292zebra_spec_add_service zebra 2601/tcp "zebra vty"
293zebra_spec_add_service ripd 2602/tcp "RIPd vty"
paul54b25dc2004-09-30 04:56:26 +0000294%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000295zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
pauld7ccae22003-01-18 00:24:00 +0000296%endif
paul788cdc62003-01-18 00:22:08 +0000297zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
298zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
paul54b25dc2004-09-30 04:56:26 +0000299%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000300zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
pauld7ccae22003-01-18 00:24:00 +0000301%endif
paul54b25dc2004-09-30 04:56:26 +0000302%if %{with_ospfapi}
paul7021c422003-07-15 12:52:22 +0000303zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
304%endif
paul54b25dc2004-09-30 04:56:26 +0000305%if %{with_isisd}
jardin5a514b12003-12-23 10:50:21 +0000306zebra_spec_add_service isisd 2608/tcp "ISISd vty"
paul54b25dc2004-09-30 04:56:26 +0000307%endif
Everton Marques871dbcf2009-08-11 15:43:05 -0300308%if %{with_pimd}
309zebra_spec_add_service pimd 2611/tcp "PIMd vty"
310%endif
paul788cdc62003-01-18 00:22:08 +0000311
paul15d74e92003-12-30 11:16:21 +0000312for daemon in %daemon_list ; do
313 /sbin/chkconfig --add ${daemon}
314done
paul788cdc62003-01-18 00:22:08 +0000315
paul6bd8fd32003-08-12 12:54:13 +0000316/sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000317
318# Create dummy files if they don't exist so basic functions can be used.
319if [ ! -e %{_sysconfdir}/zebra.conf ]; then
320 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
paule7cd37b2005-09-08 15:18:39 +0000321%if %{quagga_user}
322 chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf
323%endif
paul788cdc62003-01-18 00:22:08 +0000324 chmod 640 %{_sysconfdir}/zebra.conf
325fi
326if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
327 touch %{_sysconfdir}/vtysh.conf
328 chmod 640 %{_sysconfdir}/vtysh.conf
329fi
330
331%postun
ajsfc43ecc2005-01-12 16:41:33 +0000332if [ "$1" -ge 1 ]; then
333 # Find out which daemons need to be restarted.
ajsb3324e22004-12-22 17:52:29 +0000334 for daemon in %all_daemons ; do
ajsfc43ecc2005-01-12 16:41:33 +0000335 if [ -f /var/lock/subsys/$daemon ]; then
336 eval restart_$daemon=yes
337 else
338 eval restart_$daemon=no
339 fi
paul15d74e92003-12-30 11:16:21 +0000340 done
ajsfc43ecc2005-01-12 16:41:33 +0000341 # Rename restart flags for daemons handled specially.
342 running_zebra="$restart_zebra"
343 restart_zebra=no
344 running_watchquagga="$restart_watchquagga"
345 restart_watchquagga=no
346 # Stop watchquagga first.
347 [ "$running_watchquagga" = yes ] && \
348 /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1
349 # Stop all daemons other than zebra and watchquagga.
350 for daemon in %all_daemons ; do
351 eval restart=\$restart_${daemon}
352 [ "$restart" = yes ] && \
353 /etc/rc.d/init.d/$daemon stop >/dev/null 2>&1
354 done
355 # Restart zebra.
356 [ "$running_zebra" = yes ] && \
357 /etc/rc.d/init.d/zebra restart >/dev/null 2>&1
358 # Start all daemons other than zebra and watchquagga.
359 for daemon in %all_daemons ; do
360 eval restart=\$restart_${daemon}
361 [ "$restart" = yes ] && \
362 /etc/rc.d/init.d/$daemon start >/dev/null 2>&1
363 done
364 # Start watchquagga last.
ajsb8540382005-01-15 17:26:48 +0000365 # Avoid postun scriptlet error if watchquagga is not running.
ajsfc43ecc2005-01-12 16:41:33 +0000366 [ "$running_watchquagga" = yes ] && \
ajsb8540382005-01-15 17:26:48 +0000367 /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || :
paul788cdc62003-01-18 00:22:08 +0000368fi
paule7cd37b2005-09-08 15:18:39 +0000369/sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000370
371%preun
372if [ "$1" = "0" ]; then
ajsb3324e22004-12-22 17:52:29 +0000373 for daemon in %all_daemons ; do
paul15d74e92003-12-30 11:16:21 +0000374 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
375 /sbin/chkconfig --del ${daemon}
376 done
377 /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000378fi
379
380%clean
paulb5f310c2004-09-13 13:15:25 +0000381%if !%{keep_build}
382rm -rf $RPM_BUILD_ROOT
383%endif
paul788cdc62003-01-18 00:22:08 +0000384
385%files
386%defattr(-,root,root)
paul448ed4a2003-03-01 15:43:28 +0000387%doc */*.sample* AUTHORS COPYING
paul6bd8fd32003-08-12 12:54:13 +0000388%doc doc/quagga.html
paul30b9d892003-01-18 22:57:15 +0000389%doc doc/mpls
paul8f754982003-01-20 04:55:51 +0000390%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
paul54b25dc2004-09-30 04:56:26 +0000391%if %{quagga_user}
paul6bd8fd32003-08-12 12:54:13 +0000392%dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
393%dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga
394%dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000395%else
paul788cdc62003-01-18 00:22:08 +0000396%dir %attr(750,root,root) %{_sysconfdir}
paul6bd8fd32003-08-12 12:54:13 +0000397%dir %attr(750,root,root) /var/log/quagga
paul788cdc62003-01-18 00:22:08 +0000398%dir %attr(755,root,root) /usr/share/info
paul6bd8fd32003-08-12 12:54:13 +0000399%dir %attr(750,root,root) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000400%endif
paul54b25dc2004-09-30 04:56:26 +0000401%if %{vty_group}
paul6bd8fd32003-08-12 12:54:13 +0000402%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
pauledd7c242003-06-04 13:59:38 +0000403%endif
paul788cdc62003-01-18 00:22:08 +0000404%{_infodir}/*info*
405%{_mandir}/man*/*
paul54b25dc2004-09-30 04:56:26 +0000406%{_sbindir}/zebra
407%{_sbindir}/ospfd
408%{_sbindir}/ripd
409%{_sbindir}/bgpd
ajsb3324e22004-12-22 17:52:29 +0000410%{_sbindir}/watchquagga
paul54b25dc2004-09-30 04:56:26 +0000411%if %{with_ipv6}
412%{_sbindir}/ripngd
413%{_sbindir}/ospf6d
414%endif
415%if %{with_isisd}
416%{_sbindir}/isisd
417%endif
paulcfc18422004-10-23 00:05:41 +0000418%dir %attr(755,root,root) %{_libdir}
paul28f79722004-10-29 05:35:43 +0000419%if %{with_shared}
paule7cd37b2005-09-08 15:18:39 +0000420%dir %{_libdir}
paul2ff9e822004-07-20 11:19:47 +0000421%{_libdir}/lib*.so
422%{_libdir}/lib*.so.*
paul54b25dc2004-09-30 04:56:26 +0000423%endif
424%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000425%{_bindir}/*
pauld7ccae22003-01-18 00:24:00 +0000426%endif
paul6bd8fd32003-08-12 12:54:13 +0000427%config /etc/quagga/[!v]*
paul788cdc62003-01-18 00:22:08 +0000428%config /etc/rc.d/init.d/*
paul15d74e92003-12-30 11:16:21 +0000429%config(noreplace) /etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000430%config(noreplace) /etc/pam.d/quagga
paul788cdc62003-01-18 00:22:08 +0000431%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
432
paul448ed4a2003-03-01 15:43:28 +0000433%files contrib
434%defattr(-,root,root)
435%doc tools
436
paule0626852003-03-18 14:11:36 +0000437%files devel
438%defattr(-,root,root)
paulda29c6b2004-10-08 00:49:09 +0000439%if %{with_ospfclient}
440%{_sbindir}/ospfclient
441%endif
paul28f79722004-10-29 05:35:43 +0000442%{_libdir}/*.a
443%{_libdir}/*.la
paulcfc18422004-10-23 00:05:41 +0000444%dir %attr(755,root,root) %{_includedir}/%{name}
paul28f79722004-10-29 05:35:43 +0000445%{_includedir}/%name/*.h
paulcfc18422004-10-23 00:05:41 +0000446%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
paul28f79722004-10-29 05:35:43 +0000447%{_includedir}/%name/ospfd/*.h
paul54b25dc2004-09-30 04:56:26 +0000448%if %{with_ospfapi}
paulcfc18422004-10-23 00:05:41 +0000449%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
paul28f79722004-10-29 05:35:43 +0000450%{_includedir}/%name/ospfapi/*.h
paul68980082003-03-25 05:07:42 +0000451%endif
paule0626852003-03-18 14:11:36 +0000452
paul788cdc62003-01-18 00:22:08 +0000453%changelog
Paul Jakmae07068c2015-09-04 14:25:13 +0100454* Fri Sep 4 2015 Paul Jakma <paul@jakma.org> - %{version}
455- buildreq updates
456- add a default define for with_pimd
457
paule7cd37b2005-09-08 15:18:39 +0000458* Thu Sep 12 2005 Paul Jakma <paul@dishone.st>
459- Steal some changes from Fedora spec file:
460- Add with_rtadv variable
461- Test for groups/users with getent before group/user adding
462- Readline need not be an explicit prerequisite
463- install-info delete should be postun, not preun
464
ajsfc43ecc2005-01-12 16:41:33 +0000465* Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
466- on package upgrade, implement careful, phased restart logic
467- use gcc -rdynamic flag when linking for better backtraces
468
ajsb3324e22004-12-22 17:52:29 +0000469* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsf3931752004-12-23 00:00:58 +0000470- daemonv6_list should contain only IPv6 daemons
471
472* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsb3324e22004-12-22 17:52:29 +0000473- watchquagga added
474- on upgrade, all daemons should be condrestart'ed
475- on removal, all daemons should be stopped
476
paul36002ae2004-11-08 17:36:29 +0000477* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
478- Use makeinfo --html to generate quagga.html
479
paul0df63b52004-11-07 22:12:23 +0000480* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
481- Fix with_ipv6 set to 0 build
482
paulcfc18422004-10-23 00:05:41 +0000483* Sat Oct 23 2004 Paul Jakma <paul@dishone.st>
484- Update to 0.97.2
485
486* Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com>
487- Make directories be owned by the packages concerned
488- Update logrotate scripts to use correct path to killall and use pid files
489
paulda29c6b2004-10-08 00:49:09 +0000490* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
491- Update to 0.97.0
492
paul54b25dc2004-09-30 04:56:26 +0000493* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>
494- build snmp support by default
495- build irdp support
496- build with shared libs
497- devel subpackage for archives and headers
498
paul00bc5602004-01-09 16:30:52 +0000499* Thu Jan 08 2004 Paul Jakma <paul@dishone.st>
500- updated sysconfig files to specify local dir
501- added ospf_dump.c crash quick fix patch
502- added ospfd persistent interface configuration patch
503
paul15d74e92003-12-30 11:16:21 +0000504* Tue Dec 30 2003 Paul Jakma <paul@dishone.st>
505- sync to CVS
506- integrate RH sysconfig patch to specify daemon options (RH)
507- default to have vty listen only to 127.1 (RH)
508- add user with fixed UID/GID (RH)
509- create user with shell /sbin/nologin rather than /bin/false (RH)
510- stop daemons on uninstall (RH)
511- delete info file on %preun, not %postun to avoid deletion on upgrade. (RH)
512- isisd added
513- cleanup tasks carried out for every daemon
514
paul406f7002003-11-02 07:30:52 +0000515* Sun Nov 2 2003 Paul Jakma <paul@dishone.st>
516- Fix -devel package to include all files
517- Sync to 0.96.4
518
paul6bd8fd32003-08-12 12:54:13 +0000519* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
520- Renamed to Quagga
521- Sync to Quagga release 0.96
522
pauledd7c242003-06-04 13:59:38 +0000523* Tue Mar 20 2003 Paul Jakma <paul@dishone.st>
524- zebra privileges support
525
paule0626852003-03-18 14:11:36 +0000526* Mon Mar 18 2003 Paul Jakma <paul@dishone.st>
527- Fix mem leak in 'show thread cpu'
528- Ralph Keller's OSPF-API
529- Amir: Fix configure.ac for net-snmp
530
paul448ed4a2003-03-01 15:43:28 +0000531* Sat Mar 1 2003 Paul Jakma <paul@dishone.st>
532- ospfd IOS prefix to interface matching for 'network' statement
533- temporary fix for PtP and IPv6
534- sync to zebra.org CVS
535
paul8f754982003-01-20 04:55:51 +0000536* Mon Jan 20 2003 Paul Jakma <paul@dishone.st>
537- update to latest cvs
538- Yon's "show thread cpu" patch - 17217
539- walk up tree - 17218
540- ospfd NSSA fixes - 16681
541- ospfd nsm fixes - 16824
542- ospfd OLSA fixes and new feature - 16823
543- KAME and ifindex fixes - 16525
544- spec file changes to allow redhat files to be in tree
545
pauld7ccae22003-01-18 00:24:00 +0000546* Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com>
547- Added conditionals for building with(out) IPv6, vtysh, RIP, BGP
548- Fixed up some build requirements (patch)
549- Added conditional build requirements for vtysh / snmp
550- Added conditional to %files for %_bindir depending on vtysh
551
paul788cdc62003-01-18 00:22:08 +0000552* Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie>
553- update to latest CVS
554- add Greg Troxel's md5 buffer copy/dup fix
555- add RIPv1 fix
556- add Frank's multicast flag fix
557
558* Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie>
559- update to latest CVS
560- timestamped crypt_seqnum patch
561- oi->on_write_q fix
562
563* Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie>
564- update to latest CVS
565- add vtysh 'write-config (integrated|daemon)' patch
566- always 'make rebuild' in vtysh/ to catch new commands
567
568* Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie>
569- update to 0.93b
570
571* Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie>
572- update to latest CVS
573- add "/sbin/ip route flush proto zebra" to zebra RH init on startup
574
575* Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie>
576- update to current CVS
577- add OSPF point to multipoint patch
578- add OSPF bugfixes
579- add BGP hash optimisation patch
580
581* Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie>
582- update to 0.93-pre1 / CVS
583- add link state detection support
584- add generic PtP and RFC3021 support
585- various bug fixes
586
587* Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
588- Fix bug #51336
589
590* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
591- Use generic initscript strings instead of initscript specific
592 ( "Starting foo: " -> "Starting $prog:" )
593
594* Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4
595- Bump the release when rebuilding into the dist.
596
597* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
598- built for Powertools
599
600* Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi>
601- Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org.
602- Update to 0.91a
603- Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc.
604- Should be quite Red Hat'isque now.