Gentoo Archives: gentoo-commits

From: Adam Feldman <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-mate:master commit in: sys-auth/consolekit/files/, sys-auth/consolekit/
Date: Tue, 08 Jun 2021 22:14:29
Message-Id: 1623190427.f1bac1e995a1b3b3cb9712b1647e1bc91c2f7e7a.np-hardass@gentoo
1 commit: f1bac1e995a1b3b3cb9712b1647e1bc91c2f7e7a
2 Author: Adam Feldman <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 8 22:11:09 2021 +0000
4 Commit: Adam Feldman <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 8 22:13:47 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-mate.git/commit/?id=f1bac1e9
7
8 sys-auth/consolekit: drop package
9
10 Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org>
11
12 sys-auth/consolekit/Manifest | 6 -
13 sys-auth/consolekit/consolekit-0.4.6.ebuild | 125 -------------------
14 sys-auth/consolekit/consolekit-1.1.0-r1.ebuild | 120 -------------------
15 sys-auth/consolekit/consolekit-1.1.2.ebuild | 131 --------------------
16 sys-auth/consolekit/consolekit-1.2.0.ebuild | 132 ---------------------
17 sys-auth/consolekit/consolekit-1.2.1.ebuild | 132 ---------------------
18 sys-auth/consolekit/consolekit-9999.ebuild | 128 --------------------
19 sys-auth/consolekit/files/90-consolekit-3 | 32 -----
20 sys-auth/consolekit/files/consolekit-0.2.rc | 25 ----
21 .../files/consolekit-0.4.5-polkit-automagic.patch | 30 -----
22 sys-auth/consolekit/files/consolekit-1.0.0.initd | 16 ---
23 ...ove-the-root-restriction-for-runtime-dirs.patch | 57 ---------
24 .../files/consolekit-cleanup_console_tags.patch | 67 -----------
25 ...nsolekit-shutdown-reboot-without-policies.patch | 26 ----
26 .../files/consolekit-udev-acl-install_to_usr.patch | 28 -----
27 sys-auth/consolekit/files/pam-foreground-compat.ck | 17 ---
28 sys-auth/consolekit/metadata.xml | 22 ----
29 17 files changed, 1094 deletions(-)
30
31 diff --git a/sys-auth/consolekit/Manifest b/sys-auth/consolekit/Manifest
32 deleted file mode 100644
33 index 06205e2..0000000
34 --- a/sys-auth/consolekit/Manifest
35 +++ /dev/null
36 @@ -1,6 +0,0 @@
37 -DIST ConsoleKit-0.4.6.tar.xz 366572 BLAKE2B ab4c277fd47b8f99ce8c5a67de86e89b1bdd8d6a5a8682dd436feefec76f7902e71c05d9d22d52c297d3294a945f057d53f18c9c9b7d29c84aa7c26665b05fee SHA512 54955e3e83778a9216846104da8762fd50a37190e209127dd5d211e2227da617e14f6f5c1359905396d299656e526d14e1187b28eaff7d0ae1d7563dc8d9b46d
38 -DIST ConsoleKit2-1.1.0.tar.bz2 630178 BLAKE2B 20d1994a19fbe03d411ac5437f77b75571fbdc19478100676e51e2a1232c643f4b0c86125b5bf1d42aeb5cfb7c8b34601221d674ac27d9bf3112fcd8a83afacb SHA512 14ded07d4140e7a31132de21e84c2878475676b8c98f72b42340708972ed384abb9ba9380d74719718fc220c001387c788cf709cd15f8b19d598467dfe8a57df
39 -DIST ConsoleKit2-1.1.2.tar.bz2 1125567 BLAKE2B 1b7c60d224ea4197687c566d324a302aa2f5ed92ed0cfc563ba4d42f78af2999d1693e4587208e5412d042fb0cff99919dfa02ca5b5a43bda3310c17b39ca5d6 SHA512 fadca85e05c176b06ead40fba5c068d497bf69bcc322287363d0c27cdd6627b758295db1ef534b908c0e6240486430d8cb36660b4d71216a60d19a52d6d0db39
40 -DIST ConsoleKit2-1.2.0.tar.bz2 1125402 BLAKE2B c2119287ff173783c377a1353f8ce59432f8aa3e64f654716c895fadb5d07462069e457aae7925a6c44bc48bfd4147fc10e9f488a39714386fb6c14bced09f36 SHA512 c0f6e629b7229c2ffaafe8da899970b48c8372402447af18560fffd8804d9ab91a4ad2eb82c8f648a14807f8ccc5fb1ab4366de14faa8a2d5fb3767a6a4253f7
41 -DIST ConsoleKit2-1.2.1.tar.bz2 1182946 BLAKE2B f76f99008c78bd3a318c918776129072944e4c3ac18348960e3a725179d3ce4dc2cfb4d04ec5c143bb998f23f63cf36c0f88d8296dc3d0a382a138f3a0a2fecc SHA512 31befe89f7fa604138bfb0722fc6cf12f0934bac004f98fc331004eb5a7f466ed7bd0dc9adc9869da739974208f9a3bc125068ff8a60d4b2badb58ef70a3eb10
42 -DIST consolekit_0.4.6-4.debian.tar.gz 12192 BLAKE2B e88ed907ea3ceecb9ac399618614b1aa5d7eb2c46a706451d78e4ec1598dee5a02d6c5a1b0dd678f6bed4c25277884ec6969a23f8181ef3d8ede94452b6570db SHA512 f7fc5965b1f495d16a8ca167940431bc2569e9bde9e4a356b9c9ed00c2825db61da7b6db3d434d977fff72b3aaef30c455a365b9eba282a887a523753613b58f
43
44 diff --git a/sys-auth/consolekit/consolekit-0.4.6.ebuild b/sys-auth/consolekit/consolekit-0.4.6.ebuild
45 deleted file mode 100644
46 index e190382..0000000
47 --- a/sys-auth/consolekit/consolekit-0.4.6.ebuild
48 +++ /dev/null
49 @@ -1,125 +0,0 @@
50 -# Copyright 1999-2020 Gentoo Authors
51 -# Distributed under the terms of the GNU General Public License v2
52 -
53 -EAPI=5
54 -inherit autotools eutils linux-info ltprune pam systemd
55 -
56 -MY_PN=ConsoleKit
57 -MY_P=${MY_PN}-${PV}
58 -
59 -DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
60 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/ConsoleKit"
61 -SRC_URI="https://www.freedesktop.org/software/${MY_PN}/dist/${MY_P}.tar.xz
62 - https://launchpad.net/debian/+archive/primary/+files/${PN}_${PV}-4.debian.tar.gz" # for logrotate file
63 -
64 -LICENSE="GPL-2"
65 -SLOT="0"
66 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
67 -IUSE="acl debug doc kernel_linux pam policykit selinux systemd-units test"
68 -RESTRICT="!test? ( test )"
69 -
70 -COMMON_DEPEND=">=dev-libs/dbus-glib-0.100:=
71 - >=dev-libs/glib-2.38.2-r1:2=
72 - sys-libs/zlib:=
73 - x11-libs/libX11:=
74 - acl? (
75 - sys-apps/acl:=
76 - >=virtual/udev-200
77 - )
78 - pam? ( sys-libs/pam )
79 - policykit? ( >=sys-auth/polkit-0.110 )"
80 -RDEPEND="${COMMON_DEPEND}
81 - kernel_linux? ( sys-apps/coreutils[acl?] )
82 - selinux? ( sec-policy/selinux-consolekit )"
83 -DEPEND="${COMMON_DEPEND}
84 - dev-libs/libxslt
85 - virtual/pkgconfig
86 - doc? ( app-text/xmlto )
87 - test? (
88 - app-text/docbook-xml-dtd:4.1.2
89 - app-text/xmlto
90 - )"
91 -
92 -S=${WORKDIR}/${MY_P}
93 -
94 -QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
95 -
96 -pkg_setup() {
97 - if use kernel_linux; then
98 - # This is from https://bugs.gentoo.org/376939
99 - use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
100 - # This is required to get login-session-id string with pam_ck_connector.so
101 - use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
102 - linux-info_pkg_setup
103 - fi
104 -}
105 -
106 -src_prepare() {
107 - epatch \
108 - "${FILESDIR}"/${PN}-cleanup_console_tags.patch \
109 - "${FILESDIR}"/${PN}-shutdown-reboot-without-policies.patch \
110 - "${FILESDIR}"/${PN}-udev-acl-install_to_usr.patch \
111 - "${FILESDIR}"/${PN}-0.4.5-polkit-automagic.patch
112 -
113 - if ! use systemd-units; then
114 - sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
115 - fi
116 -
117 - eautoreconf
118 -}
119 -
120 -src_configure() {
121 - local myconf
122 - if use systemd-units; then
123 - myconf="$(systemd_with_unitdir)"
124 - else
125 - myconf="--with-systemdsystemunitdir=/tmp"
126 - fi
127 -
128 - econf \
129 - XMLTO_FLAGS='--skip-validation' \
130 - --libexecdir="${EPREFIX}"/usr/lib/${MY_PN} \
131 - --localstatedir="${EPREFIX}"/var \
132 - $(use_enable pam pam-module) \
133 - $(use_enable doc docbook-docs) \
134 - $(use_enable test docbook-docs) \
135 - $(use_enable debug) \
136 - $(use_enable policykit polkit) \
137 - $(use_enable acl udev-acl) \
138 - --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
139 - --with-pam-module-dir="$(getpam_mod_dir)" \
140 - ${myconf}
141 -}
142 -
143 -src_install() {
144 - emake \
145 - DESTDIR="${D}" \
146 - htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
147 - install
148 -
149 - dosym /usr/lib/${MY_PN} /usr/lib/${PN}
150 -
151 - dodoc AUTHORS HACKING NEWS README TODO
152 -
153 - newinitd "${FILESDIR}"/${PN}-0.2.rc consolekit
154 -
155 - keepdir /usr/lib/ConsoleKit/run-seat.d
156 - keepdir /usr/lib/ConsoleKit/run-session.d
157 - keepdir /etc/ConsoleKit/run-session.d
158 - keepdir /var/log/ConsoleKit
159 -
160 - exeinto /etc/X11/xinit/xinitrc.d
161 - newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
162 -
163 - exeinto /usr/lib/ConsoleKit/run-session.d
164 - doexe "${FILESDIR}"/pam-foreground-compat.ck
165 -
166 - prune_libtool_files --all # --all for pam_ck_connector.la
167 -
168 - use systemd-units || rm -rf "${ED}"/tmp
169 -
170 - rm -rf "${ED}"/var/run # let the init script create the directory
171 -
172 - insinto /etc/logrotate.d
173 - newins "${WORKDIR}"/debian/${PN}.logrotate ${PN} #374513
174 -}
175
176 diff --git a/sys-auth/consolekit/consolekit-1.1.0-r1.ebuild b/sys-auth/consolekit/consolekit-1.1.0-r1.ebuild
177 deleted file mode 100644
178 index 6cfe969..0000000
179 --- a/sys-auth/consolekit/consolekit-1.1.0-r1.ebuild
180 +++ /dev/null
181 @@ -1,120 +0,0 @@
182 -# Copyright 1999-2020 Gentoo Authors
183 -# Distributed under the terms of the GNU General Public License v2
184 -
185 -EAPI=6
186 -inherit libtool linux-info ltprune pam
187 -
188 -MY_PN=ConsoleKit2
189 -MY_P=${MY_PN}-${PV}
190 -
191 -DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
192 -HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
193 -SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2"
194 -
195 -LICENSE="GPL-2"
196 -SLOT="0"
197 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
198 -IUSE="acl cgroups debug doc kernel_linux pam pm-utils policykit selinux test"
199 -RESTRICT="!test? ( test )"
200 -
201 -COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
202 - >=sys-devel/gettext-0.19
203 - sys-apps/dbus
204 - sys-libs/zlib:=
205 - x11-libs/libX11:=
206 - acl? (
207 - sys-apps/acl:=
208 - >=virtual/udev-200
209 - )
210 - cgroups? (
211 - app-admin/cgmanager
212 - >=sys-libs/libnih-1.0.2[dbus]
213 - )
214 - pam? ( sys-libs/pam )
215 - policykit? ( >=sys-auth/polkit-0.110 )"
216 -# pm-utils: bug 557432
217 -RDEPEND="${COMMON_DEPEND}
218 - kernel_linux? ( sys-apps/coreutils[acl?] )
219 - pm-utils? ( sys-power/pm-utils )
220 - selinux? ( sec-policy/selinux-consolekit )"
221 -DEPEND="${COMMON_DEPEND}
222 - dev-libs/libxslt
223 - virtual/pkgconfig
224 - doc? ( app-text/xmlto )
225 - test? (
226 - app-text/docbook-xml-dtd:4.1.2
227 - app-text/xmlto
228 - )"
229 -
230 -S=${WORKDIR}/${MY_P}
231 -
232 -QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
233 -
234 -PATCHES=( "${FILESDIR}/${P}-Remove-the-root-restriction-for-runtime-dirs.patch" )
235 -
236 -pkg_setup() {
237 - if use kernel_linux; then
238 - # This is from https://bugs.gentoo.org/376939
239 - use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
240 - # This is required to get login-session-id string with pam_ck_connector.so
241 - use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
242 - linux-info_pkg_setup
243 - fi
244 -}
245 -
246 -src_prepare() {
247 - sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
248 -
249 - default
250 - elibtoolize # bug 593314
251 -}
252 -
253 -src_configure() {
254 - econf \
255 - XMLTO_FLAGS='--skip-validation' \
256 - --libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \
257 - --localstatedir="${EPREFIX}"/var \
258 - $(use_enable pam pam-module) \
259 - $(use_enable doc docbook-docs) \
260 - $(use_enable test docbook-docs) \
261 - $(use_enable debug) \
262 - $(use_enable policykit polkit) \
263 - $(use_enable acl udev-acl) \
264 - $(use_enable cgroups) \
265 - $(use_enable test tests) \
266 - --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
267 - --with-pam-module-dir="$(getpam_mod_dir)" \
268 - --with-xinitrc-dir="${EPREFIX}"/etc/X11/xinit/xinitrc.d \
269 - --without-systemdsystemunitdir
270 -}
271 -
272 -src_install() {
273 - emake \
274 - DESTDIR="${D}" \
275 - htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
276 - install
277 -
278 - dosym /usr/lib/ConsoleKit /usr/lib/${PN}
279 -
280 - dodoc AUTHORS HACKING NEWS README TODO
281 -
282 - newinitd "${FILESDIR}"/${PN}-1.0.0.initd consolekit
283 -
284 - keepdir /usr/lib/ConsoleKit/run-seat.d
285 - keepdir /usr/lib/ConsoleKit/run-session.d
286 - keepdir /etc/ConsoleKit/run-session.d
287 - keepdir /var/log/ConsoleKit
288 -
289 - exeinto /etc/X11/xinit/xinitrc.d
290 - newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
291 -
292 - if use kernel_linux; then
293 - # bug 571524
294 - exeinto /usr/lib/ConsoleKit/run-session.d
295 - doexe "${FILESDIR}"/pam-foreground-compat.ck
296 - fi
297 -
298 - prune_libtool_files --all # --all for pam_ck_connector.la
299 -
300 - rm -rf "${ED}"/var/run || die # let the init script create the directory
301 -}
302
303 diff --git a/sys-auth/consolekit/consolekit-1.1.2.ebuild b/sys-auth/consolekit/consolekit-1.1.2.ebuild
304 deleted file mode 100644
305 index 9eb051c..0000000
306 --- a/sys-auth/consolekit/consolekit-1.1.2.ebuild
307 +++ /dev/null
308 @@ -1,131 +0,0 @@
309 -# Copyright 1999-2020 Gentoo Authors
310 -# Distributed under the terms of the GNU General Public License v2
311 -
312 -EAPI=6
313 -inherit autotools libtool linux-info ltprune pam xdg-utils
314 -
315 -MY_PN=ConsoleKit2
316 -MY_P=${MY_PN}-${PV}
317 -
318 -DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
319 -HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
320 -SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2"
321 -
322 -LICENSE="GPL-2"
323 -SLOT="0"
324 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
325 -IUSE="acl cgroups debug doc evdev kernel_linux pam pm-utils policykit selinux test udev"
326 -RESTRICT="!test? ( test )"
327 -
328 -COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
329 - >=sys-devel/gettext-0.19
330 - sys-apps/dbus
331 - sys-libs/zlib:=
332 - x11-libs/libX11:=
333 - acl? (
334 - sys-apps/acl:=
335 - >=virtual/udev-200
336 - )
337 - cgroups? (
338 - app-admin/cgmanager
339 - >=sys-libs/libnih-1.0.2[dbus]
340 - )
341 - evdev? ( dev-libs/libevdev:= )
342 - udev? (
343 - virtual/libudev
344 - x11-libs/libdrm:=
345 - )
346 - pam? ( sys-libs/pam )
347 - policykit? ( >=sys-auth/polkit-0.110 )
348 - selinux? ( sys-libs/libselinux )"
349 -# pm-utils: bug 557432
350 -RDEPEND="${COMMON_DEPEND}
351 - kernel_linux? ( sys-apps/coreutils[acl?] )
352 - pm-utils? ( sys-power/pm-utils )
353 - selinux? ( sec-policy/selinux-consolekit )"
354 -DEPEND="${COMMON_DEPEND}
355 - dev-libs/libxslt
356 - virtual/pkgconfig
357 - doc? ( app-text/xmlto )
358 - test? (
359 - app-text/docbook-xml-dtd:4.1.2
360 - app-text/xmlto
361 - )"
362 -
363 -S=${WORKDIR}/${MY_P}
364 -
365 -QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
366 -
367 -pkg_setup() {
368 - if use kernel_linux; then
369 - # This is from https://bugs.gentoo.org/376939
370 - use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
371 - # This is required to get login-session-id string with pam_ck_connector.so
372 - use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
373 - linux-info_pkg_setup
374 - fi
375 -}
376 -
377 -src_prepare() {
378 - xdg_environment_reset
379 -
380 - sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
381 -
382 - default
383 - # patch needs autoreconf, so dont need libtoolize
384 - eautoreconf
385 - #elibtoolize # bug 593314
386 -}
387 -
388 -src_configure() {
389 - econf \
390 - XMLTO_FLAGS='--skip-validation' \
391 - --libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \
392 - --localstatedir="${EPREFIX}"/var \
393 - $(use_enable pam pam-module) \
394 - $(use_enable doc docbook-docs) \
395 - $(use_enable test docbook-docs) \
396 - $(use_enable debug) \
397 - $(use_enable policykit polkit) \
398 - $(use_enable evdev libevdev) \
399 - $(use_enable acl udev-acl) \
400 - $(use_enable cgroups libcgmanager) \
401 - $(use_enable selinux libselinux) \
402 - $(use_enable udev libudev) \
403 - $(use_enable test tests) \
404 - --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
405 - --with-pam-module-dir="$(getpam_mod_dir)" \
406 - --with-xinitrc-dir="${EPREFIX}"/etc/X11/xinit/xinitrc.d \
407 - --without-systemdsystemunitdir
408 -}
409 -
410 -src_install() {
411 - emake \
412 - DESTDIR="${D}" \
413 - htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
414 - install
415 -
416 - dosym /usr/lib/ConsoleKit /usr/lib/${PN}
417 -
418 - dodoc AUTHORS HACKING NEWS README TODO
419 -
420 - newinitd "${FILESDIR}"/${PN}-1.0.0.initd consolekit
421 -
422 - keepdir /usr/lib/ConsoleKit/run-seat.d
423 - keepdir /usr/lib/ConsoleKit/run-session.d
424 - keepdir /etc/ConsoleKit/run-session.d
425 - keepdir /var/log/ConsoleKit
426 -
427 - exeinto /etc/X11/xinit/xinitrc.d
428 - newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
429 -
430 - if use kernel_linux; then
431 - # bug 571524
432 - exeinto /usr/lib/ConsoleKit/run-session.d
433 - doexe "${FILESDIR}"/pam-foreground-compat.ck
434 - fi
435 -
436 - prune_libtool_files --all # --all for pam_ck_connector.la
437 -
438 - rm -rf "${ED}"/var/run || die # let the init script create the directory
439 -}
440
441 diff --git a/sys-auth/consolekit/consolekit-1.2.0.ebuild b/sys-auth/consolekit/consolekit-1.2.0.ebuild
442 deleted file mode 100644
443 index 853ffde..0000000
444 --- a/sys-auth/consolekit/consolekit-1.2.0.ebuild
445 +++ /dev/null
446 @@ -1,132 +0,0 @@
447 -# Copyright 1999-2020 Gentoo Authors
448 -# Distributed under the terms of the GNU General Public License v2
449 -
450 -EAPI=6
451 -inherit autotools libtool linux-info ltprune pam xdg-utils
452 -
453 -MY_PN=ConsoleKit2
454 -MY_P=${MY_PN}-${PV}
455 -
456 -DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
457 -HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
458 -SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2"
459 -
460 -LICENSE="GPL-2"
461 -SLOT="0"
462 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 s390 ~sparc x86 ~amd64-linux ~x86-linux"
463 -IUSE="acl cgroups debug doc evdev kernel_linux pam pm-utils policykit selinux test udev"
464 -RESTRICT="!test? ( test )"
465 -
466 -COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
467 - >=sys-devel/gettext-0.19
468 - sys-apps/dbus
469 - sys-libs/zlib:=
470 - x11-libs/libX11:=
471 - acl? (
472 - sys-apps/acl:=
473 - >=virtual/udev-200
474 - )
475 - cgroups? (
476 - app-admin/cgmanager
477 - >=sys-libs/libnih-1.0.2[dbus]
478 - )
479 - evdev? ( dev-libs/libevdev:= )
480 - udev? (
481 - virtual/libudev
482 - x11-libs/libdrm:=
483 - )
484 - pam? ( sys-libs/pam )
485 - policykit? ( >=sys-auth/polkit-0.110 )
486 - selinux? ( sys-libs/libselinux )"
487 -# pm-utils: bug 557432
488 -RDEPEND="${COMMON_DEPEND}
489 - kernel_linux? ( sys-apps/coreutils[acl?] )
490 - pm-utils? ( sys-power/pm-utils )
491 - selinux? ( sec-policy/selinux-consolekit )"
492 -DEPEND="${COMMON_DEPEND}
493 - dev-libs/libxslt
494 - virtual/pkgconfig
495 - doc? ( app-text/xmlto )
496 - test? (
497 - app-text/docbook-xml-dtd:4.1.2
498 - app-text/xmlto
499 - )"
500 -
501 -S=${WORKDIR}/${MY_P}
502 -
503 -QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
504 -
505 -pkg_setup() {
506 - if use kernel_linux; then
507 - # This is from https://bugs.gentoo.org/376939
508 - use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
509 - # This is required to get login-session-id string with pam_ck_connector.so
510 - use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
511 - linux-info_pkg_setup
512 - fi
513 -}
514 -
515 -src_prepare() {
516 - xdg_environment_reset
517 -
518 - sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
519 -
520 - default
521 - # patch needs autoreconf, so dont need libtoolize
522 - eautoreconf
523 - #elibtoolize # bug 593314
524 -}
525 -
526 -src_configure() {
527 - econf \
528 - XMLTO_FLAGS='--skip-validation' \
529 - --libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \
530 - --localstatedir="${EPREFIX}"/var \
531 - $(use_enable pam pam-module) \
532 - $(use_enable doc docbook-docs) \
533 - $(use_enable test docbook-docs) \
534 - $(use_enable debug) \
535 - $(use_enable policykit polkit) \
536 - $(use_enable evdev libevdev) \
537 - $(use_enable acl udev-acl) \
538 - $(use_enable cgroups libcgmanager) \
539 - $(use_enable selinux libselinux) \
540 - $(use_enable udev libdrm) \
541 - $(use_enable udev libudev) \
542 - $(use_enable test tests) \
543 - --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
544 - --with-pam-module-dir="$(getpam_mod_dir)" \
545 - --with-xinitrc-dir="${EPREFIX}"/etc/X11/xinit/xinitrc.d \
546 - --without-systemdsystemunitdir
547 -}
548 -
549 -src_install() {
550 - emake \
551 - DESTDIR="${D}" \
552 - htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
553 - install
554 -
555 - dosym /usr/lib/ConsoleKit /usr/lib/${PN}
556 -
557 - dodoc AUTHORS HACKING NEWS README TODO
558 -
559 - newinitd "${FILESDIR}"/${PN}-1.0.0.initd consolekit
560 -
561 - keepdir /usr/lib/ConsoleKit/run-seat.d
562 - keepdir /usr/lib/ConsoleKit/run-session.d
563 - keepdir /etc/ConsoleKit/run-session.d
564 - keepdir /var/log/ConsoleKit
565 -
566 - exeinto /etc/X11/xinit/xinitrc.d
567 - newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
568 -
569 - if use kernel_linux; then
570 - # bug 571524
571 - exeinto /usr/lib/ConsoleKit/run-session.d
572 - doexe "${FILESDIR}"/pam-foreground-compat.ck
573 - fi
574 -
575 - prune_libtool_files --all # --all for pam_ck_connector.la
576 -
577 - rm -rf "${ED}"/var/run || die # let the init script create the directory
578 -}
579
580 diff --git a/sys-auth/consolekit/consolekit-1.2.1.ebuild b/sys-auth/consolekit/consolekit-1.2.1.ebuild
581 deleted file mode 100644
582 index cc3e4dc..0000000
583 --- a/sys-auth/consolekit/consolekit-1.2.1.ebuild
584 +++ /dev/null
585 @@ -1,132 +0,0 @@
586 -# Copyright 1999-2020 Gentoo Authors
587 -# Distributed under the terms of the GNU General Public License v2
588 -
589 -EAPI=6
590 -inherit autotools libtool linux-info ltprune pam xdg-utils
591 -
592 -MY_PN=ConsoleKit2
593 -MY_P=${MY_PN}-${PV}
594 -
595 -DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
596 -HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
597 -SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2"
598 -
599 -LICENSE="GPL-2"
600 -SLOT="0"
601 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux"
602 -IUSE="acl cgroups debug doc evdev kernel_linux pam pm-utils policykit selinux test udev"
603 -RESTRICT="!test? ( test )"
604 -
605 -COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
606 - >=sys-devel/gettext-0.19
607 - sys-apps/dbus
608 - sys-libs/zlib:=
609 - x11-libs/libX11:=
610 - acl? (
611 - sys-apps/acl:=
612 - >=virtual/udev-200
613 - )
614 - cgroups? (
615 - app-admin/cgmanager
616 - >=sys-libs/libnih-1.0.2[dbus]
617 - )
618 - evdev? ( dev-libs/libevdev:= )
619 - udev? (
620 - virtual/libudev
621 - x11-libs/libdrm:=
622 - )
623 - pam? ( sys-libs/pam )
624 - policykit? ( >=sys-auth/polkit-0.110 )
625 - selinux? ( sys-libs/libselinux )"
626 -# pm-utils: bug 557432
627 -RDEPEND="${COMMON_DEPEND}
628 - kernel_linux? ( sys-apps/coreutils[acl?] )
629 - pm-utils? ( sys-power/pm-utils )
630 - selinux? ( sec-policy/selinux-consolekit )"
631 -DEPEND="${COMMON_DEPEND}
632 - dev-libs/libxslt
633 - virtual/pkgconfig
634 - doc? ( app-text/xmlto )
635 - test? (
636 - app-text/docbook-xml-dtd:4.1.2
637 - app-text/xmlto
638 - )"
639 -
640 -S=${WORKDIR}/${MY_P}
641 -
642 -QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
643 -
644 -pkg_setup() {
645 - if use kernel_linux; then
646 - # This is from https://bugs.gentoo.org/376939
647 - use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
648 - # This is required to get login-session-id string with pam_ck_connector.so
649 - use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
650 - linux-info_pkg_setup
651 - fi
652 -}
653 -
654 -src_prepare() {
655 - xdg_environment_reset
656 -
657 - sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
658 -
659 - default
660 - # patch needs autoreconf, so dont need libtoolize
661 - eautoreconf
662 - #elibtoolize # bug 593314
663 -}
664 -
665 -src_configure() {
666 - econf \
667 - XMLTO_FLAGS='--skip-validation' \
668 - --libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \
669 - --localstatedir="${EPREFIX}"/var \
670 - $(use_enable pam pam-module) \
671 - $(use_enable doc docbook-docs) \
672 - $(use_enable test docbook-docs) \
673 - $(use_enable debug) \
674 - $(use_enable policykit polkit) \
675 - $(use_enable evdev libevdev) \
676 - $(use_enable acl udev-acl) \
677 - $(use_enable cgroups libcgmanager) \
678 - $(use_enable selinux libselinux) \
679 - $(use_enable udev libdrm) \
680 - $(use_enable udev libudev) \
681 - $(use_enable test tests) \
682 - --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
683 - --with-pam-module-dir="$(getpam_mod_dir)" \
684 - --with-xinitrc-dir="${EPREFIX}"/etc/X11/xinit/xinitrc.d \
685 - --without-systemdsystemunitdir
686 -}
687 -
688 -src_install() {
689 - emake \
690 - DESTDIR="${D}" \
691 - htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
692 - install
693 -
694 - dosym /usr/lib/ConsoleKit /usr/lib/${PN}
695 -
696 - dodoc AUTHORS HACKING NEWS README TODO
697 -
698 - newinitd "${FILESDIR}"/${PN}-1.0.0.initd consolekit
699 -
700 - keepdir /usr/lib/ConsoleKit/run-seat.d
701 - keepdir /usr/lib/ConsoleKit/run-session.d
702 - keepdir /etc/ConsoleKit/run-session.d
703 - keepdir /var/log/ConsoleKit
704 -
705 - exeinto /etc/X11/xinit/xinitrc.d
706 - newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
707 -
708 - if use kernel_linux; then
709 - # bug 571524
710 - exeinto /usr/lib/ConsoleKit/run-session.d
711 - doexe "${FILESDIR}"/pam-foreground-compat.ck
712 - fi
713 -
714 - prune_libtool_files --all # --all for pam_ck_connector.la
715 -
716 - rm -rf "${ED}"/var/run || die # let the init script create the directory
717 -}
718
719 diff --git a/sys-auth/consolekit/consolekit-9999.ebuild b/sys-auth/consolekit/consolekit-9999.ebuild
720 deleted file mode 100644
721 index cec9128..0000000
722 --- a/sys-auth/consolekit/consolekit-9999.ebuild
723 +++ /dev/null
724 @@ -1,128 +0,0 @@
725 -# Copyright 1999-2020 Gentoo Authors
726 -# Distributed under the terms of the GNU General Public License v2
727 -
728 -EAPI=6
729 -inherit autotools libtool git-r3 linux-info ltprune pam xdg-utils
730 -
731 -MY_PN=ConsoleKit2
732 -MY_P=${MY_PN}-${PV}
733 -
734 -DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
735 -HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
736 -EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
737 -
738 -LICENSE="GPL-2"
739 -SLOT="0"
740 -KEYWORDS=""
741 -IUSE="acl cgroups debug doc evdev kernel_linux pam pm-utils policykit selinux test udev"
742 -RESTRICT="!test? ( test )"
743 -
744 -COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
745 - >=sys-devel/gettext-0.19
746 - sys-apps/dbus
747 - sys-libs/zlib:=
748 - x11-libs/libX11:=
749 - acl? (
750 - sys-apps/acl:=
751 - >=virtual/udev-200
752 - )
753 - cgroups? (
754 - app-admin/cgmanager
755 - >=sys-libs/libnih-1.0.2[dbus]
756 - )
757 - evdev? ( dev-libs/libevdev:= )
758 - udev? (
759 - virtual/libudev
760 - x11-libs/libdrm:=
761 - )
762 - pam? ( sys-libs/pam )
763 - policykit? ( >=sys-auth/polkit-0.110 )
764 - selinux? ( sys-libs/libselinux )"
765 -# pm-utils: bug 557432
766 -RDEPEND="${COMMON_DEPEND}
767 - kernel_linux? ( sys-apps/coreutils[acl?] )
768 - pm-utils? ( sys-power/pm-utils )
769 - selinux? ( sec-policy/selinux-consolekit )"
770 -DEPEND="${COMMON_DEPEND}
771 - dev-libs/libxslt
772 - virtual/pkgconfig
773 - doc? ( app-text/xmlto )
774 - test? (
775 - app-text/docbook-xml-dtd:4.1.2
776 - app-text/xmlto
777 - )"
778 -
779 -QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
780 -
781 -pkg_setup() {
782 - if use kernel_linux; then
783 - # This is from https://bugs.gentoo.org/376939
784 - use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
785 - # This is required to get login-session-id string with pam_ck_connector.so
786 - use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
787 - linux-info_pkg_setup
788 - fi
789 -}
790 -
791 -src_prepare() {
792 - xdg_environment_reset
793 -
794 - sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
795 -
796 - default
797 - eautoreconf
798 - #elibtoolize # bug 593314
799 -}
800 -
801 -src_configure() {
802 - econf \
803 - XMLTO_FLAGS='--skip-validation' \
804 - --libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \
805 - --localstatedir="${EPREFIX}"/var \
806 - $(use_enable pam pam-module) \
807 - $(use_enable doc docbook-docs) \
808 - $(use_enable test docbook-docs) \
809 - $(use_enable debug) \
810 - $(use_enable policykit polkit) \
811 - $(use_enable evdev libevdev) \
812 - $(use_enable acl udev-acl) \
813 - $(use_enable cgroups libcgmanager) \
814 - $(use_enable selinux libselinux) \
815 - $(use_enable udev libudev) \
816 - $(use_enable test tests) \
817 - --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
818 - --with-pam-module-dir="$(getpam_mod_dir)" \
819 - --with-xinitrc-dir="${EPREFIX}"/etc/X11/xinit/xinitrc.d \
820 - --without-systemdsystemunitdir
821 -}
822 -
823 -src_install() {
824 - emake \
825 - DESTDIR="${D}" \
826 - htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
827 - install
828 -
829 - dosym /usr/lib/ConsoleKit /usr/lib/${PN}
830 -
831 - dodoc AUTHORS HACKING NEWS README TODO
832 -
833 - newinitd "${FILESDIR}"/${PN}-1.0.0.initd consolekit
834 -
835 - keepdir /usr/lib/ConsoleKit/run-seat.d
836 - keepdir /usr/lib/ConsoleKit/run-session.d
837 - keepdir /etc/ConsoleKit/run-session.d
838 - keepdir /var/log/ConsoleKit
839 -
840 - exeinto /etc/X11/xinit/xinitrc.d
841 - newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
842 -
843 - if use kernel_linux; then
844 - # bug 571524
845 - exeinto /usr/lib/ConsoleKit/run-session.d
846 - doexe "${FILESDIR}"/pam-foreground-compat.ck
847 - fi
848 -
849 - prune_libtool_files --all # --all for pam_ck_connector.la
850 -
851 - rm -rf "${ED}"/var/run || die # let the init script create the directory
852 -}
853
854 diff --git a/sys-auth/consolekit/files/90-consolekit-3 b/sys-auth/consolekit/files/90-consolekit-3
855 deleted file mode 100644
856 index 358fc24..0000000
857 --- a/sys-auth/consolekit/files/90-consolekit-3
858 +++ /dev/null
859 @@ -1,32 +0,0 @@
860 -# -*- sh -*-
861 -# Xsession.d script for ck-launch-session.
862 -#
863 -#
864 -# This file is sourced by Xsession(5), not executed.
865 -
866 -CK_LAUNCH_SESSION=/usr/bin/ck-launch-session
867 -
868 -is_on_console() {
869 - session=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \
870 - --type=method_call --print-reply --reply-timeout=2000 \
871 - /org/freedesktop/ConsoleKit/Manager \
872 - org.freedesktop.ConsoleKit.Manager.GetCurrentSession \
873 - | grep path | awk '{print $3}' | sed s/\"//g)
874 - x11_display=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \
875 - --type=method_call --print-reply --reply-timeout=2000 \
876 - $session org.freedesktop.ConsoleKit.Session.GetX11Display \
877 - | grep string | awk '{print $2}' | sed s/\"//g)
878 -
879 - if [ -z "$x11_display" ] ; then
880 - return 0
881 - else
882 - return 1
883 - fi
884 -}
885 -
886 -# gdm already creates a CK session for us, so do not run the expensive D-Bus
887 -# calls if we have $GDMSESSION
888 -if [ -z "$GDMSESSION" ] && [ -x "$CK_LAUNCH_SESSION" ] && \
889 - ( [ -z "$XDG_SESSION_COOKIE" ] || is_on_console ) ; then
890 - command="$CK_LAUNCH_SESSION $command"
891 -fi
892
893 diff --git a/sys-auth/consolekit/files/consolekit-0.2.rc b/sys-auth/consolekit/files/consolekit-0.2.rc
894 deleted file mode 100644
895 index 24cb0ee..0000000
896 --- a/sys-auth/consolekit/files/consolekit-0.2.rc
897 +++ /dev/null
898 @@ -1,25 +0,0 @@
899 -#!/sbin/openrc-run
900 -# Copyright 1999-2020 Gentoo Authors
901 -# Distributed under the terms of the GNU General Public License, v2 or later
902 -
903 -depend() {
904 - need dbus
905 - use logger
906 -}
907 -
908 -start() {
909 - ebegin "Starting ConsoleKit daemon"
910 -
911 - checkpath -q -d -m 0755 /var/run/ConsoleKit
912 -
913 - start-stop-daemon --start -q \
914 - --pidfile /var/run/ConsoleKit/pid \
915 - --exec /usr/sbin/console-kit-daemon --
916 - eend $?
917 -}
918 -
919 -stop() {
920 - ebegin "Stopping ConsoleKit daemon"
921 - start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid
922 - eend $?
923 -}
924
925 diff --git a/sys-auth/consolekit/files/consolekit-0.4.5-polkit-automagic.patch b/sys-auth/consolekit/files/consolekit-0.4.5-polkit-automagic.patch
926 deleted file mode 100644
927 index b896089..0000000
928 --- a/sys-auth/consolekit/files/consolekit-0.4.5-polkit-automagic.patch
929 +++ /dev/null
930 @@ -1,30 +0,0 @@
931 -http://bugs.freedesktop.org/show_bug.cgi?id=47587
932 -
933 ---- configure.ac
934 -+++ configure.ac
935 -@@ -56,10 +56,21 @@
936 - gthread-2.0 >= $GLIB_REQUIRED_VERSION
937 - )
938 -
939 --PKG_CHECK_MODULES(POLKIT,
940 -- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION,
941 -- have_polkit=yes,
942 -- have_polkit=no)
943 -+AC_ARG_ENABLE([polkit],
944 -+ AC_HELP_STRING([--enable-polkit], [Enable PolicyKit support (default auto)]),
945 -+ enable_polkit=$enableval,
946 -+ enable_polkit=auto)
947 -+
948 -+if test "x$enable_polkit" != "xno"; then
949 -+ PKG_CHECK_MODULES(POLKIT,
950 -+ polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION,
951 -+ have_polkit=yes,
952 -+ have_polkit=no)
953 -+ if test "x$enable_polkit" = "xyes" -a "x$have_polkit" = "xno"; then
954 -+ AC_MSG_ERROR([PolicyKit support explicitly requested but dependencies not found])
955 -+ fi
956 -+fi
957 -+
958 - if test "x$have_polkit" = "xyes" ; then
959 - AC_DEFINE(HAVE_POLKIT, [], [Define if we have polkit])
960 - fi
961
962 diff --git a/sys-auth/consolekit/files/consolekit-1.0.0.initd b/sys-auth/consolekit/files/consolekit-1.0.0.initd
963 deleted file mode 100644
964 index eceaa40..0000000
965 --- a/sys-auth/consolekit/files/consolekit-1.0.0.initd
966 +++ /dev/null
967 @@ -1,16 +0,0 @@
968 -#!/sbin/openrc-run
969 -# Copyright 1999-2020 Gentoo Authors
970 -# Distributed under the terms of the GNU General Public License, v2 or later
971 -
972 -description="consolekit - tracks login sessions and seats"
973 -pidfile="/run/ConsoleKit/pid"
974 -command="/usr/sbin/console-kit-daemon"
975 -
976 -depend() {
977 - need dbus
978 - use logger
979 -}
980 -
981 -start_pre() {
982 - checkpath -q -d -m 0755 /run/ConsoleKit
983 -}
984
985 diff --git a/sys-auth/consolekit/files/consolekit-1.1.0-Remove-the-root-restriction-for-runtime-dirs.patch b/sys-auth/consolekit/files/consolekit-1.1.0-Remove-the-root-restriction-for-runtime-dirs.patch
986 deleted file mode 100644
987 index 301c68f..0000000
988 --- a/sys-auth/consolekit/files/consolekit-1.1.0-Remove-the-root-restriction-for-runtime-dirs.patch
989 +++ /dev/null
990 @@ -1,57 +0,0 @@
991 -From 664d2fdbd966764836b1f4da2dbc5750c7f01f0f Mon Sep 17 00:00:00 2001
992 -From: Eric Koegel <eric.koegel@×××××.com>
993 -Date: Sun, 10 Apr 2016 11:20:24 +0300
994 -Subject: [PATCH] Remove the root restriction for runtime dirs
995 -
996 ----
997 - src/ck-sysdeps-unix.c | 5 -----
998 - tools/ck-remove-directory.c | 10 ----------
999 - 2 files changed, 15 deletions(-)
1000 -
1001 -diff --git a/src/ck-sysdeps-unix.c b/src/ck-sysdeps-unix.c
1002 -index 67d8eac..ecd176a 100644
1003 ---- a/src/ck-sysdeps-unix.c
1004 -+++ b/src/ck-sysdeps-unix.c
1005 -@@ -409,11 +409,6 @@ ck_generate_runtime_dir_for_user (guint uid)
1006 -
1007 - TRACE ();
1008 -
1009 -- if (uid < 1) {
1010 -- g_debug ("We do not create runtime dirs for root");
1011 -- return NULL;
1012 -- }
1013 --
1014 - errno = 0;
1015 - pwent = getpwuid (uid);
1016 - if (pwent == NULL) {
1017 -diff --git a/tools/ck-remove-directory.c b/tools/ck-remove-directory.c
1018 -index cf44fd6..b1a5722 100644
1019 ---- a/tools/ck-remove-directory.c
1020 -+++ b/tools/ck-remove-directory.c
1021 -@@ -51,11 +51,6 @@ become_user (uid_t uid, const gchar* dest)
1022 - int res;
1023 - struct passwd *pwent;
1024 -
1025 -- if (uid < 1) {
1026 -- g_critical ("invalid UID");
1027 -- exit (1);
1028 -- }
1029 --
1030 - if (dest == NULL) {
1031 - g_critical ("invalid dest");
1032 - exit (1);
1033 -@@ -148,11 +143,6 @@ main (int argc,
1034 - exit (1);
1035 - }
1036 -
1037 -- if (user_id < 1) {
1038 -- g_warning ("Invalid UID");
1039 -- exit (1);
1040 -- }
1041 --
1042 - /* Ensure we have a dest and that it starts with the correct prefix
1043 - * so we don't remove something important.
1044 - */
1045 ---
1046 -2.7.3
1047 -
1048
1049 diff --git a/sys-auth/consolekit/files/consolekit-cleanup_console_tags.patch b/sys-auth/consolekit/files/consolekit-cleanup_console_tags.patch
1050 deleted file mode 100644
1051 index c02411e..0000000
1052 --- a/sys-auth/consolekit/files/consolekit-cleanup_console_tags.patch
1053 +++ /dev/null
1054 @@ -1,67 +0,0 @@
1055 -http://bugs.gentoo.org/257761
1056 -http://patches.ubuntu.com/by-release/extracted/ubuntu/c/consolekit/
1057 -
1058 ---- src/main.c
1059 -+++ src/main.c
1060 -@@ -148,6 +148,43 @@
1061 - unlink (CONSOLE_KIT_PID_FILE);
1062 - }
1063 -
1064 -+#define CONSOLE_TAGS_DIR "/var/run/console"
1065 -+
1066 -+static void
1067 -+delete_console_tags (void)
1068 -+{
1069 -+ GDir *dir;
1070 -+ GError *error = NULL;
1071 -+ const gchar *name;
1072 -+
1073 -+ g_debug ("Cleaning up %s", CONSOLE_TAGS_DIR);
1074 -+
1075 -+ dir = g_dir_open (CONSOLE_TAGS_DIR, 0, &error);
1076 -+ if (dir == NULL) {
1077 -+ g_debug ("Couldn't open directory %s: %s", CONSOLE_TAGS_DIR,
1078 -+ error->message);
1079 -+ g_error_free (error);
1080 -+ return;
1081 -+ }
1082 -+ while ((name = g_dir_read_name (dir)) != NULL) {
1083 -+ gchar *file;
1084 -+ file = g_build_filename (CONSOLE_TAGS_DIR, name, NULL);
1085 -+
1086 -+ g_debug ("Removing tag file: %s", file);
1087 -+ if (unlink (file) == -1) {
1088 -+ g_warning ("Couldn't delete tag file: %s", file);
1089 -+ }
1090 -+ g_free (file);
1091 -+ }
1092 -+}
1093 -+
1094 -+static void
1095 -+cleanup (void)
1096 -+{
1097 -+ delete_console_tags ();
1098 -+ delete_pid ();
1099 -+}
1100 -+
1101 - /* copied from nautilus */
1102 - static int debug_log_pipes[2];
1103 -
1104 -@@ -228,7 +265,7 @@
1105 - snprintf (pid, sizeof (pid), "%lu\n", (long unsigned) getpid ());
1106 - written = write (pf, pid, strlen (pid));
1107 - close (pf);
1108 -- g_atexit (delete_pid);
1109 -+ g_atexit (cleanup);
1110 - } else {
1111 - g_warning ("Unable to write pid file %s: %s",
1112 - CONSOLE_KIT_PID_FILE,
1113 -@@ -317,6 +354,8 @@
1114 - goto out;
1115 - }
1116 -
1117 -+ delete_console_tags ();
1118 -+
1119 - create_pid_file ();
1120 -
1121 - loop = g_main_loop_new (NULL, FALSE);
1122
1123 diff --git a/sys-auth/consolekit/files/consolekit-shutdown-reboot-without-policies.patch b/sys-auth/consolekit/files/consolekit-shutdown-reboot-without-policies.patch
1124 deleted file mode 100644
1125 index 6a46649..0000000
1126 --- a/sys-auth/consolekit/files/consolekit-shutdown-reboot-without-policies.patch
1127 +++ /dev/null
1128 @@ -1,26 +0,0 @@
1129 -From: Romain Perier <mrpouet@g.o>
1130 -Date: Sat, 24 Oct 2009 18:43:43 +0200
1131 -Subject: [PATCH] Be able to shutdown or reboot even without polkit or RBAC supports
1132 -
1133 -Ck does NOTHING at the origin if its built without polkit or RBAC supports, except
1134 -display a warning using g_warning() (which does not make sense).
1135 -The trick is to to call do_stop()/do_restart() in the #else directive :)
1136 -
1137 ---- src/ck-manager.c
1138 -+++ src/ck-manager.c
1139 -@@ -1131,6 +1131,7 @@
1140 - check_rbac_permissions (manager, context, RBAC_SHUTDOWN_KEY, do_restart);
1141 - #else
1142 - g_warning ("Compiled without PolicyKit or RBAC support!");
1143 -+ do_restart(manager, context);
1144 - #endif
1145 -
1146 - return TRUE;
1147 -@@ -1207,6 +1208,7 @@
1148 - check_rbac_permissions (manager, context, RBAC_SHUTDOWN_KEY, do_stop);
1149 - #else
1150 - g_warning ("Compiled without PolicyKit or RBAC support!");
1151 -+ do_stop(manager, context);
1152 - #endif
1153 -
1154 - return TRUE;
1155
1156 diff --git a/sys-auth/consolekit/files/consolekit-udev-acl-install_to_usr.patch b/sys-auth/consolekit/files/consolekit-udev-acl-install_to_usr.patch
1157 deleted file mode 100644
1158 index 3ef3987..0000000
1159 --- a/sys-auth/consolekit/files/consolekit-udev-acl-install_to_usr.patch
1160 +++ /dev/null
1161 @@ -1,28 +0,0 @@
1162 -http://bugs.gentoo.org/398049
1163 -
1164 ---- tools/Makefile.am
1165 -+++ tools/Makefile.am
1166 -@@ -144,11 +144,10 @@
1167 - $(NULL)
1168 -
1169 - if ENABLE_UDEV_ACL
1170 --udevdir = $(UDEVDIR)
1171 - udevrulesdir = $(UDEVDIR)/rules.d
1172 -
1173 - dist_udevrules_DATA = 70-udev-acl.rules
1174 --udev_PROGRAMS = udev-acl
1175 -+libexec_PROGRAMS = udev-acl
1176 -
1177 - udev_acl_SOURCES = udev-acl.c
1178 - udev_acl_LDADD = $(UDEV_ACL_LIBS)
1179 -@@ -156,7 +155,9 @@
1180 -
1181 - install-exec-hook:
1182 - mkdir -p $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d
1183 -- ln -sf $(UDEVDIR)/udev-acl $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d/udev-acl.ck
1184 -+ mkdir -p $(DESTDIR)$(UDEVDIR)
1185 -+ ln -sf $(libexecdir)/udev-acl $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d/udev-acl.ck
1186 -+ ln -sf $(libexecdir)/udev-acl $(DESTDIR)$(UDEVDIR)/udev-acl
1187 - endif
1188 -
1189 - EXTRA_DIST = \
1190
1191 diff --git a/sys-auth/consolekit/files/pam-foreground-compat.ck b/sys-auth/consolekit/files/pam-foreground-compat.ck
1192 deleted file mode 100644
1193 index 0697ca8..0000000
1194 --- a/sys-auth/consolekit/files/pam-foreground-compat.ck
1195 +++ /dev/null
1196 @@ -1,17 +0,0 @@
1197 -#!/bin/sh
1198 -TAGDIR=/var/run/console
1199 -
1200 -[ -n "$CK_SESSION_USER_UID" ] || exit 1
1201 -
1202 -TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
1203 -
1204 -if [ "$1" = "session_added" ]; then
1205 - mkdir -p "$TAGDIR"
1206 - echo "$CK_SESSION_ID" >> "$TAGFILE"
1207 -fi
1208 -
1209 -if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
1210 - sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
1211 - [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
1212 -fi
1213 -
1214
1215 diff --git a/sys-auth/consolekit/metadata.xml b/sys-auth/consolekit/metadata.xml
1216 deleted file mode 100644
1217 index 3aa5069..0000000
1218 --- a/sys-auth/consolekit/metadata.xml
1219 +++ /dev/null
1220 @@ -1,22 +0,0 @@
1221 -<?xml version='1.0' encoding='UTF-8'?>
1222 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1223 -<pkgmetadata>
1224 - <maintainer type="person">
1225 - <email>perfinion@g.o</email>
1226 - <name>Jason Zaman</name>
1227 - </maintainer>
1228 - <maintainer type="project">
1229 - <email>freedesktop-bugs@g.o</email>
1230 - </maintainer>
1231 - <use>
1232 - <flag name="cgroups">Use the kernel to track processes instead of the session cookie.</flag>
1233 - <flag name="evdev">For handling VT switching with a session controller.</flag>
1234 - <flag name="pm-utils">Adds support for suspend/resume using <pkg>sys-power/pm-utils</pkg></flag>
1235 - <flag name="policykit">Use the PolicyKit framework (<pkg>sys-auth/polkit</pkg>) to get authorization for suspend/shutdown.</flag>
1236 - <flag name="systemd-units">Install systemd unit files to replace the modern functionality of logind in <pkg>sys-apps/systemd</pkg>. Not recommended.</flag>
1237 - </use>
1238 - <upstream>
1239 - <remote-id type="github">ConsoleKit2/ConsoleKit2</remote-id>
1240 - <remote-id type="launchpad">debian</remote-id>
1241 - </upstream>
1242 -</pkgmetadata>