Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/acpid/
Date: Fri, 27 Apr 2018 21:14:52
Message-Id: 1524863677.030c1a77d6a6f4deb616d8bf61b55a85bd8177ca.andrey_utkin@gentoo
1 commit: 030c1a77d6a6f4deb616d8bf61b55a85bd8177ca
2 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 22 01:34:10 2018 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 27 21:14:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=030c1a77
7
8 sys-power/acpid: add new version 2.0.29
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 sys-power/acpid/Manifest | 1 +
13 sys-power/acpid/acpid-2.0.29.ebuild | 68 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/sys-power/acpid/Manifest b/sys-power/acpid/Manifest
17 index 22bd5850fcb..9ff66cb6dd0 100644
18 --- a/sys-power/acpid/Manifest
19 +++ b/sys-power/acpid/Manifest
20 @@ -1 +1,2 @@
21 DIST acpid-2.0.28.tar.xz 156036 BLAKE2B a6a78f82f7f4ecbd0d883d175c921195970e157a919fefc9cf48a94db534b496a8570c031fda5b08df3fb1775e26a50b5942bac7717aa582d590605930e3af78 SHA512 effe9c3b30b4a6ea20eca4b36a06d4b3da9b262d100685958faec4b38f89377a87dcaecee7a69b87aaddfa47688bcc46fc47a38391ac4bd2019cb3b48ab18fcb
22 +DIST acpid-2.0.29.tar.xz 155568 BLAKE2B 9a2c9f2f8ba035bf7452b633c20a73796ca05d4849d567f076a08a8216f2e07ca7a0b25e995054697e70bacacad07872e153c6c47f8204294964b276bca49f62 SHA512 5f480cb4456b6b843adb239519a8d05f83c3c668525457e55d7fae2ba7725356ec7a1faa16bbd54086f0eab2e8ca20952180c00b2b65a27eda534c3f28e8ed17
23
24 diff --git a/sys-power/acpid/acpid-2.0.29.ebuild b/sys-power/acpid/acpid-2.0.29.ebuild
25 new file mode 100644
26 index 00000000000..f9699804c53
27 --- /dev/null
28 +++ b/sys-power/acpid/acpid-2.0.29.ebuild
29 @@ -0,0 +1,68 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +inherit linux-info systemd
35 +
36 +DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
37 +HOMEPAGE="https://sourceforge.net/projects/acpid2"
38 +SRC_URI="mirror://sourceforge/${PN}2/${P}.tar.xz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~arm64 ~ia64 ~x86"
43 +IUSE="selinux"
44 +
45 +RDEPEND="selinux? ( sec-policy/selinux-apm )"
46 +DEPEND=">=sys-kernel/linux-headers-3"
47 +
48 +pkg_pretend() {
49 + local CONFIG_CHECK="~INPUT_EVDEV"
50 + local WARNING_INPUT_EVDEV="CONFIG_INPUT_EVDEV is required for ACPI button event support."
51 + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config
52 +}
53 +
54 +pkg_setup() { :; }
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${PN}-2.0.25-kde4.patch #515088
58 + "${FILESDIR}"/${PN}-2.0.25-add_mate-power-manager.patch #538590
59 +)
60 +
61 +src_install() {
62 + emake DESTDIR="${D}" install
63 +
64 + newdoc kacpimon/README README.kacpimon
65 + dodoc -r samples
66 + rm -f "${D}"/usr/share/doc/${PF}/COPYING || die
67 +
68 + exeinto /etc/acpi
69 + newexe "${FILESDIR}"/${PN}-1.0.6-default.sh default.sh
70 + exeinto /etc/acpi/actions
71 + newexe samples/powerbtn/powerbtn.sh powerbtn.sh
72 + insinto /etc/acpi/events
73 + newins "${FILESDIR}"/${PN}-1.0.4-default default
74 +
75 + newinitd "${FILESDIR}"/${PN}-2.0.26-init.d ${PN}
76 + newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN}
77 +
78 + systemd_dounit "${FILESDIR}"/systemd/${PN}.{service,socket}
79 +}
80 +
81 +pkg_postinst() {
82 + if [[ -z ${REPLACING_VERSIONS} ]]; then
83 + elog
84 + elog "You may wish to read the Gentoo Linux Power Management Guide,"
85 + elog "which can be found online at:"
86 + elog "https://wiki.gentoo.org/wiki/Power_management/Guide"
87 + elog
88 + fi
89 +
90 + # files/systemd/acpid.socket -> ListenStream=/run/acpid.socket
91 + mkdir -p "${ROOT%/}"/run
92 +
93 + if ! grep -qs "^tmpfs.*/run " "${ROOT%/}"/proc/mounts ; then
94 + echo
95 + ewarn "You should reboot the system now to get /run mounted with tmpfs!"
96 + fi
97 +}