Сравнение munge-0.5.13-r2 с munge-0.5.15

/usr/portage/sys-auth/munge/munge-0.5.15.ebuild 2023-10-09 14:52:35.424368500 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit autotools prefix tmpfiles
6
inherit autotools prefix systemd tmpfiles
7 7

  
8 8
DESCRIPTION="An authentication service for creating and validating credentials"
9 9
HOMEPAGE="https://github.com/dun/munge"
10
SRC_URI="https://github.com/dun/munge/releases/download/munge-${PV}/munge-${PV}.tar.xz"
10
SRC_URI="https://github.com/dun/munge/releases/download/${P}/${P}.tar.xz"
11 11

  
12 12
LICENSE="GPL-3"
13 13
SLOT="0"
14
KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
14
KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
15 15
IUSE="debug gcrypt static-libs"
16
# TODO: still tries to use ${S}?
17
RESTRICT="test"
16 18

  
17 19
DEPEND="
18 20
	app-arch/bzip2
19 21
	sys-libs/zlib
20
	gcrypt? ( dev-libs/libgcrypt:0 )
21
	!gcrypt? ( dev-libs/openssl:0= )
22
	gcrypt? ( dev-libs/libgcrypt:= )
23
	!gcrypt? ( dev-libs/openssl:= )
22 24
"
23 25
RDEPEND="
24 26
	${DEPEND}
25 27
	acct-group/munge
26 28
	acct-user/munge
27 29
"
30
BDEPEND="app-arch/xz-utils[extra-filters]"
28 31

  
29 32
src_prepare() {
30 33
	default
......
37 40
src_configure() {
38 41
	local myeconfargs=(
39 42
		--localstatedir="${EPREFIX}"/var
43
		--with-logrotateddir="${EPREFIX}"/etc/logrotate.d
44
		--with-pkgconfigdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
45
		--with-systemdunitdir="$(systemd_get_systemunitdir)"
40 46
		--with-crypto-lib=$(usex gcrypt libgcrypt openssl)
41 47
		$(use_enable debug)
42 48
		$(use_enable static-libs static)
......
45 51
	econf "${myeconfargs[@]}"
46 52
}
47 53

  
48
src_install() {
49
	local d
54
src_test() {
55
	# Note that both verboses seem to be needed, otherwise output
56
	# is verbose but not maximally so
57
	emake check root="${T}"/munge VERBOSE=t verbose=t
58
}
50 59

  
60
src_install() {
51 61
	default
52 62

  
53
	# Bug 450830
54
	if [ -d "${ED}"/var/run ]; then
63
	# bug #450830
64
	if [[ -d "${ED}"/var/run ]] ; then
55 65
		rm -rf "${ED}"/var/run || die
56 66
	fi
57 67

  
58 68
	dodir /etc/munge
59 69
	keepdir /var/{lib,log}/munge
60 70

  
71
	local d
61 72
	for d in "init.d" "default" "sysconfig"; do
62
		if [ -d "${ED}"/etc/${d} ]; then
73
		if [[ -d "${ED}"/etc/${d} ]] ; then
63 74
			rm -r "${ED}"/etc/${d} || die
64 75
		fi
65 76
	done
......
67 78
	newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d
68 79
	newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d
69 80

  
81
	newtmpfiles "${FILESDIR}"/munged.tmpfiles.conf munged.conf
82

  
70 83
	if ! use static-libs; then
71
		find "${D}" -name '*.la' -delete || die
84
		find "${ED}" -name '*.la' -delete || die
72 85
	fi
73 86
}
74 87

  
75 88
pkg_postinst() {
76
	tmpfiles_process munge.conf
89
	tmpfiles_process munged.conf
77 90
}
Спасибо!