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