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/
Date: Tue, 06 Jun 2017 12:53:34
Message-Id: 1496753599.2a585c1f85093f5a6f79a26bcb91b33c0e64eb81.kensington@gentoo
1 commit: 2a585c1f85093f5a6f79a26bcb91b33c0e64eb81
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 6 12:53:00 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 6 12:53:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a585c1f
7
8 sys-auth/elogind: version bump 229.4
9
10 Gentoo-bug: 620976
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12
13 sys-auth/elogind/Manifest | 1 +
14 sys-auth/elogind/elogind-229.4.ebuild | 84 +++++++++++++++++++++++++++++++++++
15 2 files changed, 85 insertions(+)
16
17 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
18 index f6f3c9a1640..8480503c7bd 100644
19 --- a/sys-auth/elogind/Manifest
20 +++ b/sys-auth/elogind/Manifest
21 @@ -1 +1,2 @@
22 DIST elogind-229.3.tar.gz 757313 SHA256 8506145e6071a637aec91276e19cd932b3d9cd297c8e833f7b08b8d53fd7a1d7 SHA512 5449f6b8ca1cb14d91681de1273819e193c88f6ec22b790cfe2c9d9d6e0d37bfc3b707a650d14471e0cb3a577289f725e1a47d22a14db2154a2c0552ecde32ca WHIRLPOOL e71fc14453017a570c3c2766b42fb444e41b2a703689e745ea3a01bd915fdab896b4bd3f229f74d438d48b8383a0b590c456b9269a739e9bf7b8d60441fbb33c
23 +DIST elogind-229.4.tar.gz 757388 SHA256 a34012b087d1da4a5c23ab66a3debe34a4dc01cf61fd4ba91a28a9579aafa2ed SHA512 d26a1297755ca262b9ac5b85d8c4e8f706d5eccdc69d9de312297812bafc20eeb5180824fb85d6f6c9cdfe4966ca1acc4ce62902c6b8816e4e8fb244aa4b9518 WHIRLPOOL 6e9a1a97ce317d3ae562663b1cac5115507487694aed3bd16e500f2c4b295a8735705b2e1c24c1ddf10c00a0eb1d2c444a6bdbb154b1e20c6e7210fdbfa95f8f
24
25 diff --git a/sys-auth/elogind/elogind-229.4.ebuild b/sys-auth/elogind/elogind-229.4.ebuild
26 new file mode 100644
27 index 00000000000..a5912caf290
28 --- /dev/null
29 +++ b/sys-auth/elogind/elogind-229.4.ebuild
30 @@ -0,0 +1,84 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit autotools linux-info pam udev
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 pam policykit selinux"
46 +
47 +RDEPEND="
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 + !sys-apps/systemd
55 +"
56 +DEPEND="${RDEPEND}
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 +PDEPEND="
66 + sys-apps/dbus
67 + policykit? ( sys-auth/polkit )
68 +"
69 +
70 +PATCHES=( "${FILESDIR}/${PN}-226.4-docs.patch" )
71 +
72 +pkg_setup() {
73 + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SECURITY_SMACK
74 + ~SIGNALFD ~TIMERFD"
75 +
76 + if use kernel_linux; then
77 + linux-info_pkg_setup
78 + fi
79 +}
80 +
81 +src_prepare() {
82 + default
83 + eautoreconf # Makefile.am patched by "${FILESDIR}/${P}-docs.patch"
84 +}
85 +
86 +src_configure() {
87 + econf \
88 + --with-pamlibdir=$(getpam_mod_dir) \
89 + --with-udevrulesdir="$(get_udevdir)"/rules.d \
90 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
91 + --with-rootlibdir="${EPREFIX}"/$(get_libdir) \
92 + --enable-smack \
93 + --disable-kdbus \
94 + $(use_enable debug debug elogind) \
95 + $(use_enable acl) \
96 + $(use_enable pam) \
97 + $(use_enable selinux)
98 +}
99 +
100 +src_install() {
101 + default
102 + find "${D}" -name '*.la' -delete || die
103 +
104 + newinitd "${FILESDIR}"/${PN}.init ${PN}
105 + newconfd "${FILESDIR}"/${PN}.conf ${PN}
106 +}
107 +
108 +pkg_postinst() {
109 + if [ "$(rc-config list default | grep elogind)" = "" ]; then
110 + ewarn "To enable the elogind daemon, elogind must be"
111 + ewarn "added to the default runlevel:"
112 + ewarn "# rc-update add elogind default"
113 + fi
114 +}