[7617] | 1 | Summary: HA monitor built upon LVS, VRRP and services poller |
---|
| 2 | Name: keepalived |
---|
[12190] | 3 | Version: 2.0.18 |
---|
[7617] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: GPL |
---|
| 6 | Group: Applications/System |
---|
| 7 | URL: http://www.keepalived.org/ |
---|
| 8 | |
---|
[11879] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[12190] | 12 | Source0: https://www.keepalived.org/software/keepalived-%{version}.tar.gz |
---|
[7617] | 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | BuildRequires: openssl-devel |
---|
[11879] | 16 | BuildRequires: libnl3-devel |
---|
| 17 | BuildRequires: ipset-devel |
---|
| 18 | BuildRequires: iptables-devel |
---|
| 19 | BuildRequires: libnfnetlink-devel |
---|
[7617] | 20 | BuildRequires: net-snmp-devel |
---|
| 21 | |
---|
| 22 | Requires(post): /sbin/chkconfig |
---|
| 23 | Requires(preun): /sbin/service, /sbin/chkconfig |
---|
| 24 | Requires(postun): /sbin/service |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | The main goal of the keepalived project is to add a strong & robust keepalive |
---|
| 28 | facility to the Linux Virtual Server project. This project is written in C with |
---|
| 29 | multilayer TCP/IP stack checks. Keepalived implements a framework based on |
---|
| 30 | three family checks : Layer3, Layer4 & Layer5/7. This framework gives the |
---|
| 31 | daemon the ability to check the state of an LVS server pool. When one of the |
---|
| 32 | servers of the LVS server pool is down, keepalived informs the linux kernel via |
---|
| 33 | a setsockopt call to remove this server entry from the LVS topology. In |
---|
| 34 | addition keepalived implements an independent VRRPv2 stack to handle director |
---|
| 35 | failover. So in short keepalived is a userspace daemon for LVS cluster nodes |
---|
| 36 | healthchecks and LVS directors failover. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %setup |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %build |
---|
[10084] | 44 | %configure \ |
---|
[11879] | 45 | --with-init=SYSV \ |
---|
| 46 | --enable-snmp --enable-snmp-rfc \ |
---|
[10084] | 47 | --enable-sha1 |
---|
[7617] | 48 | %{__make} %{?_smp_mflags} STRIP=/bin/true |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | %install |
---|
| 52 | %{__rm} -rf %{buildroot} |
---|
| 53 | %{__make} install DESTDIR=%{buildroot} |
---|
[11879] | 54 | |
---|
[7617] | 55 | # Remove "samples", as we include them in %%doc |
---|
| 56 | %{__rm} -rf %{buildroot}%{_sysconfdir}/keepalived/samples/ |
---|
| 57 | |
---|
[11879] | 58 | %{__rm} -rf %{buildroot}%{_docdir}/keepalived |
---|
[7617] | 59 | |
---|
[11879] | 60 | mkdir -p %{buildroot}%{_libexecdir}/keepalived |
---|
[7617] | 61 | |
---|
| 62 | %clean |
---|
| 63 | %{__rm} -rf %{buildroot} |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %post |
---|
| 67 | /sbin/chkconfig --add keepalived |
---|
| 68 | |
---|
| 69 | %preun |
---|
| 70 | if [ $1 -eq 0 ]; then |
---|
| 71 | /sbin/service keepalived stop &>/dev/null || : |
---|
| 72 | /sbin/chkconfig --del keepalived |
---|
| 73 | fi |
---|
| 74 | |
---|
| 75 | %postun |
---|
| 76 | if [ $1 -ge 1 ]; then |
---|
| 77 | /sbin/service keepalived condrestart &>/dev/null || : |
---|
| 78 | fi |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %files |
---|
| 82 | %defattr(-, root, root, -) |
---|
[12190] | 83 | %license COPYING |
---|
| 84 | %doc AUTHOR ChangeLog CONTRIBUTORS README TODO |
---|
[11879] | 85 | %doc doc/keepalived.conf.SYNOPSIS doc/samples/keepalived.conf.* |
---|
| 86 | %attr(0755,root,root) %{_bindir}/genhash |
---|
| 87 | %attr(0755,root,root) %{_sbindir}/keepalived |
---|
[7617] | 88 | %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/keepalived/keepalived.conf |
---|
| 89 | %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/sysconfig/keepalived |
---|
| 90 | %{_sysconfdir}/rc.d/init.d/keepalived |
---|
[11879] | 91 | %dir %{_sysconfdir}/keepalived/ |
---|
| 92 | %dir %{_libexecdir}/keepalived/ |
---|
[10084] | 93 | %{_datadir}/snmp/mibs/* |
---|
[7617] | 94 | %{_mandir}/man1/genhash.1* |
---|
| 95 | %{_mandir}/man5/keepalived.conf.5* |
---|
| 96 | %{_mandir}/man8/keepalived.8* |
---|
| 97 | |
---|
| 98 | %changelog |
---|
[12190] | 99 | * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.18-1 |
---|
| 100 | - new upstream release. |
---|
| 101 | |
---|
[11879] | 102 | * Thu Nov 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.8-1 |
---|
| 103 | - new upstream release. |
---|
| 104 | |
---|
[10084] | 105 | * Tue Mar 15 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.19-1 |
---|
| 106 | - new upstream release. |
---|
| 107 | |
---|
[7617] | 108 | * Mon Apr 08 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-1 |
---|
| 109 | - initial build for Vine Linux |
---|
| 110 | |
---|
| 111 | * Thu Sep 13 2007 Alexandre Cassen <acassen@linux-vs.org> 1.1.14 |
---|
| 112 | - Merge work done by freshrpms.net... Thanks guys !!! ;) |
---|
| 113 | |
---|
| 114 | * Wed Feb 14 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-5 |
---|
| 115 | - Add missing scriplet requirements. |
---|
| 116 | |
---|
| 117 | * Tue Feb 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-4 |
---|
| 118 | - Add missing \n to the kernel define, for when multiple kernels are installed. |
---|
| 119 | - Pass STRIP=/bin/true to "make" in order to get a useful debuginfo package. |
---|
| 120 | |
---|
| 121 | * Tue Feb 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-3 |
---|
| 122 | - Add %%check section to make sure any build without LVS support will fail. |
---|
| 123 | |
---|
| 124 | * Mon Feb 5 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-2 |
---|
| 125 | - Use our own init script, include a sysconfig entry used by it for options. |
---|
| 126 | |
---|
| 127 | * Thu Jan 25 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-1 |
---|
| 128 | - Update to 1.1.13. |
---|
| 129 | - Change mode of configuration file to 0600. |
---|
| 130 | - Don't include all of "doc" since it meant re-including all man pages. |
---|
| 131 | - Don't include samples in the main configuration path, they're in %%doc. |
---|
| 132 | - Include patch to add an optional label to interfaces. |
---|
| 133 | |
---|
| 134 | * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.1.12-1.2 |
---|
| 135 | - Rebuild for Fedora Core 5. |
---|
| 136 | |
---|
| 137 | * Sun Mar 12 2006 Dag Wieers <dag@wieers.com> - 1.1.12-1 |
---|
| 138 | - Updated to release 1.1.12. |
---|
| 139 | |
---|
| 140 | * Fri Mar 04 2005 Dag Wieers <dag@wieers.com> - 1.1.11-1 |
---|
| 141 | - Updated to release 1.1.11. |
---|
| 142 | |
---|
| 143 | * Wed Feb 23 2005 Dag Wieers <dag@wieers.com> - 1.1.10-2 |
---|
| 144 | - Fixed IPVS/LVS support. (Joe Sauer) |
---|
| 145 | |
---|
| 146 | * Tue Feb 15 2005 Dag Wieers <dag@wieers.com> - 1.1.10-1 |
---|
| 147 | - Updated to release 1.1.10. |
---|
| 148 | |
---|
| 149 | * Mon Feb 07 2005 Dag Wieers <dag@wieers.com> - 1.1.9-1 |
---|
| 150 | - Updated to release 1.1.9. |
---|
| 151 | |
---|
| 152 | * Sun Oct 17 2004 Dag Wieers <dag@wieers.com> - 1.1.7-2 |
---|
| 153 | - Fixes to build with kernel IPVS support. (Tim Verhoeven) |
---|
| 154 | |
---|
| 155 | * Fri Sep 24 2004 Dag Wieers <dag@wieers.com> - 1.1.7-1 |
---|
| 156 | - Updated to release 1.1.7. (Mathieu Lubrano) |
---|
| 157 | |
---|
| 158 | * Mon Feb 23 2004 Dag Wieers <dag@wieers.com> - 1.1.6-0 |
---|
| 159 | - Updated to release 1.1.6. |
---|
| 160 | |
---|
| 161 | * Mon Jan 26 2004 Dag Wieers <dag@wieers.com> - 1.1.5-0 |
---|
| 162 | - Updated to release 1.1.5. |
---|
| 163 | |
---|
| 164 | * Mon Dec 29 2003 Dag Wieers <dag@wieers.com> - 1.1.4-0 |
---|
| 165 | - Updated to release 1.1.4. |
---|
| 166 | |
---|
| 167 | * Fri Jun 06 2003 Dag Wieers <dag@wieers.com> - 1.0.3-0 |
---|
| 168 | - Initial package. (using DAR) |
---|
| 169 | |
---|