From f92a659da835aea056c791d2c8e2d3e38b50a5d4 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Tue, 24 Mar 2020 23:07:32 +0100 Subject: [PATCH] sys-libs/libutempter: EAPI-7 revbump Package-Manager: Portage-2.3.95, Repoman-2.3.21 Signed-off-by: Lars Wendler --- ...-r2.ebuild => libutempter-1.1.6-r3.ebuild} | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) rename sys-libs/libutempter/{libutempter-1.1.6-r2.ebuild => libutempter-1.1.6-r3.ebuild} (87%) diff --git a/sys-libs/libutempter/libutempter-1.1.6-r2.ebuild b/sys-libs/libutempter/libutempter-1.1.6-r3.ebuild similarity index 87% rename from sys-libs/libutempter/libutempter-1.1.6-r2.ebuild rename to sys-libs/libutempter/libutempter-1.1.6-r3.ebuild index 4b54fc4cef3e..00420c6927b6 100644 --- a/sys-libs/libutempter/libutempter-1.1.6-r2.ebuild +++ b/sys-libs/libutempter/libutempter-1.1.6-r3.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="4" +EAPI=7 -inherit user multilib flag-o-matic toolchain-funcs +inherit multilib flag-o-matic toolchain-funcs DESCRIPTION="Library that allows non-privileged apps to write utmp (login) info" HOMEPAGE="https://altlinux.org/index.php?module=sisyphus&package=libutempter" @@ -14,13 +14,14 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux" IUSE="static-libs elibc_FreeBSD" -RDEPEND="!sys-apps/utempter" - -pkg_setup() { - enewgroup utmp 406 -} +RDEPEND=" + !sys-apps/utempter + acct-group/utmp +" src_prepare() { + default + local args=( -e "/^libdir /s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" -e '/^libexecdir /s:=.*:= $(libdir)/misc:' @@ -57,12 +58,12 @@ src_install() { } pkg_postinst() { - if [ -f "${EROOT}/var/log/wtmp" ] ; then + if [[ -f "${EROOT}/var/log/wtmp" ]] ; then chown root:utmp "${EROOT}/var/log/wtmp" chmod 664 "${EROOT}/var/log/wtmp" fi - if [ -f "${EROOT}/var/run/utmp" ] ; then + if [[ -f "${EROOT}/var/run/utmp" ]] ; then chown root:utmp "${EROOT}/var/run/utmp" chmod 664 "${EROOT}/var/run/utmp" fi -- 2.26.2