From db14e63e8b6bf90cd4fe0b156d6cb45c3b5a32d1 Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 04 2020 11:26:42 +0000 Subject: Add spec-file for the distribution --- diff --git a/SPECS/keepalived.spec b/SPECS/keepalived.spec new file mode 100644 index 0000000..bb6a6ef --- /dev/null +++ b/SPECS/keepalived.spec @@ -0,0 +1,513 @@ +%bcond_without snmp +%bcond_without vrrp +%bcond_without sha1 +%bcond_with iptables +%bcond_with profile +%bcond_with debug + +%global _hardened_build 1 + +Name: keepalived +Summary: High Availability monitor built upon LVS, VRRP and service pollers +Version: 2.0.10 +Release: 11%{?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 + +Patch1: bz1688892-fix-openssl-init-failure.patch +Patch2: bz1688892-fix-openssl-init-genhash.patch +Patch3: bz1688892-fix-openssl-init-config-check.patch +Patch4: bz1688892-fix-openssl-init-configure.patch +Patch5: bz1693706-fix-smtp-alerts-segfault.patch +Patch6: bz1693706-fix-smtp_helo_name-double-free.patch +Patch7: bz1792160-fix-fault-rename-interface.patch +Patch8: bz1683438-fix-vrrp_script-execution.patch + +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%if %{with snmp} +BuildRequires: net-snmp-devel +%endif +%if %{with iptables} +BuildRequires: ipset-devel +BuildRequires: iptables-devel +%endif +BuildRequires: gcc +BuildRequires: automake +BuildRequires: systemd-units +BuildRequires: openssl-devel +BuildRequires: libnl3-devel +BuildRequires: libnfnetlink-devel + +%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 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 + +%build +%configure \ + %{?with_debug:--enable-debug} \ + %{?with_profile:--enable-profile} \ + %{!?with_vrrp:--disable-vrrp} \ + %{!?with_iptables:--disable-libiptc --disable-ipset} \ + %{?with_snmp:--enable-snmp --enable-snmp-rfc} \ + %{?with_sha1:--enable-sha1} \ + --with-init=systemd +%{__make} %{?_smp_mflags} STRIP=/bin/true + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +rm -rf %{buildroot}%{_initrddir}/ +rm -rf %{buildroot}%{_sysconfdir}/keepalived/samples/ +%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/keepalived.service +mkdir -p %{buildroot}%{_libexecdir}/keepalived + +%post +%systemd_post keepalived.service + +%preun +%systemd_preun keepalived.service + +%postun +%systemd_postun_with_restart keepalived.service + +%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 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 +%{_unitdir}/keepalived.service +%{_mandir}/man1/genhash.1* +%{_mandir}/man5/keepalived.conf.5* +%{_mandir}/man8/keepalived.8* + +%changelog +* Tue Jun 16 2020 Ryan O'Hara - 2.0.10-11 +- Fix vrrp_script execution (#1683438) + +* Mon Feb 24 2020 Ryan O'Hara - 2.0.10-10 +- Disable libiptc/ipset (#1806642) + +* Thu Jan 30 2020 Ryan O'Hara - 2.0.10-9 +- Fix FAULT state when interface is renamed (#1792160) + +* Mon Jul 08 2019 Ryan O'Hara - 2.0.10-7 +- Add gating tests (#1682114) + +* Wed May 01 2019 Ryan O'Hara - 2.0.10-6 +- Fix segfault when smtp alerts configured (#1693706) +- Fix double free when smtp_helo_name copied from local_name (#1693706) + +* Wed Mar 27 2019 Ryan O'Hara - 2.0.10-5 +- Bump release nummber (#1688892) + +* Mon Mar 18 2019 Ryan O'Hara - 2.0.10-3 +- Rework fix for OpenSSL initialization segfault (#1688892) + +* Fri Mar 15 2019 Ryan O'Hara - 2.0.10-2 +- Fix OpenSSL initialization segfault (#1688892) + +* Mon Nov 26 2018 Ryan O'Hara - 2.0.10-1 +- Update to 2.0.10 (#1631816) + +* Mon Oct 08 2018 Ryan O'Hara - 2.0.7-2 +- Remove BuildRequires for ipset-devel + +* Tue Oct 02 2018 Ryan O'Hara - 2.0.7-1 +- Update to 2.0.7 (#1631816) + +* Thu Aug 09 2018 Josef Ridky - 2.0.6-2 +- Rebuild for Net-SNMP + +* Wed Jul 25 2018 Ryan O'Hara - 2.0.6-1 +- Update to 2.0.6 + +* Tue Jul 03 2018 Ryan O'Hara - 2.0.5-1 +- Update to 2.0.5 + +* Thu Apr 19 2018 Ryan O'Hara - 1.4.3-1 +- Update to 1.4.3 (#1565388) + +* Wed Mar 07 2018 Ryan O'Hara - 1.4.2-1 +- Update to 1.4.2 (#1539269) + +* Mon Jan 29 2018 Ryan O'Hara - 1.4.1-1 +- Update to 1.4.1 (#1539269) + +* Fri Jan 05 2018 Ryan O'Hara - 1.4.0-1 +- Update to 1.4.0 (#1529802) + +* Wed Oct 25 2017 Ryan O'Hara - 1.3.9-1 +- Update to 1.3.9 (#1497576) + +* Mon Sep 11 2017 Ryan O'Hara - 1.3.6-1 +- Update to 1.3.6 (#1481471) + +* Thu Aug 03 2017 Fedora Release Engineering - 1.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* 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) +