From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 891C513933E for ; Sun, 18 Jul 2021 16:18:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97994E0CCB; Sun, 18 Jul 2021 16:18:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7DE89E0CCB for ; Sun, 18 Jul 2021 16:18:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 744CC342B6D for ; Sun, 18 Jul 2021 16:18:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D69857DA for ; Sun, 18 Jul 2021 16:18:00 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1626625052.fb9c532fc04f8fdef947abd565e8f7bc99b465d3.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/munge/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/munge/munge-0.5.13-r2.ebuild X-VCS-Directories: sys-auth/munge/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: fb9c532fc04f8fdef947abd565e8f7bc99b465d3 X-VCS-Branch: master Date: Sun, 18 Jul 2021 16:18:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4591197b-d1f4-481a-a4f6-3c7e6ea2c4a7 X-Archives-Hash: 2b640fdae2154321c982d0007993c3f9 commit: fb9c532fc04f8fdef947abd565e8f7bc99b465d3 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 18 11:21:23 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 18 16:17:32 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb9c532f sys-auth/munge: migrate to GLEP 81 Bug: https://bugs.gentoo.org/781491 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> sys-auth/munge/munge-0.5.13-r2.ebuild | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/sys-auth/munge/munge-0.5.13-r2.ebuild b/sys-auth/munge/munge-0.5.13-r2.ebuild new file mode 100644 index 00000000000..b10bf0e8169 --- /dev/null +++ b/sys-auth/munge/munge-0.5.13-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools prefix + +DESCRIPTION="An authentication service for creating and validating credentials" +HOMEPAGE="https://github.com/dun/munge" +SRC_URI="https://github.com/dun/munge/releases/download/munge-${PV}/munge-${PV}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" +IUSE="debug gcrypt static-libs" + +DEPEND=" + app-arch/bzip2 + sys-libs/zlib + gcrypt? ( dev-libs/libgcrypt:0 ) + !gcrypt? ( dev-libs/openssl:0= ) +" +RDEPEND=" + ${DEPEND} + acct-group/munge + acct-user/munge +" + +src_prepare() { + default + + hprefixify config/x_ac_path_openssl.m4 + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --localstatedir="${EPREFIX}"/var + --with-crypto-lib=$(usex gcrypt libgcrypt openssl) + $(use_enable debug) + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + local d + + default + + # Bug 450830 + if [ -d "${ED}"/var/run ]; then + rm -rf "${ED}"/var/run || die + fi + + dodir /etc/munge + keepdir /var/{lib,log}/munge + + for d in "init.d" "default" "sysconfig"; do + if [ -d "${ED}"/etc/${d} ]; then + rm -r "${ED}"/etc/${d} || die + fi + done + + newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d + newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi +}