summaryrefslogtreecommitdiff
path: root/app-laptop/laptop-mode-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-laptop/laptop-mode-tools
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-laptop/laptop-mode-tools')
-rw-r--r--app-laptop/laptop-mode-tools/Manifest4
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop_mode.init-1.452
-rw-r--r--app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild91
-rw-r--r--app-laptop/laptop-mode-tools/metadata.xml14
4 files changed, 0 insertions, 161 deletions
diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest
deleted file mode 100644
index bd03422417d9..000000000000
--- a/app-laptop/laptop-mode-tools/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX laptop_mode.init-1.4 1059 BLAKE2B 24dcf91d75df6cffe13cda1c8b9c85c016dae393f79f14ac0bc37c293e0d40e7e7cb34bc31b1c387c10ee74978d1c030fafad60f4e2428a8fcadf03163d5e48a SHA512 4242cda1df6b55cd0bee66dfb9137b6f63118bc31c5f703ed44c42738f47dc794d7f1ed6dd9ba5696b606c4bf624428e8f21e1683cb698d8dda249833a4c5f68
-DIST laptop-mode-tools_1.72.2.tar.gz 121437 BLAKE2B 1fdcdb88183156e4983b4561218164df5dde9fc91e85ab0ec1e6a401d3e5c5e70597a97e16c476949e80a674c34683eac6429e64e76c7921bd28f560e4ffe3cb SHA512 9a3960bad518aa73350b72ce30aeb80f3cbb1bf0fd6a11d5afe396b25c2b73f3b3d2fe7de0741eb94c9e3467c85a99741dc7acfd85339b9eb1daca09d3f8c56a
-EBUILD laptop-mode-tools-1.72.2.ebuild 2545 BLAKE2B 18236618b9cd046ab1fe0756fed68ca19894d185f9cdc90fd871f469c924b218f6b0d3f99c03df3c4eee5aa70d0df017a1f993008990c1b0e28c02b66c3aceb9 SHA512 e88adf5504a0a22a7490b84a4ff102f55771d341910e32a62e42d86a6502f38de02978c9a521361602a6629635e17ff28e80db4055aedfec4c94cde056bf223a
-MISC metadata.xml 436 BLAKE2B f89deae094b0a595dfc688ce45461a20a8b4b66191de36b3a40d01ee570c34ef59dbfae2fd14b6e4e7c76de4277907a74c21e7139d2f0c56d4eae50d4fcde32c SHA512 869ee9290fada409da987a2ecdd962591a425e43f89403046a208dee46802f3b0071c099590b486e4fe09a60dcf6de802088f153cedf44a361a58e7d9395d193
diff --git a/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4 b/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4
deleted file mode 100644
index eef819913cc6..000000000000
--- a/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_started_commands="reload"
-
-depend() {
- need localmount
- use acpid hald
- after bootmisc
-}
-
-checkconfig() {
- if [ ! -f /proc/sys/vm/laptop_mode ] ; then
- eerror "Kernel does not support laptop_mode"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting laptop_mode"
- # bug #342049 fix
- # check if dir exists and creates if it doesn't
- checkpath -q -d -m 755 /var/run/laptop-mode-tools
- touch /var/run/laptop-mode-tools/enabled
- /usr/sbin/laptop_mode auto >/dev/null
- eend $?
-}
-
-stop() {
- ebegin "Stopping laptop_mode"
- rm -f /var/run/laptop-mode-tools/enabled
- /usr/sbin/laptop_mode stop >/dev/null
- eend $?
-}
-
-reload() {
- if ! service_started "${SVCNAME}" ; then
- eerror "${SVCNAME} has not yet been started"
- return 1
- fi
-
- ebegin "Reloading laptop_mode"
- /usr/sbin/laptop_mode stop >/dev/null
- rm -f /var/run/laptop-mode-tools/*
- /usr/sbin/laptop_mode auto force >/dev/null
- eend $?
-}
-
-# vim: set ts=4 :
diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild
deleted file mode 100644
index 71d914c0703a..000000000000
--- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.72.2.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-}
diff --git a/app-laptop/laptop-mode-tools/metadata.xml b/app-laptop/laptop-mode-tools/metadata.xml
deleted file mode 100644
index 2ce8528b0310..000000000000
--- a/app-laptop/laptop-mode-tools/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>alonbl@gentoo.org</email>
- </maintainer>
- <upstream>
- <maintainer status="active">
- <email>gentoo-lmt@researchut.com</email>
- <name>Ritesh Raj Sarraf</name>
- </maintainer>
- <remote-id type="github">rickysarraf/laptop-mode-tools</remote-id>
- </upstream>
-</pkgmetadata>