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