Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/keepalived/
Date: Sun, 14 Apr 2019 07:48:49
Message-Id: 1555228111.5bb1eded94836b7c656b2ef6d42a0013f23ad4a1.ultrabug@gentoo
1 commit: 5bb1eded94836b7c656b2ef6d42a0013f23ad4a1
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Mar 29 12:50:52 2019 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 14 07:48:31 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bb1eded
7
8 sys-cluster/keepalived: bump to 2.0.14
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
12 Closes: https://bugs.gentoo.org/681814
13 Closes: https://github.com/gentoo/gentoo/pull/11533
14 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
15
16 sys-cluster/keepalived/Manifest | 1 +
17 sys-cluster/keepalived/keepalived-2.0.14.ebuild | 88 +++++++++++++++++++++++++
18 2 files changed, 89 insertions(+)
19
20 diff --git a/sys-cluster/keepalived/Manifest b/sys-cluster/keepalived/Manifest
21 index ee2ad5f2de2..3cf5d1d220d 100644
22 --- a/sys-cluster/keepalived/Manifest
23 +++ b/sys-cluster/keepalived/Manifest
24 @@ -2,3 +2,4 @@ DIST keepalived-2.0.10.tar.gz 927631 BLAKE2B 0cb4c5c613ae2c58f993930c446cdcafdff
25 DIST keepalived-2.0.11.tar.gz 961182 BLAKE2B 226bac3a544434a36b01ebdb43b166b3833fca3ec12014ba9a76e90f12663a5550271dff87155c74ba5eb908dd48fc9dd2cac810705e96ae3bd30df67a26e708 SHA512 ead982aeacdf329109089dfc58a42915ff44b0c4897006000c74642fa3747b2cac1a472faa438ce517f47b80d193d466875ab7130d2206400c8b2ad52f17c6d4
26 DIST keepalived-2.0.12.tar.gz 947015 BLAKE2B c6c47bbc19bc8b31ae6c2d30616a5cfe90b1195c956b56731e702c909a1478e3793e22a7573f7b337d556c38d411d30f7aa5b4c0e45d14cfc18e17dfe46264d8 SHA512 345f7574cfe978194504691c0a7bcad76b1438bf8833911271647d445f0d1352972257554524e94be44e9d971299678d2f9a026e29088e844bbb3d2b25637076
27 DIST keepalived-2.0.13.tar.gz 955953 BLAKE2B f6a8d23cdcf4b8484c37da9d48c12394617d36b1a2bba901c899d3397ed5a2ba048a73d98cf137df3c53359b4e83c382b9a958559303e8d1130316a6026a5d3b SHA512 5e33104d114794f9050958d06730d7ecb89e87157a043146509583df595d8e01439a8f1172abb7d2bca0e8e710a4ff6d364dbb0a89f5aafa632e7af2453f3966
28 +DIST keepalived-2.0.14.tar.gz 966917 BLAKE2B a5a39476b2243deb4d2d6ebb552f286ef591dc41a07f186f7d7cfad0ee4585e2d0fabb55f945e6fe211a0a9f2a1f3cde1505d09daba1f56c93d9ec4204c7a5a6 SHA512 5768f53b8c415a425b73293c448f3ab3df9430637a4723c905b3ae2b20b18b0824267ffabe3fa46bb5cf62e20827ba020d2ebdb70c7ffd7b50ea9f06061b26d6
29
30 diff --git a/sys-cluster/keepalived/keepalived-2.0.14.ebuild b/sys-cluster/keepalived/keepalived-2.0.14.ebuild
31 new file mode 100644
32 index 00000000000..02e558b5285
33 --- /dev/null
34 +++ b/sys-cluster/keepalived/keepalived-2.0.14.ebuild
35 @@ -0,0 +1,88 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit autotools systemd
42 +
43 +DESCRIPTION="A strong & robust keepalive facility to the Linux Virtual Server project"
44 +HOMEPAGE="http://www.keepalived.org/"
45 +SRC_URI="http://www.keepalived.org/software/${P}.tar.gz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
50 +IUSE="+bfd dbus debug -json regex snmp"
51 +
52 +RDEPEND="dev-libs/libnl:=
53 + dev-libs/openssl:=
54 + dev-libs/popt
55 + net-libs/libnfnetlink
56 + sys-apps/iproute2
57 + regex? ( >=dev-libs/libpcre2-8 )
58 + dbus? ( sys-apps/dbus dev-libs/glib:2 )
59 + json? ( dev-libs/json-c:= )
60 + snmp? ( net-analyzer/net-snmp )"
61 +DEPEND="${RDEPEND}
62 + >=sys-kernel/linux-headers-4.4"
63 +
64 +DOCS=(
65 + README CONTRIBUTORS INSTALL ChangeLog AUTHOR TODO
66 + doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt
67 +)
68 +
69 +src_prepare() {
70 + default
71 +
72 + eautoreconf
73 +}
74 +
75 +src_configure() {
76 + # keepalived has support to dynamically use some libraries instead of
77 + # linking them:
78 + #--enable-dynamic-linking \
79 + #--enable-libiptc-dynamic \
80 + #--enable-libnl-dynamic \
81 + #--enable-libxtables-dynamic \
82 + STRIP=/bin/true \
83 + econf \
84 + --with-init=custom \
85 + --with-kernel-dir=/usr \
86 + --enable-sha1 \
87 + --enable-vrrp \
88 + $(use_enable bfd) \
89 + $(use_enable dbus) \
90 + $(use_enable dbus dbus-create-instance) \
91 + $(use_enable debug) \
92 + $(use_enable json) \
93 + $(use_enable regex) \
94 + $(use_enable regex regex-timers ) \
95 + $(use_enable snmp) \
96 + $(use_enable snmp snmp-checker) \
97 + $(use_enable snmp snmp-rfc) \
98 + $(use_enable snmp snmp-rfcv2) \
99 + $(use_enable snmp snmp-rfcv3) \
100 + $(use_enable snmp snmp-vrrp)
101 +}
102 +
103 +src_install() {
104 + default
105 +
106 + newinitd "${FILESDIR}"/keepalived.init-r1 keepalived
107 + newconfd "${FILESDIR}"/keepalived.confd-r1 keepalived
108 +
109 + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service
110 + systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
111 +
112 + use snmp && dodoc doc/*MIB.txt
113 +
114 + docinto genhash
115 + dodoc genhash/README genhash/AUTHOR genhash/ChangeLog
116 + # This was badly named by upstream, it's more HOWTO than anything else.
117 + newdoc INSTALL INSTALL+HOWTO
118 +
119 + # Security risk to bundle SSL certs
120 + rm -v "${ED}"/etc/keepalived/samples/*.pem || die
121 + # Clean up sysvinit files
122 + rm -rv "${ED}"/etc/sysconfig || die
123 +}