Diff kea-3.2.0-r1 with a kea-9999

/usr/portage/net-misc/kea/kea-9999.ebuild 2026-11-03 20:01:06.203692326 +0300
5 5

  
6 6
PYTHON_COMPAT=( python3_{11..15} )
7 7
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/isc.asc
8
inherit eapi9-ver flag-o-matic meson python-r1 systemd tmpfiles
8
inherit flag-o-matic meson python-r1 systemd tmpfiles
9 9
inherit toolchain-funcs verify-sig
10 10

  
11 11
DESCRIPTION="High-performance production grade DHCPv4 & DHCPv6 server"
......
13 13

  
14 14
if [[ ${PV} == 9999 ]]; then
15 15
	inherit git-r3
16
	EGIT_REPO_URI="https://gitlab.isc.org/isc-projects/kea.git"
17 16
else
18 17
	SRC_URI="
19 18
		https://downloads.isc.org/isc/kea/${PV}/${P}.tar.xz
19
		https://gitlab.isc.org/isc-projects/kea-packaging/-/archive/Kea-${PV}/kea-packaging-Kea-${PV}.tar.bz2
20 20
		!doc? ( https://codeberg.org/peter1010/kea-manpages/archive/kea-manpages-${PV}.tar.gz )
21 21
		verify-sig? ( https://downloads.isc.org/isc/kea/${PV}/${P}.tar.xz.asc )
22 22
	"
......
31 31
RESTRICT="!test? ( test )"
32 32

  
33 33
COMMON_DEPEND="
34
	>=dev-libs/boost-1.66:=
35 34
	dev-libs/log4cplus:=
36 35
	kerberos? ( virtual/krb5 )
37 36
	mysql? (
......
46 45
	shell? ( ${PYTHON_DEPS} )
47 46
"
48 47
DEPEND="${COMMON_DEPEND}
48
	>=dev-libs/boost-1.66:=
49 49
	test? ( dev-cpp/gtest )
50 50
"
51 51
RDEPEND="${COMMON_DEPEND}
......
78 78

  
79 79
src_unpack() {
80 80
	if [[ ${PV} == 9999 ]]; then
81
		git-r3_src_unpack
81
		local base_uri
82
		base_uri="https://gitlab.isc.org/isc-projects"
83

  
84
		git-r3_fetch "${base_uri}"/kea.git
85
		git-r3_checkout "${base_uri}"/kea.git kea-${PV}
86

  
87
		git-r3_fetch "${base_uri}"/kea-packaging.git
88
		git-r3_checkout "${base_uri}"/kea-packaging.git kea-packaging-${P^}
82 89
		return
83 90
	fi
84 91

  
......
255 262
	# No easy way to control how meson_install sets permissions in meson < 1.9
256 263
	# So make sure permissions are same as in previous versions of kea
257 264
	# To avoid any differences between an update vers first time install
265
	# /usr/bin only contains the extra native compilation tool kea-msg-compiler,
266
	# that is not built with cross-compile
258 267
	fperms -R 0755 /usr/sbin
259
	fperms -R 0755 /usr/bin
260 268
	fperms -R 0755 /usr/$(get_libdir)
261 269

  
262 270
	if use shell; then
......
282 290
		sed -e "s:@KEA_SVC@:${svc}:g" \
283 291
			-i "${ED}"/etc/conf.d/kea-${svc} || die
284 292
		dosym kea "${EPREFIX}"/etc/init.d/kea-${svc}
293
		sed -e 's/User=kea/User=dhcp/' \
294
			-i "${WORKDIR}/kea-packaging-${P^}/rpm/kea-${svc}.service" || die
295
		systemd_dounit "${WORKDIR}"/kea-packaging-${P^}/rpm/kea-${svc}.service
285 296
	done
286 297

  
287
	if use !doc; then
288
		doman "${WORKDIR}"/kea-manpages/man/*
298
	if ! [[ ${PV} == 9999 ]]; then
299
		use doc || doman "${WORKDIR}"/kea-manpages/man/*
289 300
	fi
290 301

  
291
	systemd_newunit "${FILESDIR}"/${PN}-dhcp-ddns.service-r2 ${PN}-dhcp-ddns.service
292
	systemd_newunit "${FILESDIR}"/${PN}-dhcp4.service-r2 ${PN}-dhcp4.service
293
	systemd_newunit "${FILESDIR}"/${PN}-dhcp6.service-r2 ${PN}-dhcp6.service
294

  
295 302
	newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.conf ${PN}.conf
296 303

  
297 304
	keepdir /var/lib/${PN} /var/log/${PN}
......
302 309
pkg_postinst() {
303 310
	tmpfiles_process ${PN}.conf
304 311

  
305
	if ver_replacing -lt 2.6; then
306
		ewarn "Several changes have been made for daemons:"
307
		ewarn "  To comply with common practices for this package,"
308
		ewarn "  config paths by default has been changed as below:"
309
		ewarn "    /etc/kea/kea-dhcp4.conf"
310
		ewarn "    /etc/kea/kea-dhcp6.conf"
311
		ewarn "    /etc/kea/kea-dhcp-ddns.conf"
312
		ewarn
313
		ewarn "  Daemons are launched by default with the unprivileged user 'dhcp'"
314
		ewarn
315
		ewarn "Please check your configuration!"
316
	fi
317

  
318
	if ver_replacing -lt 3.0; then
319
		ewarn "Make sure that ${EPREFIX}/var/lib/kea and all the files in it are owned by dhcp:"
320
		ewarn "chown -R dhcp:dhcp ${EPREFIX}/var/lib/kea"
321
		ewarn
322
		ewarn "If using openrc;"
323
		ewarn "  There are now separate conf.d scripts and associated init.d per daemon!"
324
		ewarn "    Each Daemon needs to be launched separately, i.e. the daemons are"
325
		ewarn "      kea-dhcp4"
326
		ewarn "      kea-dhcp6"
327
		ewarn "      kea-dhcp-ddns"
328
		ewarn "Please adjust your service startups appropriately"
329
	fi
330

  
331 312
	if ! has_version net-misc/kea; then
332 313
		elog "See examples of config files in:"
333 314
		elog "  ${EROOT}/usr/share/doc/${PF}/examples"
Thank you!