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, 01 Apr 2019 19:33:28
Message-Id: 1554147003.31efe68ed138737c1215a535ad4824dc4864d251.asturm@gentoo
1 commit: 31efe68ed138737c1215a535ad4824dc4864d251
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 1 19:20:53 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 1 19:30:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31efe68e
7
8 sys-auth/elogind: 241.2 version bump
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sys-auth/elogind/Manifest | 1 +
14 sys-auth/elogind/elogind-241.2.ebuild | 128 ++++++++++++++++++++++++++++++++++
15 2 files changed, 129 insertions(+)
16
17 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
18 index f40da98e076..d120e7ae253 100644
19 --- a/sys-auth/elogind/Manifest
20 +++ b/sys-auth/elogind/Manifest
21 @@ -1,3 +1,4 @@
22 DIST elogind-239.3.tar.gz 1171080 BLAKE2B 95d158a861641415f2c6ea3648bafd32ee3da80b0258e33fb7b88cf834f42c4d76b634af055f81dfba7c6477423edf73ad7c0d79e5e3608938e90a713bdff00e SHA512 61399f82d6a93d77e0984dc67b9c7ebdda27ba2254810be9725a09f91fde41c66adb53a5fe7989f53d6b156b70f147471c89fa64a432bccc482e8057a0cddf84
23 DIST elogind-239.4.tar.gz 1183999 BLAKE2B 3a0aa216ee565ae8f3311b16af9752a99519254ac8737de2a44821e95d05b3e2d8b82af3d397367e8804d7bc45cb942859516f195848ba0317aa73891d77903b SHA512 84e9765d7c3039478b06a683870b37ec718724f1185b56c1b74885133283ad1678f3ca8a73510cb4b0777d099c54f59e927caaae7ae988abda803150b84cf8fc
24 DIST elogind-241.1.tar.gz 1399094 BLAKE2B d445f4db98da88ece22c1a61e846d3be4eeb4bb76272c1cf895f50d32b6bb0bf471b9cbc5b4760730fa4cfb17db518feb9fceb951eb4e1a2b19f4decfde12b52 SHA512 1bc058da23a595e386b9472579cc9f8247375f5600a511a929a50011adab9a6a36c041c2ab71eb545098d4baf5e35b0231893bfecc1349730316a2b6bda69f11
25 +DIST elogind-241.2.tar.gz 1399508 BLAKE2B 4f4104785c629b1d7378439ab03e2bead800bbe2403120b9337e747aee5b5d0486cc893b49ddc972c833b2201c7eeef3b60e34b4f5c9cf1d6a89e9a487888a8a SHA512 7f4a822682856547d430f893bb55a9bf5fc2680aff1b31bb3f120f92ccb1d69b848cbba7f59edd3376d083b641d570bf9c56e62a789090e76e4b37dfb375995a
26
27 diff --git a/sys-auth/elogind/elogind-241.2.ebuild b/sys-auth/elogind/elogind-241.2.ebuild
28 new file mode 100644
29 index 00000000000..b63a71d3bcd
30 --- /dev/null
31 +++ b/sys-auth/elogind/elogind-241.2.ebuild
32 @@ -0,0 +1,128 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
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 ~arm64 ~ppc ~ppc64 ~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=(
77 + "${FILESDIR}/${PN}-241.1-docs.patch"
78 +)
79 +
80 +pkg_setup() {
81 + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD"
82 +
83 + use kernel_linux && linux-info_pkg_setup
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 + --buildtype $(usex debug debug release)
118 + -Dhtml=$(usex doc auto false)
119 + -Dpam=$(usex pam true false)
120 + -Dselinux=$(usex selinux true false)
121 + )
122 +
123 + meson_src_configure
124 +}
125 +
126 +src_install() {
127 + DOCS+=( src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
128 +
129 + meson_src_install
130 +
131 + newinitd "${FILESDIR}"/${PN}.init ${PN}
132 +
133 + sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die
134 + newconfd ${PN}.conf ${PN}
135 +}
136 +
137 +pkg_postinst() {
138 + if [[ "$(rc-config list boot | grep elogind)" != "" ]]; then
139 + elog "elogind is currently started from boot runlevel."
140 + elif [[ "$(rc-config list default | grep elogind)" != "" ]]; then
141 + ewarn "elogind is currently started from default runlevel."
142 + ewarn "Please remove elogind from the default runlevel and"
143 + ewarn "add it to the boot runlevel by:"
144 + ewarn "# rc-update del elogind default"
145 + ewarn "# rc-update add elogind boot"
146 + else
147 + elog "elogind is currently not started from any runlevel."
148 + elog "You may add it to the boot runlevel by:"
149 + elog "# rc-update add elogind boot"
150 + elog
151 + elog "Alternatively, you can leave elogind out of any"
152 + elog "runlevel. It will then be started automatically"
153 + if use pam; then
154 + elog "when the first service calls it via dbus, or"
155 + elog "the first user logs into the system."
156 + else
157 + elog "when the first service calls it via dbus."
158 + fi
159 + fi
160 +}