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: Tue, 10 May 2022 20:18:46
Message-Id: 1652213910.f55e5113ee9daf50484236b41853b0a1957c77cc.ultrabug@gentoo
1 commit: f55e5113ee9daf50484236b41853b0a1957c77cc
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 15 18:22:21 2022 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 20:18:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f55e5113
7
8 sys-cluster/keepalived: bump to 2.2.7
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/24587
12 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
13
14 sys-cluster/keepalived/Manifest | 1 +
15 sys-cluster/keepalived/keepalived-2.2.7.ebuild | 80 ++++++++++++++++++++++++++
16 2 files changed, 81 insertions(+)
17
18 diff --git a/sys-cluster/keepalived/Manifest b/sys-cluster/keepalived/Manifest
19 index 8228fbe7071f..2462fc02d23f 100644
20 --- a/sys-cluster/keepalived/Manifest
21 +++ b/sys-cluster/keepalived/Manifest
22 @@ -1 +1,2 @@
23 DIST keepalived-2.2.4.tar.gz 1151290 BLAKE2B 835198fb23312e87894e7740427411d974c00f71029b273d8da3e787ef92848127d896b456fb40db8d802b6c7555e6524872f136f868e19c62387a9471e44b0f SHA512 b8b0f3e7092b7b7093a9927259928076ee95ed176dd26b3a5c38e8c0dc7b83468433944905618dbc9e4b73b81b0cd3f16c2db4234ed4fcdf30f4fc0e532f9422
24 +DIST keepalived-2.2.7.tar.gz 1180180 BLAKE2B 62c4534eb1eebeac596b628a1fa5fb4069498d532fdeff0dc51afbc71e90125bff7fcffb897da3fd34765c64f43d7b04dcf184169b1bc2cf33413e109f9f5cdc SHA512 9869437fe6f0c10590b13088002b53474a51102da9838a6575d835d006c4871b61324ab80e0e81e0a23d0124e6f033cfc7114749e87b8f736408f3f0bedb3968
25
26 diff --git a/sys-cluster/keepalived/keepalived-2.2.7.ebuild b/sys-cluster/keepalived/keepalived-2.2.7.ebuild
27 new file mode 100644
28 index 000000000000..37a8d7f17e5b
29 --- /dev/null
30 +++ b/sys-cluster/keepalived/keepalived-2.2.7.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit autotools systemd
38 +
39 +DESCRIPTION="A strong & robust keepalive facility to the Linux Virtual Server project"
40 +HOMEPAGE="https://www.keepalived.org/"
41 +SRC_URI="https://www.keepalived.org/software/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
46 +IUSE="+bfd dbus json regex snmp systemd"
47 +
48 +RDEPEND="
49 + dev-libs/libnl:=
50 + dev-libs/openssl:=
51 + dev-libs/popt
52 + net-libs/libnfnetlink
53 + sys-apps/iproute2
54 + regex? ( >=dev-libs/libpcre2-8:= )
55 + dbus? (
56 + sys-apps/dbus
57 + dev-libs/glib:2
58 + )
59 + json? ( dev-libs/json-c:= )
60 + snmp? ( net-analyzer/net-snmp:= )
61 + systemd? ( sys-apps/systemd )"
62 +DEPEND="${RDEPEND}
63 + >=sys-kernel/linux-headers-4.4"
64 +
65 +DOCS=(
66 + README CONTRIBUTORS INSTALL ChangeLog AUTHOR TODO
67 + doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt
68 +)
69 +
70 +src_prepare() {
71 + default
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 + econf \
83 + --with-init="$(usex systemd systemd custom)" \
84 + --with-kernel-dir="${ESYSROOT}"/usr \
85 + --enable-vrrp \
86 + $(use_enable bfd) \
87 + $(use_enable dbus) \
88 + $(use_enable json) \
89 + $(use_enable regex) \
90 + $(use_enable snmp) \
91 + $(use_enable snmp snmp-rfc) \
92 + $(use_enable systemd)
93 +}
94 +
95 +src_install() {
96 + default
97 +
98 + newinitd "${FILESDIR}"/keepalived.init-r1 keepalived
99 + newconfd "${FILESDIR}"/keepalived.confd-r1 keepalived
100 +
101 + systemd_newunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
102 + systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
103 +
104 + use snmp && dodoc doc/*MIB.txt
105 +
106 + # This was badly named by upstream, it's more HOWTO than anything else.
107 + newdoc INSTALL INSTALL+HOWTO
108 +
109 + # Clean up sysvinit files
110 + rm -rv "${ED}"/etc/sysconfig || die
111 +}