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: Sat, 27 May 2017 07:53:41
Message-Id: 1495871600.45bdafa706c09957b864d3d22fe19edce88d4940.asturm@gentoo
1 commit: 45bdafa706c09957b864d3d22fe19edce88d4940
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 27 07:32:33 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 27 07:53:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45bdafa7
7
8 sys-auth/elogind: 229.3 version bump
9
10 Thanks-to: Sven Eden <yamakuzure <AT> gmx.net>
11 Gentoo-bug: 618498
12 Package-Manager: Portage-2.3.5, Repoman-2.3.1
13
14 sys-auth/elogind/Manifest | 1 +
15 sys-auth/elogind/elogind-229.3.ebuild | 84 +++++++++++++++++++++++++++++++++++
16 2 files changed, 85 insertions(+)
17
18 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
19 index 5820d9861df..54db4856b7c 100644
20 --- a/sys-auth/elogind/Manifest
21 +++ b/sys-auth/elogind/Manifest
22 @@ -1 +1,2 @@
23 DIST elogind-226.4.tar.gz 698076 SHA256 585ac8746cd81a74f47b4e93cb5f000494da4104ad53da0bae023e1758d0456d SHA512 4eb4da1d0311b2fe2d22fef57143fe8c2280df9f7a2b41e150f4d7e1411bd41eed4648aa3b80ac44d2b533e8c91a482cda7c3e8af85e710fb97e73061726ea12 WHIRLPOOL 8252b4e54830f9e257a28751eb233d4752cff24b4d695c2351f86cc65160ff6577e373cdd667635e0dee00fb63e1a57a7c049105eef9c5e4cd4cb2a7cc991f63
24 +DIST elogind-229.3.tar.gz 757313 SHA256 8506145e6071a637aec91276e19cd932b3d9cd297c8e833f7b08b8d53fd7a1d7 SHA512 5449f6b8ca1cb14d91681de1273819e193c88f6ec22b790cfe2c9d9d6e0d37bfc3b707a650d14471e0cb3a577289f725e1a47d22a14db2154a2c0552ecde32ca WHIRLPOOL e71fc14453017a570c3c2766b42fb444e41b2a703689e745ea3a01bd915fdab896b4bd3f229f74d438d48b8383a0b590c456b9269a739e9bf7b8d60441fbb33c
25
26 diff --git a/sys-auth/elogind/elogind-229.3.ebuild b/sys-auth/elogind/elogind-229.3.ebuild
27 new file mode 100644
28 index 00000000000..74c4496adf2
29 --- /dev/null
30 +++ b/sys-auth/elogind/elogind-229.3.ebuild
31 @@ -0,0 +1,84 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit autotools linux-info pam udev
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 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 +RDEPEND="${COMMON_DEPEND}
57 + sys-apps/dbus
58 + !sys-apps/systemd
59 +"
60 +DEPEND="${COMMON_DEPEND}
61 + app-text/docbook-xml-dtd:4.2
62 + app-text/docbook-xml-dtd:4.5
63 + app-text/docbook-xsl-stylesheets
64 + dev-util/gperf
65 + dev-util/intltool
66 + sys-devel/libtool
67 + virtual/pkgconfig
68 +"
69 +PDEPEND="policykit? ( sys-auth/polkit )"
70 +
71 +PATCHES=( "${FILESDIR}/${PN}-226.4-docs.patch" )
72 +
73 +pkg_setup() {
74 + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SECURITY_SMACK
75 + ~SIGNALFD ~TIMERFD"
76 +
77 + if use kernel_linux; then
78 + linux-info_pkg_setup
79 + fi
80 +}
81 +
82 +src_prepare() {
83 + default
84 + eautoreconf # Makefile.am patched by "${FILESDIR}/${P}-docs.patch"
85 +}
86 +
87 +src_configure() {
88 + econf \
89 + --with-pamlibdir=$(getpam_mod_dir) \
90 + --with-udevrulesdir="$(get_udevdir)"/rules.d \
91 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
92 + --with-rootlibdir="${EPREFIX}"/$(get_libdir) \
93 + --enable-smack \
94 + --disable-kdbus \
95 + $(use_enable debug debug elogind) \
96 + $(use_enable acl) \
97 + $(use_enable pam) \
98 + $(use_enable selinux)
99 +}
100 +
101 +src_install() {
102 + default
103 + find "${D}" -name '*.la' -delete || die
104 +
105 + newinitd "${FILESDIR}"/${PN}.init ${PN}
106 + newconfd "${FILESDIR}"/${PN}.conf ${PN}
107 +}
108 +
109 +pkg_postinst() {
110 + if [ "$(rc-config list default | grep elogind)" = "" ]; then
111 + ewarn "To enable the elogind daemon, elogind must be"
112 + ewarn "added to the default runlevel:"
113 + ewarn "# rc-update add elogind default"
114 + fi
115 +}