Diff kea-3.2.0-r1 with a kea-9999

/usr/portage/net-misc/kea/kea-9999.ebuild 2026-09-07 20:03:07.379238826 +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"
......
17 17
else
18 18
	SRC_URI="
19 19
		https://downloads.isc.org/isc/kea/${PV}/${P}.tar.xz
20
		!doc? ( https://codeberg.org/peter1010/kea-manpages/archive/kea-manpages-${PV}.tar.gz )
21 20
		verify-sig? ( https://downloads.isc.org/isc/kea/${PV}/${P}.tar.xz.asc )
22 21
	"
23
	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
22
	KEYWORDS="amd64 arm arm64 ~x86"
24 23
fi
25 24

  
26 25
LICENSE="MPL-2.0"
......
73 72
}
74 73

  
75 74
pkg_setup() {
76
	[[ ${MERGE_TYPE} != binary ]] && python_setup
75
	python_setup
77 76
}
78 77

  
79 78
src_unpack() {
......
244 243
src_install() {
245 244
	meson_install
246 245

  
247
	# Remove unused database files
246
	# Remove build metadata and unused database files
247
	rm -r "${ED}"/usr/share/kea/meson-info || die
248 248
	if use !mysql; then
249 249
		rm -r "${ED}"/usr/share/kea/scripts/mysql || die
250 250
	fi
......
276 276

  
277 277
	# Install a conf per service and a linked init script per service
278 278
	newinitd "${FILESDIR}"/${PN}-initd-r5 ${PN}
279

  
279 280
	local svc
280 281
	for svc in dhcp4 dhcp6 dhcp-ddns; do
281 282
		newconfd "${FILESDIR}"/${PN}-confd-r4 kea-${svc}
......
284 285
		dosym kea "${EPREFIX}"/etc/init.d/kea-${svc}
285 286
	done
286 287

  
287
	if use !doc; then
288
		doman "${WORKDIR}"/kea-manpages/man/*
289
	fi
290

  
291 288
	systemd_newunit "${FILESDIR}"/${PN}-dhcp-ddns.service-r2 ${PN}-dhcp-ddns.service
292 289
	systemd_newunit "${FILESDIR}"/${PN}-dhcp4.service-r2 ${PN}-dhcp4.service
293 290
	systemd_newunit "${FILESDIR}"/${PN}-dhcp6.service-r2 ${PN}-dhcp6.service
......
302 299
pkg_postinst() {
303 300
	tmpfiles_process ${PN}.conf
304 301

  
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 302
	if ! has_version net-misc/kea; then
332 303
		elog "See examples of config files in:"
333 304
		elog "  ${EROOT}/usr/share/doc/${PF}/examples"
Thank you!