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