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/
Date: Tue, 29 May 2018 22:25:21
Message-Id: 1527632683.d68d4b509ee5e042555cb2accce9d79c54b1e176.asturm@gentoo
1 commit: d68d4b509ee5e042555cb2accce9d79c54b1e176
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 29 21:18:23 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue May 29 22:24:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d68d4b50
7
8 sys-auth/elogind: 235.4 version bump
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 sys-auth/elogind/Manifest | 1 +
13 sys-auth/elogind/elogind-235.4.ebuild | 122 ++++++++++++++++++++++++++++++++++
14 2 files changed, 123 insertions(+)
15
16 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
17 index fb21f216ddf..2000d7a9f85 100644
18 --- a/sys-auth/elogind/Manifest
19 +++ b/sys-auth/elogind/Manifest
20 @@ -1,2 +1,3 @@
21 DIST elogind-235.2.tar.gz 975652 BLAKE2B c568b5eec89da14f55211cf4405d96b4bb1ea274d1237739a92c4f3585a6181a3e17dc7ed2af5161c649cae2149b3bd25f4212cf5a304383b254e39d7aa0b378 SHA512 6fa9194e8c21fa3d3caf6f9499f772dbfe38b9d40d8a0fe43ee32ad4b2acd672a78798d00694d1e0d6107625f4f3f06b71e0a5466ed4be446d670f9bcd961313
22 +DIST elogind-235.4.tar.gz 1019339 BLAKE2B 728e6707f57f43acf9a40e127fe2e53389cbcba1c96b79f96b23dc7d2ffdc3c84efdd55905a22cbeae0442d9278fd1e9371904c2da8aa29c00f79b879522b2c6 SHA512 43a4a25219c234214b1541f17c4aec65847e62ebbeeb223c7890f6648a2ffadc8388e4c526ab49df9ff1f216160810c601c7609098b9b2955bc63142f684b16e
23 DIST elogind-236.1.tar.gz 1050387 BLAKE2B d0d295210eb07374cae738f55b472d9410f68c9e7f318dd736b5fcb5c0409c3da144988d8042b1e3b103d34d7a02471b4e316a924c9b1640c605fc73972de3da SHA512 ab4989f4467ef001bb8b837035bee870beaf5ec5fa2389649bdcad2fe7bbf82691bfd3176cf9a3bf3b5c232c77210f431f2d38ebdbfd09f5a7868cd50e476c59
24
25 diff --git a/sys-auth/elogind/elogind-235.4.ebuild b/sys-auth/elogind/elogind-235.4.ebuild
26 new file mode 100644
27 index 00000000000..c2dbf0ad027
28 --- /dev/null
29 +++ b/sys-auth/elogind/elogind-235.4.ebuild
30 @@ -0,0 +1,122 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit linux-info meson pam udev xdg-utils
37 +
38 +DESCRIPTION="The systemd project's logind, extracted to a standalone package"
39 +HOMEPAGE="https://github.com/elogind/elogind"
40 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="CC0-1.0 LGPL-2.1+ public-domain"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~x86"
45 +IUSE="+acl debug doc +pam +policykit selinux"
46 +
47 +COMMON_DEPEND="
48 + sys-apps/util-linux
49 + sys-libs/libcap
50 + virtual/libudev:=
51 + acl? ( sys-apps/acl )
52 + pam? ( virtual/pam )
53 + selinux? ( sys-libs/libselinux )
54 +"
55 +DEPEND="${COMMON_DEPEND}
56 + app-text/docbook-xml-dtd:4.2
57 + app-text/docbook-xml-dtd:4.5
58 + app-text/docbook-xsl-stylesheets
59 + dev-util/gperf
60 + dev-util/intltool
61 + sys-devel/libtool
62 + virtual/pkgconfig
63 +"
64 +RDEPEND="${COMMON_DEPEND}
65 + !sys-apps/systemd
66 +"
67 +PDEPEND="
68 + sys-apps/dbus
69 + policykit? ( sys-auth/polkit )
70 +"
71 +
72 +PATCHES=(
73 + "${FILESDIR}/${PN}-235.2-docs.patch"
74 + "${FILESDIR}/${PN}-235.2-drop-logintest.patch" # bug 645156
75 +)
76 +
77 +pkg_setup() {
78 + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD"
79 +
80 + if use kernel_linux; then
81 + linux-info_pkg_setup
82 + fi
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 + -Dzshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions"
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 +}