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/, sys-auth/elogind/files/
Date: Sat, 30 Jun 2018 20:48:01
Message-Id: 1530391651.6e10b3ca8743a13cfdc600d2f8acdaaf2e220a26.asturm@gentoo
1 commit: 6e10b3ca8743a13cfdc600d2f8acdaaf2e220a26
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 30 19:52:38 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 30 20:47:31 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e10b3ca
7
8 sys-auth/elogind: 238.1 version bump
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 sys-auth/elogind/Manifest | 1 +
13 sys-auth/elogind/elogind-238.1.ebuild | 120 ++++++++++++++++++++++++
14 sys-auth/elogind/files/elogind-238.1-docs.patch | 23 +++++
15 3 files changed, 144 insertions(+)
16
17 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
18 index c29a9a138fd..aa45422b555 100644
19 --- a/sys-auth/elogind/Manifest
20 +++ b/sys-auth/elogind/Manifest
21 @@ -1,3 +1,4 @@
22 DIST elogind-235.2.tar.gz 975652 BLAKE2B c568b5eec89da14f55211cf4405d96b4bb1ea274d1237739a92c4f3585a6181a3e17dc7ed2af5161c649cae2149b3bd25f4212cf5a304383b254e39d7aa0b378 SHA512 6fa9194e8c21fa3d3caf6f9499f772dbfe38b9d40d8a0fe43ee32ad4b2acd672a78798d00694d1e0d6107625f4f3f06b71e0a5466ed4be446d670f9bcd961313
23 DIST elogind-235.5.tar.gz 990321 BLAKE2B 03730f449e01ef74a92aa3313f59b93de3941425f95610e2d50dd6a0651682df5f2e245f9eeaeef5c5fd38300102fbccc980a55466ea12100e8904f126a5c44f SHA512 8f12c576f291fb9768e343e8257c74c62686f1a67b10170715b678e0431692cec7b6382102467dd2598a331c20d823d935128d5ff36f5b074dc02802ffec863c
24 DIST elogind-236.1.tar.gz 1050387 BLAKE2B d0d295210eb07374cae738f55b472d9410f68c9e7f318dd736b5fcb5c0409c3da144988d8042b1e3b103d34d7a02471b4e316a924c9b1640c605fc73972de3da SHA512 ab4989f4467ef001bb8b837035bee870beaf5ec5fa2389649bdcad2fe7bbf82691bfd3176cf9a3bf3b5c232c77210f431f2d38ebdbfd09f5a7868cd50e476c59
25 +DIST elogind-238.1.tar.gz 1074179 BLAKE2B 3041e9cfa0d454f653db164db8e59af4db5f3821bbb65cb5482d83f63e410612e121791f7ef3e08c9ac3940c7b6c7931df2b072ba452d2073c3e424e4dfe10c3 SHA512 ba0a74e9b9168b08a54b13ed500e9c713c48bb1648aa6064dbe666a96fa3fbd5b69447c35f686db3a1813476a5585be34b1ae13e3c9017eac8171b73f6311c4c
26
27 diff --git a/sys-auth/elogind/elogind-238.1.ebuild b/sys-auth/elogind/elogind-238.1.ebuild
28 new file mode 100644
29 index 00000000000..c532686d9fa
30 --- /dev/null
31 +++ b/sys-auth/elogind/elogind-238.1.ebuild
32 @@ -0,0 +1,120 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit linux-info meson pam udev xdg-utils
39 +
40 +DESCRIPTION="The systemd project's logind, extracted to a standalone package"
41 +HOMEPAGE="https://github.com/elogind/elogind"
42 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="CC0-1.0 LGPL-2.1+ public-domain"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~x86"
47 +IUSE="+acl debug doc +pam +policykit selinux"
48 +
49 +COMMON_DEPEND="
50 + sys-apps/util-linux
51 + sys-libs/libcap
52 + virtual/libudev:=
53 + acl? ( sys-apps/acl )
54 + pam? ( virtual/pam )
55 + selinux? ( sys-libs/libselinux )
56 +"
57 +DEPEND="${COMMON_DEPEND}
58 + app-text/docbook-xml-dtd:4.2
59 + app-text/docbook-xml-dtd:4.5
60 + app-text/docbook-xsl-stylesheets
61 + dev-util/gperf
62 + dev-util/intltool
63 + sys-devel/libtool
64 + virtual/pkgconfig
65 +"
66 +RDEPEND="${COMMON_DEPEND}
67 + !sys-apps/systemd
68 +"
69 +PDEPEND="
70 + sys-apps/dbus
71 + policykit? ( sys-auth/polkit )
72 +"
73 +
74 +DOCS=( src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
75 +
76 +PATCHES=( "${FILESDIR}/${P}-docs.patch" )
77 +
78 +pkg_setup() {
79 + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD"
80 +
81 + if use kernel_linux; then
82 + linux-info_pkg_setup
83 + fi
84 +}
85 +
86 +src_prepare() {
87 + default
88 + xdg_environment_reset
89 +}
90 +
91 +src_configure() {
92 + local rccgroupmode="$(grep rc_cgroup_mode /etc/rc.conf | cut -d '"' -f 2)"
93 + local cgroupmode="legacy"
94 +
95 + if [[ "xhybrid" = "x${rccgroupmode}" ]] ; then
96 + cgroupmode="hybrid"
97 + elif [[ "xunified" = "x${rccgroupmode}" ]] ; then
98 + cgroupmode="unified"
99 + fi
100 +
101 + local emesonargs=(
102 + -Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
103 + -Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html"
104 + -Dpamlibdir=$(getpam_mod_dir)
105 + -Dudevrulesdir="$(get_udevdir)"/rules.d
106 + --libdir="${EPREFIX}"/usr/$(get_libdir)
107 + -Drootlibdir="${EPREFIX}"/$(get_libdir)
108 + -Drootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind
109 + -Drootprefix="${EPREFIX}/"
110 + -Dbashcompletiondir="${EPREFIX}/usr/share/bash-completion/completions"
111 + -Dman=auto
112 + -Dsmack=true
113 + -Dcgroup-controller=openrc
114 + -Ddefault-hierarchy=${cgroupmode}
115 + -Ddefault-kill-user-processes=false
116 + -Dacl=$(usex acl true false)
117 + -Ddebug=$(usex debug elogind false)
118 + --buildtype $(usex debug debug release)
119 + -Dhtml=$(usex doc auto false)
120 + -Dpam=$(usex pam true false)
121 + -Dselinux=$(usex selinux true false)
122 + )
123 +
124 + meson_src_configure
125 +}
126 +
127 +src_install() {
128 + DOCS+=( src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
129 +
130 + meson_src_install
131 +
132 + newinitd "${FILESDIR}"/${PN}.init ${PN}
133 +
134 + sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die
135 + newconfd ${PN}.conf ${PN}
136 +}
137 +
138 +pkg_postinst() {
139 + if [[ "$(rc-config list boot | grep elogind)" != "" ]]; then
140 + elog "elogind is currently started from boot runlevel."
141 + elif [[ "$(rc-config list default | grep elogind)" != "" ]]; then
142 + ewarn "elogind is currently started from default runlevel."
143 + ewarn "Please remove elogind from the default runlevel and"
144 + ewarn "add it to the boot runlevel by:"
145 + ewarn "# rc-update del elogind default"
146 + ewarn "# rc-update add elogind boot"
147 + else
148 + ewarn "elogind is currently not started from any runlevel."
149 + ewarn "You may add it to the boot runlevel by:"
150 + ewarn "# rc-update add elogind boot"
151 + fi
152 +}
153
154 diff --git a/sys-auth/elogind/files/elogind-238.1-docs.patch b/sys-auth/elogind/files/elogind-238.1-docs.patch
155 new file mode 100644
156 index 00000000000..2288ddfecb3
157 --- /dev/null
158 +++ b/sys-auth/elogind/files/elogind-238.1-docs.patch
159 @@ -0,0 +1,23 @@
160 +--- a/meson.build 2018-06-25 16:41:00.000000000 +0200
161 ++++ b/meson.build 2018-06-30 21:45:52.139755680 +0200
162 +@@ -2928,11 +2928,6 @@
163 + # install_data('modprobe.d/systemd.conf',
164 + # install_dir : modprobedir)
165 + #endif // 0
166 +-install_data('LICENSE.GPL2',
167 +- 'LICENSE.LGPL2.1',
168 +- 'NEWS',
169 +- 'README',
170 +- 'doc/CODING_STYLE',
171 + #if 0 /// irrelevant for elogind
172 + # 'doc/DISTRO_PORTING',
173 + # 'doc/ENVIRONMENT.md',
174 +@@ -2941,8 +2936,6 @@
175 + # 'doc/TRANSLATORS',
176 + # 'doc/UIDS-GIDS.md',
177 + #endif // 0
178 +- 'src/libelogind/sd-bus/GVARIANT-SERIALIZATION',
179 +- install_dir : docdir)
180 +
181 + #if 0 /// UNNEEDED by elogind
182 + # meson.add_install_script('sh', '-c', mkdir_p.format(systemdstatedir))