Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/munge/
Date: Sun, 18 Jul 2021 16:18:05
Message-Id: 1626625052.fb9c532fc04f8fdef947abd565e8f7bc99b465d3.conikost@gentoo
1 commit: fb9c532fc04f8fdef947abd565e8f7bc99b465d3
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 11:21:23 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 16:17:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb9c532f
7
8 sys-auth/munge: migrate to GLEP 81
9
10 Bug: https://bugs.gentoo.org/781491
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 sys-auth/munge/munge-0.5.13-r2.ebuild | 73 +++++++++++++++++++++++++++++++++++
15 1 file changed, 73 insertions(+)
16
17 diff --git a/sys-auth/munge/munge-0.5.13-r2.ebuild b/sys-auth/munge/munge-0.5.13-r2.ebuild
18 new file mode 100644
19 index 00000000000..b10bf0e8169
20 --- /dev/null
21 +++ b/sys-auth/munge/munge-0.5.13-r2.ebuild
22 @@ -0,0 +1,73 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit autotools prefix
29 +
30 +DESCRIPTION="An authentication service for creating and validating credentials"
31 +HOMEPAGE="https://github.com/dun/munge"
32 +SRC_URI="https://github.com/dun/munge/releases/download/munge-${PV}/munge-${PV}.tar.xz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
37 +IUSE="debug gcrypt static-libs"
38 +
39 +DEPEND="
40 + app-arch/bzip2
41 + sys-libs/zlib
42 + gcrypt? ( dev-libs/libgcrypt:0 )
43 + !gcrypt? ( dev-libs/openssl:0= )
44 +"
45 +RDEPEND="
46 + ${DEPEND}
47 + acct-group/munge
48 + acct-user/munge
49 +"
50 +
51 +src_prepare() {
52 + default
53 +
54 + hprefixify config/x_ac_path_openssl.m4
55 +
56 + eautoreconf
57 +}
58 +
59 +src_configure() {
60 + local myeconfargs=(
61 + --localstatedir="${EPREFIX}"/var
62 + --with-crypto-lib=$(usex gcrypt libgcrypt openssl)
63 + $(use_enable debug)
64 + $(use_enable static-libs static)
65 + )
66 +
67 + econf "${myeconfargs[@]}"
68 +}
69 +
70 +src_install() {
71 + local d
72 +
73 + default
74 +
75 + # Bug 450830
76 + if [ -d "${ED}"/var/run ]; then
77 + rm -rf "${ED}"/var/run || die
78 + fi
79 +
80 + dodir /etc/munge
81 + keepdir /var/{lib,log}/munge
82 +
83 + for d in "init.d" "default" "sysconfig"; do
84 + if [ -d "${ED}"/etc/${d} ]; then
85 + rm -r "${ED}"/etc/${d} || die
86 + fi
87 + done
88 +
89 + newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d
90 + newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d
91 +
92 + if ! use static-libs; then
93 + find "${D}" -name '*.la' -delete || die
94 + fi
95 +}