1 |
commit: 3815ed224e4019c75104c3ed4fac772289691e71 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 23 23:20:26 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 23 23:25:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3815ed22 |
7 |
|
8 |
sys-auth/elogind: --without-kill-user-processes |
9 |
|
10 |
Closes: https://bugs.gentoo.org/628342 |
11 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
12 |
|
13 |
sys-auth/elogind/elogind-233.7-r1.ebuild | 106 +++++++++++++++++++++++++++++++ |
14 |
sys-auth/elogind/elogind-234.4-r1.ebuild | 106 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 212 insertions(+) |
16 |
|
17 |
diff --git a/sys-auth/elogind/elogind-233.7-r1.ebuild b/sys-auth/elogind/elogind-233.7-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..ef17d6fd855 |
20 |
--- /dev/null |
21 |
+++ b/sys-auth/elogind/elogind-233.7-r1.ebuild |
22 |
@@ -0,0 +1,106 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit autotools linux-info pam udev |
29 |
+ |
30 |
+DESCRIPTION="The systemd project's logind, extracted to a standalone package" |
31 |
+HOMEPAGE="https://github.com/elogind/elogind" |
32 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="CC0-1.0 LGPL-2.1+ public-domain" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~x86" |
37 |
+IUSE="acl debug pam policykit selinux" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ sys-apps/util-linux |
41 |
+ sys-libs/libcap |
42 |
+ virtual/libudev:= |
43 |
+ acl? ( sys-apps/acl ) |
44 |
+ pam? ( virtual/pam ) |
45 |
+ selinux? ( sys-libs/libselinux ) |
46 |
+ !sys-apps/systemd |
47 |
+" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ app-text/docbook-xml-dtd:4.2 |
50 |
+ app-text/docbook-xml-dtd:4.5 |
51 |
+ app-text/docbook-xsl-stylesheets |
52 |
+ dev-util/gperf |
53 |
+ dev-util/intltool |
54 |
+ sys-devel/libtool |
55 |
+ virtual/pkgconfig |
56 |
+" |
57 |
+PDEPEND=" |
58 |
+ sys-apps/dbus |
59 |
+ policykit? ( sys-auth/polkit ) |
60 |
+" |
61 |
+ |
62 |
+PATCHES=( "${FILESDIR}/${PN}-226.4-docs.patch" ) |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SECURITY_SMACK |
66 |
+ ~SIGNALFD ~TIMERFD" |
67 |
+ |
68 |
+ if use kernel_linux; then |
69 |
+ linux-info_pkg_setup |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ eautoreconf # Makefile.am patched by "${FILESDIR}/${P}-docs.patch" |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ econf \ |
80 |
+ --with-pamlibdir=$(getpam_mod_dir) \ |
81 |
+ --with-udevrulesdir="$(get_udevdir)"/rules.d \ |
82 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
83 |
+ --with-rootlibdir="${EPREFIX}"/$(get_libdir) \ |
84 |
+ --with-rootprefix="${EPREFIX}/" \ |
85 |
+ --with-rootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind \ |
86 |
+ --enable-smack \ |
87 |
+ --with-cgroup-controller=openrc \ |
88 |
+ --disable-lto \ |
89 |
+ --without-kill-user-processes \ |
90 |
+ $(use_enable debug debug elogind) \ |
91 |
+ $(use_enable acl) \ |
92 |
+ $(use_enable pam) \ |
93 |
+ $(use_enable selinux) |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ default |
98 |
+ find "${D}" -name '*.la' -delete || die |
99 |
+ |
100 |
+ newinitd "${FILESDIR}"/${PN}.init ${PN} |
101 |
+ |
102 |
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die |
103 |
+ newconfd ${PN}.conf ${PN} |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ if [ "$(rc-config list boot | grep elogind)" != "" ]; then |
108 |
+ ewarn "elogind is currently started from boot runlevel." |
109 |
+ elif [ "$(rc-config list default | grep elogind)" != "" ]; then |
110 |
+ ewarn "elogind is currently started from default runlevel." |
111 |
+ ewarn "Please remove elogind from the default runlevel and" |
112 |
+ ewarn "add it to the boot runlevel by:" |
113 |
+ ewarn "# rc-update del elogind default" |
114 |
+ ewarn "# rc-update add elogind boot" |
115 |
+ else |
116 |
+ ewarn "elogind is currently not started from any runlevel." |
117 |
+ ewarn "You may add it to the boot runlevel by:" |
118 |
+ ewarn "# rc-update add elogind boot" |
119 |
+ fi |
120 |
+ ewarn "Alternatively you can leave elogind out of any" |
121 |
+ ewarn "runlevel. It will then be started automatically" |
122 |
+ if use pam; then |
123 |
+ ewarn "when the first service calls it via dbus, or the" |
124 |
+ ewarn "first user logs into the system." |
125 |
+ else |
126 |
+ ewarn "when the first service calls it via dbus." |
127 |
+ fi |
128 |
+} |
129 |
|
130 |
diff --git a/sys-auth/elogind/elogind-234.4-r1.ebuild b/sys-auth/elogind/elogind-234.4-r1.ebuild |
131 |
new file mode 100644 |
132 |
index 00000000000..ef17d6fd855 |
133 |
--- /dev/null |
134 |
+++ b/sys-auth/elogind/elogind-234.4-r1.ebuild |
135 |
@@ -0,0 +1,106 @@ |
136 |
+# Copyright 1999-2017 Gentoo Foundation |
137 |
+# Distributed under the terms of the GNU General Public License v2 |
138 |
+ |
139 |
+EAPI=6 |
140 |
+ |
141 |
+inherit autotools linux-info pam udev |
142 |
+ |
143 |
+DESCRIPTION="The systemd project's logind, extracted to a standalone package" |
144 |
+HOMEPAGE="https://github.com/elogind/elogind" |
145 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
146 |
+ |
147 |
+LICENSE="CC0-1.0 LGPL-2.1+ public-domain" |
148 |
+SLOT="0" |
149 |
+KEYWORDS="~amd64 ~arm ~x86" |
150 |
+IUSE="acl debug pam policykit selinux" |
151 |
+ |
152 |
+RDEPEND=" |
153 |
+ sys-apps/util-linux |
154 |
+ sys-libs/libcap |
155 |
+ virtual/libudev:= |
156 |
+ acl? ( sys-apps/acl ) |
157 |
+ pam? ( virtual/pam ) |
158 |
+ selinux? ( sys-libs/libselinux ) |
159 |
+ !sys-apps/systemd |
160 |
+" |
161 |
+DEPEND="${RDEPEND} |
162 |
+ app-text/docbook-xml-dtd:4.2 |
163 |
+ app-text/docbook-xml-dtd:4.5 |
164 |
+ app-text/docbook-xsl-stylesheets |
165 |
+ dev-util/gperf |
166 |
+ dev-util/intltool |
167 |
+ sys-devel/libtool |
168 |
+ virtual/pkgconfig |
169 |
+" |
170 |
+PDEPEND=" |
171 |
+ sys-apps/dbus |
172 |
+ policykit? ( sys-auth/polkit ) |
173 |
+" |
174 |
+ |
175 |
+PATCHES=( "${FILESDIR}/${PN}-226.4-docs.patch" ) |
176 |
+ |
177 |
+pkg_setup() { |
178 |
+ local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SECURITY_SMACK |
179 |
+ ~SIGNALFD ~TIMERFD" |
180 |
+ |
181 |
+ if use kernel_linux; then |
182 |
+ linux-info_pkg_setup |
183 |
+ fi |
184 |
+} |
185 |
+ |
186 |
+src_prepare() { |
187 |
+ default |
188 |
+ eautoreconf # Makefile.am patched by "${FILESDIR}/${P}-docs.patch" |
189 |
+} |
190 |
+ |
191 |
+src_configure() { |
192 |
+ econf \ |
193 |
+ --with-pamlibdir=$(getpam_mod_dir) \ |
194 |
+ --with-udevrulesdir="$(get_udevdir)"/rules.d \ |
195 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
196 |
+ --with-rootlibdir="${EPREFIX}"/$(get_libdir) \ |
197 |
+ --with-rootprefix="${EPREFIX}/" \ |
198 |
+ --with-rootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind \ |
199 |
+ --enable-smack \ |
200 |
+ --with-cgroup-controller=openrc \ |
201 |
+ --disable-lto \ |
202 |
+ --without-kill-user-processes \ |
203 |
+ $(use_enable debug debug elogind) \ |
204 |
+ $(use_enable acl) \ |
205 |
+ $(use_enable pam) \ |
206 |
+ $(use_enable selinux) |
207 |
+} |
208 |
+ |
209 |
+src_install() { |
210 |
+ default |
211 |
+ find "${D}" -name '*.la' -delete || die |
212 |
+ |
213 |
+ newinitd "${FILESDIR}"/${PN}.init ${PN} |
214 |
+ |
215 |
+ sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die |
216 |
+ newconfd ${PN}.conf ${PN} |
217 |
+} |
218 |
+ |
219 |
+pkg_postinst() { |
220 |
+ if [ "$(rc-config list boot | grep elogind)" != "" ]; then |
221 |
+ ewarn "elogind is currently started from boot runlevel." |
222 |
+ elif [ "$(rc-config list default | grep elogind)" != "" ]; then |
223 |
+ ewarn "elogind is currently started from default runlevel." |
224 |
+ ewarn "Please remove elogind from the default runlevel and" |
225 |
+ ewarn "add it to the boot runlevel by:" |
226 |
+ ewarn "# rc-update del elogind default" |
227 |
+ ewarn "# rc-update add elogind boot" |
228 |
+ else |
229 |
+ ewarn "elogind is currently not started from any runlevel." |
230 |
+ ewarn "You may add it to the boot runlevel by:" |
231 |
+ ewarn "# rc-update add elogind boot" |
232 |
+ fi |
233 |
+ ewarn "Alternatively you can leave elogind out of any" |
234 |
+ ewarn "runlevel. It will then be started automatically" |
235 |
+ if use pam; then |
236 |
+ ewarn "when the first service calls it via dbus, or the" |
237 |
+ ewarn "first user logs into the system." |
238 |
+ else |
239 |
+ ewarn "when the first service calls it via dbus." |
240 |
+ fi |
241 |
+} |