[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2022-07-31 Thread David Seifert
commit: fb26f1a928bc51e8d7f133cb9c818a9468ac071f
Author: David Seifert  gentoo  org>
AuthorDate: Sun Jul 31 22:51:48 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Jul 31 22:51:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb26f1a9

app-laptop/tpacpi-bat: update EAPI 6 -> 8

Signed-off-by: David Seifert  gentoo.org>

 ...tpacpi-bat-3.1.ebuild => tpacpi-bat-3.1-r1.ebuild} | 19 ++-
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-3.1.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.1-r1.ebuild
similarity index 85%
rename from app-laptop/tpacpi-bat/tpacpi-bat-3.1.ebuild
rename to app-laptop/tpacpi-bat/tpacpi-bat-3.1-r1.ebuild
index 39f5df050623..74b72ce18688 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-3.1.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-3.1-r1.ebuild
@@ -1,31 +1,32 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit systemd
 
-if [ "${PV}" = "" ]; then
+DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by 
tp_smapi"
+HOMEPAGE="https://github.com/teleshoes/tpacpi-bat;
+
+if [[ ${PV} == * ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
 else
SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
KEYWORDS="~amd64"
 fi
-DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by 
tp_smapi"
-HOMEPAGE="https://github.com/teleshoes/tpacpi-bat;
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE=""
 
-DEPEND=""
-RDEPEND="sys-power/acpi_call
+RDEPEND="
+   sys-power/acpi_call
dev-lang/perl"
 
 src_install() {
-   dodoc README.md battery_asl
dobin tpacpi-bat
+   dodoc README.md battery_asl
+
newinitd "${FILESDIR}"/${PN}.initd.2 ${PN}
newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
systemd_newunit examples/systemd_fixed_threshold/tpacpi.service \



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2022-07-31 Thread David Seifert
commit: 68061278e8678070eea881648f7ec8309e2dd422
Author: David Seifert  gentoo  org>
AuthorDate: Sun Jul 31 22:51:47 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Jul 31 22:51:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68061278

app-laptop/tpacpi-bat: drop 3.0-r1

Signed-off-by: David Seifert  gentoo.org>

 app-laptop/tpacpi-bat/Manifest |  1 -
 app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild | 32 --
 2 files changed, 33 deletions(-)

diff --git a/app-laptop/tpacpi-bat/Manifest b/app-laptop/tpacpi-bat/Manifest
index b09c16dcc642..b4fdf61677a6 100644
--- a/app-laptop/tpacpi-bat/Manifest
+++ b/app-laptop/tpacpi-bat/Manifest
@@ -1,2 +1 @@
-DIST tpacpi-bat-3.0.tar.gz 18137 BLAKE2B 
db0db2c06d5bc78eb028cb0db2532e5500cce2370c23ab3bf1e49433b83ed2be7cfffe080e46c3699838ff00025d516dd37e071081f79c7d5d6293f4f49730d4
 SHA512 
2beab3e5495f028b53d673a4243a2128f4ff85e19e18ac7d53663a1d62e20b271442d6c2c8f19cb41d618ddf7ebb4d9b8390f7f185f77bdca33c69bb19463128
 DIST tpacpi-bat-3.1.tar.gz 18584 BLAKE2B 
5f1e890f33be4e0d176bda486d9e4363d56a7a933677eb69bedca9ec42e8af5a0e5494f8447702d33ffecda3d1d4a447a56f7aeb9480a3b855a24bce45028d38
 SHA512 
cdc9e0c0ded96281678199783b4c48ff85a497c90b244a7ce2276b54d7ae4bfa7eb430214bcdb6fabd7478796507b0fbe7fed4b1ab4bc4cdd7bd5ae25f943a77

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
deleted file mode 100644
index 0751d72324c5..
--- a/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit systemd
-
-if [ "${PV}" = "" ]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
-else
-   SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64"
-fi
-DESCRIPTION="Control battery thresholds of recent ThinkPads, 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.2 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
-   systemd_newunit tpacpi.service ${PN}.service
-}



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2022-07-31 Thread David Seifert
commit: 8ae390243dcd029606ee9070b08acd6cb7d3b21d
Author: David Seifert  gentoo  org>
AuthorDate: Sun Jul 31 22:51:49 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Jul 31 22:51:49 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ae39024

app-laptop/tpacpi-bat: sync live ebuild

Signed-off-by: David Seifert  gentoo.org>

 app-laptop/tpacpi-bat/tpacpi-bat-.ebuild | 19 ++-
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
index 39f5df050623..74b72ce18688 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
@@ -1,31 +1,32 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit systemd
 
-if [ "${PV}" = "" ]; then
+DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by 
tp_smapi"
+HOMEPAGE="https://github.com/teleshoes/tpacpi-bat;
+
+if [[ ${PV} == * ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
 else
SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
KEYWORDS="~amd64"
 fi
-DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by 
tp_smapi"
-HOMEPAGE="https://github.com/teleshoes/tpacpi-bat;
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE=""
 
-DEPEND=""
-RDEPEND="sys-power/acpi_call
+RDEPEND="
+   sys-power/acpi_call
dev-lang/perl"
 
 src_install() {
-   dodoc README.md battery_asl
dobin tpacpi-bat
+   dodoc README.md battery_asl
+
newinitd "${FILESDIR}"/${PN}.initd.2 ${PN}
newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
systemd_newunit examples/systemd_fixed_threshold/tpacpi.service \



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/files/

2020-11-06 Thread Christoph Junghans
commit: a60e979137b7112178a78e3e2ebe0a972b78d006
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Fri Nov  6 15:24:33 2020 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Fri Nov  6 16:19:17 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a60e9791

app-laptop/tpacpi-bat: remove unused files

Closes: https://github.com/gentoo/gentoo/pull/18150
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Christoph Junghans  gentoo.org>

 app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 | 15 -
 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 | 78 --
 2 files changed, 93 deletions(-)

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0 
b/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0
deleted file mode 100644
index 94da0a3eb12..000
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.0
+++ /dev/null
@@ -1,15 +0,0 @@
-# /etc/conf.d/tpacpi-bat: config file for /etc/init.d/tpacpi-bat
-
-# use '/etc/init.d/tpacpi-bat info' at any time to check the thresholds
-# currently used by the driver
-
-# default thresholds for '/etc/init.d/tpacpi-bat start'
-TPACPI_BAT_THRESH_START="30"
-TPACPI_BAT_THRESH_STOP="85"
-# values to be used for '/etc/init.d/tpacpi-bat low'
-TPACPI_BAT_LOW_THRESH_START="${TPACPI_BAT_THRESH_START}"
-TPACPI_BAT_LOW_THRESH_STOP="${TPACPI_BAT_THRESH_STOP}"
-
-# values to be used for '/etc/init.d/tpacpi-bat high'
-TPACPI_BAT_HIGH_THRESH_START="95"
-TPACPI_BAT_HIGH_THRESH_STOP="99" #see bug #485526

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 
b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
deleted file mode 100644
index d9f5de7fb3d..000
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/sbin/openrc-run
-# Copyright (C) 2012-2016 Christoph Junghans 
-#
-# 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 -s startThreshold ${bat} ${tstart}
-   /usr/bin/tpacpi-bat -s stopThreshold ${bat} ${tstop}
-   eend $?
-   done
-}
-
-info() {
-   local tstart
-   local tstop
-   local bat
-
-   require_started
-
-   for bat in ${BATS}; do
-   tstart=$(/usr/bin/tpacpi-bat -g startThreshold ${bat})
-   tstop=$(/usr/bin/tpacpi-bat -g stopThreshold ${bat})
-   einfo "Battery ${bat}: ${tstart} ${tstop}"
-   done
-}



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2018-06-10 Thread Christoph Junghans
commit: 99cc1546b234910e0c1ef671e2449c68815687fe
Author: Henning Schild  hennsch  de>
AuthorDate: Wed Apr  4 07:33:38 2018 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Sun Jun 10 18:17:12 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99cc1546

app-laptop/tpacpi-bat: bump to version 3.1

Bug: https://github.com/gentoo/gentoo/pull/7803
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Signed-off-by: Henning Schild  hennsch.de>

 app-laptop/tpacpi-bat/Manifest | 1 +
 .../tpacpi-bat/{tpacpi-bat-.ebuild => tpacpi-bat-3.1.ebuild}   | 7 ---
 app-laptop/tpacpi-bat/tpacpi-bat-.ebuild   | 7 ---
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/app-laptop/tpacpi-bat/Manifest b/app-laptop/tpacpi-bat/Manifest
index 1b0a4d4049a..90b6bd0984e 100644
--- a/app-laptop/tpacpi-bat/Manifest
+++ b/app-laptop/tpacpi-bat/Manifest
@@ -1,3 +1,4 @@
 DIST tpacpi-bat-1.1.tar.gz 17781 BLAKE2B 
73e9cef77f5eb889e653dab05b3f9502795833221d007319abad0017b70dc3c60d1a2e7649f1003e9eb16da94efa185b195e42789b528b5c5b62738abaff9e3a
 SHA512 
7b8838e6db7f98cd5bb674a99dbb880ba6574529de68d97ce704bf225ba416183971aae3c2dd623bc8750767c54a2a52cd0b525bce70640ecf0b307fdba03821
 DIST tpacpi-bat-2.1.tar.gz 17753 BLAKE2B 
c470cfdb98c2873ca44dad9cb0fc31e6bc97c8832735003b707ee191c65dba3cd9c0422513b4a93aae26692a154675cb94e02d30b721d498610bf21711bcf1e6
 SHA512 
7ed4974d84c3f1ddc9fd5cd6d7f103a11e2f808a223692749e3ae0ec2e888b62083d577214e27634cd76e9b616a6b8d5cb5474ddb64f73972d08641051c5c6f8
 DIST tpacpi-bat-3.0.tar.gz 18137 BLAKE2B 
db0db2c06d5bc78eb028cb0db2532e5500cce2370c23ab3bf1e49433b83ed2be7cfffe080e46c3699838ff00025d516dd37e071081f79c7d5d6293f4f49730d4
 SHA512 
2beab3e5495f028b53d673a4243a2128f4ff85e19e18ac7d53663a1d62e20b271442d6c2c8f19cb41d618ddf7ebb4d9b8390f7f185f77bdca33c69bb19463128
+DIST tpacpi-bat-3.1.tar.gz 18584 BLAKE2B 
5f1e890f33be4e0d176bda486d9e4363d56a7a933677eb69bedca9ec42e8af5a0e5494f8447702d33ffecda3d1d4a447a56f7aeb9480a3b855a24bce45028d38
 SHA512 
cdc9e0c0ded96281678199783b4c48ff85a497c90b244a7ce2276b54d7ae4bfa7eb430214bcdb6fabd7478796507b0fbe7fed4b1ab4bc4cdd7bd5ae25f943a77

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.1.ebuild
similarity index 81%
copy from app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
copy to app-laptop/tpacpi-bat/tpacpi-bat-3.1.ebuild
index c3feb204bff..6364a4ee745 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -25,9 +25,10 @@ RDEPEND="sys-power/acpi_call
dev-lang/perl"
 
 src_install() {
-   dodoc README battery_asl
+   dodoc README.md battery_asl
dobin tpacpi-bat
newinitd "${FILESDIR}"/${PN}.initd.2 ${PN}
newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
-   systemd_newunit tpacpi.service ${PN}.service
+   systemd_newunit examples/systemd_fixed_threshold/tpacpi.service \
+   ${PN}.service
 }

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
index c3feb204bff..6364a4ee745 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -25,9 +25,10 @@ RDEPEND="sys-power/acpi_call
dev-lang/perl"
 
 src_install() {
-   dodoc README battery_asl
+   dodoc README.md battery_asl
dobin tpacpi-bat
newinitd "${FILESDIR}"/${PN}.initd.2 ${PN}
newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
-   systemd_newunit tpacpi.service ${PN}.service
+   systemd_newunit examples/systemd_fixed_threshold/tpacpi.service \
+   ${PN}.service
 }



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2018-06-01 Thread Christoph Junghans
commit: 1641b913b6a760689fdd0726dcd9d99914591465
Author: Marty E. Plummer  startmail  com>
AuthorDate: Fri Jun  1 15:19:36 2018 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Fri Jun  1 15:57:52 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1641b913

app-laptop/tpacpi-bat: git-2->git-r3

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-laptop/tpacpi-bat/tpacpi-bat-1.1-r1.ebuild | 4 ++--
 app-laptop/tpacpi-bat/tpacpi-bat-2.1.ebuild| 4 ++--
 app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild | 4 ++--
 app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild| 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-1.1-r1.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-1.1-r1.ebuild
index 1560013b9e1..e2319733554 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-1.1-r1.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-1.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -6,7 +6,7 @@ EAPI=5
 inherit eutils systemd
 
 if [ "${PV}" = "" ]; then
-   inherit git-2
+   inherit git-r3
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
KEYWORDS=""
 else

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-2.1.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-2.1.ebuild
index 1560013b9e1..e2319733554 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-2.1.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -6,7 +6,7 @@ EAPI=5
 inherit eutils systemd
 
 if [ "${PV}" = "" ]; then
-   inherit git-2
+   inherit git-r3
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
KEYWORDS=""
 else

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
index 4a1fac9d20b..350f9db837c 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -6,7 +6,7 @@ EAPI=6
 inherit systemd
 
 if [ "${PV}" = "" ]; then
-   inherit git-2
+   inherit git-r3
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
KEYWORDS=""
 else

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild
index 1560013b9e1..e2319733554 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -6,7 +6,7 @@ EAPI=5
 inherit eutils systemd
 
 if [ "${PV}" = "" ]; then
-   inherit git-2
+   inherit git-r3
EGIT_REPO_URI="https://github.com/teleshoes/tpacpi-bat.git;
KEYWORDS=""
 else



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/files/

2016-11-14 Thread Christoph Junghans
commit: 847bc79f1b8dc541dec07f6f82ab4577a254b66b
Author: Christoph Junghans  gentoo  org>
AuthorDate: Tue Nov 15 00:39:54 2016 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Tue Nov 15 00:39:54 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=847bc79f

app-laptop/tpacpi-bat: update patch

Package-Manager: portage-2.3.0

 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 | 2 +-
 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1 
b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
index 63a4d33..d9f5de7 100644
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
+++ b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.1
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright (C) 2012-2013 Christoph Junghans 
+# Copyright (C) 2012-2016 Christoph Junghans 
 #
 # Distributed under the terms of the GNU General Public License, v2 or later
 

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 
b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
index 796b94a..7c92b73 100644
--- a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
+++ b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright (C) 2012-2013 Christoph Junghans 
+# Copyright (C) 2012-2016 Christoph Junghans 
 #
 # Distributed under the terms of the GNU General Public License, v2 or later
 



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2016-08-23 Thread Christoph Junghans
commit: 9d2ea54751c1103a77abb571bc38c2d299e15084
Author: Christoph Junghans  gentoo  org>
AuthorDate: Tue Aug 23 23:49:23 2016 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Tue Aug 23 23:49:23 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d2ea547

app-laptop/tpacpi-bat: fixed live ebuild

Package-Manager: portage-2.2.28

 app-laptop/tpacpi-bat/tpacpi-bat-.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
index 1b30cbd..d08d6ea 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
@@ -7,14 +7,14 @@ EAPI=6
 inherit systemd
 
 if [ "${PV}" = "" ]; then
-   inherit git-2
+   inherit git-r3
EGIT_REPO_URI="git://github.com/teleshoes/tpacpi-bat.git 
https://github.com/teleshoes/tpacpi-bat.git;
KEYWORDS=""
 else
SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
KEYWORDS="~amd64"
 fi
-DESCRIPTION="Control battery thresholds of recent ThinkPads, which are not 
supported by tp_smapi"
+DESCRIPTION="Control battery thresholds of recent ThinkPads, not supported by 
tp_smapi"
 HOMEPAGE="https://github.com/teleshoes/tpacpi-bat;
 
 LICENSE="GPL-3"



[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/, app-laptop/tpacpi-bat/files/

2016-08-23 Thread Christoph Junghans
commit: 73f8d9c4c42ac55b3c079749dde927ed5252448f
Author: nemunaire  nemunai  re>
AuthorDate: Mon Jul 11 23:45:03 2016 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Tue Aug 23 23:10:26 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73f8d9c4

app-laptop/tpacpi-bat: battery number in configuration instead of init script

close #1857 gh

 app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1 | 19 ++
 app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 | 76 ++
 ...pi-bat-.ebuild => tpacpi-bat-3.0-r1.ebuild} | 10 +--
 app-laptop/tpacpi-bat/tpacpi-bat-.ebuild   | 10 +--
 4 files changed, 105 insertions(+), 10 deletions(-)

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1 
b/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1
new file mode 100644
index ..f1faf1d
--- /dev/null
+++ b/app-laptop/tpacpi-bat/files/tpacpi-bat.confd.1
@@ -0,0 +1,19 @@
+# /etc/conf.d/tpacpi-bat: config file for /etc/init.d/tpacpi-bat
+
+# use '/etc/init.d/tpacpi-bat info' at any time to check the thresholds
+# currently used by the driver
+
+# list of batteries the script should manage
+# for example: BATS="1 2"
+BATS="1"
+
+# default thresholds for '/etc/init.d/tpacpi-bat start'
+TPACPI_BAT_THRESH_START="30"
+TPACPI_BAT_THRESH_STOP="85"
+# values to be used for '/etc/init.d/tpacpi-bat low'
+TPACPI_BAT_LOW_THRESH_START="${TPACPI_BAT_THRESH_START}"
+TPACPI_BAT_LOW_THRESH_STOP="${TPACPI_BAT_THRESH_STOP}"
+
+# values to be used for '/etc/init.d/tpacpi-bat high'
+TPACPI_BAT_HIGH_THRESH_START="95"
+TPACPI_BAT_HIGH_THRESH_STOP="99" #see bug #485526

diff --git a/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2 
b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
new file mode 100644
index ..796b94a
--- /dev/null
+++ b/app-laptop/tpacpi-bat/files/tpacpi-bat.initd.2
@@ -0,0 +1,76 @@
+#!/sbin/openrc-run
+# Copyright (C) 2012-2013 Christoph Junghans 
+#
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+extra_started_commands="low high info"
+
+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 -s startThreshold ${bat} ${tstart}
+   /usr/bin/tpacpi-bat -s stopThreshold ${bat} ${tstop}
+   eend $?
+   done
+}
+
+info() {
+   local tstart
+   local tstop
+   local bat
+
+   require_started
+
+   for bat in ${BATS}; do
+   tstart=$(/usr/bin/tpacpi-bat -g startThreshold ${bat})
+   tstop=$(/usr/bin/tpacpi-bat -g stopThreshold ${bat})
+   einfo "Battery ${bat}: ${tstart} ${tstop}"
+   done
+}

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
similarity index 81%
copy from app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
copy to app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
index 5164010..1b30cbd 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-3.0-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit eutils systemd
+inherit systemd
 
 if [ "${PV}" = "" ]; then
inherit git-2
@@ -28,7 +28,7 @@ RDEPEND="sys-power/acpi_call
 src_install() {
dodoc README battery_asl
dobin tpacpi-bat
-   newinitd "${FILESDIR}"/${PN}.initd.1 ${PN}
-   newconfd "${FILESDIR}"/${PN}.confd.0 ${PN}
+   newinitd "${FILESDIR}"/${PN}.initd.2 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
systemd_newunit tpacpi.service ${PN}.service
 }

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
index 5164010..1b30cbd 100644
--- a/app-laptop/tpacpi-bat/tpacpi-bat-.ebuild
+++ 

[gentoo-commits] repo/gentoo:master commit in: app-laptop/tpacpi-bat/

2015-09-13 Thread Christoph Junghans
commit: 66556e011379356d5760f615bfcf767e35be3a9c
Author: Marius Brehler  linux  sungazer  de>
AuthorDate: Sat Sep 12 12:42:06 2015 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Sun Sep 13 18:12:13 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66556e01

app-laptop/tpacpi-bat: Version bump (close #86 gh)

Package-Manager: portage-2.2.20.1

 app-laptop/tpacpi-bat/Manifest  |  1 +
 app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild | 34 +
 2 files changed, 35 insertions(+)

diff --git a/app-laptop/tpacpi-bat/Manifest b/app-laptop/tpacpi-bat/Manifest
index 2f013be..ac2c290 100644
--- a/app-laptop/tpacpi-bat/Manifest
+++ b/app-laptop/tpacpi-bat/Manifest
@@ -1,2 +1,3 @@
 DIST tpacpi-bat-1.1.tar.gz 17781 SHA256 
99bfeae60c672d981ea70a98470b8c2a1a9da52da0fce7f669270f216d2230a3 SHA512 
7b8838e6db7f98cd5bb674a99dbb880ba6574529de68d97ce704bf225ba416183971aae3c2dd623bc8750767c54a2a52cd0b525bce70640ecf0b307fdba03821
 WHIRLPOOL 
3a057e57da77f997ed27f679c2503a139d760949027c02aa5dd5bef71579d525acc866655e0008b59ef6ae8b0c567f7de627838baac5c7ed2969523a7355a879
 DIST tpacpi-bat-2.1.tar.gz 17753 SHA256 
0a4b273215ef814a1932b0c8ff1571c6e45eecb3b28d8462deab460f0bcdc337 SHA512 
7ed4974d84c3f1ddc9fd5cd6d7f103a11e2f808a223692749e3ae0ec2e888b62083d577214e27634cd76e9b616a6b8d5cb5474ddb64f73972d08641051c5c6f8
 WHIRLPOOL 
303c28a287b657514e985227b8f4c9c3d044fdf46a7dca0e52ce3ab7b6852a65aa46a8805cf6a945b3936432d3c3e43855d0d88c7549b05e95d271e8c605b1b7
+DIST tpacpi-bat-3.0.tar.gz 18137 SHA256 
f9aa8be181df6a7d41eac6224abb6dadf1d147022449e9159c4aa09397b7a485 SHA512 
2beab3e5495f028b53d673a4243a2128f4ff85e19e18ac7d53663a1d62e20b271442d6c2c8f19cb41d618ddf7ebb4d9b8390f7f185f77bdca33c69bb19463128
 WHIRLPOOL 
9329ea83fdd0913cc47446895e6ab385f09ca42e7a19533b5c7fa44cb62bebd07ba24f89b0deacc89d6b3aff3ff826f2a53f8d2e918f137d0f6215aa6eaa9198

diff --git a/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild 
b/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild
new file mode 100644
index 000..06144e8
--- /dev/null
+++ b/app-laptop/tpacpi-bat/tpacpi-bat-3.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd
+
+if [ "${PV}" = "" ]; then
+   inherit git-2
+   EGIT_REPO_URI="git://github.com/teleshoes/tpacpi-bat.git 
https://github.com/teleshoes/tpacpi-bat.git;
+   KEYWORDS=""
+else
+   SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> 
${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.1 ${PN}
+   newconfd "${FILESDIR}"/${PN}.confd.0 ${PN}
+   systemd_newunit tpacpi.service ${PN}.service
+}