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