diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2013-11-04 18:56:09 +0000 |
---|---|---|
committer | Christoph Junghans <ottxor@gentoo.org> | 2013-11-04 18:56:09 +0000 |
commit | 1105f5db9bd21589ead8fa8d2dd39333337059b7 (patch) | |
tree | 4a41acd50509267879350252cecf46a9b39d94f6 /app-laptop/tpacpi-bat | |
parent | version bump (diff) | |
download | gentoo-2-1105f5db9bd21589ead8fa8d2dd39333337059b7.tar.gz gentoo-2-1105f5db9bd21589ead8fa8d2dd39333337059b7.tar.bz2 gentoo-2-1105f5db9bd21589ead8fa8d2dd39333337059b7.zip |
remove old
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2000586)
Diffstat (limited to 'app-laptop/tpacpi-bat')
-rw-r--r-- | app-laptop/tpacpi-bat/ChangeLog | 6 | ||||
-rw-r--r-- | app-laptop/tpacpi-bat/files/tpacpi-bat.initd.0 | 78 | ||||
-rw-r--r-- | app-laptop/tpacpi-bat/tpacpi-bat-1.0-r1.ebuild | 34 |
3 files changed, 5 insertions, 113 deletions
diff --git a/app-laptop/tpacpi-bat/ChangeLog b/app-laptop/tpacpi-bat/ChangeLog index baaccd1108fc..8d85397b8972 100644 --- a/app-laptop/tpacpi-bat/ChangeLog +++ b/app-laptop/tpacpi-bat/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-laptop/tpacpi-bat # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpacpi-bat/ChangeLog,v 1.5 2013/11/04 18:54:09 ottxor Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpacpi-bat/ChangeLog,v 1.6 2013/11/04 18:56:09 ottxor Exp $ + + 04 Nov 2013; Christoph Junghans <ottxor@gentoo.org> -files/tpacpi-bat.initd.0, + -tpacpi-bat-1.0-r1.ebuild: + remove old *tpacpi-bat-1.1 (04 Nov 2013) diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.0 b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.0 deleted file mode 100644 index 8582fe8a939d..000000000000 --- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.0 +++ /dev/null @@ -1,78 +0,0 @@ -#!/sbin/runscript -# Copyright (C) 2012 Christoph Junghans <ottxor@gentoo.org> -# -# Distributed under the terms of the GNU General Public License, v2 or later - -extra_started_commands="low high info" - -BATS="1" - -depend() { - after modules -} - -start() { - local state1 - - ebegin "Making sure that module 'acpi_call' is loaded" - modprobe acpi_call - state1=$? - eend ${state1} - - [ "${state1}" -ne "0" ] && return 1 - - ebegin "Starting ${SVCNAME}" - set_all ${TPACPI_BAT_THRESH_START} ${TPACPI_BAT_THRESH_STOP} - eend $? -} - -stop() { - einfo "Nothing required to be done to stop ${SVCNAME}" -} - -require_started() { - if ! service_started; then - "${RC_SERVICE}" start || return $? - fi -} - -high() { - require_started - - einfo "Switching ${SVCNAME} to high thesholds" - set_all ${TPACPI_BAT_HIGH_THRESH_START} ${TPACPI_BAT_HIGH_THRESH_STOP} -} - -low() { - require_started - - einfo "Switching ${SVCNAME} to low thesholds" - set_all ${TPACPI_BAT_LOW_THRESH_START} ${TPACPI_BAT_LOW_THRESH_STOP} -} - -set_all() { - local tstart=$1 - local tstop=$2 - local bat - - for bat in ${BATS}; do - ebegin " setting thresholds for ${bat}: $tstart $tstop" - /usr/bin/tpacpi-bat startChargeThreshold ${bat} ${tstart} - /usr/bin/tpacpi-bat stopChargeThreshold ${bat} ${tstop} - eend $? - done -} - -info() { - local tstart - local tstop - local bat - - require_started - - for bat in ${BATS}; do - tstart=$(/usr/bin/tpacpi-bat startChargeThreshold ${bat}) - tstop=$(/usr/bin/tpacpi-bat stopChargeThreshold ${bat}) - einfo "Battery ${bat}: ${tstart} ${tstop}" - done -} diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-1.0-r1.ebuild b/app-laptop/tpacpi-bat/tpacpi-bat-1.0-r1.ebuild deleted file mode 100644 index 3499aaa85f4f..000000000000 --- a/app-laptop/tpacpi-bat/tpacpi-bat-1.0-r1.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpacpi-bat/tpacpi-bat-1.0-r1.ebuild,v 1.1 2013/09/21 00:49:05 ottxor Exp $ - -EAPI=5 - -inherit eutils - -if [ "${PV}" = "9999" ]; then - inherit git-2 - EGIT_REPO_URI="git://github.com/teleshoes/tpacpi-bat.git" - KEYWORDS="" -else - inherit vcs-snapshot - SRC_URI="mirror://github/teleshoes/tpacpi-bat/tarball/v${PV} -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi -DESCRIPTION="Control battery thresholds of recent ThinkPads, which are not supported by tp_smapi" -HOMEPAGE="https://github.com/teleshoes/tpacpi-bat" - -LICENSE="GPL-3" -SLOT="0" -IUSE="" - -DEPEND="" -RDEPEND="sys-power/acpi_call - dev-lang/perl" - -src_install() { - dodoc README battery_asl - dobin tpacpi-bat - newinitd "${FILESDIR}"/${PN}.initd.0 ${PN} - newconfd "${FILESDIR}"/${PN}.confd.0 ${PN} -} |