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-apps/utempter/
Date: Sun, 27 Mar 2022 19:57:36
Message-Id: 1648411012.2053cc85f3ffab5c526da278c48b5f7ab88278a9.conikost@gentoo
1 commit: 2053cc85f3ffab5c526da278c48b5f7ab88278a9
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 19:21:31 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 19:56:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2053cc85
7
8 sys-apps/utempter: update EAPI 6 -> 8
9
10 This bump also migrates to GLEP-81.
11
12 Closes: https://github.com/gentoo/gentoo/pull/24781
13 Bug: https://bugs.gentoo.org/781584
14 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
15
16 sys-apps/utempter/utempter-0.5.5.6-r1.ebuild | 49 ++++++++++++++++++++++++++++
17 1 file changed, 49 insertions(+)
18
19 diff --git a/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
20 new file mode 100644
21 index 000000000000..f52de8c53368
22 --- /dev/null
23 +++ b/sys-apps/utempter/utempter-0.5.5.6-r1.ebuild
24 @@ -0,0 +1,49 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +
30 +MY_PN="${P%.*}"
31 +MY_P="${MY_PN}-${PV##*.}"
32 +
33 +inherit flag-o-matic rpm toolchain-funcs
34 +
35 +DESCRIPTION="App that allows non-privileged apps to write utmp (login) info"
36 +HOMEPAGE="https://www.redhat.com/"
37 +SRC_URI="mirror://gentoo/${MY_P}.src.rpm"
38 +S="${WORKDIR}/${MY_PN}"
39 +
40 +LICENSE="|| ( MIT LGPL-2 )"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
43 +
44 +BDEPEND="acct-group/utmp"
45 +RDEPEND="
46 + ${BDEPEND}
47 + !sys-libs/libutempter
48 +"
49 +
50 +PATCHES=(
51 + "${FILESDIR}"/${PN}-0.5.5.6-no_utmpx.patch
52 + "${FILESDIR}"/${PN}-0.5.5.6-fix-build-system.patch
53 +)
54 +
55 +src_prepare() {
56 + default
57 + tc-export CC
58 + append-cflags -Wall
59 +}
60 +
61 +src_install() {
62 + local myemakeargs=(
63 + LIBDIR="/usr/$(get_libdir)"
64 + RPM_BUILD_ROOT="${ED}"
65 + )
66 +
67 + emake "${myemakeargs[@]}" install
68 +
69 + dobin utmp
70 +
71 + fowners root:utmp /usr/sbin/utempter
72 + fperms 2755 /usr/sbin/utempter
73 +}