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