Сравнение kea-3.2.0-r1 с kea-9999

/usr/portage/net-misc/kea/kea-9999.ebuild 2026-11-16 17:41:29.345715610 +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
	"
23
	KEYWORDS="amd64 arm arm64 ~x86"
23
	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
24 24
fi
25 25

  
26 26
LICENSE="MPL-2.0"
......
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

  
......
235 242
	# No easy way to control how meson_install sets permissions in meson < 1.9
236 243
	# So make sure permissions are same as in previous versions of kea
237 244
	# To avoid any differences between an update vers first time install
245
	# /usr/bin only contains the extra native compilation tool kea-msg-compiler,
246
	# that is not built with cross-compile
238 247
	fperms -R 0755 /usr/sbin
239
	fperms -R 0755 /usr/bin
240 248
	fperms -R 0755 /usr/$(get_libdir)
241 249

  
242 250
	if use shell; then
......
262 270
		sed -e "s:@KEA_SVC@:${svc}:g" \
263 271
			-i "${ED}"/etc/conf.d/kea-${svc} || die
264 272
		dosym kea "${EPREFIX}"/etc/init.d/kea-${svc}
273
		sed -e 's/User=kea/User=dhcp/' \
274
			-i "${WORKDIR}/kea-packaging-${P^}/rpm/kea-${svc}.service" || die
275
		systemd_dounit "${WORKDIR}"/kea-packaging-${P^}/rpm/kea-${svc}.service
265 276
	done
266 277

  
267
	if use !doc; then
268
		doman "${WORKDIR}"/kea-manpages/man/*
278
	if ! [[ ${PV} == 9999 ]]; then
279
		use doc || doman "${WORKDIR}"/kea-manpages/man/*
269 280
	fi
270 281

  
271
	systemd_newunit "${FILESDIR}"/${PN}-dhcp-ddns.service-r2 ${PN}-dhcp-ddns.service
272
	systemd_newunit "${FILESDIR}"/${PN}-dhcp4.service-r2 ${PN}-dhcp4.service
273
	systemd_newunit "${FILESDIR}"/${PN}-dhcp6.service-r2 ${PN}-dhcp6.service
274

  
275 282
	newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.conf ${PN}.conf
276 283

  
277 284
	keepdir /var/lib/${PN} /var/log/${PN}
......
282 289
pkg_postinst() {
283 290
	tmpfiles_process ${PN}.conf
284 291

  
285
	if ver_replacing -lt 2.6; then
286
		ewarn "Several changes have been made for daemons:"
287
		ewarn "  To comply with common practices for this package,"
288
		ewarn "  config paths by default has been changed as below:"
289
		ewarn "    /etc/kea/kea-dhcp4.conf"
290
		ewarn "    /etc/kea/kea-dhcp6.conf"
291
		ewarn "    /etc/kea/kea-dhcp-ddns.conf"
292
		ewarn
293
		ewarn "  Daemons are launched by default with the unprivileged user 'dhcp'"
294
		ewarn
295
		ewarn "Please check your configuration!"
296
	fi
297

  
298
	if ver_replacing -lt 3.0; then
299
		ewarn "Make sure that ${EPREFIX}/var/lib/kea and all the files in it are owned by dhcp:"
300
		ewarn "chown -R dhcp:dhcp ${EPREFIX}/var/lib/kea"
301
		ewarn
302
		ewarn "If using openrc;"
303
		ewarn "  There are now separate conf.d scripts and associated init.d per daemon!"
304
		ewarn "    Each Daemon needs to be launched separately, i.e. the daemons are"
305
		ewarn "      kea-dhcp4"
306
		ewarn "      kea-dhcp6"
307
		ewarn "      kea-dhcp-ddns"
308
		ewarn "Please adjust your service startups appropriately"
309
	fi
310

  
311 292
	if ! has_version net-misc/kea; then
312 293
		elog "See examples of config files in:"
313 294
		elog "  ${EROOT}/usr/share/doc/${PF}/examples"
Спасибо!