public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-laptop/laptop-mode-tools/files/, app-laptop/laptop-mode-tools/
@ 2017-12-22 10:33 Alon Bar-Lev
  0 siblings, 0 replies; 2+ messages in thread
From: Alon Bar-Lev @ 2017-12-22 10:33 UTC (permalink / raw
  To: gentoo-commits

commit:     4d33d6e63d5add27f56f5334cd7d72f63ac9a356
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 22 10:32:41 2017 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 10:33:31 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d33d6e6

app-laptop/laptop-mode-tools: fix power-wireless iwconfig invocation

Package-Manager: Portage-2.3.13, Repoman-2.3.3
RepoMan-Options: --force

 .../laptop-mode-tools-1.71-wireless-power.patch    | 27 ++++++++++++++++++++++
 ....71.ebuild => laptop-mode-tools-1.71-r1.ebuild} |  4 ++++
 2 files changed, 31 insertions(+)

diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch
new file mode 100644
index 00000000000..6d39d31e738
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch
@@ -0,0 +1,27 @@
+From 3644486a9ee4fda7887fa0ecf224e66c4d12a0d2 Mon Sep 17 00:00:00 2001
+From: Ritesh Raj Sarraf <rrs@debian.org>
+Date: Fri, 10 Mar 2017 14:37:03 +0530
+Subject: [PATCH] Fix correct program invocation
+
+Thanks: Mathias Rav
+Closes: https://github.com/rickysarraf/laptop-mode-tools/issues/93
+---
+ usr/share/laptop-mode-tools/modules/wireless-power | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/usr/share/laptop-mode-tools/modules/wireless-power b/usr/share/laptop-mode-tools/modules/wireless-power
+index bd8277d..8800a89 100755
+--- a/usr/share/laptop-mode-tools/modules/wireless-power
++++ b/usr/share/laptop-mode-tools/modules/wireless-power
+@@ -76,7 +76,7 @@ setPowerSave() {
+                 if [ $ONOFF = "ON" ]; then
+                     $IWCONFIG $IF txpower auto
+                 else
+-                    $IW dev $IF txpower fixed
++                    $IWCONFIG $IF txpower fixed
+                 fi
+ 	fi
+ }
+-- 
+2.13.6
+

diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
similarity index 97%
rename from app-laptop/laptop-mode-tools/laptop-mode-tools-1.71.ebuild
rename to app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
index 76f2e8092a2..61e9fa4c5db 100644
--- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71.ebuild
+++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
@@ -29,6 +29,10 @@ DEPEND=""
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+	"${FILESDIR}/${P}-wireless-power.patch"
+)
+
 src_prepare() {
 	default
 	# This should avoid conflict with pm-powersave wrt #327443 and #396703


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-laptop/laptop-mode-tools/files/, app-laptop/laptop-mode-tools/
@ 2018-05-26  9:34 Alon Bar-Lev
  0 siblings, 0 replies; 2+ messages in thread
From: Alon Bar-Lev @ 2018-05-26  9:34 UTC (permalink / raw
  To: gentoo-commits

commit:     cc741eb4377aae1dfd2876d25e508c99886544ab
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Sat May 26 08:54:06 2018 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Sat May 26 09:34:17 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc741eb4

app-laptop/laptop-mode-tools: cleanup

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-laptop/laptop-mode-tools/Manifest              |  1 -
 .../laptop-mode-tools-1.71-wireless-power.patch    | 27 ------
 .../laptop-mode-tools-1.71-r1.ebuild               | 95 ----------------------
 3 files changed, 123 deletions(-)

diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest
index fc3446987f5..c1a42249479 100644
--- a/app-laptop/laptop-mode-tools/Manifest
+++ b/app-laptop/laptop-mode-tools/Manifest
@@ -1,2 +1 @@
-DIST laptop-mode-tools_1.71.tar.gz 118833 BLAKE2B 21e6399d35d3f35dd75e5640eb50d679de87bf40435484e0c7cb67dcd0f2a794b5f14b48e375c302ef749efc38677b8abbdacfd3612206fb0125c52b9d67a89b SHA512 67ef4ed4c80f3a64ab9f0f9003d415f9e8759fd0ee1c7a82837d423a0e7aeb03ab95724afd89ae223f954ae0baec5830c8fa600bd6e2e351aead83a656f9b665
 DIST laptop-mode-tools_1.72.2.tar.gz 121437 BLAKE2B 1fdcdb88183156e4983b4561218164df5dde9fc91e85ab0ec1e6a401d3e5c5e70597a97e16c476949e80a674c34683eac6429e64e76c7921bd28f560e4ffe3cb SHA512 9a3960bad518aa73350b72ce30aeb80f3cbb1bf0fd6a11d5afe396b25c2b73f3b3d2fe7de0741eb94c9e3467c85a99741dc7acfd85339b9eb1daca09d3f8c56a

diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch
deleted file mode 100644
index 6d39d31e738..00000000000
--- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.71-wireless-power.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 3644486a9ee4fda7887fa0ecf224e66c4d12a0d2 Mon Sep 17 00:00:00 2001
-From: Ritesh Raj Sarraf <rrs@debian.org>
-Date: Fri, 10 Mar 2017 14:37:03 +0530
-Subject: [PATCH] Fix correct program invocation
-
-Thanks: Mathias Rav
-Closes: https://github.com/rickysarraf/laptop-mode-tools/issues/93
----
- usr/share/laptop-mode-tools/modules/wireless-power | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/usr/share/laptop-mode-tools/modules/wireless-power b/usr/share/laptop-mode-tools/modules/wireless-power
-index bd8277d..8800a89 100755
---- a/usr/share/laptop-mode-tools/modules/wireless-power
-+++ b/usr/share/laptop-mode-tools/modules/wireless-power
-@@ -76,7 +76,7 @@ setPowerSave() {
-                 if [ $ONOFF = "ON" ]; then
-                     $IWCONFIG $IF txpower auto
-                 else
--                    $IW dev $IF txpower fixed
-+                    $IWCONFIG $IF txpower fixed
-                 fi
- 	fi
- }
--- 
-2.13.6
-

diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
deleted file mode 100644
index a3b12eff10b..00000000000
--- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.71-r1.ebuild
+++ /dev/null
@@ -1,95 +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}"
-
-PATCHES=(
-	"${FILESDIR}/${P}-wireless-power.patch"
-)
-
-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
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-26  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-26  9:34 [gentoo-commits] repo/gentoo:master commit in: app-laptop/laptop-mode-tools/files/, app-laptop/laptop-mode-tools/ Alon Bar-Lev
  -- strict thread matches above, loose matches on Subject: below --
2017-12-22 10:33 Alon Bar-Lev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox