Browse Source

keepalived-2.0.8-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11879 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
1a3bd04d06
1 changed files with 21 additions and 30 deletions
  1. 21 30
      k/keepalived/keepalived-vl.spec

+ 21 - 30
k/keepalived/keepalived-vl.spec

@@ -1,32 +1,23 @@
 Summary: HA monitor built upon LVS, VRRP and services poller
 Name: keepalived
-Version: 1.2.19
+Version: 2.0.8
 Release: 1%{?_dist_release}
 License: GPL
 Group: Applications/System
 URL: http://www.keepalived.org/
 
-Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz
+Vendor: Project Vine
+Distribution: Vine Linux
 
-Patch0: keepalived-1.2.7-dont-respawn-children.patch
-Patch1: keepalived-1.2.7-cleanup-duplicate-option-code.patch
-Patch2: keepalived-1.2.7-generate-usage-message-from-popt.patch
-Patch3: keepalived-1.2.7-update-keepalived-man-page.patch
-Patch4: keepalived-1.2.7-fix-pointer-arithmetic-vrrp-packet.patch
-Patch8: keepalived-1.2.7-fix-primary-ip-address-comparison.patch
-Patch5: keepalived-1.2.7-fix-ssl-certificate-load.patch
-Patch6: keepalived-1.2.7-fix-error-message.patch
-Patch7: keepalived-1.2.7-update-gpl-license.patch
-Patch9: keepalived-1.2.7-remove-debug-messages.patch
+Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: openssl-devel
-BuildRequires: kernel-devel
-BuildRequires: popt-devel
-BuildRequires: libnl-devel
+BuildRequires: libnl3-devel
+BuildRequires: ipset-devel
+BuildRequires: iptables-devel
+BuildRequires: libnfnetlink-devel
 BuildRequires: net-snmp-devel
-BuildRequires: rpm-devel
-BuildRequires: tcp_wrappers
 
 Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/service, /sbin/chkconfig
@@ -51,7 +42,8 @@ healthchecks and LVS directors failover.
 
 %build
 %configure \
-        --enable-snmp \
+        --with-init=SYSV \
+        --enable-snmp  --enable-snmp-rfc \
         --enable-sha1
 %{__make} %{?_smp_mflags} STRIP=/bin/true
 
@@ -59,17 +51,13 @@ healthchecks and LVS directors failover.
 %install
 %{__rm} -rf %{buildroot}
 %{__make} install DESTDIR=%{buildroot}
+
 # Remove "samples", as we include them in %%doc
 %{__rm} -rf %{buildroot}%{_sysconfdir}/keepalived/samples/
 
-%check
-# A build could silently have LVS support disabled if the kernel includes can't
-# be properly found, we need to avoid that.
-if ! grep -q "IPVS_SUPPORT='_WITH_LVS_'" config.log; then
-    echo "ERROR: We do not want keeepalived lacking LVS support."
-    exit 1
-fi
+%{__rm} -rf %{buildroot}%{_docdir}/keepalived
 
+mkdir -p %{buildroot}%{_libexecdir}/keepalived
 
 %clean
 %{__rm} -rf %{buildroot}
@@ -93,20 +81,23 @@ fi
 %files
 %defattr(-, root, root, -)
 %doc AUTHOR ChangeLog CONTRIBUTORS COPYING README TODO
-%doc doc/keepalived.conf.SYNOPSIS doc/samples/
-%dir %{_sysconfdir}/keepalived/
+%doc doc/keepalived.conf.SYNOPSIS doc/samples/keepalived.conf.*
+%attr(0755,root,root) %{_bindir}/genhash
+%attr(0755,root,root) %{_sbindir}/keepalived
 %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/keepalived/keepalived.conf
 %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/sysconfig/keepalived
 %{_sysconfdir}/rc.d/init.d/keepalived
-%{_bindir}/genhash
-%attr(0755,root,root) %{_sbindir}/keepalived
+%dir %{_sysconfdir}/keepalived/
+%dir %{_libexecdir}/keepalived/
 %{_datadir}/snmp/mibs/*
 %{_mandir}/man1/genhash.1*
 %{_mandir}/man5/keepalived.conf.5*
 %{_mandir}/man8/keepalived.8*
 
-
 %changelog
+* Thu Nov 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.8-1
+- new upstream release.
+
 * Tue Mar 15 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.19-1
 - new upstream release.