Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/elogind/
Date: Mon, 14 Jun 2021 09:13:00
Message-Id: 1623661968.75078f3c5e41719e40fd6ef851ece516e27be457.asturm@gentoo
1 commit: 75078f3c5e41719e40fd6ef851ece516e27be457
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 09:04:04 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 09:12:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75078f3c
7
8 sys-auth/elogind: Drop 246.9.2
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sys-auth/elogind/Manifest | 1 -
14 sys-auth/elogind/elogind-246.9.2.ebuild | 148 --------------------------------
15 2 files changed, 149 deletions(-)
16
17 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
18 index 4eb0c703684..871cbc88d9f 100644
19 --- a/sys-auth/elogind/Manifest
20 +++ b/sys-auth/elogind/Manifest
21 @@ -1,2 +1 @@
22 DIST elogind-246.10.tar.gz 1559256 BLAKE2B 17a8146ee08c8ccf167f25d89b1d4525050ed0b0baaad0d36924ad3c40ffc820ef1528b33557cf285ad06c9ac9c440137428c5a235a2acf563e56f2f8f07e208 SHA512 9db0f068ed94ec07bab4d764ccb38840af3d05a4b7c9c539721906f5381b509cb9a3cbfb0453a978210d306136368de6162578c600d522416ef2a7ac1b9f348b
23 -DIST elogind-246.9.2.tar.gz 1534982 BLAKE2B 428def0f577cb92c8167f4400a59093ebf738d14b449e0dc59f1aa59da2c0f781db62bffc4bea2649edbfcc06ff5799ab24243dfb580eaa12c5cf0c41be8fc17 SHA512 b50d319793307a425d7542626e8cf27e56fb5e5c75cca9519cd3f5a1e7c387c4179310b95fa083f8bd8172384f16c0e45e7000b313d2bcf84ed8aba98dc775c1
24
25 diff --git a/sys-auth/elogind/elogind-246.9.2.ebuild b/sys-auth/elogind/elogind-246.9.2.ebuild
26 deleted file mode 100644
27 index bb0cc8f4ea3..00000000000
28 --- a/sys-auth/elogind/elogind-246.9.2.ebuild
29 +++ /dev/null
30 @@ -1,148 +0,0 @@
31 -# Copyright 1999-2021 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -if [[ ${PV} = *9999* ]]; then
37 - EGIT_BRANCH="v241-stable"
38 - EGIT_REPO_URI="https://github.com/elogind/elogind.git"
39 - inherit git-r3
40 -else
41 - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
43 -fi
44 -
45 -inherit linux-info meson pam udev xdg-utils
46 -
47 -DESCRIPTION="The systemd project's logind, extracted to a standalone package"
48 -HOMEPAGE="https://github.com/elogind/elogind"
49 -
50 -LICENSE="CC0-1.0 LGPL-2.1+ public-domain"
51 -SLOT="0"
52 -IUSE="+acl audit debug doc +pam +policykit selinux"
53 -
54 -BDEPEND="
55 - app-text/docbook-xml-dtd:4.2
56 - app-text/docbook-xml-dtd:4.5
57 - app-text/docbook-xsl-stylesheets
58 - dev-util/gperf
59 - dev-util/intltool
60 - virtual/pkgconfig
61 -"
62 -DEPEND="
63 - audit? ( sys-process/audit )
64 - sys-apps/util-linux
65 - sys-libs/libcap
66 - virtual/libudev:=
67 - acl? ( sys-apps/acl )
68 - pam? ( sys-libs/pam )
69 - selinux? ( sys-libs/libselinux )
70 -"
71 -RDEPEND="${DEPEND}
72 - !sys-apps/systemd
73 -"
74 -PDEPEND="
75 - sys-apps/dbus
76 - policykit? ( sys-auth/polkit )
77 -"
78 -
79 -DOCS=( README.md src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
80 -
81 -PATCHES=(
82 - "${FILESDIR}/${PN}-243.7-nodocs.patch"
83 - "${FILESDIR}/${PN}-241.4-broken-test.patch" # bug 699116
84 -)
85 -
86 -pkg_setup() {
87 - local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD"
88 -
89 - use kernel_linux && linux-info_pkg_setup
90 -}
91 -
92 -src_prepare() {
93 - default
94 - xdg_environment_reset
95 -}
96 -
97 -src_configure() {
98 - local rccgroupmode="$(grep rc_cgroup_mode ${EPREFIX}/etc/rc.conf | cut -d '"' -f 2)"
99 - local cgroupmode="legacy"
100 -
101 - if [[ "xhybrid" = "x${rccgroupmode}" ]] ; then
102 - cgroupmode="hybrid"
103 - elif [[ "xunified" = "x${rccgroupmode}" ]] ; then
104 - cgroupmode="unified"
105 - fi
106 -
107 - local emesonargs=(
108 - -Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
109 - -Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html"
110 - -Dpamlibdir=$(getpam_mod_dir)
111 - -Dudevrulesdir="${EPREFIX}$(get_udevdir)"/rules.d
112 - --libdir="${EPREFIX}"/usr/$(get_libdir)
113 - -Drootlibdir="${EPREFIX}"/$(get_libdir)
114 - -Drootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind
115 - -Drootprefix="${EPREFIX}/"
116 - -Dbashcompletiondir="${EPREFIX}/usr/share/bash-completion/completions"
117 - -Dman=auto
118 - -Dsmack=true
119 - -Dcgroup-controller=openrc
120 - -Ddefault-hierarchy=${cgroupmode}
121 - -Ddefault-kill-user-processes=false
122 - -Dacl=$(usex acl true false)
123 - -Daudit=$(usex audit true false)
124 - --buildtype $(usex debug debug release)
125 - -Dhtml=$(usex doc auto false)
126 - -Dpam=$(usex pam true false)
127 - -Dselinux=$(usex selinux true false)
128 - -Dutmp=$(usex elibc_musl false true)
129 - )
130 -
131 - meson_src_configure
132 -}
133 -
134 -src_install() {
135 - DOCS+=( src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
136 -
137 - meson_src_install
138 -
139 - newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
140 -
141 - sed -e "s|@libdir@|$(get_libdir)|" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die
142 - newconfd ${PN}.conf ${PN}
143 -}
144 -
145 -pkg_postinst() {
146 - if ! use pam; then
147 - ewarn "${PN} will not be managing user logins/seats without USE=\"pam\"!"
148 - ewarn "In other words, it will be useless for most applications."
149 - ewarn
150 - fi
151 - if ! use policykit; then
152 - ewarn "loginctl will not be able to perform privileged operations without"
153 - ewarn "USE=\"policykit\"! That means e.g. no suspend or hibernate."
154 - ewarn
155 - fi
156 - if [[ "$(rc-config list boot | grep elogind)" != "" ]]; then
157 - elog "elogind is currently started from boot runlevel."
158 - elif [[ "$(rc-config list default | grep elogind)" != "" ]]; then
159 - ewarn "elogind is currently started from default runlevel."
160 - ewarn "Please remove elogind from the default runlevel and"
161 - ewarn "add it to the boot runlevel by:"
162 - ewarn "# rc-update del elogind default"
163 - ewarn "# rc-update add elogind boot"
164 - else
165 - elog "elogind is currently not started from any runlevel."
166 - elog "You may add it to the boot runlevel by:"
167 - elog "# rc-update add elogind boot"
168 - elog
169 - elog "Alternatively, you can leave elogind out of any"
170 - elog "runlevel. It will then be started automatically"
171 - if use pam; then
172 - elog "when the first service calls it via dbus, or"
173 - elog "the first user logs into the system."
174 - else
175 - elog "when the first service calls it via dbus."
176 - fi
177 - fi
178 -}