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