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: Mon, 15 Jan 2018 23:46:00
Message-Id: 1516059923.8d87d4e32d1b7e805752b76ee6ed86bfd5e8bace.asturm@gentoo
1 commit: 8d87d4e32d1b7e805752b76ee6ed86bfd5e8bace
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 15 23:37:32 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 15 23:45:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d87d4e3
7
8 sys-auth/elogind: 235.2 version bump
9
10 Closes: https://bugs.gentoo.org/644684
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 sys-auth/elogind/Manifest | 1 +
14 sys-auth/elogind/elogind-235.2.ebuild | 125 ++++++++++++++++++++++++++++++++++
15 2 files changed, 126 insertions(+)
16
17 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
18 index 9466285a938..b20a67b5a25 100644
19 --- a/sys-auth/elogind/Manifest
20 +++ b/sys-auth/elogind/Manifest
21 @@ -1,2 +1,3 @@
22 DIST elogind-234.4.tar.gz 973370 BLAKE2B 4fe00d2e22e3f94dfb6385fe61825be72ad2200f1368807ea816a971104cf384e3508ecf2877fa08394c6d0259874b2ceb7c4014f9e861dcd3b19c01bcd04602 SHA512 2df4fa318074d4f5e5dbba353cf817068a2703ffed40cdeae4cba2dea4ee143d1c5fc076b19419f1c4299392088c2c14b430d8aa1ded03b62117311802305d5e
23 DIST elogind-235.1.tar.gz 975726 BLAKE2B 2497be9bfc89e8d7eef1cc0a0880b5801940df282ba1c8e62031dcf888bcc107d071fe6d61f0e383a779829eafb060f421140d8c3c998937eec1c333ed7d0d13 SHA512 96442d073f4437c4432419cfaed3dc6f0323fc6967ae01b64ee07ae9a91d99084ba0066825a723a8a58ffff4c0a47150d64d40ff4dcc15a6250423dd5c358c38
24 +DIST elogind-235.2.tar.gz 975652 BLAKE2B c568b5eec89da14f55211cf4405d96b4bb1ea274d1237739a92c4f3585a6181a3e17dc7ed2af5161c649cae2149b3bd25f4212cf5a304383b254e39d7aa0b378 SHA512 6fa9194e8c21fa3d3caf6f9499f772dbfe38b9d40d8a0fe43ee32ad4b2acd672a78798d00694d1e0d6107625f4f3f06b71e0a5466ed4be446d670f9bcd961313
25
26 diff --git a/sys-auth/elogind/elogind-235.2.ebuild b/sys-auth/elogind/elogind-235.2.ebuild
27 new file mode 100644
28 index 00000000000..d6c31d67e03
29 --- /dev/null
30 +++ b/sys-auth/elogind/elogind-235.2.ebuild
31 @@ -0,0 +1,125 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
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 ~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 +PATCHES=( "${FILESDIR}/${PN}-235.1-docs.patch" )
74 +
75 +pkg_setup() {
76 + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD"
77 +
78 + if use kernel_linux; then
79 + linux-info_pkg_setup
80 + fi
81 +}
82 +
83 +src_prepare() {
84 + default
85 + xdg_environment_reset
86 +}
87 +
88 +src_configure() {
89 + local emesonargs cgroupmode rccgroupmode
90 +
91 + rccgroupmode="$(grep rc_cgroup_mode /etc/rc.conf | cut -d '"' -f 2)"
92 + 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 + emesonargs=(
101 + -Ddocdir="${EPREFIX}/usr/share/doc/${P}" \
102 + -Dhtmldir="${EPREFIX}/usr/share/doc/${P}/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 + -Dsmack=true \
110 + -Dman=auto \
111 + -Dhtml=$(usex doc auto false) \
112 + -Dcgroup-controller=openrc \
113 + -Ddefault-hierarchy=${cgroupmode} \
114 + -Ddebug=$(usex debug elogind false) \
115 + --buildtype $(usex debug debug release) \
116 + -Dacl=$(usex acl true false) \
117 + -Dpam=$(usex pam true false) \
118 + -Dselinux=$(usex selinux true false)
119 + -Dbashcompletiondir="${EPREFIX}/usr/share/bash-completion/completions" \
120 + -Dzsh-completion="${EPREFIX}/usr/share/zsh/site-functions" \
121 + )
122 + meson_src_configure
123 +}
124 +
125 +src_install() {
126 + meson_src_install
127 +
128 + newinitd "${FILESDIR}"/${PN}.init ${PN}
129 +
130 + sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die
131 + newconfd ${PN}.conf ${PN}
132 +}
133 +
134 +pkg_postinst() {
135 + if [ "$(rc-config list boot | grep elogind)" != "" ]; then
136 + ewarn "elogind is currently started from boot runlevel."
137 + elif [ "$(rc-config list default | grep elogind)" != "" ]; then
138 + ewarn "elogind is currently started from default runlevel."
139 + ewarn "Please remove elogind from the default runlevel and"
140 + ewarn "add it to the boot runlevel by:"
141 + ewarn "# rc-update del elogind default"
142 + ewarn "# rc-update add elogind boot"
143 + else
144 + ewarn "elogind is currently not started from any runlevel."
145 + ewarn "You may add it to the boot runlevel by:"
146 + ewarn "# rc-update add elogind boot"
147 + fi
148 + ewarn "Alternatively you can leave elogind out of any"
149 + ewarn "runlevel. It will then be started automatically"
150 + if use pam; then
151 + ewarn "when the first service calls it via dbus, or the"
152 + ewarn "first user logs into the system."
153 + else
154 + ewarn "when the first service calls it via dbus."
155 + fi
156 +}