blob: bb0a1d02d9683dd9e60ff34e11c2c855a6f15f1b [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
7%{!?with_snmp: %define with_snmp 1 }
8%{!?with_vtysh: %define with_vtysh 1 }
9%{!?with_ospf_te: %define with_ospf_te 1 }
10%{!?with_nssa: %define with_nssa 1 }
11%{!?with_opaque_lsa: %define with_opaque_lsa 1 }
12%{!?with_tcp_zebra: %define with_tcp_zebra 0 }
13%{!?with_vtysh: %define with_vtysh 1 }
14%{!?with_pam: %define with_pam 1 }
15%{!?with_ipv6: %define with_ipv6 1 }
16%{!?with_ospfclient: %define with_ospfclient 1 }
17%{!?with_ospfapi: %define with_ospfapi 1 }
18%{!?with_irdp: %define with_irdp 1 }
paul9edbc8f2005-04-26 02:23:44 +000019%{!?with_isisd: %define with_isisd 1 }
paulb64d92a2005-04-25 15:13:42 +000020%{!?with_shared: %define with_shared 1 }
21%{!?with_multipath: %define with_multipath 64 }
22%{!?quagga_user: %define quagga_user quagga }
23%{!?vty_group: %define vty_group quaggavty }
paul30b9d892003-01-18 22:57:15 +000024
25# path defines
paul6bd8fd32003-08-12 12:54:13 +000026%define _sysconfdir /etc/quagga
paul8f754982003-01-20 04:55:51 +000027%define zeb_src %{_builddir}/%{name}-%{version}
28%define zeb_rh_src %{zeb_src}/redhat
29%define zeb_docs %{zeb_src}/doc
paul788cdc62003-01-18 00:22:08 +000030
paule0626852003-03-18 14:11:36 +000031# defines for configure
paul6bd8fd32003-08-12 12:54:13 +000032%define _libexecdir %{_exec_prefix}/libexec/quagga
paul6bd8fd32003-08-12 12:54:13 +000033%define _libdir %{_exec_prefix}/%{_lib}/quagga
paul15d74e92003-12-30 11:16:21 +000034%define _includedir %{_prefix}/include
paul6bd8fd32003-08-12 12:54:13 +000035%define _localstatedir /var/run/quagga
paule0626852003-03-18 14:11:36 +000036
paul15d74e92003-12-30 11:16:21 +000037# misc internal defines
paulb64d92a2005-04-25 15:13:42 +000038%{!?quagga_uid: %define quagga_uid 92 }
39%{!?quagga_gid: %define quagga_gid 92 }
paul54b25dc2004-09-30 04:56:26 +000040%define daemon_list zebra ripd ospfd bgpd
paul0df63b52004-11-07 22:12:23 +000041
paul54b25dc2004-09-30 04:56:26 +000042%if %{with_ipv6}
ajsf3931752004-12-23 00:00:58 +000043%define daemonv6_list ripngd ospf6d
paul0df63b52004-11-07 22:12:23 +000044%else
45%define daemonv6_list ""
paul54b25dc2004-09-30 04:56:26 +000046%endif
paul0df63b52004-11-07 22:12:23 +000047
paul54b25dc2004-09-30 04:56:26 +000048%if %{with_isisd}
paul69f5d262004-10-07 16:23:36 +000049%define daemon_other isisd
50%else
51%define daemon_other ""
paul15d74e92003-12-30 11:16:21 +000052%endif
53
ajsb3324e22004-12-22 17:52:29 +000054%define all_daemons %{daemon_list} %{daemonv6_list} %{daemon_other} watchquagga
55
paulb5f310c2004-09-13 13:15:25 +000056# allow build dir to be kept
paulb64d92a2005-04-25 15:13:42 +000057%{!?keep_build: %define keep_build 0 }
paulb5f310c2004-09-13 13:15:25 +000058
paul788cdc62003-01-18 00:22:08 +000059Summary: Routing daemon
paul6bd8fd32003-08-12 12:54:13 +000060Name: quagga
paul6382b6f2003-05-20 00:17:45 +000061Version: @VERSION@
pauledd7c242003-06-04 13:59:38 +000062Release: @CONFDATE@01
paul788cdc62003-01-18 00:22:08 +000063License: GPL
64Group: System Environment/Daemons
paul6bd8fd32003-08-12 12:54:13 +000065Source0: http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
66URL: http://www.quagga.net
paul54b25dc2004-09-30 04:56:26 +000067%if %{with_snmp}
paulb63cef72004-08-19 03:36:13 +000068BuildRequires: net-snmp-devel
69Prereq: net-snmp
paul788cdc62003-01-18 00:22:08 +000070%endif
paul54b25dc2004-09-30 04:56:26 +000071%if %{with_vtysh}
paul30b9d892003-01-18 22:57:15 +000072BuildRequires: readline readline-devel ncurses ncurses-devel
pauld7ccae22003-01-18 00:24:00 +000073Prereq: readline ncurses
74%endif
paul15d74e92003-12-30 11:16:21 +000075BuildRequires: texinfo tetex autoconf pam-devel patch libcap-devel
paul788cdc62003-01-18 00:22:08 +000076# Initscripts > 5.60 is required for IPv6 support
paul30b9d892003-01-18 22:57:15 +000077Prereq: initscripts >= 5.60
paul45315b52003-08-14 05:23:50 +000078Prereq: ncurses readline pam
paul788cdc62003-01-18 00:22:08 +000079Prereq: /sbin/install-info
80Provides: routingdaemon
81BuildRoot: %{_tmppath}/%{name}-%{version}-root
paul6bd8fd32003-08-12 12:54:13 +000082Obsoletes: bird gated mrt zebra
paul788cdc62003-01-18 00:22:08 +000083
84%description
paul6bd8fd32003-08-12 12:54:13 +000085Quagga is a free software that manages TCP/IP based routing
paul788cdc62003-01-18 00:22:08 +000086protocol. It takes multi-server and multi-thread approach to resolve
87the current complexity of the Internet.
88
paul6bd8fd32003-08-12 12:54:13 +000089Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
paul788cdc62003-01-18 00:22:08 +000090
paul6bd8fd32003-08-12 12:54:13 +000091Quagga is intended to be used as a Route Server and a Route Reflector. It is
92not a toolkit, it provides full routing power under a new architecture.
93Quagga by design has a process for each protocol.
94
95Quagga is a fork of GNU Zebra.
paul788cdc62003-01-18 00:22:08 +000096
paul448ed4a2003-03-01 15:43:28 +000097%package contrib
paul6bd8fd32003-08-12 12:54:13 +000098Summary: contrib tools for quagga
paul448ed4a2003-03-01 15:43:28 +000099Group: System Environment/Daemons
100
101%description contrib
paul6bd8fd32003-08-12 12:54:13 +0000102Contributed/3rd party tools which may be of use with quagga.
paul448ed4a2003-03-01 15:43:28 +0000103
paule0626852003-03-18 14:11:36 +0000104%package devel
paul6bd8fd32003-08-12 12:54:13 +0000105Summary: Header and object files for quagga development
paule0626852003-03-18 14:11:36 +0000106Group: System Environment/Daemons
107
108%description devel
paul6bd8fd32003-08-12 12:54:13 +0000109The quagga-devel package contains the header and object files neccessary for
110developing OSPF-API and quagga applications.
paule0626852003-03-18 14:11:36 +0000111
paul788cdc62003-01-18 00:22:08 +0000112%prep
113%setup -q
paul788cdc62003-01-18 00:22:08 +0000114
115%build
ajs7966b972004-11-10 22:02:05 +0000116
117# For standard gcc verbosity, uncomment these lines:
118#CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith"
119#CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
120
121# For ultra gcc verbosity, uncomment these lines also:
122#CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
123#CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
124#CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
125#CFLAGS="${CFLAGS} -Wpacked -Wpadded"
126
paul788cdc62003-01-18 00:22:08 +0000127%configure \
paul54b25dc2004-09-30 04:56:26 +0000128%if !%{with_shared}
129 --disable-shared \
130%endif
131%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000132 --enable-ipv6 \
133%endif
paul54b25dc2004-09-30 04:56:26 +0000134%if %{with_snmp}
paul788cdc62003-01-18 00:22:08 +0000135 --enable-snmp \
136%endif
paul54b25dc2004-09-30 04:56:26 +0000137%if %{with_multipath}
138 --enable-multipath=%{with_multipath} \
paul788cdc62003-01-18 00:22:08 +0000139%endif
paul54b25dc2004-09-30 04:56:26 +0000140%if %{with_tcp_zebra}
paul788cdc62003-01-18 00:22:08 +0000141 --enable-tcp-zebra \
142%endif
paul54b25dc2004-09-30 04:56:26 +0000143%if %{with_nssa}
paul788cdc62003-01-18 00:22:08 +0000144 --enable-nssa \
145%endif
paul54b25dc2004-09-30 04:56:26 +0000146%if %{with_opaque_lsa}
paul788cdc62003-01-18 00:22:08 +0000147 --enable-opaque-lsa \
148%endif
paul54b25dc2004-09-30 04:56:26 +0000149%if %{with_ospf_te}
paul788cdc62003-01-18 00:22:08 +0000150 --enable-ospf-te \
151%endif
paul54b25dc2004-09-30 04:56:26 +0000152%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000153 --enable-vtysh \
154%endif
paul54b25dc2004-09-30 04:56:26 +0000155%if %{with_ospfclient}
paul68980082003-03-25 05:07:42 +0000156 --enable-ospfclient=yes \
157%else
158 --enable-ospfclient=no\
159%endif
paul54b25dc2004-09-30 04:56:26 +0000160%if %{with_ospfapi}
paul68980082003-03-25 05:07:42 +0000161 --enable-ospfapi=yes \
162%else
163 --enable-ospfapi=no \
164%endif
paul54b25dc2004-09-30 04:56:26 +0000165%if %{with_irdp}
paul5b819262004-07-28 14:11:55 +0000166 --enable-irdp=yes \
167%else
168 --enable-irdp=no \
169%endif
paul54b25dc2004-09-30 04:56:26 +0000170%if %{with_isisd}
171 --enable-isisd \
172%else
paul69f5d262004-10-07 16:23:36 +0000173 --disable-isisd \
paul54b25dc2004-09-30 04:56:26 +0000174%endif
175%if %{with_pam}
pauledd7c242003-06-04 13:59:38 +0000176 --with-libpam \
paul788cdc62003-01-18 00:22:08 +0000177%endif
paul6bd8fd32003-08-12 12:54:13 +0000178%if %quagga_user
179 --enable-user=%quagga_user \
180 --enable-group=%quagga_user \
pauledd7c242003-06-04 13:59:38 +0000181%endif
182%if %vty_group
183 --enable-vty-group=%vty_group \
184%endif
ajsfc43ecc2005-01-12 16:41:33 +0000185--enable-netlink --enable-gcc-rdynamic
paul788cdc62003-01-18 00:22:08 +0000186
187make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
188
189pushd doc
paul36002ae2004-11-08 17:36:29 +0000190makeinfo --no-split --html -o quagga.html quagga.texi
paul788cdc62003-01-18 00:22:08 +0000191popd
192
193%install
194rm -rf $RPM_BUILD_ROOT
195
196install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,pam.d} \
paul6bd8fd32003-08-12 12:54:13 +0000197 $RPM_BUILD_ROOT/var/log/quagga $RPM_BUILD_ROOT%{_infodir}
paul788cdc62003-01-18 00:22:08 +0000198
199make install \
200 DESTDIR=$RPM_BUILD_ROOT
201
paul9a344b72003-08-05 23:24:58 +0000202# Remove this file, as it is uninstalled and causes errors when building on RH9
203rm -rf $RPM_BUILD_ROOT/usr/share/info/dir
204
paul15d74e92003-12-30 11:16:21 +0000205# install etc sources
ajsb3324e22004-12-22 17:52:29 +0000206for daemon in %{all_daemons} ; do
paulda29c6b2004-10-08 00:49:09 +0000207 if [ x"${daemon}" != x"" ] ; then
208 install %{zeb_rh_src}/${daemon}.init \
209 $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon}
210 fi
paul15d74e92003-12-30 11:16:21 +0000211done
212install -m644 %{zeb_rh_src}/quagga.pam \
213 $RPM_BUILD_ROOT/etc/pam.d/quagga
214install -m644 %{zeb_rh_src}/quagga.logrotate \
215 $RPM_BUILD_ROOT/etc/logrotate.d/quagga
216install -m644 %{zeb_rh_src}/quagga.sysconfig \
217 $RPM_BUILD_ROOT/etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000218install -d -m750 $RPM_BUILD_ROOT/var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000219
220%pre
221# add vty_group
222%if %vty_group
223groupadd -r %vty_group 2> /dev/null || :
224%endif
paul6bd8fd32003-08-12 12:54:13 +0000225# add quagga user and group
226%if %quagga_user
paul15d74e92003-12-30 11:16:21 +0000227/usr/sbin/groupadd -g %quagga_gid quagga 2> /dev/null || :
228/usr/sbin/useradd -u %quagga_uid -g %quagga_gid \
229 -M -r -s /sbin/nologin -c "Quagga routing suite" \
paul6bd8fd32003-08-12 12:54:13 +0000230 -d %_localstatedir %quagga_user 2> /dev/null || :
pauledd7c242003-06-04 13:59:38 +0000231%endif
paul788cdc62003-01-18 00:22:08 +0000232
paul788cdc62003-01-18 00:22:08 +0000233%post
paul30b9d892003-01-18 22:57:15 +0000234# zebra_spec_add_service <service name> <port/proto> <comment>
paul788cdc62003-01-18 00:22:08 +0000235# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
236
237zebra_spec_add_service ()
238{
239 # Add port /etc/services entry if it isn't already there
paul6b637e92004-10-23 00:48:51 +0000240 if [ -f /etc/services ] && \
241 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
paul788cdc62003-01-18 00:22:08 +0000242 echo "$1 $2 # $3" >> /etc/services
243 fi
244}
245
246zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
247zebra_spec_add_service zebra 2601/tcp "zebra vty"
248zebra_spec_add_service ripd 2602/tcp "RIPd vty"
paul54b25dc2004-09-30 04:56:26 +0000249%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000250zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
pauld7ccae22003-01-18 00:24:00 +0000251%endif
paul788cdc62003-01-18 00:22:08 +0000252zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
253zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
paul54b25dc2004-09-30 04:56:26 +0000254%if %{with_ipv6}
paul788cdc62003-01-18 00:22:08 +0000255zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
pauld7ccae22003-01-18 00:24:00 +0000256%endif
paul54b25dc2004-09-30 04:56:26 +0000257%if %{with_ospfapi}
paul7021c422003-07-15 12:52:22 +0000258zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
259%endif
paul54b25dc2004-09-30 04:56:26 +0000260%if %{with_isisd}
jardin5a514b12003-12-23 10:50:21 +0000261zebra_spec_add_service isisd 2608/tcp "ISISd vty"
paul54b25dc2004-09-30 04:56:26 +0000262%endif
paul788cdc62003-01-18 00:22:08 +0000263
paul15d74e92003-12-30 11:16:21 +0000264for daemon in %daemon_list ; do
265 /sbin/chkconfig --add ${daemon}
266done
paul788cdc62003-01-18 00:22:08 +0000267
paul6bd8fd32003-08-12 12:54:13 +0000268/sbin/install-info %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000269
270# Create dummy files if they don't exist so basic functions can be used.
271if [ ! -e %{_sysconfdir}/zebra.conf ]; then
272 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
273 chmod 640 %{_sysconfdir}/zebra.conf
274fi
275if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
276 touch %{_sysconfdir}/vtysh.conf
277 chmod 640 %{_sysconfdir}/vtysh.conf
278fi
279
280%postun
ajsfc43ecc2005-01-12 16:41:33 +0000281if [ "$1" -ge 1 ]; then
282 # Find out which daemons need to be restarted.
ajsb3324e22004-12-22 17:52:29 +0000283 for daemon in %all_daemons ; do
ajsfc43ecc2005-01-12 16:41:33 +0000284 if [ -f /var/lock/subsys/$daemon ]; then
285 eval restart_$daemon=yes
286 else
287 eval restart_$daemon=no
288 fi
paul15d74e92003-12-30 11:16:21 +0000289 done
ajsfc43ecc2005-01-12 16:41:33 +0000290 # Rename restart flags for daemons handled specially.
291 running_zebra="$restart_zebra"
292 restart_zebra=no
293 running_watchquagga="$restart_watchquagga"
294 restart_watchquagga=no
295 # Stop watchquagga first.
296 [ "$running_watchquagga" = yes ] && \
297 /etc/rc.d/init.d/watchquagga stop >/dev/null 2>&1
298 # Stop all daemons other than zebra and watchquagga.
299 for daemon in %all_daemons ; do
300 eval restart=\$restart_${daemon}
301 [ "$restart" = yes ] && \
302 /etc/rc.d/init.d/$daemon stop >/dev/null 2>&1
303 done
304 # Restart zebra.
305 [ "$running_zebra" = yes ] && \
306 /etc/rc.d/init.d/zebra restart >/dev/null 2>&1
307 # Start all daemons other than zebra and watchquagga.
308 for daemon in %all_daemons ; do
309 eval restart=\$restart_${daemon}
310 [ "$restart" = yes ] && \
311 /etc/rc.d/init.d/$daemon start >/dev/null 2>&1
312 done
313 # Start watchquagga last.
ajsb8540382005-01-15 17:26:48 +0000314 # Avoid postun scriptlet error if watchquagga is not running.
ajsfc43ecc2005-01-12 16:41:33 +0000315 [ "$running_watchquagga" = yes ] && \
ajsb8540382005-01-15 17:26:48 +0000316 /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || :
paul788cdc62003-01-18 00:22:08 +0000317fi
paul788cdc62003-01-18 00:22:08 +0000318
319%preun
320if [ "$1" = "0" ]; then
ajsb3324e22004-12-22 17:52:29 +0000321 for daemon in %all_daemons ; do
paul15d74e92003-12-30 11:16:21 +0000322 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
323 /sbin/chkconfig --del ${daemon}
324 done
325 /sbin/install-info --delete %{_infodir}/quagga.info.gz %{_infodir}/dir
paul788cdc62003-01-18 00:22:08 +0000326fi
327
328%clean
paulb5f310c2004-09-13 13:15:25 +0000329%if !%{keep_build}
330rm -rf $RPM_BUILD_ROOT
331%endif
paul788cdc62003-01-18 00:22:08 +0000332
333%files
334%defattr(-,root,root)
paul448ed4a2003-03-01 15:43:28 +0000335%doc */*.sample* AUTHORS COPYING
paul6bd8fd32003-08-12 12:54:13 +0000336%doc doc/quagga.html
paul30b9d892003-01-18 22:57:15 +0000337%doc doc/mpls
paul8f754982003-01-20 04:55:51 +0000338%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
paul54b25dc2004-09-30 04:56:26 +0000339%if %{quagga_user}
paul6bd8fd32003-08-12 12:54:13 +0000340%dir %attr(751,%quagga_user,%quagga_user) %{_sysconfdir}
341%dir %attr(750,%quagga_user,%quagga_user) /var/log/quagga
342%dir %attr(751,%quagga_user,%quagga_user) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000343%else
paul788cdc62003-01-18 00:22:08 +0000344%dir %attr(750,root,root) %{_sysconfdir}
paul6bd8fd32003-08-12 12:54:13 +0000345%dir %attr(750,root,root) /var/log/quagga
paul788cdc62003-01-18 00:22:08 +0000346%dir %attr(755,root,root) /usr/share/info
paul6bd8fd32003-08-12 12:54:13 +0000347%dir %attr(750,root,root) /var/run/quagga
pauledd7c242003-06-04 13:59:38 +0000348%endif
paul54b25dc2004-09-30 04:56:26 +0000349%if %{vty_group}
paul6bd8fd32003-08-12 12:54:13 +0000350%attr(750,%quagga_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
pauledd7c242003-06-04 13:59:38 +0000351%endif
paul788cdc62003-01-18 00:22:08 +0000352%{_infodir}/*info*
353%{_mandir}/man*/*
paul54b25dc2004-09-30 04:56:26 +0000354%{_sbindir}/zebra
355%{_sbindir}/ospfd
356%{_sbindir}/ripd
357%{_sbindir}/bgpd
ajsb3324e22004-12-22 17:52:29 +0000358%{_sbindir}/watchquagga
paul54b25dc2004-09-30 04:56:26 +0000359%if %{with_ipv6}
360%{_sbindir}/ripngd
361%{_sbindir}/ospf6d
362%endif
363%if %{with_isisd}
364%{_sbindir}/isisd
365%endif
paulcfc18422004-10-23 00:05:41 +0000366%dir %attr(755,root,root) %{_libdir}
paul28f79722004-10-29 05:35:43 +0000367%if %{with_shared}
paul2ff9e822004-07-20 11:19:47 +0000368%{_libdir}/lib*.so
369%{_libdir}/lib*.so.*
paul54b25dc2004-09-30 04:56:26 +0000370%endif
371%if %{with_vtysh}
paul788cdc62003-01-18 00:22:08 +0000372%{_bindir}/*
pauld7ccae22003-01-18 00:24:00 +0000373%endif
paul6bd8fd32003-08-12 12:54:13 +0000374%config /etc/quagga/[!v]*
paul788cdc62003-01-18 00:22:08 +0000375%config /etc/rc.d/init.d/*
paul15d74e92003-12-30 11:16:21 +0000376%config(noreplace) /etc/sysconfig/quagga
paul6bd8fd32003-08-12 12:54:13 +0000377%config(noreplace) /etc/pam.d/quagga
paul788cdc62003-01-18 00:22:08 +0000378%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
379
paul448ed4a2003-03-01 15:43:28 +0000380%files contrib
381%defattr(-,root,root)
382%doc tools
383
paule0626852003-03-18 14:11:36 +0000384%files devel
385%defattr(-,root,root)
paulda29c6b2004-10-08 00:49:09 +0000386%if %{with_ospfclient}
387%{_sbindir}/ospfclient
388%endif
paul28f79722004-10-29 05:35:43 +0000389%{_libdir}/*.a
390%{_libdir}/*.la
paulcfc18422004-10-23 00:05:41 +0000391%dir %attr(755,root,root) %{_includedir}/%{name}
paul28f79722004-10-29 05:35:43 +0000392%{_includedir}/%name/*.h
paulcfc18422004-10-23 00:05:41 +0000393%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
paul28f79722004-10-29 05:35:43 +0000394%{_includedir}/%name/ospfd/*.h
paul54b25dc2004-09-30 04:56:26 +0000395%if %{with_ospfapi}
paulcfc18422004-10-23 00:05:41 +0000396%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
paul28f79722004-10-29 05:35:43 +0000397%{_includedir}/%name/ospfapi/*.h
paul68980082003-03-25 05:07:42 +0000398%endif
paule0626852003-03-18 14:11:36 +0000399
paul788cdc62003-01-18 00:22:08 +0000400%changelog
paul15d74e92003-12-30 11:16:21 +0000401%changelog
ajsfc43ecc2005-01-12 16:41:33 +0000402* Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
403- on package upgrade, implement careful, phased restart logic
404- use gcc -rdynamic flag when linking for better backtraces
405
ajsb3324e22004-12-22 17:52:29 +0000406* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsf3931752004-12-23 00:00:58 +0000407- daemonv6_list should contain only IPv6 daemons
408
409* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajsb3324e22004-12-22 17:52:29 +0000410- watchquagga added
411- on upgrade, all daemons should be condrestart'ed
412- on removal, all daemons should be stopped
413
paul36002ae2004-11-08 17:36:29 +0000414* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
415- Use makeinfo --html to generate quagga.html
416
paul0df63b52004-11-07 22:12:23 +0000417* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
418- Fix with_ipv6 set to 0 build
419
paulcfc18422004-10-23 00:05:41 +0000420* Sat Oct 23 2004 Paul Jakma <paul@dishone.st>
421- Update to 0.97.2
422
423* Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com>
424- Make directories be owned by the packages concerned
425- Update logrotate scripts to use correct path to killall and use pid files
426
paulda29c6b2004-10-08 00:49:09 +0000427* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
428- Update to 0.97.0
429
paul54b25dc2004-09-30 04:56:26 +0000430* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>
431- build snmp support by default
432- build irdp support
433- build with shared libs
434- devel subpackage for archives and headers
435
paul00bc5602004-01-09 16:30:52 +0000436* Thu Jan 08 2004 Paul Jakma <paul@dishone.st>
437- updated sysconfig files to specify local dir
438- added ospf_dump.c crash quick fix patch
439- added ospfd persistent interface configuration patch
440
paul15d74e92003-12-30 11:16:21 +0000441* Tue Dec 30 2003 Paul Jakma <paul@dishone.st>
442- sync to CVS
443- integrate RH sysconfig patch to specify daemon options (RH)
444- default to have vty listen only to 127.1 (RH)
445- add user with fixed UID/GID (RH)
446- create user with shell /sbin/nologin rather than /bin/false (RH)
447- stop daemons on uninstall (RH)
448- delete info file on %preun, not %postun to avoid deletion on upgrade. (RH)
449- isisd added
450- cleanup tasks carried out for every daemon
451
paul406f7002003-11-02 07:30:52 +0000452* Sun Nov 2 2003 Paul Jakma <paul@dishone.st>
453- Fix -devel package to include all files
454- Sync to 0.96.4
455
paul6bd8fd32003-08-12 12:54:13 +0000456* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
457- Renamed to Quagga
458- Sync to Quagga release 0.96
459
pauledd7c242003-06-04 13:59:38 +0000460* Tue Mar 20 2003 Paul Jakma <paul@dishone.st>
461- zebra privileges support
462
paule0626852003-03-18 14:11:36 +0000463* Mon Mar 18 2003 Paul Jakma <paul@dishone.st>
464- Fix mem leak in 'show thread cpu'
465- Ralph Keller's OSPF-API
466- Amir: Fix configure.ac for net-snmp
467
paul448ed4a2003-03-01 15:43:28 +0000468* Sat Mar 1 2003 Paul Jakma <paul@dishone.st>
469- ospfd IOS prefix to interface matching for 'network' statement
470- temporary fix for PtP and IPv6
471- sync to zebra.org CVS
472
paul8f754982003-01-20 04:55:51 +0000473* Mon Jan 20 2003 Paul Jakma <paul@dishone.st>
474- update to latest cvs
475- Yon's "show thread cpu" patch - 17217
476- walk up tree - 17218
477- ospfd NSSA fixes - 16681
478- ospfd nsm fixes - 16824
479- ospfd OLSA fixes and new feature - 16823
480- KAME and ifindex fixes - 16525
481- spec file changes to allow redhat files to be in tree
482
pauld7ccae22003-01-18 00:24:00 +0000483* Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com>
484- Added conditionals for building with(out) IPv6, vtysh, RIP, BGP
485- Fixed up some build requirements (patch)
486- Added conditional build requirements for vtysh / snmp
487- Added conditional to %files for %_bindir depending on vtysh
488
paul788cdc62003-01-18 00:22:08 +0000489* Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie>
490- update to latest CVS
491- add Greg Troxel's md5 buffer copy/dup fix
492- add RIPv1 fix
493- add Frank's multicast flag fix
494
495* Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie>
496- update to latest CVS
497- timestamped crypt_seqnum patch
498- oi->on_write_q fix
499
500* Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie>
501- update to latest CVS
502- add vtysh 'write-config (integrated|daemon)' patch
503- always 'make rebuild' in vtysh/ to catch new commands
504
505* Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie>
506- update to 0.93b
507
508* Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie>
509- update to latest CVS
510- add "/sbin/ip route flush proto zebra" to zebra RH init on startup
511
512* Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie>
513- update to current CVS
514- add OSPF point to multipoint patch
515- add OSPF bugfixes
516- add BGP hash optimisation patch
517
518* Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie>
519- update to 0.93-pre1 / CVS
520- add link state detection support
521- add generic PtP and RFC3021 support
522- various bug fixes
523
524* Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
525- Fix bug #51336
526
527* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
528- Use generic initscript strings instead of initscript specific
529 ( "Starting foo: " -> "Starting $prog:" )
530
531* Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4
532- Bump the release when rebuilding into the dist.
533
534* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
535- built for Powertools
536
537* Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi>
538- Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org.
539- Update to 0.91a
540- Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc.
541- Should be quite Red Hat'isque now.