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