blob: ecb0d0d8b4945150740106b781e898d09efbf5f7 [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 }
23%{!?with_shared: %define with_shared 1 }
24%{!?with_multipath: %define with_multipath 64 }
25%{!?quagga_user: %define quagga_user quagga }
26%{!?vty_group: %define vty_group quaggavty }
paul30b9d892003-01-18 22:57:15 +000027
28# path defines
paul6bd8fd32003-08-12 12:54:13 +000029%define _sysconfdir /etc/quagga
paul8f754982003-01-20 04:55:51 +000030%define zeb_src %{_builddir}/%{name}-%{version}
31%define zeb_rh_src %{zeb_src}/redhat
32%define zeb_docs %{zeb_src}/doc
paul788cdc62003-01-18 00:22:08 +000033
paule0626852003-03-18 14:11:36 +000034# defines for configure
paul6bd8fd32003-08-12 12:54:13 +000035%define _libexecdir %{_exec_prefix}/libexec/quagga
paul6bd8fd32003-08-12 12:54:13 +000036%define _libdir %{_exec_prefix}/%{_lib}/quagga
paul15d74e92003-12-30 11:16:21 +000037%define _includedir %{_prefix}/include
paul6bd8fd32003-08-12 12:54:13 +000038%define _localstatedir /var/run/quagga
paul11890752005-11-05 16:29:54 +000039############################################################################
40
41####################### distro specific tweaks #############################
42# default distro. Override with rpmbuild -D "dist_default XXX"
43%define dist_default fc4
44%{!?dist: %define dist %{default_dist}}
45
46# as distros change packages we depend on, our Requires have to change, sadly.
47%define quagga_buildreqs texinfo tetex autoconf pam-devel
48%define quagga_buildreqs %{quagga_buildreqs} patch libcap-devel
49
50# FC4 and 5 split texi2html out of tetex package.
51%if "%dist" == "fc4" || "%dist" == "fc5"
52%define quagga_buildreqs %{quagga_buildreqs} texi2html
53%endif
54
55# pam_stack is deprecated in FC5
56# default to pam_stack, default should be changed later.
57%if "%dist" == "fc5"
58%define quagga_pam_source quagga.pam
59%else
60%define quagga_pam_source quagga.pam.stack
61%endif
62############################################################################
63
paule0626852003-03-18 14:11:36 +000064
paul15d74e92003-12-30 11:16:21 +000065# misc internal defines
paulb64d92a2005-04-25 15:13:42 +000066%{!?quagga_uid: %define quagga_uid 92 }
67%{!?quagga_gid: %define quagga_gid 92 }
paul54b25dc2004-09-30 04:56:26 +000068%define daemon_list zebra ripd ospfd bgpd
paul0df63b52004-11-07 22:12:23 +000069
paul54b25dc2004-09-30 04:56:26 +000070%if %{with_ipv6}
ajsf3931752004-12-23 00:00:58 +000071%define daemonv6_list ripngd ospf6d
paul0df63b52004-11-07 22:12:23 +000072%else
73%define daemonv6_list ""
paul54b25dc2004-09-30 04:56:26 +000074%endif
paul0df63b52004-11-07 22:12:23 +000075
paul54b25dc2004-09-30 04:56:26 +000076%if %{with_isisd}
paul69f5d262004-10-07 16:23:36 +000077%define daemon_other isisd
78%else
79%define daemon_other ""
paul15d74e92003-12-30 11:16:21 +000080%endif
81
ajsb3324e22004-12-22 17:52:29 +000082%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_other} watchquagga
83
paulb5f310c2004-09-13 13:15:25 +000084# allow build dir to be kept
paulb64d92a2005-04-25 15:13:42 +000085%{!?keep_build: %define keep_build 0 }
paulb5f310c2004-09-13 13:15:25 +000086
paul788cdc62003-01-18 00:22:08 +000087Summary: Routing daemon
paul6bd8fd32003-08-12 12:54:13 +000088Name: quagga
paul6382b6f2003-05-20 00:17:45 +000089Version: @VERSION@
pauledd7c242003-06-04 13:59:38 +000090Release: @CONFDATE@01
paul788cdc62003-01-18 00:22:08 +000091License: GPL
92Group: System Environment/Daemons
paul6bd8fd32003-08-12 12:54:13 +000093Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
94URL: http://www.quagga.net
paul54b25dc2004-09-30 04:56:26 +000095%if %{with_snmp}
paulb63cef72004-08-19 03:36:13 +000096BuildRequires: net-snmp-devel
97Prereq: net-snmp
paul788cdc62003-01-18 00:22:08 +000098%endif
paul54b25dc2004-09-30 04:56:26 +000099%if %{with_vtysh}
paul30b9d892003-01-18 22:57:15 +0000100BuildRequires: readline readline-devel ncurses ncurses-devel
paule7cd37b2005-09-08 15:18:39 +0000101Prereq: ncurses
pauld7ccae22003-01-18 00:24:00 +0000102%endif
paul11890752005-11-05 16:29:54 +0000103BuildRequires: texinfo tetex autoconf pam-devel patch libcap-devel tetex
paul788cdc62003-01-18 00:22:08 +0000104# Initscripts > 5.60 is required for IPv6 support
paul30b9d892003-01-18 22:57:15 +0000105Prereq: initscripts >= 5.60
paule7cd37b2005-09-08 15:18:39 +0000106Prereq: ncurses pam
paul788cdc62003-01-18 00:22:08 +0000107Prereq: /sbin/install-info
108Provides: routingdaemon
109BuildRoot: %{_tmppath}/%{name}-%{version}-root
paul6bd8fd32003-08-12 12:54:13 +0000110Obsoletes: bird gated mrt zebra
paul788cdc62003-01-18 00:22:08 +0000111
112%description
paul6bd8fd32003-08-12 12:54:13 +0000113Quagga is a free software that manages TCP/IP based routing
paul788cdc62003-01-18 00:22:08 +0000114protocol. It takes multi-server and multi-thread approach to resolve
115the current complexity of the Internet.
116
paul6bd8fd32003-08-12 12:54:13 +0000117Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
paul788cdc62003-01-18 00:22:08 +0000118
paul6bd8fd32003-08-12 12:54:13 +0000119Quagga is intended to be used as a Route Server and a Route Reflector. It is
120not a toolkit, it provides full routing power under a new architecture.
121Quagga by design has a process for each protocol.
122
123Quagga is a fork of GNU Zebra.
paul788cdc62003-01-18 00:22:08 +0000124
paul448ed4a2003-03-01 15:43:28 +0000125%package contrib
paul6bd8fd32003-08-12 12:54:13 +0000126Summary: contrib tools for quagga
paul448ed4a2003-03-01 15:43:28 +0000127Group: System Environment/Daemons
128
129%description contrib
paul6bd8fd32003-08-12 12:54:13 +0000130Contributed/3rd party tools which may be of use with quagga.
paul448ed4a2003-03-01 15:43:28 +0000131
paule0626852003-03-18 14:11:36 +0000132%package devel
paul6bd8fd32003-08-12 12:54:13 +0000133Summary: Header and object files for quagga development
paule0626852003-03-18 14:11:36 +0000134Group: System Environment/Daemons
135
136%description devel
paul6bd8fd32003-08-12 12:54:13 +0000137The quagga-devel package contains the header and object files neccessary for
138developing OSPF-API and quagga applications.
paule0626852003-03-18 14:11:36 +0000139
paul788cdc62003-01-18 00:22:08 +0000140%prep
141%setup -q
paul788cdc62003-01-18 00:22:08 +0000142
143%build
ajs7966b972004-11-10 22:02:05 +0000144
145# For standard gcc verbosity, uncomment these lines:
146#CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith"
147#CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
148
149# For ultra gcc verbosity, uncomment these lines also:
150#CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
151#CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
152#CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
153#CFLAGS="${CFLAGS} -Wpacked -Wpadded"
154
paul788cdc62003-01-18 00:22:08 +0000155%configure \
paul54b25dc2004-09-30 04:56:26 +0000156%if !%{with_shared}
157 --disable-shared \
158%endif
159%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000160 --enable-ipv6 \
161%endif
paul54b25dc2004-09-30 04:56:26 +0000162%if %{with_snmp}
paul788cdc62003-01-18 00:22:08 +0000163 --enable-snmp \
164%endif
paul54b25dc2004-09-30 04:56:26 +0000165%if %{with_multipath}
166 --enable-multipath=%{with_multipath} \
paul788cdc62003-01-18 00:22:08 +0000167%endif
paul54b25dc2004-09-30 04:56:26 +0000168%if %{with_tcp_zebra}
paul788cdc62003-01-18 00:22:08 +0000169 --enable-tcp-zebra \
170%endif
paul54b25dc2004-09-30 04:56:26 +0000171%if %{with_nssa}
paul788cdc62003-01-18 00:22:08 +0000172 --enable-nssa \
173%endif
paul54b25dc2004-09-30 04:56:26 +0000174%if %{with_opaque_lsa}
paul788cdc62003-01-18 00:22:08 +0000175 --enable-opaque-lsa \
176%endif
paul54b25dc2004-09-30 04:56:26 +0000177%if %{with_ospf_te}
paul788cdc62003-01-18 00:22:08 +0000178 --enable-ospf-te \
179%endif
paul54b25dc2004-09-30 04:56:26 +0000180%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000181 --enable-vtysh \
182%endif
paul54b25dc2004-09-30 04:56:26 +0000183%if %{with_ospfclient}
paul68980082003-03-25 05:07:42 +0000184 --enable-ospfclient=yes \
185%else
186 --enable-ospfclient=no\
187%endif
paul54b25dc2004-09-30 04:56:26 +0000188%if %{with_ospfapi}
paul68980082003-03-25 05:07:42 +0000189 --enable-ospfapi=yes \
190%else
191 --enable-ospfapi=no \
192%endif
paul54b25dc2004-09-30 04:56:26 +0000193%if %{with_irdp}
paul5b819262004-07-28 14:11:55 +0000194 --enable-irdp=yes \
195%else
196 --enable-irdp=no \
197%endif
paule7cd37b2005-09-08 15:18:39 +0000198%if %{with_rtadv}
199 --enable-rtadv=yes \
200%else
201 --enable-rtadv=no \
202%endif
paul54b25dc2004-09-30 04:56:26 +0000203%if %{with_isisd}
204 --enable-isisd \
205%else
paul69f5d262004-10-07 16:23:36 +0000206 --disable-isisd \
paul54b25dc2004-09-30 04:56:26 +0000207%endif
208%if %{with_pam}
pauledd7c242003-06-04 13:59:38 +0000209 --with-libpam \
paul788cdc62003-01-18 00:22:08 +0000210%endif
paul6bd8fd32003-08-12 12:54:13 +0000211%if %quagga_user
212 --enable-user=%quagga_user \
213 --enable-group=%quagga_user \
pauledd7c242003-06-04 13:59:38 +0000214%endif
215%if %vty_group
216 --enable-vty-group=%vty_group \
217%endif
ajsfc43ecc2005-01-12 16:41:33 +0000218--enable-netlink --enable-gcc-rdynamic
paul788cdc62003-01-18 00:22:08 +0000219
220make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
221
222pushd doc
paul11890752005-11-05 16:29:54 +0000223texi2html -number quagga.texi
paul788cdc62003-01-18 00:22:08 +0000224popd
225
226%install
227rm -rf $RPM_BUILD_ROOT
228
229install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \
paul6bd8fd32003-08-12 12:54:13 +0000230 $RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir}
paul788cdc62003-01-18 00:22:08 +0000231
232make install \
233 DESTDIR=$RPM_BUILD_ROOT
234
paul9a344b72003-08-05 23:24:58 +0000235# Remove this file, as it is uninstalled and causes errors when building on RH9
236rm -rf $RPM_BUILD_ROOT/usr/share/info/dir
237
paul15d74e92003-12-30 11:16:21 +0000238# install etc sources
ajsb3324e22004-12-22 17:52:29 +0000239for daemon in %{all_daemons} ; do
paulda29c6b2004-10-08 00:49:09 +0000240 if [ x"${daemon}" != x"" ] ; then
241 install %{zeb_rh_src}/${daemon}.init \
242 $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon}
243 fi
paul15d74e92003-12-30 11:16:21 +0000244done
paul11890752005-11-05 16:29:54 +0000245install -m644 %{zeb_rh_src}/%{quagga_pam_source} \
paul15d74e92003-12-30 11:16:21 +0000246 $RPM_BUILD_ROOT/etc/pam.d/quagga
247install -m644 %{zeb_rh_src}/quagga.logrotate \
248 $RPM_BUILD_ROOT/etc/logrotate.d/quagga
249install -m644 %{zeb_rh_src}/quagga.sysconfig \
250 $RPM_BUILD_ROOT/etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000251install -d -m750 $RPM_BUILD_ROOT/var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000252
253%pre
254# add vty_group
255%if %vty_group
paule7cd37b2005-09-08 15:18:39 +0000256if getent group %vty_group > /dev/null ; then : ; else \
257 /usr/sbin/groupadd -r %vty_group > /dev/null || : ; fi
pauledd7c242003-06-04 13:59:38 +0000258%endif
paule7cd37b2005-09-08 15:18:39 +0000259
paul6bd8fd32003-08-12 12:54:13 +0000260# add quagga user and group
261%if %quagga_user
paule7cd37b2005-09-08 15:18:39 +0000262# Ensure that quagga_gid gets correctly allocated
263if getent group %quagga_user >/dev/null; then : ; else \
264 /usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \
265fi
266if getent passwd %quagga_user >/dev/null ; then : ; else \
267 /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \
268 -M -r -s /sbin/nologin -c "Quagga routing suite" \
269 -d %_localstatedir %quagga_user 2> /dev/null || : ; \
270fi
pauledd7c242003-06-04 13:59:38 +0000271%endif
paul788cdc62003-01-18 00:22:08 +0000272
paul788cdc62003-01-18 00:22:08 +0000273%post
paul30b9d892003-01-18 22:57:15 +0000274# zebra_spec_add_service <service name> <port/proto> <comment>
paul788cdc62003-01-18 00:22:08 +0000275# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
276
277zebra_spec_add_service ()
278{
279 # Add port /etc/services entry if it isn't already there
paul6b637e92004-10-23 00:48:51 +0000280 if [ -f /etc/services ] && \
281 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
paul788cdc62003-01-18 00:22:08 +0000282 echo "$1 $2 # $3" >> /etc/services
283 fi
284}
285
286zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
287zebra_spec_add_service zebra 2601/tcp "zebra vty"
288zebra_spec_add_service ripd 2602/tcp "RIPd vty"
paul54b25dc2004-09-30 04:56:26 +0000289%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000290zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
pauld7ccae22003-01-18 00:24:00 +0000291%endif
paul788cdc62003-01-18 00:22:08 +0000292zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
293zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
paul54b25dc2004-09-30 04:56:26 +0000294%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000295zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
pauld7ccae22003-01-18 00:24:00 +0000296%endif
paul54b25dc2004-09-30 04:56:26 +0000297%if %{with_ospfapi}
paul7021c422003-07-15 12:52:22 +0000298zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
299%endif
paul54b25dc2004-09-30 04:56:26 +0000300%if %{with_isisd}
jardin5a514b12003-12-23 10:50:21 +0000301zebra_spec_add_service isisd 2608/tcp "ISISd vty"
paul54b25dc2004-09-30 04:56:26 +0000302%endif
paul788cdc62003-01-18 00:22:08 +0000303
paul15d74e92003-12-30 11:16:21 +0000304for daemon in %daemon_list ; do
305 /sbin/chkconfig --add ${daemon}
306done
paul788cdc62003-01-18 00:22:08 +0000307
paul6bd8fd32003-08-12 12:54:13 +0000308/sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000309
310# Create dummy files if they don't exist so basic functions can be used.
311if [ ! -e %{_sysconfdir}/zebra.conf ]; then
312 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
paule7cd37b2005-09-08 15:18:39 +0000313%if %{quagga_user}
314 chown %quagga_user:%quagga_user %{_sysconfdir}/zebra.conf
315%endif
paul788cdc62003-01-18 00:22:08 +0000316 chmod 640 %{_sysconfdir}/zebra.conf
317fi
318if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
319 touch %{_sysconfdir}/vtysh.conf
320 chmod 640 %{_sysconfdir}/vtysh.conf
321fi
322
323%postun
ajsfc43ecc2005-01-12 16:41:33 +0000324if [ "$1" -ge 1 ]; then
325 # Find out which daemons need to be restarted.
ajsb3324e22004-12-22 17:52:29 +0000326 for daemon in %all_daemons ; do
ajsfc43ecc2005-01-12 16:41:33 +0000327 if [ -f /var/lock/subsys/$daemon ]; then
328 eval restart_$daemon=yes
329 else
330 eval restart_$daemon=no
331 fi
paul15d74e92003-12-30 11:16:21 +0000332 done
ajsfc43ecc2005-01-12 16:41:33 +0000333 # Rename restart flags for daemons handled specially.
334 running_zebra="$restart_zebra"
335 restart_zebra=no
336 running_watchquagga="$restart_watchquagga"
337 restart_watchquagga=no
338 # Stop watchquagga first.
339 [ "$running_watchquagga" = yes ] && \
340 /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1
341 # Stop 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 stop >/dev/null 2>&1
346 done
347 # Restart zebra.
348 [ "$running_zebra" = yes ] && \
349 /etc/rc.d/init.d/zebra restart >/dev/null 2>&1
350 # Start all daemons other than zebra and watchquagga.
351 for daemon in %all_daemons ; do
352 eval restart=\$restart_${daemon}
353 [ "$restart" = yes ] && \
354 /etc/rc.d/init.d/$daemon start >/dev/null 2>&1
355 done
356 # Start watchquagga last.
ajsb8540382005-01-15 17:26:48 +0000357 # Avoid postun scriptlet error if watchquagga is not running.
ajsfc43ecc2005-01-12 16:41:33 +0000358 [ "$running_watchquagga" = yes ] && \
ajsb8540382005-01-15 17:26:48 +0000359 /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || :
paul788cdc62003-01-18 00:22:08 +0000360fi
paule7cd37b2005-09-08 15:18:39 +0000361/sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000362
363%preun
364if [ "$1" = "0" ]; then
ajsb3324e22004-12-22 17:52:29 +0000365 for daemon in %all_daemons ; do
paul15d74e92003-12-30 11:16:21 +0000366 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
367 /sbin/chkconfig --del ${daemon}
368 done
369 /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000370fi
371
372%clean
paulb5f310c2004-09-13 13:15:25 +0000373%if !%{keep_build}
374rm -rf $RPM_BUILD_ROOT
375%endif
paul788cdc62003-01-18 00:22:08 +0000376
377%files
378%defattr(-,root,root)
paul448ed4a2003-03-01 15:43:28 +0000379%doc */*.sample* AUTHORS COPYING
paul6bd8fd32003-08-12 12:54:13 +0000380%doc doc/quagga.html
paul30b9d892003-01-18 22:57:15 +0000381%doc doc/mpls
paul8f754982003-01-20 04:55:51 +0000382%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
paul54b25dc2004-09-30 04:56:26 +0000383%if %{quagga_user}
paul6bd8fd32003-08-12 12:54:13 +0000384%dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
385%dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga
386%dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000387%else
paul788cdc62003-01-18 00:22:08 +0000388%dir %attr(750,root,root) %{_sysconfdir}
paul6bd8fd32003-08-12 12:54:13 +0000389%dir %attr(750,root,root) /var/log/quagga
paul788cdc62003-01-18 00:22:08 +0000390%dir %attr(755,root,root) /usr/share/info
paul6bd8fd32003-08-12 12:54:13 +0000391%dir %attr(750,root,root) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000392%endif
paul54b25dc2004-09-30 04:56:26 +0000393%if %{vty_group}
paul6bd8fd32003-08-12 12:54:13 +0000394%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
pauledd7c242003-06-04 13:59:38 +0000395%endif
paul788cdc62003-01-18 00:22:08 +0000396%{_infodir}/*info*
397%{_mandir}/man*/*
paul54b25dc2004-09-30 04:56:26 +0000398%{_sbindir}/zebra
399%{_sbindir}/ospfd
400%{_sbindir}/ripd
401%{_sbindir}/bgpd
ajsb3324e22004-12-22 17:52:29 +0000402%{_sbindir}/watchquagga
paul54b25dc2004-09-30 04:56:26 +0000403%if %{with_ipv6}
404%{_sbindir}/ripngd
405%{_sbindir}/ospf6d
406%endif
407%if %{with_isisd}
408%{_sbindir}/isisd
409%endif
paulcfc18422004-10-23 00:05:41 +0000410%dir %attr(755,root,root) %{_libdir}
paul28f79722004-10-29 05:35:43 +0000411%if %{with_shared}
paule7cd37b2005-09-08 15:18:39 +0000412%dir %{_libdir}
paul2ff9e822004-07-20 11:19:47 +0000413%{_libdir}/lib*.so
414%{_libdir}/lib*.so.*
paul54b25dc2004-09-30 04:56:26 +0000415%endif
416%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000417%{_bindir}/*
pauld7ccae22003-01-18 00:24:00 +0000418%endif
paul6bd8fd32003-08-12 12:54:13 +0000419%config /etc/quagga/[!v]*
paul788cdc62003-01-18 00:22:08 +0000420%config /etc/rc.d/init.d/*
paul15d74e92003-12-30 11:16:21 +0000421%config(noreplace) /etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000422%config(noreplace) /etc/pam.d/quagga
paul788cdc62003-01-18 00:22:08 +0000423%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
424
paul448ed4a2003-03-01 15:43:28 +0000425%files contrib
426%defattr(-,root,root)
427%doc tools
428
paule0626852003-03-18 14:11:36 +0000429%files devel
430%defattr(-,root,root)
paulda29c6b2004-10-08 00:49:09 +0000431%if %{with_ospfclient}
432%{_sbindir}/ospfclient
433%endif
paul28f79722004-10-29 05:35:43 +0000434%{_libdir}/*.a
435%{_libdir}/*.la
paulcfc18422004-10-23 00:05:41 +0000436%dir %attr(755,root,root) %{_includedir}/%{name}
paul28f79722004-10-29 05:35:43 +0000437%{_includedir}/%name/*.h
paulcfc18422004-10-23 00:05:41 +0000438%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
paul28f79722004-10-29 05:35:43 +0000439%{_includedir}/%name/ospfd/*.h
paul54b25dc2004-09-30 04:56:26 +0000440%if %{with_ospfapi}
paulcfc18422004-10-23 00:05:41 +0000441%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
paul28f79722004-10-29 05:35:43 +0000442%{_includedir}/%name/ospfapi/*.h
paul68980082003-03-25 05:07:42 +0000443%endif
paule0626852003-03-18 14:11:36 +0000444
paul788cdc62003-01-18 00:22:08 +0000445%changelog
paule7cd37b2005-09-08 15:18:39 +0000446* Thu Sep 12 2005 Paul Jakma <paul@dishone.st>
447- Steal some changes from Fedora spec file:
448- Add with_rtadv variable
449- Test for groups/users with getent before group/user adding
450- Readline need not be an explicit prerequisite
451- install-info delete should be postun, not preun
452
ajsfc43ecc2005-01-12 16:41:33 +0000453* Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
454- on package upgrade, implement careful, phased restart logic
455- use gcc -rdynamic flag when linking for better backtraces
456
ajsb3324e22004-12-22 17:52:29 +0000457* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsf3931752004-12-23 00:00:58 +0000458- daemonv6_list should contain only IPv6 daemons
459
460* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsb3324e22004-12-22 17:52:29 +0000461- watchquagga added
462- on upgrade, all daemons should be condrestart'ed
463- on removal, all daemons should be stopped
464
paul36002ae2004-11-08 17:36:29 +0000465* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
466- Use makeinfo --html to generate quagga.html
467
paul0df63b52004-11-07 22:12:23 +0000468* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
469- Fix with_ipv6 set to 0 build
470
paulcfc18422004-10-23 00:05:41 +0000471* Sat Oct 23 2004 Paul Jakma <paul@dishone.st>
472- Update to 0.97.2
473
474* Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com>
475- Make directories be owned by the packages concerned
476- Update logrotate scripts to use correct path to killall and use pid files
477
paulda29c6b2004-10-08 00:49:09 +0000478* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
479- Update to 0.97.0
480
paul54b25dc2004-09-30 04:56:26 +0000481* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>
482- build snmp support by default
483- build irdp support
484- build with shared libs
485- devel subpackage for archives and headers
486
paul00bc5602004-01-09 16:30:52 +0000487* Thu Jan 08 2004 Paul Jakma <paul@dishone.st>
488- updated sysconfig files to specify local dir
489- added ospf_dump.c crash quick fix patch
490- added ospfd persistent interface configuration patch
491
paul15d74e92003-12-30 11:16:21 +0000492* Tue Dec 30 2003 Paul Jakma <paul@dishone.st>
493- sync to CVS
494- integrate RH sysconfig patch to specify daemon options (RH)
495- default to have vty listen only to 127.1 (RH)
496- add user with fixed UID/GID (RH)
497- create user with shell /sbin/nologin rather than /bin/false (RH)
498- stop daemons on uninstall (RH)
499- delete info file on %preun, not %postun to avoid deletion on upgrade. (RH)
500- isisd added
501- cleanup tasks carried out for every daemon
502
paul406f7002003-11-02 07:30:52 +0000503* Sun Nov 2 2003 Paul Jakma <paul@dishone.st>
504- Fix -devel package to include all files
505- Sync to 0.96.4
506
paul6bd8fd32003-08-12 12:54:13 +0000507* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
508- Renamed to Quagga
509- Sync to Quagga release 0.96
510
pauledd7c242003-06-04 13:59:38 +0000511* Tue Mar 20 2003 Paul Jakma <paul@dishone.st>
512- zebra privileges support
513
paule0626852003-03-18 14:11:36 +0000514* Mon Mar 18 2003 Paul Jakma <paul@dishone.st>
515- Fix mem leak in 'show thread cpu'
516- Ralph Keller's OSPF-API
517- Amir: Fix configure.ac for net-snmp
518
paul448ed4a2003-03-01 15:43:28 +0000519* Sat Mar 1 2003 Paul Jakma <paul@dishone.st>
520- ospfd IOS prefix to interface matching for 'network' statement
521- temporary fix for PtP and IPv6
522- sync to zebra.org CVS
523
paul8f754982003-01-20 04:55:51 +0000524* Mon Jan 20 2003 Paul Jakma <paul@dishone.st>
525- update to latest cvs
526- Yon's "show thread cpu" patch - 17217
527- walk up tree - 17218
528- ospfd NSSA fixes - 16681
529- ospfd nsm fixes - 16824
530- ospfd OLSA fixes and new feature - 16823
531- KAME and ifindex fixes - 16525
532- spec file changes to allow redhat files to be in tree
533
pauld7ccae22003-01-18 00:24:00 +0000534* Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com>
535- Added conditionals for building with(out) IPv6, vtysh, RIP, BGP
536- Fixed up some build requirements (patch)
537- Added conditional build requirements for vtysh / snmp
538- Added conditional to %files for %_bindir depending on vtysh
539
paul788cdc62003-01-18 00:22:08 +0000540* Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie>
541- update to latest CVS
542- add Greg Troxel's md5 buffer copy/dup fix
543- add RIPv1 fix
544- add Frank's multicast flag fix
545
546* Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie>
547- update to latest CVS
548- timestamped crypt_seqnum patch
549- oi->on_write_q fix
550
551* Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie>
552- update to latest CVS
553- add vtysh 'write-config (integrated|daemon)' patch
554- always 'make rebuild' in vtysh/ to catch new commands
555
556* Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie>
557- update to 0.93b
558
559* Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie>
560- update to latest CVS
561- add "/sbin/ip route flush proto zebra" to zebra RH init on startup
562
563* Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie>
564- update to current CVS
565- add OSPF point to multipoint patch
566- add OSPF bugfixes
567- add BGP hash optimisation patch
568
569* Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie>
570- update to 0.93-pre1 / CVS
571- add link state detection support
572- add generic PtP and RFC3021 support
573- various bug fixes
574
575* Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
576- Fix bug #51336
577
578* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
579- Use generic initscript strings instead of initscript specific
580 ( "Starting foo: " -> "Starting $prog:" )
581
582* Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4
583- Bump the release when rebuilding into the dist.
584
585* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
586- built for Powertools
587
588* Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi>
589- Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org.
590- Update to 0.91a
591- Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc.
592- Should be quite Red Hat'isque now.