new package
authorMarius Mauch <genone@gentoo.org>
Sun, 13 Nov 2005 12:22:46 +0000 (12:22 +0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 13 Nov 2005 12:22:46 +0000 (12:22 +0000)
Package-Manager: portage-2.0.53_rc7

mail-client/sylpheed-claws-acpi-notifier/ChangeLog [new file with mode: 0644]
mail-client/sylpheed-claws-acpi-notifier/Manifest [new file with mode: 0644]
mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch [new file with mode: 0644]
mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.3 [new file with mode: 0644]
mail-client/sylpheed-claws-acpi-notifier/metadata.xml [new file with mode: 0644]
mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild [new file with mode: 0644]

diff --git a/mail-client/sylpheed-claws-acpi-notifier/ChangeLog b/mail-client/sylpheed-claws-acpi-notifier/ChangeLog
new file mode 100644 (file)
index 0000000..aeb0c41
--- /dev/null
@@ -0,0 +1,12 @@
+# ChangeLog for mail-client/sylpheed-claws-acpi-notifier
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/sylpheed-claws-acpi-notifier/ChangeLog,v 1.1 2005/11/13 12:22:46 genone Exp $
+
+*sylpheed-claws-acpi-notifier-0.3 (13 Nov 2005)
+
+  13 Nov 2005; Marius Mauch <genone@gentoo.org>
+  +files/acpi_notifier-0.3-ibm.patch,
+  +sylpheed-claws-acpi-notifier-0.3.ebuild:
+  New package, ebuild based on submission by TGL <degrenier@easyconnect.fr>
+  from bug 111481.
+
diff --git a/mail-client/sylpheed-claws-acpi-notifier/Manifest b/mail-client/sylpheed-claws-acpi-notifier/Manifest
new file mode 100644 (file)
index 0000000..3d86963
--- /dev/null
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 016c1db546275137fca857007deb8987 ChangeLog 528
+MD5 178a873ac50643d22ef0bea2cbf11f15 files/acpi_notifier-0.3-ibm.patch 611
+MD5 306d22889cf1447ec6182916ecd22260 files/digest-sylpheed-claws-acpi-notifier-0.3 92
+MD5 5d0a878a0318c6d261424c0f55af1345 metadata.xml 392
+MD5 30fd4a7845b389eda78bf39f80a3a859 sylpheed-claws-acpi-notifier-0.3.ebuild 1545
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDdzAm6J2i8a8J4okRAhDQAJ4nJctrJxTr6jW1ikUvGiwUjvJAPQCcCavv
+KgjEO9/M2OK3blnxsmqqv00=
+=v7lp
+-----END PGP SIGNATURE-----
diff --git a/mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch b/mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch
new file mode 100644 (file)
index 0000000..0e79c79
--- /dev/null
@@ -0,0 +1,19 @@
+--- src/acpi_notifier.c.orig   2005-11-04 14:22:00.000000000 +0100
++++ src/acpi_notifier.c        2005-11-04 14:22:05.000000000 +0100
+@@ -55,6 +55,7 @@
+       {"Other", "", "", ""},
+       {"ACER", "1", "0", "/proc/driver/acerhk/led"},
+       {"ASUS", "1", "0", "/proc/acpi/asus/mled"},
++      {"IBM", "7 on", "7 off", "/proc/acpi/ibm/led"},
+       {NULL, NULL, NULL, NULL}
+ };
+ 
+@@ -545,7 +546,7 @@
+       if (on) {
+               fwrite(acpiprefs.on_param, 1, strlen(acpiprefs.on_param), fp);
+       } else {
+-              fwrite(acpiprefs.off_param, 1, strlen(acpiprefs.on_param), fp);
++              fwrite(acpiprefs.off_param, 1, strlen(acpiprefs.off_param), fp);
+       }
+       fclose(fp);
+ }
diff --git a/mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.3 b/mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.3
new file mode 100644 (file)
index 0000000..bf1ee54
--- /dev/null
@@ -0,0 +1 @@
+MD5 3c53408600fca845f14790dbfe715383 sylpheed-claws-external-plugins-1.9.100.tar.gz 3191395
diff --git a/mail-client/sylpheed-claws-acpi-notifier/metadata.xml b/mail-client/sylpheed-claws-acpi-notifier/metadata.xml
new file mode 100644 (file)
index 0000000..770af1a
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<maintainer>
+       <email>genone@gentoo.org</email>
+       <description>Primary maintainer</description>
+</maintainer>
+<maintainer>
+       <email>seemant@gentoo.org</email>
+</maintainer>
+<maintainer>
+       <email>bcowan@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild b/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild
new file mode 100644 (file)
index 0000000..b46e865
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild,v 1.1 2005/11/13 12:22:46 genone Exp $
+
+inherit eutils
+
+MY_PN="${PN#sylpheed-claws-}"
+MY_PN="${MY_PN/-/_}"
+MY_P="${MY_PN}-${PV}"
+SC_BASE="1.9.100"
+
+DESCRIPTION="This plugin enables mail notification via LEDs on some laptops."
+HOMEPAGE="http://claws.sylpheed.org"
+SRC_URI="mirror://sourceforge/sylpheed-claws/sylpheed-claws-external-plugins-${SC_BASE}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+DEPEND=">=mail-client/sylpheed-claws-${SC_BASE}"
+
+S="${WORKDIR}/sylpheed-claws-external-plugins-${SC_BASE}/${MY_P}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}/${MY_P}-ibm.patch"
+}
+
+src_install() {
+       make DESTDIR="${D}" install
+       dodoc AUTHORS ChangeLog NEWS README
+
+       # kill useless files
+       rm -f ${D}usr/lib*/sylpheed-claws/plugins/*.{a,la}
+}
+
+pkg_postinst() {
+       PROC_IFACES="/proc/driver/acerhk/led /proc/acpi/asus/mled /proc/acpi/ibm/led"
+
+       local procfile
+       local message_shown=false
+
+       echo
+       for procfile in ${PROC_IFACES}; do
+               if [[ -f ${procfile} ]]; then
+                       einfo "Make sure ${procfile} is writable by users of this plugin."
+                       message_shown=true
+               fi
+       done
+       if ! $message_shown; then
+               einfo "To use this plugin, you will have to find the /proc interface"
+               einfo "that controls your LED. Whatever it is, make sure it's writable"
+               einfo "by users who will run this plugin."
+       fi
+       echo
+}