Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/keepalived/
Date: Mon, 07 Jan 2019 16:53:11
Message-Id: 1546879973.9f39f7b5f8ff7a9b9100aa10cbda21f8546590c3.whissi@gentoo
1 commit: 9f39f7b5f8ff7a9b9100aa10cbda21f8546590c3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 7 16:52:34 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 7 16:52:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f39f7b5
7
8 sys-cluster/keepalived: bump to v2.0.11
9
10 Package-Manager: Portage-2.3.54, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-cluster/keepalived/Manifest | 1 +
14 sys-cluster/keepalived/keepalived-2.0.11.ebuild | 73 +++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/sys-cluster/keepalived/Manifest b/sys-cluster/keepalived/Manifest
18 index ba4b0cadf07..6f3691c188e 100644
19 --- a/sys-cluster/keepalived/Manifest
20 +++ b/sys-cluster/keepalived/Manifest
21 @@ -1 +1,2 @@
22 DIST keepalived-2.0.10.tar.gz 927631 BLAKE2B 0cb4c5c613ae2c58f993930c446cdcafdff8a049a9fb1e31f61d7afe2406b2dde2258d450913577ef8ee18d0171f57e4ad01727d9e0f489cfe25b35826770181 SHA512 e76562e5d9d9dc945f0c9702f5f3c6be6acd8c66a59aea1f8287810a2eeb4c65b6cb7e1cd84c1e478978f7db94dba7f8a918ca4847f90a6554b20d757addd2db
23 +DIST keepalived-2.0.11.tar.gz 961182 BLAKE2B 226bac3a544434a36b01ebdb43b166b3833fca3ec12014ba9a76e90f12663a5550271dff87155c74ba5eb908dd48fc9dd2cac810705e96ae3bd30df67a26e708 SHA512 ead982aeacdf329109089dfc58a42915ff44b0c4897006000c74642fa3747b2cac1a472faa438ce517f47b80d193d466875ab7130d2206400c8b2ad52f17c6d4
24
25 diff --git a/sys-cluster/keepalived/keepalived-2.0.11.ebuild b/sys-cluster/keepalived/keepalived-2.0.11.ebuild
26 new file mode 100644
27 index 00000000000..79fe86eb5c2
28 --- /dev/null
29 +++ b/sys-cluster/keepalived/keepalived-2.0.11.ebuild
30 @@ -0,0 +1,73 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools systemd
37 +
38 +DESCRIPTION="A strong & robust keepalive facility to the Linux Virtual Server project"
39 +HOMEPAGE="http://www.keepalived.org/"
40 +SRC_URI="http://www.keepalived.org/software/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
45 +IUSE="dbus debug ipv6 -json snmp"
46 +
47 +RDEPEND="dev-libs/libnl:=
48 + dev-libs/openssl:=
49 + dev-libs/popt
50 + net-libs/libnfnetlink
51 + sys-apps/iproute2
52 + dbus? ( sys-apps/dbus )
53 + json? ( dev-libs/json-c:= )
54 + snmp? ( net-analyzer/net-snmp )"
55 +DEPEND="${RDEPEND}
56 + >=sys-kernel/linux-headers-4.4"
57 +
58 +DOCS=(
59 + README CONTRIBUTORS INSTALL ChangeLog AUTHOR TODO
60 + doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt
61 +)
62 +
63 +src_prepare() {
64 + default
65 +
66 + eautoreconf
67 +}
68 +
69 +src_configure() {
70 + STRIP=/bin/true \
71 + econf \
72 + --with-init=custom \
73 + --with-kernel-dir=/usr \
74 + --enable-sha1 \
75 + --enable-vrrp \
76 + $(use_enable dbus) \
77 + $(use_enable dbus dbus-create-instance) \
78 + $(use_enable debug) \
79 + $(use_enable json) \
80 + $(use_enable snmp)
81 +}
82 +
83 +src_install() {
84 + default
85 +
86 + newinitd "${FILESDIR}"/keepalived.init-r1 keepalived
87 + newconfd "${FILESDIR}"/keepalived.confd-r1 keepalived
88 +
89 + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service
90 + systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
91 +
92 + use snmp && dodoc doc/KEEPALIVED-MIB.txt
93 +
94 + docinto genhash
95 + dodoc genhash/README genhash/AUTHOR genhash/ChangeLog
96 + # This was badly named by upstream, it's more HOWTO than anything else.
97 + newdoc INSTALL INSTALL+HOWTO
98 +
99 + # Security risk to bundle SSL certs
100 + rm -v "${ED}"/etc/keepalived/samples/*.pem || die
101 + # Clean up sysvinit files
102 + rm -rv "${ED}"/etc/sysconfig || die
103 +}