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