summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Schlarb (moschlar) <mail@moritz-schlarb.de>2011-10-11 12:00:59 +0000
committerMoritz Schlarb (moschlar) <mail@moritz-schlarb.de>2011-10-11 12:00:59 +0000
commit69c60d2e6b79a1414a3cc7e6ff7378fa8454c245 (patch)
tree3d38f8d682d35f6e9b553c1e52acc46a54edba22 /x11-plugins
parentapp-office/radicale: Bump to version 0.6.2 (diff)
downloadsunrise-69c60d2e6b79a1414a3cc7e6ff7378fa8454c245.tar.gz
sunrise-69c60d2e6b79a1414a3cc7e6ff7378fa8454c245.tar.bz2
sunrise-69c60d2e6b79a1414a3cc7e6ff7378fa8454c245.zip
x11-plugins/pidgin-blinklight: New ebuild for bug 268778 and version bump. Thanks to Andrew for the initial ebuild and bug report. I tried patching the sysfs paths to the paths used by new acpi modules, but that failed.
svn path=/sunrise/; revision=12454
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/pidgin-blinklight/ChangeLog11
-rw-r--r--x11-plugins/pidgin-blinklight/Manifest6
-rw-r--r--x11-plugins/pidgin-blinklight/files/fix-paths.patch11
-rw-r--r--x11-plugins/pidgin-blinklight/files/new-acpi-path.patch22
-rw-r--r--x11-plugins/pidgin-blinklight/metadata.xml5
-rw-r--r--x11-plugins/pidgin-blinklight/pidgin-blinklight-0.11.1.ebuild37
6 files changed, 92 insertions, 0 deletions
diff --git a/x11-plugins/pidgin-blinklight/ChangeLog b/x11-plugins/pidgin-blinklight/ChangeLog
new file mode 100644
index 000000000..3b6f5f1f8
--- /dev/null
+++ b/x11-plugins/pidgin-blinklight/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for x11-plugins/pidgin-blinklight
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 11 Oct 2011; Moritz Schlarb (moschlar) <mail@moritz-schlarb.de>
+ +pidgin-blinklight-0.11.1.ebuild, +files/fix-paths.patch,
+ +files/new-acpi-path.patch, +metadata.xml:
+ New ebuild for bug 268778 and version bump. Thanks to Andrew for the initial
+ ebuild and bug report. I tried patching the sysfs paths to the paths used by
+ new acpi modules, but that failed.
+
diff --git a/x11-plugins/pidgin-blinklight/Manifest b/x11-plugins/pidgin-blinklight/Manifest
new file mode 100644
index 000000000..6aecf6d46
--- /dev/null
+++ b/x11-plugins/pidgin-blinklight/Manifest
@@ -0,0 +1,6 @@
+AUX fix-paths.patch 449 RMD160 3ad909255b5f0808672516f8855a1ff8d543fc40 SHA1 2e836d60d99c768710351a05813f3fbeda046005 SHA256 f6f7167e042abeb2af79be3fef21eaa5cd6cf2c7c668f2d96bcde11d9c3e18f8
+AUX new-acpi-path.patch 896 RMD160 4af498f4033fa9b85ffa984cf24fef7fda81997d SHA1 c2e986dd0166633982a50d3266b388eabcf3f2e3 SHA256 574daa7b8e72f63ec6881dcf07996ee55e465e7ce98d8b3b3d907866803a8fad
+DIST pidgin-blinklight_0.11.1.orig.tar.gz 350721 RMD160 3e304247ebc5281505b6877dc55734b3488f3500 SHA1 7b4a6b396e084ef98630de084d50b29ece3d7f8c SHA256 6efc3e519d6df36a1b2afad520b4169e095b21832ca48a0c90bf4d1f128d90a2
+EBUILD pidgin-blinklight-0.11.1.ebuild 1210 RMD160 b78b11de0f3d8e9a24af444717cbef264e87f1cc SHA1 e3d9eb454d6fdb39841c65da5be2c045991a1f7f SHA256 b9779fdb0c1cc931cebc08ca9b4f615a863fe562dd02b39a5f9370e82b510d33
+MISC ChangeLog 497 RMD160 41bbf50790041f914ae6ae8f1caa564d0504efe1 SHA1 756bb0c8821955f4a9b38151090fa26c573cebe1 SHA256 9bd3981a1e06dbfec7bbb1b4afcc525cb64f3eb8ba71665e3dd971758483b9fd
+MISC metadata.xml 208 RMD160 c18611400760e42bdd001905be0a63c2e963bcea SHA1 595816105cac477cb85792a182e15888029118a1 SHA256 c4841c87f0c2b9b5e679a27dc72180be8d508fb3f5df0fbab2ec2c805c0a6d82
diff --git a/x11-plugins/pidgin-blinklight/files/fix-paths.patch b/x11-plugins/pidgin-blinklight/files/fix-paths.patch
new file mode 100644
index 000000000..c0af74535
--- /dev/null
+++ b/x11-plugins/pidgin-blinklight/files/fix-paths.patch
@@ -0,0 +1,11 @@
+--- pidgin-blinklight-0.11.1/src/pidgin-blinklight.c.old 2011-10-11 11:29:13.277577702 +0200
++++ pidgin-blinklight-0.11.1/src/pidgin-blinklight.c 2011-10-11 12:31:22.338699746 +0200
+@@ -99,7 +99,7 @@
+
+ // Make /proc file writable
+ if (!fork())
+- execl("/usr/lib/pidgin-blinklight/blinklight-fixperm","blinklight-fixperm",NULL);
++ execl("/usr/libexec/blinklight-fixperm","blinklight-fixperm",NULL);
+
+
+ char *chosen_file = blinklight_init();
diff --git a/x11-plugins/pidgin-blinklight/files/new-acpi-path.patch b/x11-plugins/pidgin-blinklight/files/new-acpi-path.patch
new file mode 100644
index 000000000..930dcc8db
--- /dev/null
+++ b/x11-plugins/pidgin-blinklight/files/new-acpi-path.patch
@@ -0,0 +1,22 @@
+diff -u src.old/blink.c src/blink.c
+--- src.old/blink.c 2011-10-11 13:37:34.451041509 +0200
++++ src/blink.c 2011-10-11 13:49:40.412965734 +0200
+@@ -41,6 +41,7 @@
+ {"/proc/acpi/ibm/light", {"off","on"}, "status: %9s" },
+ {"/proc/acpi/asus/mled", {"0","1"}, "%9s" },
+ {"/sys/class/leds/asus:phone/brightness", {"0","1"}, "%9s" }
++ {"/sys/class/leds/tpacpi::thinklight/brightness", {"0","1"}, "%9s"}
+ };
+
+ static struct interface *interface = NULL;
+diff -u src.old/blinklight-fixperm.c src/blinklight-fixperm.c
+--- src.old/blinklight-fixperm.c 2011-10-11 13:37:34.451041509 +0200
++++ src/blinklight-fixperm.c 2011-10-11 13:50:20.246467747 +0200
+@@ -12,6 +12,7 @@
+ "/proc/acpi/ibm/light",
+ "/proc/acpi/asus/mled",
+ "/sys/class/leds/asus:phone/brightness",
++ "/sys/class/leds/tpacpi::thinklight/brightness",
+ };
+
+ int main(int argc, char* argv[]) {
diff --git a/x11-plugins/pidgin-blinklight/metadata.xml b/x11-plugins/pidgin-blinklight/metadata.xml
new file mode 100644
index 000000000..31dc017fa
--- /dev/null
+++ b/x11-plugins/pidgin-blinklight/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/x11-plugins/pidgin-blinklight/pidgin-blinklight-0.11.1.ebuild b/x11-plugins/pidgin-blinklight/pidgin-blinklight-0.11.1.ebuild
new file mode 100644
index 000000000..943d05e55
--- /dev/null
+++ b/x11-plugins/pidgin-blinklight/pidgin-blinklight-0.11.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils #linux-info
+
+MY_P=${PN}_${PV}
+DESCRIPTION="Blinks your ThinkPad's ThinkLight upon new messages"
+HOMEPAGE="http://www.joachim-breitner.de/blog/archives/239-gaim-thinklight-pidgin-blinklight.html"
+SRC_URI="mirror://debian/pool/main/p/${PN}/${MY_P}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="net-im/pidgin"
+RDEPEND="${DEPEND}"
+
+DOCS="AUTHORS ChangeLog README TODO VERSION"
+
+# Don't know if checking kernel config does make sense here. The modules are needed, of course
+#CONFIG_CHECK="THINKPAD_ACPI ASUS_LAPTOP" # deprecated: ACPI_ASUS (since 2.6.19) IBM-ACPI (since 2.6.22)
+#pkg_pretend() {
+#
+#}
+
+src_prepare() {
+ epatch "${FILESDIR}"/fix-paths.patch
+# epatch "${FILESDIR}"/new-acpi-path.patch # does not work, blinklight just goes on and stays on
+}
+
+pkg_postinst() {
+ [[ -f "/proc/acpi/ibm/light" ]] || [[ -f "/proc/acpi/asus/mled" ]] || [[ -f "/sys/class/leds/asus:phone/brightness" ]] || ewarn "It seems you have not built-in or loaded the modules for the acpi subsystems that provide access to the blinklight via filesystem."
+}