]> git.proxmox.com Git - mirror_frr.git/blame - redhat/frr.spec.in
Merge pull request #299 from opensourcerouting/test-ref-out
[mirror_frr.git] / redhat / frr.spec.in
CommitLineData
edd7c245 1# configure options
b64d92a8 2#
3# Some can be overriden on rpmbuild commandline with:
4# rpmbuild --define 'variable value'
f755bf6d 5# (use any value, ie 1 for flag "with_XXXX" definitions)
b64d92a8 6#
30da4585
PJ
7# E.g. rpmbuild --define 'release_rev 02' may be useful if building
8# rpms again and again on the same day, so the newer rpms can be installed.
9# bumping the number each time.
b64d92a8 10
c115e4a4 11####################### FreeRangeRouting (FRR) configure options #########################
1189075b 12# with-feature options
f755bf6d 13%{!?with_tcp_zebra: %global with_tcp_zebra 0 }
c63f5f2c 14%{!?with_pam: %global with_pam 0 }
f755bf6d
MW
15%{!?with_ospfclient: %global with_ospfclient 1 }
16%{!?with_ospfapi: %global with_ospfapi 1 }
17%{!?with_irdp: %global with_irdp 1 }
18%{!?with_rtadv: %global with_rtadv 1 }
b021388f
RW
19%{!?with_mpls: %global with_mpls 0 }
20%{!?with_ldpd: %global with_ldpd 0 }
f755bf6d 21%{!?with_shared: %global with_shared 1 }
c63f5f2c 22%{!?with_multipath: %global with_multipath 256 }
c115e4a4
MW
23%{!?frr_user: %global frr_user frr }
24%{!?vty_group: %global vty_group frrvty }
f755bf6d 25%{!?with_fpm: %global with_fpm 0 }
9473e340 26%{!?with_watchfrr: %global with_watchfrr 1 }
65efcfce 27%{!?with_bgp_vnc: %global with_bgp_vnc 0 }
30b9d89b 28
29# path defines
c115e4a4
MW
30%define _sysconfdir /etc/frr
31%define _sbindir /usr/lib/frr
32%define zeb_src %{_builddir}/%{name}-%{frrversion}
8f754983 33%define zeb_rh_src %{zeb_src}/redhat
34%define zeb_docs %{zeb_src}/doc
c115e4a4 35%define frr_tools %{zeb_src}/tools
c63f5f2c 36%define cumulus_dir %{zeb_src}/cumulus/etc
788cdc6d 37
e0626854 38# defines for configure
c115e4a4 39%define _localstatedir /var/run/frr
1189075b 40############################################################################
41
f755bf6d
MW
42#### Version String tweak
43# Remove invalid characters form version string and replace with _
d4fbc1de 44%{expand: %%global rpmversion %(echo '@VERSION@' | tr [:blank:]- _ )}
c115e4a4 45%define frrversion @VERSION@
1189075b 46
f755bf6d
MW
47#### Check version of texi2html
48# Old versions don't support "--number-footnotes" option.
d4fbc1de 49%{expand: %%global texi2htmlversion %(/usr/bin/texi2html --version | cut -d. -f1)}
1189075b 50
f755bf6d
MW
51#### Check for systemd or init.d (upstart)
52# Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7)
53%{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)}
54#
9473e340 55# If init system is systemd, then always disable watchfrr
f755bf6d
MW
56#
57%if "%{initsystem}" == "systemd"
9473e340 58 # Note: For systems with systemd, watchfrr will NOT be built. Systemd
f755bf6d
MW
59 # takes over the role of restarting crashed processes. Value will
60 # be overwritten with 0 below for systemd independent on the setting here
9473e340 61 %global with_watchfrr 1
f755bf6d 62%endif
7c08d77f 63
f755bf6d
MW
64# if FPM is enabled, then enable tcp_zebra as well
65#
66%if %{with_fpm}
67 %global with_tcp_zebra 1
68%endif
e0626854 69
15d74e93 70# misc internal defines
c115e4a4
MW
71%{!?frr_uid: %global frr_uid 92 }
72%{!?frr_gid: %global frr_gid 92 }
c63f5f2c 73%{!?vty_gid: %global vty_gid 85 }
f755bf6d 74
341969b3 75%define daemon_list zebra ripd ospfd bgpd isisd pimd ripngd ospfd6d
0df63b52 76
b021388f
RW
77%if %{with_ldpd}
78%define daemon_ldpd ldpd
79%else
80%define daemon_ldpd ""
81%endif
82
9473e340
DS
83%if %{with_watchfrr}
84%define daemon_watchfrr watchfrr
f755bf6d 85%else
9473e340 86%define daemon_watchfrr ""
f755bf6d
MW
87%endif
88
9473e340 89%define all_daemons %{daemon_list} %{daemon_ldpd} %{daemon_watchfrr}
b3324e27 90
b5f310cb 91# allow build dir to be kept
f755bf6d 92%{!?keep_build: %global keep_build 0 }
b5f310cb 93
4859e20c 94#release sub-revision (the two digits after the CONFDATE)
c63f5f2c 95%{!?release_rev: %global release_rev 01 }
4859e20c 96
788cdc6d 97Summary: Routing daemon
c115e4a4 98Name: frr
f755bf6d
MW
99Version: %{rpmversion}
100Release: @CONFDATE@%{release_rev}%{?dist}
101License: GPLv2+
102Group: System Environment/Daemons
c115e4a4
MW
103Source0: http://www.freerangerouting.org/releases/frr/%{name}-%{frrversion}.tar.gz
104URL: http://www.freerangerouting.org
105Requires: ncurses json-c
f755bf6d
MW
106Requires(pre): /sbin/install-info
107Requires(preun): /sbin/install-info
108Requires(post): /sbin/install-info
c115e4a4 109BuildRequires: texi2html texinfo autoconf patch libcap-devel groff
30b9d89b 110BuildRequires: readline readline-devel ncurses ncurses-devel
c115e4a4 111BuildRequires: json-c-devel bison flex
f676b06e 112Requires: ncurses initscripts
f755bf6d
MW
113%if %{with_pam}
114BuildRequires: pam-devel
115Requires: pam
116%endif
117%if "%{initsystem}" == "systemd"
118BuildRequires: systemd
119Requires(post): systemd
120Requires(preun): systemd
121Requires(postun): systemd
122%else
788cdc6d 123# Initscripts > 5.60 is required for IPv6 support
fa75585d 124Requires(pre): initscripts >= 5.60
f755bf6d
MW
125%endif
126Provides: routingdaemon = %{version}-%{release}
127BuildRoot: %{_tmppath}/%{name}-%{version}-root
c115e4a4 128Obsoletes: bird gated mrt zebra frr-sysvinit
788cdc6d 129
130%description
c115e4a4 131FreeRangeRouting is a free software that manages TCP/IP based routing
788cdc6d 132protocol. It takes multi-server and multi-thread approach to resolve
133the current complexity of the Internet.
134
c115e4a4
MW
135FreeRangeRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM
136and LDP
788cdc6d 137
c115e4a4 138FreeRangeRouting is a fork of Quagga.
788cdc6d 139
448ed4a2 140%package contrib
c115e4a4 141Summary: contrib tools for frr
448ed4a2 142Group: System Environment/Daemons
143
144%description contrib
c115e4a4 145Contributed/3rd party tools which may be of use with frr.
448ed4a2 146
e0626854 147%package devel
c115e4a4 148Summary: Header and object files for frr development
e0626854 149Group: System Environment/Daemons
f755bf6d 150Requires: %{name} = %{version}-%{release}
e0626854 151
152%description devel
c115e4a4
MW
153The frr-devel package contains the header and object files neccessary for
154developing OSPF-API and frr applications.
e0626854 155
788cdc6d 156%prep
c115e4a4 157%setup -q -n frr-%{frrversion}
788cdc6d 158
159%build
7966b97c 160
161# For standard gcc verbosity, uncomment these lines:
162#CFLAGS="%{optflags} -Wall -Wsign-compare -Wpointer-arith"
163#CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
164
165# For ultra gcc verbosity, uncomment these lines also:
166#CFLAGS="${CFLAGS} -W -Wcast-qual -Wstrict-prototypes"
167#CFLAGS="${CFLAGS} -Wmissing-declarations -Wmissing-noreturn"
168#CFLAGS="${CFLAGS} -Wmissing-format-attribute -Wunreachable-code"
169#CFLAGS="${CFLAGS} -Wpacked -Wpadded"
170
788cdc6d 171%configure \
c63f5f2c 172 --sbindir=%{_sbindir} \
f755bf6d
MW
173 --sysconfdir=%{_sysconfdir} \
174 --libdir=%{_libdir} \
175 --libexecdir=%{_libexecdir} \
176 --localstatedir=%{_localstatedir} \
177 --disable-werror \
54b25dca 178%if !%{with_shared}
179 --disable-shared \
180%endif
54b25dca 181%if %{with_multipath}
182 --enable-multipath=%{with_multipath} \
788cdc6d 183%endif
54b25dca 184%if %{with_tcp_zebra}
788cdc6d 185 --enable-tcp-zebra \
186%endif
788cdc6d 187 --enable-vtysh \
54b25dca 188%if %{with_ospfclient}
68980084 189 --enable-ospfclient=yes \
190%else
191 --enable-ospfclient=no\
192%endif
54b25dca 193%if %{with_ospfapi}
68980084 194 --enable-ospfapi=yes \
195%else
196 --enable-ospfapi=no \
197%endif
54b25dca 198%if %{with_irdp}
5b819262 199 --enable-irdp=yes \
200%else
201 --enable-irdp=no \
202%endif
e7cd37bf 203%if %{with_rtadv}
204 --enable-rtadv=yes \
205%else
206 --enable-rtadv=no \
207%endif
b021388f
RW
208%if %{with_mpls}
209 --enable-mpls=yes \
210%else
211 --disable-mpls \
212%endif
213%if %{with_ldpd}
214 --enable-ldpd \
215%else
216 --disable-ldpd \
217%endif
54b25dca 218%if %{with_pam}
edd7c245 219 --with-libpam \
788cdc6d 220%endif
c115e4a4
MW
221%if 0%{?frr_user:1}
222 --enable-user=%frr_user \
223 --enable-group=%frr_user \
edd7c245 224%endif
f755bf6d 225%if 0%{?vty_group:1}
edd7c245 226 --enable-vty-group=%vty_group \
227%endif
f755bf6d
MW
228%if %{with_fpm}
229 --enable-fpm \
230%else
231 --disable-fpm \
232%endif
9473e340
DS
233%if %{with_watchfrr}
234 --enable-watchfrr \
f755bf6d 235%else
9473e340 236 --disable-watchfrr \
65efcfce
LB
237%endif
238%if %{with_bgp_vnc}
239 --enable-bgp-vnc \
240%else
241 --disable-bgp-vnc \
f755bf6d 242%endif
c63f5f2c 243 --enable-gcc-rdynamic \
8c05b72b 244 --enable-isisd=yes \
c63f5f2c
DS
245 --enable-systemd=yes \
246 --enable-poll=yes
788cdc6d 247
248make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
249
250pushd doc
f755bf6d 251%if %{texi2htmlversion} < 5
c115e4a4 252texi2html --number-sections frr.texi
f755bf6d 253%else
c115e4a4 254texi2html --number-footnotes --number-sections frr.texi
f755bf6d 255%endif
788cdc6d 256popd
257
258%install
c115e4a4
MW
259mkdir -p %{buildroot}/etc/{frr,sysconfig,logrotate.d,pam.d,default} \
260 %{buildroot}/var/log/frr %{buildroot}%{_infodir}
f755bf6d 261make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
788cdc6d 262
9a344b74 263# Remove this file, as it is uninstalled and causes errors when building on RH9
f755bf6d 264rm -rf %{buildroot}/usr/share/info/dir
9a344b74 265
c63f5f2c 266
f755bf6d
MW
267# install /etc sources
268%if "%{initsystem}" == "systemd"
269mkdir -p %{buildroot}%{_unitdir}
c115e4a4 270install %{frr_tools}/frr.service \
d8e4c438 271 %{buildroot}%{_unitdir}/frr.service
f755bf6d
MW
272%else
273mkdir -p %{buildroot}/etc/rc.d/init.d
b3324e27 274for daemon in %{all_daemons} ; do
da29c6b0 275 if [ x"${daemon}" != x"" ] ; then
276 install %{zeb_rh_src}/${daemon}.init \
f755bf6d 277 %{buildroot}/etc/rc.d/init.d/${daemon}
da29c6b0 278 fi
15d74e93 279done
f755bf6d
MW
280%endif
281
c115e4a4
MW
282install %{cumulus_dir}/frr/debian.conf %{buildroot}/etc/frr
283install %{cumulus_dir}/frr/daemons %{buildroot}/etc/frr
284install -m644 %{cumulus_dir}/default/frr %{buildroot}/etc/default
285install -m644 %{zeb_rh_src}/frr.pam \
286 %{buildroot}/etc/pam.d/frr
287install -m644 %{zeb_rh_src}/frr.logrotate \
288 %{buildroot}/etc/logrotate.d/frr
289install -d -m750 %{buildroot}/var/run/frr
edd7c245 290
291%pre
292# add vty_group
f755bf6d 293%if 0%{?vty_group:1}
e7cd37bf 294if getent group %vty_group > /dev/null ; then : ; else \
f755bf6d 295 /usr/sbin/groupadd -r -g %vty_gid %vty_group > /dev/null || : ; fi
edd7c245 296%endif
e7cd37bf 297
c115e4a4
MW
298# add frr user and group
299%if 0%{?frr_user:1}
300# Ensure that frr_gid gets correctly allocated
301if getent group %frr_user >/dev/null; then : ; else \
302 /usr/sbin/groupadd -g %frr_gid %frr_user > /dev/null || : ; \
e7cd37bf 303fi
c115e4a4
MW
304if getent passwd %frr_user >/dev/null ; then : ; else \
305 /usr/sbin/useradd -u %frr_uid -g %frr_gid \
306 -M -r -s /sbin/nologin -c "FreeRangeRouting suite" \
307 -d %_localstatedir %frr_user 2> /dev/null || : ; \
e7cd37bf 308fi
f676b06e 309%if 0%{?vty_group:1}
c115e4a4 310/usr/sbin/usermod -a -G %vty_group %frr_user
edd7c245 311%endif
f676b06e
DS
312%endif
313
788cdc6d 314
788cdc6d 315%post
30b9d89b 316# zebra_spec_add_service <service name> <port/proto> <comment>
788cdc6d 317# e.g. zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
318
319zebra_spec_add_service ()
320{
321 # Add port /etc/services entry if it isn't already there
6b637e96 322 if [ -f /etc/services ] && \
323 ! %__sed -e 's/#.*$//' /etc/services | %__grep -wq $1 ; then
788cdc6d 324 echo "$1 $2 # $3" >> /etc/services
325 fi
326}
327
328zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
329zebra_spec_add_service zebra 2601/tcp "zebra vty"
330zebra_spec_add_service ripd 2602/tcp "RIPd vty"
331zebra_spec_add_service ripngd 2603/tcp "RIPngd vty"
332zebra_spec_add_service ospfd 2604/tcp "OSPFd vty"
333zebra_spec_add_service bgpd 2605/tcp "BGPd vty"
334zebra_spec_add_service ospf6d 2606/tcp "OSPF6d vty"
54b25dca 335%if %{with_ospfapi}
7021c425 336zebra_spec_add_service ospfapi 2607/tcp "OSPF-API"
337%endif
5a514b14 338zebra_spec_add_service isisd 2608/tcp "ISISd vty"
12e41d03 339zebra_spec_add_service pimd 2611/tcp "PIMd vty"
b021388f
RW
340%if %{with_ldpd}
341zebra_spec_add_service ldpd 2612/tcp "LDPd vty"
342%endif
788cdc6d 343
f755bf6d
MW
344%if "%{initsystem}" == "systemd"
345for daemon in %all_daemons ; do
d8e4c438 346 %systemd_post frr.service
f755bf6d
MW
347done
348%else
349for daemon in %all_daemons ; do
15d74e93 350 /sbin/chkconfig --add ${daemon}
351done
f755bf6d 352%endif
788cdc6d 353
c115e4a4 354/sbin/install-info %{_infodir}/frr.info.gz %{_infodir}/dir
788cdc6d 355
356# Create dummy files if they don't exist so basic functions can be used.
357if [ ! -e %{_sysconfdir}/zebra.conf ]; then
358 echo "hostname `hostname`" > %{_sysconfdir}/zebra.conf
c115e4a4
MW
359%if 0%{?frr_user:1}
360 chown %frr_user:%frr_user %{_sysconfdir}/zebra.conf*
e7cd37bf 361%endif
788cdc6d 362 chmod 640 %{_sysconfdir}/zebra.conf
363fi
f755bf6d
MW
364for daemon in %{all_daemons} ; do
365 if [ ! -e %{_sysconfdir}/${daemon}.conf ]; then
366 touch %{_sysconfdir}/${daemon}.conf
c115e4a4
MW
367 %if 0%{?frr_user:1}
368 chown %frr_user:%frr_user %{_sysconfdir}/${daemon}.conf*
f755bf6d
MW
369 %endif
370 fi
371done
9473e340 372%if %{with_watchfrr}
c115e4a4 373 # No config for watchfrr - this is part of /etc/sysconfig/frr
9473e340 374 rm -f %{_sysconfdir}/watchfrr.*
f755bf6d
MW
375%endif
376
788cdc6d 377if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
378 touch %{_sysconfdir}/vtysh.conf
379 chmod 640 %{_sysconfdir}/vtysh.conf
f755bf6d 380%if 0%{?vty_group:1}
c115e4a4 381 chown frr:%{vty_group} %{_sysconfdir}/vtysh.conf*
f755bf6d 382%endif
788cdc6d 383fi
384
385%postun
fc43ecc7 386if [ "$1" -ge 1 ]; then
387 # Find out which daemons need to be restarted.
b3324e27 388 for daemon in %all_daemons ; do
f755bf6d
MW
389 if [ -f /var/lock/subsys/${daemon} ]; then
390 eval restart_${daemon}=yes
fc43ecc7 391 else
f755bf6d 392 eval restart_${daemon}=no
fc43ecc7 393 fi
15d74e93 394 done
fc43ecc7 395 # Rename restart flags for daemons handled specially.
396 running_zebra="$restart_zebra"
397 restart_zebra=no
9473e340
DS
398 %if %{with_watchfrr}
399 running_watchfrr="$restart_watchfrr"
400 restart_watchfrr=no
f755bf6d
MW
401 %endif
402
403 %if "%{initsystem}" == "systemd"
404 ##
405 ## Systemd Version
406 ##
9473e340 407 # No watchfrr for systemd version
f755bf6d
MW
408 #
409 # Stop all daemons other than zebra.
410 for daemon in %all_daemons ; do
411 eval restart=\$restart_${daemon}
412 [ "$restart" = yes ] && \
413 %systemd_postun ${daemon}.service
414 done
415 # Restart zebra.
416 [ "$running_zebra" = yes ] && \
417 %systemd_postun_with_restart $daemon.service
418 # Start all daemons other than zebra.
419 for daemon in %all_daemons ; do
420 eval restart=\$restart_${daemon}
421 [ "$restart" = yes ] && \
422 %systemd_post ${daemon}.service
423 done
424 %else
425 ##
426 ## init.d Version
427 ##
9473e340
DS
428 %if %{with_watchfrr}
429 # Stop watchfrr first.
430 [ "$running_watchfrr" = yes ] && \
431 /etc/rc.d/init.d/watchfrr stop >/dev/null 2>&1
f755bf6d 432 %endif
9473e340 433 # Stop all daemons other than zebra and watchfrr.
f755bf6d
MW
434 for daemon in %all_daemons ; do
435 eval restart=\$restart_${daemon}
436 [ "$restart" = yes ] && \
437 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
438 done
439 # Restart zebra.
440 [ "$running_zebra" = yes ] && \
441 /etc/rc.d/init.d/zebra restart >/dev/null 2>&1
9473e340 442 # Start all daemons other than zebra and watchfrr.
f755bf6d
MW
443 for daemon in %all_daemons ; do
444 eval restart=\$restart_${daemon}
445 [ "$restart" = yes ] && \
446 /etc/rc.d/init.d/${daemon} start >/dev/null 2>&1
447 done
9473e340
DS
448 %if %{with_watchfrr}
449 # Start watchfrr last.
450 # Avoid postun scriptlet error if watchfrr is not running.
451 [ "$running_watchfrr" = yes ] && \
452 /etc/rc.d/init.d/watchfrr start >/dev/null 2>&1 || :
453 %endif
f755bf6d 454 %endif
788cdc6d 455fi
788cdc6d 456
457%preun
f755bf6d
MW
458%if "%{initsystem}" == "systemd"
459 ##
460 ## Systemd Version
461 ##
462 if [ "$1" = "0" ]; then
463 for daemon in %all_daemons ; do
464 %systemd_preun ${daemon}.service
465 done
466 fi
467%else
468 ##
469 ## init.d Version
470 ##
471 if [ "$1" = "0" ]; then
472 for daemon in %all_daemons ; do
473 /etc/rc.d/init.d/${daemon} stop >/dev/null 2>&1
474 /sbin/chkconfig --del ${daemon}
475 done
476 fi
477%endif
c115e4a4 478/sbin/install-info --delete %{_infodir}/frr.info.gz %{_infodir}/dir
788cdc6d 479
480%clean
f755bf6d
MW
481%if !0%{?keep_build:1}
482rm -rf %{buildroot}
b5f310cb 483%endif
788cdc6d 484
485%files
486%defattr(-,root,root)
448ed4a2 487%doc */*.sample* AUTHORS COPYING
c115e4a4 488%doc doc/frr.html
30b9d89b 489%doc doc/mpls
6d19ff21 490%doc ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES
c115e4a4
MW
491%if 0%{?frr_user:1}
492%dir %attr(751,%frr_user,%frr_user) %{_sysconfdir}
493%dir %attr(750,%frr_user,%frr_user) /var/log/frr
494%dir %attr(751,%frr_user,%frr_user) /var/run/frr
edd7c245 495%else
788cdc6d 496%dir %attr(750,root,root) %{_sysconfdir}
c115e4a4
MW
497%dir %attr(750,root,root) /var/log/frr
498%dir %attr(750,root,root) /var/run/frr
edd7c245 499%endif
f755bf6d 500%if 0%{?vty_group:1}
c115e4a4 501%attr(750,%frr_user,%vty_group) %{_sysconfdir}/vtysh.conf.sample
edd7c245 502%endif
c115e4a4 503%{_infodir}/frr.info.gz
788cdc6d 504%{_mandir}/man*/*
54b25dca 505%{_sbindir}/zebra
506%{_sbindir}/ospfd
507%{_sbindir}/ripd
508%{_sbindir}/bgpd
c63f5f2c 509%{_sbindir}/ssd
c115e4a4 510%{_sbindir}/frr
d8e4c438
DS
511%{_sbindir}/frr-reload.py
512%{_sbindir}/frr-reload.pyc
513%{_sbindir}/frr-reload.pyo
9473e340
DS
514%if %{with_watchfrr}
515 %{_sbindir}/watchfrr
f755bf6d 516%endif
54b25dca 517%{_sbindir}/ripngd
518%{_sbindir}/ospf6d
30da4585 519%{_sbindir}/pimd
54b25dca 520%{_sbindir}/isisd
b021388f
RW
521%if %{with_ldpd}
522%{_sbindir}/ldpd
523%endif
28f79728 524%if %{with_shared}
f755bf6d
MW
525%attr(755,root,root) %{_libdir}/lib*.so
526%attr(755,root,root) %{_libdir}/lib*.so.*
54b25dca 527%endif
788cdc6d 528%{_bindir}/*
c115e4a4 529%config /etc/frr/[!v]*
f755bf6d 530%if "%{initsystem}" == "systemd"
d8e4c438 531 %config %{_unitdir}/frr.service
f755bf6d
MW
532%else
533 %config /etc/rc.d/init.d/zebra
9473e340
DS
534 %if %{with_watchfrr}
535 %config /etc/rc.d/init.d/watchfrr
f755bf6d
MW
536 %endif
537 %config /etc/rc.d/init.d/ripd
538 %config /etc/rc.d/init.d/ospfd
539 %config /etc/rc.d/init.d/bgpd
540 %config /etc/rc.d/init.d/ripngd
541 %config /etc/rc.d/init.d/ospf6d
d4fbc1de
DS
542 %config /etc/rc.d/init.d/isisd
543 %config /etc/rc.d/init.d/pimd
b021388f
RW
544 %if %{with_ldpd}
545 %config /etc/rc.d/init.d/ldpd
546 %endif
f755bf6d 547%endif
c115e4a4
MW
548%config(noreplace) /etc/default/frr
549%config(noreplace) /etc/pam.d/frr
788cdc6d 550%config(noreplace) %attr(640,root,root) /etc/logrotate.d/*
551
448ed4a2 552%files contrib
553%defattr(-,root,root)
554%doc tools
555
e0626854 556%files devel
557%defattr(-,root,root)
da29c6b0 558%if %{with_ospfclient}
559%{_sbindir}/ospfclient
560%endif
28f79728 561%{_libdir}/*.a
562%{_libdir}/*.la
cfc1842b 563%dir %attr(755,root,root) %{_includedir}/%{name}
28f79728 564%{_includedir}/%name/*.h
cfc1842b 565%dir %attr(755,root,root) %{_includedir}/%{name}/ospfd
28f79728 566%{_includedir}/%name/ospfd/*.h
54b25dca 567%if %{with_ospfapi}
cfc1842b 568%dir %attr(755,root,root) %{_includedir}/%{name}/ospfapi
28f79728 569%{_includedir}/%name/ospfapi/*.h
68980084 570%endif
e0626854 571
788cdc6d 572%changelog
f89f4f10 573* Fri Jan 6 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
c115e4a4
MW
574- Renamed to frr for FreeRangeRouting fork of Quagga
575
f89f4f10 576* Thu Feb 11 2016 Paul Jakma <paul@jakma.org>
30da4585
PJ
577- remove with_ipv6 conditionals, always build v6
578- Fix UTF-8 char in spec changelog
579- remove quagga.pam.stack, long deprecated.
580
f755bf6d
MW
581* Thu Oct 22 2015 Martin Winter <mwinter@opensourcerouting.org>
582- Cleanup configure: remove --enable-ipv6 (default now), --enable-nssa,
583 --enable-netlink
584- Remove support for old fedora 4/5
585- Fix for package nameing
586- Fix Weekdays of previous changelogs (bogus dates)
587- Add conditional logic to only build tex footnotes with supported texi2html
588- Added pimd to files section and fix double listing of /var/lib*/quagga
589- Numerous fixes to unify upstart/systemd startup into same spec file
9473e340 590- Only allow use of watchfrr for non-systemd systems. no need with systemd
f755bf6d
MW
591
592* Fri Sep 4 2015 Paul Jakma <paul@jakma.org>
7c08d77f
PJ
593- buildreq updates
594- add a default define for with_pimd
595
f755bf6d 596* Mon Sep 12 2005 Paul Jakma <paul@dishone.st>
e7cd37bf 597- Steal some changes from Fedora spec file:
598- Add with_rtadv variable
599- Test for groups/users with getent before group/user adding
600- Readline need not be an explicit prerequisite
601- install-info delete should be postun, not preun
602
fc43ecc7 603* Wed Jan 12 2005 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
604- on package upgrade, implement careful, phased restart logic
605- use gcc -rdynamic flag when linking for better backtraces
606
f3931751 607* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
608- daemonv6_list should contain only IPv6 daemons
609
b3324e27 610* Wed Dec 22 2004 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
9473e340 611- watchfrr added
b3324e27 612- on upgrade, all daemons should be condrestart'ed
613- on removal, all daemons should be stopped
614
36002ae5 615* Mon Nov 08 2004 Paul Jakma <paul@dishone.st>
616- Use makeinfo --html to generate quagga.html
617
0df63b52 618* Sun Nov 07 2004 Paul Jakma <paul@dishone.st>
619- Fix with_ipv6 set to 0 build
620
cfc1842b 621* Sat Oct 23 2004 Paul Jakma <paul@dishone.st>
622- Update to 0.97.2
623
624* Sat Oct 23 2004 Andrew J. Schorr <aschorr@telemetry-investments.com>
625- Make directories be owned by the packages concerned
626- Update logrotate scripts to use correct path to killall and use pid files
627
da29c6b0 628* Fri Oct 08 2004 Paul Jakma <paul@dishone.st>
629- Update to 0.97.0
630
54b25dca 631* Wed Sep 15 2004 Paul Jakma <paul@dishone.st>
632- build snmp support by default
633- build irdp support
634- build with shared libs
635- devel subpackage for archives and headers
636
00bc5603 637* Thu Jan 08 2004 Paul Jakma <paul@dishone.st>
638- updated sysconfig files to specify local dir
639- added ospf_dump.c crash quick fix patch
640- added ospfd persistent interface configuration patch
641
15d74e93 642* Tue Dec 30 2003 Paul Jakma <paul@dishone.st>
643- sync to CVS
644- integrate RH sysconfig patch to specify daemon options (RH)
645- default to have vty listen only to 127.1 (RH)
646- add user with fixed UID/GID (RH)
647- create user with shell /sbin/nologin rather than /bin/false (RH)
648- stop daemons on uninstall (RH)
f755bf6d 649- delete info file on preun, not postun to avoid deletion on upgrade. (RH)
15d74e93 650- isisd added
651- cleanup tasks carried out for every daemon
652
406f7000 653* Sun Nov 2 2003 Paul Jakma <paul@dishone.st>
654- Fix -devel package to include all files
655- Sync to 0.96.4
656
6bd8fd3b 657* Tue Aug 12 2003 Paul Jakma <paul@dishone.st>
658- Renamed to Quagga
659- Sync to Quagga release 0.96
660
f755bf6d 661* Thu Mar 20 2003 Paul Jakma <paul@dishone.st>
edd7c245 662- zebra privileges support
663
f755bf6d 664* Tue Mar 18 2003 Paul Jakma <paul@dishone.st>
e0626854 665- Fix mem leak in 'show thread cpu'
666- Ralph Keller's OSPF-API
667- Amir: Fix configure.ac for net-snmp
668
448ed4a2 669* Sat Mar 1 2003 Paul Jakma <paul@dishone.st>
670- ospfd IOS prefix to interface matching for 'network' statement
671- temporary fix for PtP and IPv6
672- sync to zebra.org CVS
673
8f754983 674* Mon Jan 20 2003 Paul Jakma <paul@dishone.st>
675- update to latest cvs
676- Yon's "show thread cpu" patch - 17217
677- walk up tree - 17218
678- ospfd NSSA fixes - 16681
679- ospfd nsm fixes - 16824
680- ospfd OLSA fixes and new feature - 16823
681- KAME and ifindex fixes - 16525
682- spec file changes to allow redhat files to be in tree
683
d7ccae28 684* Sat Dec 28 2002 Alexander Hoogerhuis <alexh@ihatent.com>
685- Added conditionals for building with(out) IPv6, vtysh, RIP, BGP
686- Fixed up some build requirements (patch)
687- Added conditional build requirements for vtysh / snmp
f755bf6d 688- Added conditional to files for _bindir depending on vtysh
d7ccae28 689
788cdc6d 690* Mon Nov 11 2002 Paul Jakma <paulj@alphyra.ie>
691- update to latest CVS
692- add Greg Troxel's md5 buffer copy/dup fix
693- add RIPv1 fix
694- add Frank's multicast flag fix
695
696* Wed Oct 09 2002 Paul Jakma <paulj@alphyra.ie>
697- update to latest CVS
698- timestamped crypt_seqnum patch
699- oi->on_write_q fix
700
701* Mon Sep 30 2002 Paul Jakma <paulj@alphyra.ie>
702- update to latest CVS
703- add vtysh 'write-config (integrated|daemon)' patch
704- always 'make rebuild' in vtysh/ to catch new commands
705
706* Fri Sep 13 2002 Paul Jakma <paulj@alphyra.ie>
707- update to 0.93b
708
709* Wed Sep 11 2002 Paul Jakma <paulj@alphyra.ie>
710- update to latest CVS
711- add "/sbin/ip route flush proto zebra" to zebra RH init on startup
712
713* Sat Aug 24 2002 Paul Jakma <paulj@alphyra.ie>
714- update to current CVS
715- add OSPF point to multipoint patch
716- add OSPF bugfixes
717- add BGP hash optimisation patch
718
719* Fri Jun 14 2002 Paul Jakma <paulj@alphyra.ie>
720- update to 0.93-pre1 / CVS
721- add link state detection support
722- add generic PtP and RFC3021 support
723- various bug fixes
724
725* Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
726- Fix bug #51336
727
f755bf6d 728* Wed Aug 1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
788cdc6d 729- Use generic initscript strings instead of initscript specific
730 ( "Starting foo: " -> "Starting $prog:" )
731
732* Fri Jul 27 2001 Elliot Lee <sopwith@redhat.com> 0.91a-4
733- Bump the release when rebuilding into the dist.
734
735* Tue Feb 6 2001 Tim Powers <timp@redhat.com>
736- built for Powertools
737
738* Sun Feb 4 2001 Pekka Savola <pekkas@netcore.fi>
739- Hacked up from PLD Linux 0.90-1, Mandrake 0.90-1mdk and one from zebra.org.
740- Update to 0.91a
741- Very heavy modifications to init.d/*, .spec, pam, i18n, logrotate, etc.
742- Should be quite Red Hat'isque now.