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