%bcond_without snmp %bcond_without vrrp %bcond_without sha1 %bcond_with profile %bcond_with debug %if 0%{?rhel} && 0%{?rhel} <= 6 %bcond_with nftables %bcond_with track_process %bcond_with libiptc %else %bcond_without nftables %bcond_without track_process %bcond_without libiptc %endif %global _hardened_build 1 Name: keepalived Summary: High Availability monitor built upon LVS, VRRP and service pollers Version: 2.2.1 Release: 1%{?dist} License: GPLv2+ URL: http://www.keepalived.org/ Group: System Environment/Daemons Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz Source1: keepalived.service Source2: keepalived.init # distribution specific definitions %define use_systemd (0%{?fedora} && 0%{?fedora} >= 18) || (0%{?rhel} && 0%{?rhel} >= 7) || (0%{?suse_version} == 1315) %if %{use_systemd} Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %else Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if %{with snmp} BuildRequires: net-snmp-devel %endif %if %{use_systemd} BuildRequires: systemd-units %endif BuildRequires: openssl-devel BuildRequires: libnl3-devel BuildRequires: ipset-devel BuildRequires: iptables-devel BuildRequires: libnfnetlink-devel %if (0%{?rhel} && 0%{?rhel} >= 7) Requires: ipset-libs %endif %description Keepalived provides simple and robust facilities for load balancing and high availability to Linux system and Linux based infrastructures. The load balancing framework relies on well-known and widely used Linux Virtual Server (IPVS) kernel module providing Layer4 load balancing. Keepalived implements a set of checkers to dynamically and adaptively maintain and manage load-balanced server pool according their health. High availability is achieved by VRRP protocol. VRRP is a fundamental brick for router failover. In addition, keepalived implements a set of hooks to the VRRP finite state machine providing low-level and high-speed protocol interactions. Keepalived frameworks can be used independently or all together to provide resilient infrastructures. %prep %setup -q %build %configure \ %{?with_debug:--enable-debug} \ %{?with_profile:--enable-profile} \ %{!?with_vrrp:--disable-vrrp} \ %{?with_snmp:--enable-snmp --enable-snmp-rfc} \ %{?with_sha1:--enable-sha1} \ %{!?with_nftables:--disable-nftables} \ %{!?with_track_process:--disable-track-process} \ %{!?with_libiptc:--disable-libiptc} %{__make} %{?_smp_mflags} STRIP=/bin/true %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} rm -rf %{buildroot}%{_sysconfdir}/keepalived/samples/ rm -rf %{buildroot}%{_defaultdocdir}/keepalived/ %if %{use_systemd} rm -rf %{buildroot}%{_initrddir}/ %{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/keepalived.service %else rm %{buildroot}%{_sysconfdir}/init/keepalived.conf %{__install} -p -D -m 0755 %{SOURCE2} %{buildroot}%{_initrddir}/keepalived %endif mkdir -p %{buildroot}%{_libexecdir}/keepalived %clean rm -rf %{buildroot} %post %if %{use_systemd} %systemd_post keepalived.service %else /sbin/chkconfig --add keepalived %endif %preun %if %{use_systemd} %systemd_preun keepalived.service %else if [ "$1" -eq 0 ]; then /sbin/service keepalived stop >/dev/null 2>&1 /sbin/chkconfig --del keepalived fi %endif %postun %if %{use_systemd} %systemd_postun_with_restart keepalived.service %else if [ "$1" -eq 1 ]; then /sbin/service keepalived condrestart >/dev/null 2>&1 || : fi %endif %files %defattr(-,root,root,-) %attr(0755,root,root) %{_sbindir}/keepalived %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/keepalived %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/keepalived/keepalived.conf %doc AUTHOR ChangeLog CONTRIBUTORS COPYING README README.md TODO %doc doc/keepalived.conf.SYNOPSIS doc/samples/keepalived.conf.* %dir %{_sysconfdir}/keepalived/ %dir %{_libexecdir}/keepalived/ %if %{with snmp} %{_datadir}/snmp/mibs/KEEPALIVED-MIB.txt %{_datadir}/snmp/mibs/VRRP-MIB.txt %{_datadir}/snmp/mibs/VRRPv3-MIB.txt %endif %{_bindir}/genhash %if %{use_systemd} %{_unitdir}/keepalived.service %else %{_initrddir}/keepalived %endif %{_mandir}/man1/genhash.1* %{_mandir}/man5/keepalived.conf.5* %{_mandir}/man8/keepalived.8* %changelog * Fri Jan 29 2021 Ivan Dudko - 2.2.1-1 - Update to 2.2.1 * Wed Jul 08 2020 Hiroaki Nakamura - 2.1.3-1 - Update to 2.1.3 * Wed Feb 05 2020 Hiroaki Nakamura - 2.0.20-2 - Disable libiptc on CentOS 6 * Wed Feb 05 2020 Hiroaki Nakamura - 2.0.20-1 - Update to 2.0.20 * Tue Mar 12 2019 Hiroaki Nakamura - 2.0.13-1 - Update to 2.0.13 - Delete keepalived-2.0.11-add-option-to-disable-track-process.patch * Fri Jan 18 2019 Hiroaki Nakamura - 2.0.11-1 - Update to 2.0.11 * Tue Jun 19 2018 Hiroaki Nakamura - 2.0.4-1 - Update to 2.0.4 * Mon Jun 11 2018 Hiroaki Nakamura - 2.0.2-1 - Update to 2.0.2 * Mon Jun 04 2018 Hiroaki Nakamura - 2.0.0-1 - Update to 2.0.0 * Thu May 24 2018 Hiroaki Nakamura - 1.4.4-1 - Update to 1.4.4 - Support CentOS 6 as well as CentOS 7 * Tue Apr 17 2018 Hiroaki Nakamura - 1.4.3-1 - Update to 1.4.3 * Fri Mar 02 2018 Hiroaki Nakamura - 1.4.2-1 - Update to 1.4.2 * Tue Jan 23 2018 Hiroaki Nakamura - 1.4.0-1 - Update to 1.4.0 * Tue Oct 24 2017 Hiroaki Nakamura - 1.3.9-1 - Update to 1.3.9 * Mon Oct 02 2017 Hiroaki Nakamura - 1.3.7-1 - Update to 1.3.7 * Tue Sep 12 2017 Hiroaki Nakamura - 1.3.6-1 - Update to 1.3.6 * Sun Mar 26 2017 Ryan O'Hara - 1.3.5-1 - Update to 1.3.5 (#1422063) * Sun Feb 05 2017 Kalev Lember - 1.3.2-2 - Rebuilt for libxtables soname bump * Mon Nov 28 2016 Ryan O'Hara - 1.3.2-1 - Update to 1.3.2 (#1396857) * Fri Sep 16 2016 Ryan O'Hara - 1.2.24-3 - Add BuildRequires for iptables-devel (#1361686) * Fri Sep 16 2016 Ryan O'Hara - 1.2.24-2 - Fix configure script * Thu Sep 15 2016 Ryan O'Hara - 1.2.24-1 - Update to 1.2.24 (#1376254) * Wed Jul 13 2016 Ryan O'Hara - 1.2.23-1 - Update to 1.2.23 (#1354696) * Wed Jun 15 2016 Ryan O'Hara - 1.2.22-1 - Update to 1.2.22 (#1346509) * Tue Jun 14 2016 Ryan O'Hara - 1.2.21-3 - Remove net-snmp U64 typedef * Fri Jun 03 2016 Ryan O'Hara - 1.2.21-2 - Remove unnecessary BuildRequires (#1327873) * Fri Jun 03 2016 Ryan O'Hara - 1.2.21-1 - Update to 1.2.21 (#1341372) * Sun Apr 10 2016 Ryan O'Hara - 1.2.20-2 - Install VRRP MIB * Mon Apr 04 2016 Ryan O'Hara - 1.2.20-1 - Update to 1.2.20 (#1323526) * Thu Feb 04 2016 Fedora Release Engineering - 1.2.19-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Jan 23 2016 Ryan O'Hara - 1.2.19-3 - Add PIDFile to systemd unit file (#1280437) * Wed Jul 29 2015 Zbigniew Jędrzejewski-Szmek - 1.2.19-2 - Rebuilt for rpm 4.12.90 * Wed Jul 15 2015 Ryan O'Hara - 1.2.19-1 - Update to 1.2.19 (#1240863) * Wed Jul 01 2015 Ryan O'Hara - 1.2.18-1 - Update to 1.2.18 (#1237377) * Tue Jun 23 2015 Ryan O'Hara - 1.2.17-5 - Revert patch that changed VRRP notify scripts to list (#1232073) * Wed Jun 17 2015 Ryan O'Hara - 1.2.17-4 - Fix multiple VRRP instances with same interface (#1232408) * Wed Jun 17 2015 Fedora Release Engineering - 1.2.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 01 2015 Ryan O'Hara - 1.2.17-2 - Add VRRP MIB file * Mon Jun 01 2015 Ryan O'Hara - 1.2.17-1 - Update to 1.2.17 * Wed Apr 01 2015 Ryan O'Hara - 1.2.16-1 - Update to 1.2.16 * Wed Mar 18 2015 Ryan O'Hara - 1.2.15-3 - Revert previous preempt extension (#1202584) * Tue Jan 13 2015 Ryan O'Hara - 1.2.15-2 - Depend on network-online.target systemd unit (#1181097) * Tue Dec 23 2014 Ryan O'Hara - 1.2.15-1 - Update to 1.2.15 * Tue Dec 16 2014 Ryan O'Hara - 1.2.14-1 - Update to 1.2.14 * Tue Oct 28 2014 Ryan O'Hara - 1.2.13-4 - Create /usr/libexec/keepalived directory (#1158113) * Sat Aug 16 2014 Fedora Release Engineering - 1.2.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 13 2014 Ryan O'Hara - 1.2.13-1 - Update to 1.2.13 * Mon Feb 10 2014 Ryan O'Hara - 1.2.12-1 - Update to 1.2.12 * Mon Feb 03 2014 Ryan O'Hara - 1.2.11-1 - Update to 1.2.11 * Mon Jan 13 2014 Ryan O'Hara - 1.2.10-1 - Update to 1.2.10 * Mon Nov 11 2013 Ryan O'Hara - 1.2.9-1 - Update to 1.2.9. * Thu Sep 19 2013 Ryan O'Hara - 1.2.8-2 - Bump release and rebuild. * Thu Sep 05 2013 Ryan O'Hara - 1.2.8-1 - Update to 1.2.8. * Mon Aug 19 2013 Ryan O'Hara - 1.2.7-10 - Add To header for SMTP alerts (#967641) * Sat Aug 03 2013 Fedora Release Engineering - 1.2.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 22 2013 Ryan O'Hara - 1.2.7-8 - Fix macro in keepalived.conf.5 man page. * Mon Jul 22 2013 Ryan O'Hara - 1.2.7-7 - Fix systemd requirements. * Mon Jul 22 2013 Ryan O'Hara - 1.2.7-6 - Install the systemd unit file, not the init script. * Mon Apr 22 2013 Ryan O'Hara - 1.2.7-5 - Build with PIE flags (#955150) * Thu Feb 14 2013 Fedora Release Engineering - 1.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jan 2 2013 Ryan O'Hara - 1.2.7-3 - Update spec file. - Add option to prevent respawn of child processes. - Remove duplicate command-line option code. - Use popt to generate usage message. - Fix pointer arithmetic for VRRP packets. - Fix comparison of primary IP address. - Fix loading of SSL certificate. - Fix typo in error message. - Update FSF address in GPLv2 license. - Remove debug message from if_get_by_ifname. * Mon Sep 24 2012 Václav Pavlín - 1.2.7-2 - Scriptlets replaced with new systemd macros (#850173). * Tue Sep 04 2012 Ryan O'Hara - 1.2.7-1 - Update to 1.2.7. - Fix systemd service file (#769726). * Mon Aug 20 2012 Ryan O'Hara - 1.2.6-1 - Update to 1.2.6. * Tue Aug 14 2012 Ryan O'Hara - 1.2.5-2 - Install KEEPALIVED-MIB as KEEPALIVED-MIB.txt. * Mon Aug 13 2012 Ryan O'Hara - 1.2.5-1 - Update to 1.2.5. * Wed Aug 01 2012 Ryan O'Hara - 1.2.4-1 - Update to 1.2.4. * Mon Jul 23 2012 Ryan O'Hara - 1.2.3-1 - Update to 1.2.3. * Thu Jul 19 2012 Fedora Release Engineering - 1.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue May 08 2012 Ryan O'Hara - 1.2.2-5 - Fix IPv4 address comparison (#768119). * Fri Jan 13 2012 Fedora Release Engineering - 1.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Sep 19 2011 Tom Callaway - 1.2.2-3 - convert to systemd - fix ip_vs.h path searching in configure * Tue Jul 12 2011 Matthias Saou 1.2.2-2 - Build against libnl for Fedora. RHEL's libnl is too old. * Sat May 21 2011 Matthias Saou 1.2.2-1 - Update to 1.2.2. * Mon Feb 07 2011 Fedora Release Engineering - 1.1.20-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jan 16 2011 Dan Horák 1.1.20-2 - exclude arches where we don't provide 32-bit kernel * Tue Jan 11 2011 Matthias Saou 1.2.1-1 - Update to 1.2.1, now with IPv6 support. * Sun May 23 2010 Matthias Saou 1.1.20-1 - Update to 1.1.20 (#589923). - Update BR conditional for RHEL6. - No longer include goodies/arpreset.pl, it's gone from the sources. * Tue Dec 8 2009 Matthias Saou 1.1.19-3 - Update init script to have keepalived start after the local MTA (#526512). - Simplify the kernel source detection, to avoid running rpm from rpmbuild. * Tue Nov 24 2009 Matthias Saou 1.1.19-2 - Include patch to remove obsolete -k option to modprobe (#528465). * Wed Oct 21 2009 Matthias Saou 1.1.19-1 - Update to 1.1.19. * Fri Aug 21 2009 Tomas Mraz - 1.1.17-3 - rebuilt with new openssl * Fri Jul 24 2009 Fedora Release Engineering - 1.1.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Apr 12 2009 Matthias Saou 1.1.17-1 - Update to 1.1.17. - Update init script all the way. * Wed Feb 25 2009 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Jan 17 2009 Tomas Mraz 1.1.15-7 - rebuild with new openssl * Mon Dec 22 2008 Matthias Saou 1.1.15-6 - Fork the init script to be (mostly for now) LSB compliant (#246966). * Thu Apr 24 2008 Matthias Saou 1.1.15-5 - Add glob to the kerneldir location, since it contains the arch for F9+. * Tue Feb 19 2008 Fedora Release Engineering - Autorebuild for GCC 4.3 * Wed Dec 05 2007 Release Engineering - Rebuild for deps * Mon Oct 22 2007 Matthias Saou 1.1.15-2 - Update to latest upstream sources, identical except for the included spec. * Mon Sep 17 2007 Matthias Saou 1.1.15-1 - Update to 1.1.15. - Remove merged genhashman and include patches. * Fri Sep 14 2007 Matthias Saou 1.1.14-2 - Include patch from Shinji Tanaka to fix conf include from inside some directives like vrrp_instance. * Thu Sep 13 2007 Matthias Saou 1.1.14-1 - Update to 1.1.14. - Remove all upstreamed patches. - Remove our init script and sysconfig files, use the same now provided by the upstream package (will need to patch for LSB stuff soonish). - Include new goodies/arpreset.pl in %%doc. - Add missing scriplet requirements. * Wed Aug 22 2007 Matthias Saou 1.1.13-8 - Rebuild for new BuildID feature. * Sun Aug 5 2007 Matthias Saou 1.1.13-7 - Update License field. * Mon Mar 26 2007 Matthias Saou 1.1.13-6 - Fix doc/samples/sample.misccheck.smbcheck.sh mode (600 -> 644). * Thu Mar 22 2007 Matthias Saou 1.1.13-5 - Include types patch to fix compile on F7 (David Woodhouse). - Fix up file modes (main binary 700 -> 755 and config 600 -> 640). * Tue Feb 13 2007 Matthias Saou 1.1.13-4 - Add missing \n to the kernel define, for when multiple kernels are installed. - Pass STRIP=/bin/true to "make" in order to get a useful debuginfo package. * Tue Feb 13 2007 Matthias Saou 1.1.13-3 - Add %%check section to make sure any build without LVS support will fail. * Mon Feb 5 2007 Matthias Saou 1.1.13-2 - Use our own init script, include a sysconfig entry used by it for options. * Thu Jan 25 2007 Matthias Saou 1.1.13-1 - Update to 1.1.13. - Change mode of configuration file to 0600. - Don't include all of "doc" since it meant re-including all man pages. - Don't include samples in the main configuration path, they're in %%doc. - Include patch to add an optional label to interfaces. * Sat Apr 08 2006 Dries Verachtert - 1.1.12-1.2 - Rebuild for Fedora Core 5. * Sun Mar 12 2006 Dag Wieers - 1.1.12-1 - Updated to release 1.1.12. * Fri Mar 04 2005 Dag Wieers - 1.1.11-1 - Updated to release 1.1.11. * Wed Feb 23 2005 Dag Wieers - 1.1.10-2 - Fixed IPVS/LVS support. (Joe Sauer) * Tue Feb 15 2005 Dag Wieers - 1.1.10-1 - Updated to release 1.1.10. * Mon Feb 07 2005 Dag Wieers - 1.1.9-1 - Updated to release 1.1.9. * Sun Oct 17 2004 Dag Wieers - 1.1.7-2 - Fixes to build with kernel IPVS support. (Tim Verhoeven) * Fri Sep 24 2004 Dag Wieers - 1.1.7-1 - Updated to release 1.1.7. (Mathieu Lubrano) * Mon Feb 23 2004 Dag Wieers - 1.1.6-0 - Updated to release 1.1.6. * Mon Jan 26 2004 Dag Wieers - 1.1.5-0 - Updated to release 1.1.5. * Mon Dec 29 2003 Dag Wieers - 1.1.4-0 - Updated to release 1.1.4. * Fri Jun 06 2003 Dag Wieers - 1.0.3-0 - Initial package. (using DAR)