Gentoo Archives: gentoo-commits

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