| 13 |
13 |
inherit git-r3
|
| 14 |
14 |
EGIT_REPO_URI="https://gitlab.isc.org/isc-projects/kea.git"
|
| 15 |
15 |
else
|
| 16 |
|
SRC_URI="
|
| 17 |
|
https://downloads.isc.org/isc/kea/${PV}/${P}.tar.xz
|
| 18 |
|
!doc? ( https://codeberg.org/peter1010/kea-manpages/archive/kea-manpages-${PV}.tar.gz )
|
| 19 |
|
"
|
| 20 |
|
KEYWORDS="amd64 arm arm64 ~x86"
|
|
16 |
SRC_URI="https://downloads.isc.org/isc/kea/${PV}/${P}.tar.xz"
|
|
17 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
| 21 |
18 |
fi
|
| 22 |
19 |
|
| 23 |
20 |
LICENSE="MPL-2.0"
|
| 24 |
21 |
SLOT="0"
|
| 25 |
|
IUSE="debug doc kerberos mysql +openssl postgres shell test"
|
|
22 |
IUSE="debug doc mysql +openssl postgres shell test"
|
| 26 |
23 |
|
| 27 |
24 |
REQUIRED_USE="shell? ( ${PYTHON_REQUIRED_USE} )"
|
| 28 |
25 |
RESTRICT="!test? ( test )"
|
| ... | ... | |
| 30 |
27 |
COMMON_DEPEND="
|
| 31 |
28 |
>=dev-libs/boost-1.66:=
|
| 32 |
29 |
dev-libs/log4cplus:=
|
| 33 |
|
kerberos? ( virtual/krb5 )
|
| 34 |
30 |
mysql? (
|
| 35 |
31 |
app-arch/zstd:=
|
| 36 |
32 |
dev-db/mysql-connector-c:=
|
| ... | ... | |
| 61 |
57 |
${PYTHON_DEPS}
|
| 62 |
58 |
"
|
| 63 |
59 |
|
| 64 |
|
PATCHES=(
|
| 65 |
|
"${FILESDIR}"/kea-3.0.1-boost-1.89.patch
|
| 66 |
|
)
|
| 67 |
|
|
| 68 |
60 |
python_check_deps() {
|
| 69 |
61 |
use doc || return 0;
|
| 70 |
62 |
python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" \
|
| ... | ... | |
| 117 |
109 |
local emesonargs=(
|
| 118 |
110 |
--localstatedir="${EPREFIX}/var"
|
| 119 |
111 |
-Drunstatedir="${EPREFIX}/run"
|
| 120 |
|
$(meson_feature kerberos krb5)
|
|
112 |
-Dkrb5=disabled
|
| 121 |
113 |
-Dnetconf=disabled
|
| 122 |
114 |
-Dcrypto=$(usex openssl openssl botan)
|
| 123 |
115 |
$(meson_feature mysql)
|
| ... | ... | |
| 135 |
127 |
src_compile() {
|
| 136 |
128 |
meson_src_compile
|
| 137 |
129 |
|
|
130 |
# Note: If you want man pages doc use has to be set. This may change
|
|
131 |
# in the future and be like 2.6.3 where man pages were part of the release tarball
|
| 138 |
132 |
use doc && meson_src_compile doc
|
| 139 |
133 |
}
|
| 140 |
134 |
|
| ... | ... | |
| 161 |
155 |
kea-log-console_test.sh
|
| 162 |
156 |
dhcp-lease-query-tests
|
| 163 |
157 |
kea-dhcp6-tests
|
| 164 |
|
kea-dhcp4-tests
|
| 165 |
158 |
kea-dhcp-tests
|
| 166 |
159 |
)
|
| 167 |
160 |
|
| ... | ... | |
| 171 |
164 |
kea-mysql-tests
|
| 172 |
165 |
dhcp-mysql-lib-tests
|
| 173 |
166 |
dhcp-forensic-log-libloadtests
|
|
167 |
kea-dhcp4-tests
|
| 174 |
168 |
)
|
| 175 |
169 |
fi
|
| 176 |
170 |
|
| ... | ... | |
| 180 |
174 |
kea-pgsql-tests
|
| 181 |
175 |
dhcp-pgsql-lib-tests
|
| 182 |
176 |
dhcp-forensic-log-libloadtests
|
| 183 |
|
)
|
| 184 |
|
fi
|
| 185 |
|
|
| 186 |
|
if use kerberos; then
|
| 187 |
|
SKIP_TESTS+=(
|
| 188 |
|
ddns-gss-tsig-tests
|
|
177 |
kea-dhcp4-tests
|
| 189 |
178 |
)
|
| 190 |
179 |
fi
|
| 191 |
180 |
|
| ... | ... | |
| 193 |
182 |
# see https://bugs.gentoo.org/958171 for reason for skipping these tests
|
| 194 |
183 |
SKIP_TESTS+=(
|
| 195 |
184 |
kea-util-tests
|
|
185 |
kea-dhcp4-tests
|
| 196 |
186 |
kea-dhcpsrv-tests
|
| 197 |
187 |
dhcp-ha-lib-tests
|
| 198 |
188 |
kea-d2-tests
|
| ... | ... | |
| 254 |
244 |
dosym kea "${EPREFIX}"/etc/init.d/kea-${svc}
|
| 255 |
245 |
done
|
| 256 |
246 |
|
| 257 |
|
if use !doc; then
|
| 258 |
|
doman "${WORKDIR}"/kea-manpages/man/*
|
| 259 |
|
fi
|
| 260 |
|
|
| 261 |
247 |
systemd_newunit "${FILESDIR}"/${PN}-ctrl-agent.service-r2 ${PN}-ctrl-agent.service
|
| 262 |
248 |
systemd_newunit "${FILESDIR}"/${PN}-dhcp-ddns.service-r2 ${PN}-dhcp-ddns.service
|
| 263 |
249 |
systemd_newunit "${FILESDIR}"/${PN}-dhcp4.service-r2 ${PN}-dhcp4.service
|
| ... | ... | |
| 288 |
274 |
fi
|
| 289 |
275 |
|
| 290 |
276 |
if ver_replacing -lt 3.0; then
|
| 291 |
|
ewarn "Make sure that ${EPREFIX}/var/lib/kea and all the files in it are owned by dhcp:"
|
| 292 |
|
ewarn "chown -R dhcp:dhcp ${EPREFIX}/var/lib/kea"
|
| 293 |
|
ewarn
|
| 294 |
277 |
ewarn "If using openrc;"
|
| 295 |
278 |
ewarn " There are now separate conf.d scripts and associated init.d per daemon!"
|
| 296 |
279 |
ewarn " Each Daemon needs to be launched separately, i.e. the daemons are"
|