Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/consolekit/
Date: Wed, 19 Jul 2017 07:17:51
Message-Id: 1500448635.7d1a93446fe340a2fd2fe61e5e11a52dd32376b2.perfinion@gentoo
1 commit: 7d1a93446fe340a2fd2fe61e5e11a52dd32376b2
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 19 07:14:27 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 19 07:17:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d1a9344
7
8 sys-auth/consolekit: bump 1.2.0 (bug 625582)
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 sys-auth/consolekit/Manifest | 1 +
13 sys-auth/consolekit/consolekit-1.2.0.ebuild | 131 ++++++++++++++++++++++++++++
14 2 files changed, 132 insertions(+)
15
16 diff --git a/sys-auth/consolekit/Manifest b/sys-auth/consolekit/Manifest
17 index d60cbef5598..abe77d5d052 100644
18 --- a/sys-auth/consolekit/Manifest
19 +++ b/sys-auth/consolekit/Manifest
20 @@ -3,4 +3,5 @@ DIST ConsoleKit2-1.0.1.tar.bz2 1192681 SHA256 741c53321a0792b165f386c73c668af256
21 DIST ConsoleKit2-1.1.0.tar.bz2 630178 SHA256 a40d92358aca9f627a224dca674090e310423b00ed63fc06482997611661b69b SHA512 14ded07d4140e7a31132de21e84c2878475676b8c98f72b42340708972ed384abb9ba9380d74719718fc220c001387c788cf709cd15f8b19d598467dfe8a57df WHIRLPOOL 8f08d81576b5121b2da6cd94b3b5675ea55dce17997b035d0ba451c011b101f9e315e983b20610ee022ee286b50a7b13e2508584b9c08dba0c6cda20b8801a63
22 DIST ConsoleKit2-1.1.1.tar.bz2 1372801 SHA256 795b2cfb766bdffb9187ef7f8beb8d8298e4c38df4a69377115297a0dee3b0d0 SHA512 168af9760e10914dff5e693d2c3b2e2a35b1662fc2769e2954eec0238f7f313ff154add650fa6f0f59e73e4e0aec2fe63ff62446a3c73c2d4437408e69aa97b6 WHIRLPOOL cef8ac778923671f9bffe87ecd8045b30630578e2599d0ccf37ad8d8070b7c0ca6936e9837abc5fc1f7af5f119edfeae68d9a14199485936677a5faba09b0958
23 DIST ConsoleKit2-1.1.2.tar.bz2 1125567 SHA256 f4b26b45edf7416ed76052b8f85ea05b7b560c744edee8042575667528bc1f24 SHA512 fadca85e05c176b06ead40fba5c068d497bf69bcc322287363d0c27cdd6627b758295db1ef534b908c0e6240486430d8cb36660b4d71216a60d19a52d6d0db39 WHIRLPOOL b9655418498cb2b63a30d6d1a56f6afe0adf8f6ae3a6aa97fc55da8288fae588deea04ab868f0ef524e185696ad87a35aca6de8eb4e6cb32bc4ba729040e0cbb
24 +DIST ConsoleKit2-1.2.0.tar.bz2 1125402 SHA256 d6ea13b306557a76519388de39bf7f1a1ea9010af147fad4fb3131ce634bd8b3 SHA512 c0f6e629b7229c2ffaafe8da899970b48c8372402447af18560fffd8804d9ab91a4ad2eb82c8f648a14807f8ccc5fb1ab4366de14faa8a2d5fb3767a6a4253f7 WHIRLPOOL 46c463fbfafd188dcaecc61f3ce83599a746e18b4c3ea129a205fec24927cc80958decf95913de679ddded0120e15fb631dcdeb08fd09a0029350b70b8b8ecd9
25 DIST consolekit_0.4.6-4.debian.tar.gz 12192 SHA256 6d4dd5e13a76454b4bab27ab6b407718cd77616afd2b1af7cb8d947c1323b802 SHA512 f7fc5965b1f495d16a8ca167940431bc2569e9bde9e4a356b9c9ed00c2825db61da7b6db3d434d977fff72b3aaef30c455a365b9eba282a887a523753613b58f WHIRLPOOL 961a918c21259e24c68c7a5bf93964825b891ea207c088fecab61f81434012dc8925fca83b74518cfc9cf42f2c4a87eba7518c0829f663716ca0e11e38c856c9
26
27 diff --git a/sys-auth/consolekit/consolekit-1.2.0.ebuild b/sys-auth/consolekit/consolekit-1.2.0.ebuild
28 new file mode 100644
29 index 00000000000..ad224d1d9a6
30 --- /dev/null
31 +++ b/sys-auth/consolekit/consolekit-1.2.0.ebuild
32 @@ -0,0 +1,131 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +inherit autotools libtool linux-info pam xdg-utils
38 +
39 +MY_PN=ConsoleKit2
40 +MY_P=${MY_PN}-${PV}
41 +
42 +DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
43 +HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
44 +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
49 +IUSE="acl cgroups debug doc evdev kernel_linux pam pm-utils policykit selinux test udev"
50 +
51 +COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus]
52 + >=sys-devel/gettext-0.19
53 + sys-apps/dbus
54 + sys-libs/zlib:=
55 + x11-libs/libX11:=
56 + acl? (
57 + sys-apps/acl:=
58 + >=virtual/udev-200
59 + )
60 + cgroups? (
61 + app-admin/cgmanager
62 + >=sys-libs/libnih-1.0.2[dbus]
63 + )
64 + evdev? ( dev-libs/libevdev:= )
65 + udev? (
66 + virtual/libudev
67 + x11-libs/libdrm:=
68 + )
69 + pam? ( virtual/pam )
70 + policykit? ( >=sys-auth/polkit-0.110 )
71 + selinux? ( sys-libs/libselinux )"
72 +# pm-utils: bug 557432
73 +RDEPEND="${COMMON_DEPEND}
74 + kernel_linux? ( sys-apps/coreutils[acl?] )
75 + pm-utils? ( sys-power/pm-utils )
76 + selinux? ( sec-policy/selinux-consolekit )"
77 +DEPEND="${COMMON_DEPEND}
78 + dev-libs/libxslt
79 + virtual/pkgconfig
80 + doc? ( app-text/xmlto )
81 + test? (
82 + app-text/docbook-xml-dtd:4.1.2
83 + app-text/xmlto
84 + )"
85 +
86 +S=${WORKDIR}/${MY_P}
87 +
88 +QA_MULTILIB_PATHS="usr/lib/ConsoleKit/.*"
89 +
90 +pkg_setup() {
91 + if use kernel_linux; then
92 + # This is from https://bugs.gentoo.org/376939
93 + use acl && CONFIG_CHECK="~TMPFS_POSIX_ACL"
94 + # This is required to get login-session-id string with pam_ck_connector.so
95 + use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
96 + linux-info_pkg_setup
97 + fi
98 +}
99 +
100 +src_prepare() {
101 + xdg_environment_reset
102 +
103 + sed -i -e '/SystemdService/d' data/org.freedesktop.ConsoleKit.service.in || die
104 +
105 + default
106 + # patch needs autoreconf, so dont need libtoolize
107 + eautoreconf
108 + #elibtoolize # bug 593314
109 +}
110 +
111 +src_configure() {
112 + econf \
113 + XMLTO_FLAGS='--skip-validation' \
114 + --libexecdir="${EPREFIX}"/usr/lib/ConsoleKit \
115 + --localstatedir="${EPREFIX}"/var \
116 + $(use_enable pam pam-module) \
117 + $(use_enable doc docbook-docs) \
118 + $(use_enable test docbook-docs) \
119 + $(use_enable debug) \
120 + $(use_enable policykit polkit) \
121 + $(use_enable evdev libevdev) \
122 + $(use_enable acl udev-acl) \
123 + $(use_enable cgroups libcgmanager) \
124 + $(use_enable selinux libselinux) \
125 + $(use_enable udev libdrm) \
126 + $(use_enable udev libudev) \
127 + $(use_enable test tests) \
128 + --with-dbus-services="${EPREFIX}"/usr/share/dbus-1/services \
129 + --with-pam-module-dir="$(getpam_mod_dir)" \
130 + --with-xinitrc-dir="${EPREFIX}"/etc/X11/xinit/xinitrc.d \
131 + --without-systemdsystemunitdir
132 +}
133 +
134 +src_install() {
135 + emake \
136 + DESTDIR="${D}" \
137 + htmldocdir="${EPREFIX}"/usr/share/doc/${PF}/html \
138 + install
139 +
140 + dosym /usr/lib/ConsoleKit /usr/lib/${PN}
141 +
142 + dodoc AUTHORS HACKING NEWS README TODO
143 +
144 + newinitd "${FILESDIR}"/${PN}-1.0.0.initd consolekit
145 +
146 + keepdir /usr/lib/ConsoleKit/run-seat.d
147 + keepdir /usr/lib/ConsoleKit/run-session.d
148 + keepdir /etc/ConsoleKit/run-session.d
149 + keepdir /var/log/ConsoleKit
150 +
151 + exeinto /etc/X11/xinit/xinitrc.d
152 + newexe "${FILESDIR}"/90-consolekit-3 90-consolekit
153 +
154 + if use kernel_linux; then
155 + # bug 571524
156 + exeinto /usr/lib/ConsoleKit/run-session.d
157 + doexe "${FILESDIR}"/pam-foreground-compat.ck
158 + fi
159 +
160 + prune_libtool_files --all # --all for pam_ck_connector.la
161 +
162 + rm -rf "${ED}"/var/run || die # let the init script create the directory
163 +}