summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-01-02 21:18:17 +0000
committerPacho Ramos <pacho@gentoo.org>2013-01-02 21:18:17 +0000
commitda682e95d99b990be2a711b079a16d3f9134eb33 (patch)
tree01d09631a74cfb4152ee4fe5dd825602634c9e7d /app-laptop
parentUpdate live ebuild deps, simplify sed line, and bump EAPI. (diff)
downloadhistorical-da682e95d99b990be2a711b079a16d3f9134eb33.tar.gz
historical-da682e95d99b990be2a711b079a16d3f9134eb33.tar.bz2
historical-da682e95d99b990be2a711b079a16d3f9134eb33.zip
Version bump
Package-Manager: portage-2.1.11.38/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/laptop-mode-tools/ChangeLog9
-rw-r--r--app-laptop/laptop-mode-tools/Manifest10
-rw-r--r--app-laptop/laptop-mode-tools/laptop-mode-tools-1.62.ebuild95
3 files changed, 108 insertions, 6 deletions
diff --git a/app-laptop/laptop-mode-tools/ChangeLog b/app-laptop/laptop-mode-tools/ChangeLog
index a4b5de77d842..a66b8f559604 100644
--- a/app-laptop/laptop-mode-tools/ChangeLog
+++ b/app-laptop/laptop-mode-tools/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-laptop/laptop-mode-tools
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.64 2012/11/18 10:50:44 pacho Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/ChangeLog,v 1.65 2013/01/02 21:18:14 pacho Exp $
+
+*laptop-mode-tools-1.62 (02 Jan 2013)
+
+ 02 Jan 2013; Pacho Ramos <pacho@gentoo.org> +laptop-mode-tools-1.62.ebuild:
+ Version bump
18 Nov 2012; Pacho Ramos <pacho@gentoo.org>
-files/laptop-mode-tools-1.55-pm-utils-1.4.0.patch,
diff --git a/app-laptop/laptop-mode-tools/Manifest b/app-laptop/laptop-mode-tools/Manifest
index f2a1b228c090..edcb18745b57 100644
--- a/app-laptop/laptop-mode-tools/Manifest
+++ b/app-laptop/laptop-mode-tools/Manifest
@@ -3,13 +3,15 @@ Hash: SHA256
AUX laptop_mode.init-1.4 1190 SHA256 90a18e5c7e4d0b264bb51deb7b92ff25b508a3ddd75dd6c849fdc48c07ce4fda SHA512 47e67d54ed8005a864c017f4ef063c8a17286c6f8a260984fda96392e6461a3f0c5e4f17f8cf2272b072c1545b8f8e99fe45579a81b4d08a99e1eeb46f400fe5 WHIRLPOOL 7a87608d947be301400f2f1a0294a60f21e2cd1b6bed961788f7fc018bf4ac32d69a50e11e735db3cb6c000174ebd78e59f7ac0cd474bef3b803872b6a6665e5
DIST laptop-mode-tools_1.60.tar.gz 104415 SHA256 39246db1bba2ea12c7ee6f1979f914a803a9f70836cde687ff9c3a39bc9c9519 SHA512 79596bb24b2af8bbeb3424eeff51022bb381609325a0eb5c009e0970dffe055d2493509d56a4e2c8f745c27f03bc176372d9b27e3a0a050f7bc1c58f86aae5c9 WHIRLPOOL 819cd4ad40c9e2a74bc07f70986c985b4128828ed508d808097472ee301ca788567b65d86717552a8191b378d595cb41b922a9e2f5a2fbcacf645acfe607d0ec
+DIST laptop-mode-tools_1.62.tar.gz 105941 SHA256 d40b3d2fb4dc120b4a427ef7dbddc9dd4d9ea0c475685538d36d3457b39158cd SHA512 3ba2a8db860349c5766f5282ca6f70f3bb780cb44e8674beb7e9c5783e96fc07a144245cc50414fef61b1cd6e08a2096667806792c2853cbcc9c83eb7d796b1a WHIRLPOOL 232115a3a6599241892abcc3f64db8bfa1c897bebbc22c198ce58bcb6bb3dd99aa3fb143c07f69fd6e6099b76da9c494423def0c86c8eeb3b610f9f3e51c0505
EBUILD laptop-mode-tools-1.60-r1.ebuild 2325 SHA256 d1a017658837ca3815a01ce4e50e1fee2fb8880ccb56e43b0b9b48adea05a4fe SHA512 1b355b8c27749542c220426f9d32e383402ccf66d0479d30abd4e7ebe70109bd84ac4696fc5d98d693055183c4ea437a2a869fc9b4ebf2e326b4f47e2a2d1783 WHIRLPOOL 1cd185542cd6e6f55a8102dab3df447003b1b2566f54ec29a3062e264f8f63bf5c68da29b61a1b0940a38242b5c772088943ecc43ccaffd383e7545715a6f98e
-MISC ChangeLog 12227 SHA256 504df7fd8b4031cd26da7b4a95bceee1d777cb5320854e4368b299708df9d7a6 SHA512 b36992ead1efa1e8117f5cca202e36f659cff73c1163941296ee44ae895dfedb0acf65ef08081c90fb50b4989ca43babeb6c840c97338825c7136f7a4185ff53 WHIRLPOOL f2a2c227920a7f18b201baa983a3f4341fa08f192307aeef49abd7c1979c92627d15d0546d25be0a1874af0c43967fd7d2afd30b47bda56bae30d1e24083f1ef
+EBUILD laptop-mode-tools-1.62.ebuild 2840 SHA256 87c541c8ed0d2b3cd319a93ce2b4f3c5e99da0f9be77524619248dd86229c3e4 SHA512 2c85af6221395c69d149327787e16cd8e33b7edd9afca6db70b6913c99444e9719d932efb905528265b9008e0128f03c086c774242546682c7f07bc3b550acb9 WHIRLPOOL c1b60225436eaae79eef3b729f1240b5df9e333a5ca049480fa39593d78b36601e7df8fe94b7e237629ba1fb90f08027508f42c671b7d554d80e19b88248ab6c
+MISC ChangeLog 12360 SHA256 c98f2a25415ddc3fd9078367ff3eb7050b1c5148b9f1a0dfe6ef53e7db3979d2 SHA512 65db8a3badba32d18aaca8b44ac4e56da74075696900f4081fed617acd1ea3a062b95af2d9eddd19fdaee628eb2642971b56a7ef8bac147599e83f51c39455ed WHIRLPOOL 5dc6689ac862e03d5fb7cdee8d85be23fe5b2fc2058ea0beffb4feab728e2a972c3b9bc408836da166db0aa3cc718473959683536738197831cf0fe94165831b
MISC metadata.xml 307 SHA256 3e0b23d71bfbbc6da3e2c97a285a0e5888d21c637fae42542489fdf843139430 SHA512 88c1fe4f56cda32f814f283091f84a9c28e2734a3a8de1c5e00b8c4172456badb6ac6097e6dde929cd45d0d1dcbab0147a2b08d727aac17e3e25cab85490a3a8 WHIRLPOOL 0512e5310143e54a4cc2d6370a32b5c10fcb093c136c0ebf52ecf03606b0ed36cd0711b6b1a40112b5ea230884f1787e2e9ed15a401f5d8f5ceb4637f7c078c6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlCovYUACgkQCaWpQKGI+9RgQQCfbOonsf3ctvqhp5Q0hMrfFnVt
-0v4AniUT45JaZCDFTTJF9xT0g76GHFqY
-=fFFR
+iEYEAREIAAYFAlDkpBYACgkQCaWpQKGI+9QSvQCeJVitMLNxUR6hHwkHVzMuxX/1
+o1oAnRK3FhJYxlClC+pqOMKsP4tJiIvV
+=jI/s
-----END PGP SIGNATURE-----
diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.62.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.62.ebuild
new file mode 100644
index 000000000000..02dc13ef28b9
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.62.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.62.ebuild,v 1.1 2013/01/02 21:18:14 pacho Exp $
+
+EAPI=5
+inherit eutils systemd
+
+MY_P=${PN}_${PV}
+
+DESCRIPTION="Linux kernel laptop_mode user-space utilities"
+HOMEPAGE="http://www.samwel.tk/laptop_mode/"
+SRC_URI="http://www.samwel.tk/laptop_mode/tools/downloads/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="+acpi apm bluetooth scsi"
+
+RDEPEND="net-wireless/wireless-tools
+ sys-apps/ethtool
+ sys-apps/hdparm
+ acpi? ( sys-power/acpid )
+ apm? ( sys-apps/apmd )
+ bluetooth? ( net-wireless/bluez:= )
+ scsi? ( sys-apps/sdparm )"
+DEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # Install 99-laptop-mode.rules to rules.d directory in /usr/lib instead of /etc
+ sed -i -e '/udev/s:/etc:/usr/lib:' install.sh || die
+
+ # This should avoid conflict with pm-powersave wrt #327443 and #396703
+ cat <<-EOF > "${T}"/${PN}
+ HOOK_BLACKLIST="00powersave"
+ EOF
+
+ # Install systemd files in proper place
+ sed -i -e "s:/lib/systemd/system:$(systemd_get_unitdir):" install.sh || die
+
+ # Remove HAL references, bug #345723
+ epatch "${FILESDIR}/${P}-remove-hal.patch"
+}
+
+src_compile() { :; }
+
+src_install() {
+ DESTDIR="${D}" \
+ INIT_D="none" \
+ MAN_D="/usr/share/man" \
+ ACPI="$(use acpi && echo force || echo disabled)" \
+ PMU="$(false && echo force || echo disabled)" \
+ APM="$(use apm && echo force || echo disabled)" \
+ ./install.sh || die
+
+ dodoc Documentation/*.txt README
+ 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
+}