1 |
commit: c7d3e9c71823164d3eb6f0ffe3470043be4be7ba |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 12:09:59 2022 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 12:27:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7d3e9c7 |
7 |
|
8 |
net-misc/kea: Bump to version 2.0.2 |
9 |
|
10 |
Removed old |
11 |
|
12 |
- Bump to EAPI-8 |
13 |
- Install message-compiler (#845327) |
14 |
- Add missing caps (831115) |
15 |
|
16 |
Closes: https://bugs.gentoo.org/830059 |
17 |
Closes: https://bugs.gentoo.org/831115 |
18 |
Closes: https://bugs.gentoo.org/845327 |
19 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
20 |
|
21 |
net-misc/kea/Manifest | 2 +- |
22 |
.../kea/{kea-1.9.11.ebuild => kea-2.0.2.ebuild} | 32 ++++++++++++++++------ |
23 |
net-misc/kea/metadata.xml | 1 + |
24 |
3 files changed, 26 insertions(+), 9 deletions(-) |
25 |
|
26 |
diff --git a/net-misc/kea/Manifest b/net-misc/kea/Manifest |
27 |
index 88efc3d478ab..bff98126c828 100644 |
28 |
--- a/net-misc/kea/Manifest |
29 |
+++ b/net-misc/kea/Manifest |
30 |
@@ -1,2 +1,2 @@ |
31 |
DIST kea-1.8.2.tar.gz 9005645 BLAKE2B fec1118ca34adc4bdafea13dd6c1c3abcd42df80043b621d1ed994e7ec6906a5d13e86a1bbb6dcbdfee32a4d70281c751b46c57d4866bd92557448ab7c602c30 SHA512 7bea9eb30ee819bd350ba3f64da7dc46d1176363e7243e934ff0f0498fcd47ef4eccb7fe8d8dd4f883ab9e376174aaba4fae06b20405181d46b6b12cfbdf7dd0 |
32 |
-DIST kea-1.9.11.tar.gz 9739770 BLAKE2B 0215ac48036506018dc869c313d59244e4bf03634be279039fd0dbf7de73a2d87654b11153ec9014b89c815068961633987d44a26b820e4692937c85d29d352c SHA512 5d7739d74b6fbed9733719af1aa068498fcc1eaa1ed423b93b9b4dd92de970e3cd036ad60377534a58e7d22e909404673358fa72307b6c32492f952684c180c0 |
33 |
+DIST kea-2.0.2.tar.gz 9796557 BLAKE2B a859c4cc3f6686db2dcf640738b421499a816700d134ee9322290051c3a192bab482be4a4bdb2630113594a3af1cafe2b95abce4a463815a6404fe87fac227ad SHA512 edb7de227898fb7bd76dd8b503d02e07b4ba512b907b53399a5c45bd216820b342f00c1834858848ce8ff94aa3c228ceead0e2946cbcb1f75a03ca579630be83 |
34 |
|
35 |
diff --git a/net-misc/kea/kea-1.9.11.ebuild b/net-misc/kea/kea-2.0.2.ebuild |
36 |
similarity index 76% |
37 |
rename from net-misc/kea/kea-1.9.11.ebuild |
38 |
rename to net-misc/kea/kea-2.0.2.ebuild |
39 |
index cec8274fa82c..aca4fe99e606 100644 |
40 |
--- a/net-misc/kea/kea-1.9.11.ebuild |
41 |
+++ b/net-misc/kea/kea-2.0.2.ebuild |
42 |
@@ -1,7 +1,7 @@ |
43 |
# Copyright 1999-2022 Gentoo Authors |
44 |
# Distributed under the terms of the GNU General Public License v2 |
45 |
|
46 |
-EAPI=7 |
47 |
+EAPI=8 |
48 |
|
49 |
MY_PV="${PV//_p/-P}" |
50 |
MY_PV="${MY_PV/_/-}" |
51 |
@@ -10,7 +10,9 @@ MY_P="${PN}-${MY_PV}" |
52 |
DESCRIPTION="High-performance production grade DHCPv4 & DHCPv6 server" |
53 |
HOMEPAGE="https://www.isc.org/kea/" |
54 |
|
55 |
-inherit autotools systemd tmpfiles |
56 |
+PYTHON_COMPAT=( python3_{8..10} ) |
57 |
+ |
58 |
+inherit autotools fcaps python-single-r1 systemd tmpfiles |
59 |
|
60 |
if [[ ${PV} = 9999* ]] ; then |
61 |
inherit git-r3 |
62 |
@@ -18,13 +20,16 @@ if [[ ${PV} = 9999* ]] ; then |
63 |
else |
64 |
SRC_URI="ftp://ftp.isc.org/isc/kea/${MY_P}.tar.gz |
65 |
ftp://ftp.isc.org/isc/kea/${MY_PV}/${MY_P}.tar.gz" |
66 |
- [[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \ |
67 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
68 |
+ # Odd minor version = development release |
69 |
+ if [[ $(( $(ver_cut 2) % 2 )) -ne 1 ]] ; then |
70 |
+ [[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \ |
71 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
72 |
+ fi |
73 |
fi |
74 |
|
75 |
LICENSE="ISC BSD SSLeay GPL-2" # GPL-2 only for init script |
76 |
SLOT="0" |
77 |
-IUSE="mysql +openssl postgres +samples test" |
78 |
+IUSE="mysql +openssl postgres +samples shell test" |
79 |
RESTRICT="!test? ( test )" |
80 |
|
81 |
COMMON_DEPEND=" |
82 |
@@ -33,7 +38,9 @@ COMMON_DEPEND=" |
83 |
mysql? ( dev-db/mysql-connector-c ) |
84 |
!openssl? ( dev-libs/botan:2= ) |
85 |
openssl? ( dev-libs/openssl:0= ) |
86 |
- postgres? ( dev-db/postgresql:* )" |
87 |
+ postgres? ( dev-db/postgresql:* ) |
88 |
+ shell? ( ${PYTHON_DEPS} ) |
89 |
+" |
90 |
DEPEND="${COMMON_DEPEND} |
91 |
test? ( dev-cpp/gtest ) |
92 |
" |
93 |
@@ -42,6 +49,8 @@ RDEPEND="${COMMON_DEPEND} |
94 |
acct-user/dhcp" |
95 |
BDEPEND="virtual/pkgconfig" |
96 |
|
97 |
+REQUIRED_USE="shell? ( ${PYTHON_REQUIRED_USE} )" |
98 |
+ |
99 |
S="${WORKDIR}/${MY_P}" |
100 |
|
101 |
PATCHES=( |
102 |
@@ -49,11 +58,15 @@ PATCHES=( |
103 |
"${FILESDIR}"/${PN}-1.9.10-gtest.patch |
104 |
) |
105 |
|
106 |
+pkg_setup() { |
107 |
+ use shell && python-single-r1_pkg_setup |
108 |
+} |
109 |
+ |
110 |
src_prepare() { |
111 |
default |
112 |
# Brand the version with Gentoo |
113 |
sed -i \ |
114 |
- -e "s/AC_INIT(kea,${PV}.*, kea-dev@×××××××××.org)/AC_INIT(kea,${PVR}-gentoo, kea-dev@×××××××××.org)/g" \ |
115 |
+ -e "s/AC_INIT(kea,${PV}.*, kea-dev@×××××××××.org)/AC_INIT([kea], [${PVR}-gentoo], [kea-dev@×××××××××.org])/g" \ |
116 |
configure.ac || die |
117 |
|
118 |
sed -i \ |
119 |
@@ -67,14 +80,16 @@ src_configure() { |
120 |
local myeconfargs=( |
121 |
--disable-install-configurations |
122 |
--disable-static |
123 |
+ --enable-generate-messages |
124 |
--enable-perfdhcp |
125 |
--localstatedir="${EPREFIX}/var" |
126 |
--runstatedir="${EPREFIX}/run" |
127 |
--without-werror |
128 |
+ $(use_enable test gtest) |
129 |
+ $(use_enable shell) |
130 |
$(use_with mysql) |
131 |
$(use_with openssl) |
132 |
$(use_with postgres pgsql) |
133 |
- $(use_enable test gtest) |
134 |
) |
135 |
econf "${myeconfargs[@]}" |
136 |
} |
137 |
@@ -108,4 +123,5 @@ src_install() { |
138 |
|
139 |
pkg_postinst() { |
140 |
tmpfiles_process ${PN}.conf |
141 |
+ fcaps cap_net_bind_service,cap_net_raw=+ep /usr/sbin/kea-dhcp{4,6} |
142 |
} |
143 |
|
144 |
diff --git a/net-misc/kea/metadata.xml b/net-misc/kea/metadata.xml |
145 |
index c1a041003281..086afe372b41 100644 |
146 |
--- a/net-misc/kea/metadata.xml |
147 |
+++ b/net-misc/kea/metadata.xml |
148 |
@@ -12,6 +12,7 @@ |
149 |
<use> |
150 |
<flag name="openssl">Use <pkg>dev-libs/openssl</pkg> instead of <pkg>dev-libs/botan</pkg></flag> |
151 |
<flag name="samples">Install sample configuration files</flag> |
152 |
+ <flag name="shell">Install kea-shell text management client for Control Agent</flag> |
153 |
</use> |
154 |
<upstream> |
155 |
<bugs-to>https://gitlab.isc.org/isc-projects/kea/-/issues</bugs-to> |