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