diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-03-27 21:21:31 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-03-27 21:56:52 +0200 |
commit | 2053cc85f3ffab5c526da278c48b5f7ab88278a9 (patch) | |
tree | f6e0896c45d9f72c2eeece74b51af6d081f6d678 /sys-apps | |
parent | dev-db/pgagent: drop 4.0.0-r1 (diff) | |
download | gentoo-2053cc85f3ffab5c526da278c48b5f7ab88278a9.tar.gz gentoo-2053cc85f3ffab5c526da278c48b5f7ab88278a9.tar.bz2 gentoo-2053cc85f3ffab5c526da278c48b5f7ab88278a9.zip |
sys-apps/utempter: update EAPI 6 -> 8
This bump also migrates to GLEP-81.
Closes: https://github.com/gentoo/gentoo/pull/24781
Bug: https://bugs.gentoo.org/781584
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild new file mode 100644 index 000000000000..f52de8c53368 --- /dev/null +++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${P%.*}" +MY_P="${MY_PN}-${PV##*.}" + +inherit flag-o-matic rpm toolchain-funcs + +DESCRIPTION="App that allows non-privileged apps to write utmp (login) info" +HOMEPAGE="https://www.redhat.com/" +SRC_URI="mirror://gentoo/${MY_P}.src.rpm" +S="${WORKDIR}/${MY_PN}" + +LICENSE="|| ( MIT LGPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + +BDEPEND="acct-group/utmp" +RDEPEND=" + ${BDEPEND} + !sys-libs/libutempter +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.5.6-no_utmpx.patch + "${FILESDIR}"/${PN}-0.5.5.6-fix-build-system.patch +) + +src_prepare() { + default + tc-export CC + append-cflags -Wall +} + +src_install() { + local myemakeargs=( + LIBDIR="/usr/$(get_libdir)" + RPM_BUILD_ROOT="${ED}" + ) + + emake "${myemakeargs[@]}" install + + dobin utmp + + fowners root:utmp /usr/sbin/utempter + fperms 2755 /usr/sbin/utempter +} |