From eaab68ba6a05bc57d98ca12032440835ef905326 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 3 Feb 2018 08:30:30 +0000 Subject: gentoo resync : 03.02.2018 --- app-laptop/Manifest.gz | Bin 3395 -> 3397 bytes app-laptop/laptop-mode-tools/Manifest | 2 + .../laptop-mode-tools-1.72.ebuild | 91 +++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.ebuild (limited to 'app-laptop') diff --git a/app-laptop/Manifest.gz b/app-laptop/Manifest.gz index 300fb5a98ce3..91e4801bc761 100644 Binary files a/app-laptop/Manifest.gz and b/app-laptop/Manifest.gz differ diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest index 29f28ffffb0c..9d15f500db4e 100644 --- a/app-laptop/laptop-mode-tools/Manifest +++ b/app-laptop/laptop-mode-tools/Manifest @@ -1,5 +1,7 @@ AUX laptop-mode-tools-1.71-wireless-power.patch 943 BLAKE2B 6c8539037d0e6bb5808df169f95868aeff0029566be47a4fc3232f41c93a3f2763561b738b3839c8370e937ea0c81b4e5c830af22431a23bc1419313e1573f71 SHA512 cf61599d5f9240e20bd6acec8b7b200cc33cfa21712bf71c5fc2053d344d2c9336a01ba4f3772caac441144c5c40880d61209319c9e58307e0ee0504a2191f97 AUX laptop_mode.init-1.4 1059 BLAKE2B 24dcf91d75df6cffe13cda1c8b9c85c016dae393f79f14ac0bc37c293e0d40e7e7cb34bc31b1c387c10ee74978d1c030fafad60f4e2428a8fcadf03163d5e48a SHA512 4242cda1df6b55cd0bee66dfb9137b6f63118bc31c5f703ed44c42738f47dc794d7f1ed6dd9ba5696b606c4bf624428e8f21e1683cb698d8dda249833a4c5f68 DIST laptop-mode-tools_1.71.tar.gz 118833 BLAKE2B 21e6399d35d3f35dd75e5640eb50d679de87bf40435484e0c7cb67dcd0f2a794b5f14b48e375c302ef749efc38677b8abbdacfd3612206fb0125c52b9d67a89b SHA512 67ef4ed4c80f3a64ab9f0f9003d415f9e8759fd0ee1c7a82837d423a0e7aeb03ab95724afd89ae223f954ae0baec5830c8fa600bd6e2e351aead83a656f9b665 +DIST laptop-mode-tools_1.72.tar.gz 121392 BLAKE2B 7aa02fa546d04423c45c27afd7b4c79ce10cdf8e7ae986d66fb664ab5bd6a05c6ac188a456f3afd46780cec7ab74d2cd83b4ddf1e14f6dbc517442d03bb960a6 SHA512 9135df29d4076dadc805470d742007b1a25be962f4181235126d1bb697b362c646cb9c4839b57e92314b8207e23eba3618b2d985802836bcae22f6a4aceb66a5 EBUILD laptop-mode-tools-1.71-r1.ebuild 2599 BLAKE2B ec233f70a291a8a9d06348add2192d394c9a9ede36ad9eaffd5f9d583f81bae08681efb26eb1f587244763f7dac2b0516427fbe6299f99d43151dab50c857b4e SHA512 ba5534e5524bb4215a8a6c7ea2de896e1d3c3e6af014a96793e8706695d7fd1df87810ca8dcb05a63b4f3c973a288112c5add486d5001ea352093c91f87bc339 +EBUILD laptop-mode-tools-1.72.ebuild 2548 BLAKE2B 2380f1bbdd85f5d03930116f774904d283016a458313defd6efdaf24b1d6ac5e12f859bb1d0a6a6dcb2f559fcccdf8a7dfef9262e3adf6043468095a3ed98935 SHA512 374c853d1003c288fa2877bf7e1fe075c80ebedbc0fb869764327d8e9106a0b595a3449a5a03540bd0726309d37162d18d152683bf3ba05183e42b8f8ffcffdf MISC metadata.xml 436 BLAKE2B f89deae094b0a595dfc688ce45461a20a8b4b66191de36b3a40d01ee570c34ef59dbfae2fd14b6e4e7c76de4277907a74c21e7139d2f0c56d4eae50d4fcde32c SHA512 869ee9290fada409da987a2ecdd962591a425e43f89403046a208dee46802f3b0071c099590b486e4fe09a60dcf6de802088f153cedf44a361a58e7d9395d193 diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.ebuild new file mode 100644 index 000000000000..8e38fc45f3d4 --- /dev/null +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib systemd udev + +MY_P="${PN}_${PV}" + +DESCRIPTION="Linux kernel laptop_mode user-space utilities" +HOMEPAGE="https://github.com/rickysarraf/laptop-mode-tools/wiki" +SRC_URI="https://github.com/rickysarraf/${PN}/releases/download/${PV}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="+acpi apm bluetooth" + +RDEPEND="sys-apps/iproute2 + sys-apps/ethtool + sys-apps/which + acpi? ( sys-power/acpid ) + apm? ( sys-apps/apmd ) + bluetooth? ( net-wireless/bluez:= )" +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + # This should avoid conflict with pm-powersave wrt #327443 and #396703 + cat <<-EOF > "${T}"/${PN} + HOOK_BLACKLIST="00powersave" + EOF +} + +src_compile() { :; } + +src_install() { + DESTDIR="${D}" \ + INIT_D="none" \ + MAN_D="/usr/share/man" \ + LIB_D="/usr/$(get_libdir)" \ + UDEV_D="$(get_udevdir)" \ + SYSTEMD_UNIT_D="$(systemd_get_systemunitdir)" \ + TMPFILES_D="/usr/lib/tmpfiles.d" \ + ACPI="$(use acpi && echo force || echo disabled)" \ + PMU="$(false && echo force || echo disabled)" \ + APM="$(use apm && echo force || echo disabled)" \ + SYSTEMD=yes \ + sh ./install.sh || die + + dodoc Documentation/*.txt README.md + newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode + + # See src_prepare() + insinto /etc/pm/config.d + doins "${T}"/${PN} +} + +pkg_postinst() { + if use acpi || use apm; then + if use acpi; then + daemon_name="acpid" + elif use apm; then + deamon_name="apmd" + fi + if [ "$(rc-config list default | grep laptop_mode)" = "" ] || [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then + ewarn "To enable automatic power state event handling," + ewarn "e.g. enabling laptop_mode after unplugging the battery," + ewarn "both laptop_mode and the ${daemon_name} daemon must be" + ewarn "added to default runlevel:" + if [ "$(rc-config list default | grep laptop_mode)" = "" ]; then + ewarn "# rc-update add laptop_mode default" + fi + if [ "$(rc-config list default | grep ${daemon_name} )" = "" ]; then + ewarn "# rc-update add ${daemon_name} default" + fi + fi + else + ewarn "Without USE=\"acpi\" or USE=\"apm\" ${PN} can not" + ewarn "automatically disable laptop_mode on low battery." + ewarn + ewarn "This means you can lose up to 10 minutes of work if running" + ewarn "out of battery while laptop_mode is enabled." + ewarn + ewarn "Please see laptop-mode.txt in /usr/share/doc/${PF} for further" + ewarn "information." + ewarn + fi +} -- cgit v1.2.3