diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2013-08-22 07:45:52 +0200 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2013-08-22 07:45:52 +0200 |
commit | 2c8d064b367a44723b9b557fb1edca59387edf49 (patch) | |
tree | 762432f58f66cfa663464bd506f40bd73a8a812d /app-laptop | |
parent | initial setup (diff) | |
download | wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.tar.gz wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.tar.bz2 wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.zip |
added all ebuilds from my old svn repository
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/acpi4asus/Manifest | 2 | ||||
-rw-r--r-- | app-laptop/acpi4asus/acpi4asus-9999.ebuild | 73 | ||||
-rw-r--r-- | app-laptop/acpi4asus/files/digest-acpi4asus-9999 | 0 | ||||
-rw-r--r-- | app-laptop/acpi4asus/files/kernel23-fix.patch | 23 |
4 files changed, 98 insertions, 0 deletions
diff --git a/app-laptop/acpi4asus/Manifest b/app-laptop/acpi4asus/Manifest new file mode 100644 index 0000000..1b1e368 --- /dev/null +++ b/app-laptop/acpi4asus/Manifest @@ -0,0 +1,2 @@ +AUX kernel23-fix.patch 719 RMD160 0204d29ec10041a184b725e4313942a1f130d1a7 SHA1 32312d53d75b29dbefddce0a5e726a75a656c2f0 SHA256 3d38ae1bdb8d2498a91d3bbc22fd8b417ac949163990a5b4a3bf4161e6e71869 +EBUILD acpi4asus-9999.ebuild 1370 RMD160 8af7f3e60c388c234e456c976f3ada3df480e23d SHA1 05eb0173b909c669b151bbd93d9694eb467c734e SHA256 3116383b19f3819657bd44b8ff6c9a7043e0fa53bec60f82ca4249849b71da05 diff --git a/app-laptop/acpi4asus/acpi4asus-9999.ebuild b/app-laptop/acpi4asus/acpi4asus-9999.ebuild new file mode 100644 index 0000000..c6a5d10 --- /dev/null +++ b/app-laptop/acpi4asus/acpi4asus-9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod eutils + +DESCRIPTION="Acpi daemon and kernel module to control ASUS Laptop Hotkeys" +HOMEPAGE="http://acpi4asus.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +S="${WORKDIR}/${PN}" +MODULE_NAMES="asus-laptop(acpi:${S}/driver)" +BUILD_TARGETS=" " + +RDEPEND="sys-power/acpid" + +ECVS_SERVER="acpi4asus.cvs.sourceforge.net:/cvsroot/acpi4asus" +ECVS_MODULE="acpi4asus" +ECVS_LOCALNAME="${PN}" +ECVS_CVS_COMPRESS="-z3" + +inherit cvs + +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KDIR=${KV_DIR}" +} + +src_unpack() { + cvs_src_unpack +} + +src_compile() { + if kernel_is ge 2 6 23 ; then + epatch ${FILESDIR}/kernel23-fix.patch + fi + + linux-mod_src_compile + + cd ${S}/asus_acpid + + emake +} + +src_install() { + linux-mod_src_install + + dobin asus_acpid/asus_acpid + doman asus_acpid/asus_acpid.8 + + dodoc README Changelog + + dodir /usr/share/${PN}/samples + + dodir /usr/share/${PN}/samples/actions + + insinto /usr/share/${PN}/samples/actions + doins samples/actions/*.sh + + dodir /usr/share/${PN}/samples/events + insinto /usr/share/${PN}/samples/events + doins samples/events/* +} + +pkg_postinst() { + linux-mod_pkg_postinst + einfo + einfo "Don't forget to create your ~/.asus_acpi," + einfo "see /usr/share/doc/${PF}/README.gz for details" + einfo +} diff --git a/app-laptop/acpi4asus/files/digest-acpi4asus-9999 b/app-laptop/acpi4asus/files/digest-acpi4asus-9999 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app-laptop/acpi4asus/files/digest-acpi4asus-9999 diff --git a/app-laptop/acpi4asus/files/kernel23-fix.patch b/app-laptop/acpi4asus/files/kernel23-fix.patch new file mode 100644 index 0000000..907fb7e --- /dev/null +++ b/app-laptop/acpi4asus/files/kernel23-fix.patch @@ -0,0 +1,23 @@ +diff -ru acpi4asus.o/driver/asus-laptop.c acpi4asus/driver/asus-laptop.c +--- acpi4asus.o/driver/asus-laptop.c 2008-01-08 22:16:26.000000000 +0300 ++++ acpi4asus/driver/asus-laptop.c 2008-01-08 22:16:46.000000000 +0300 +@@ -731,7 +731,7 @@ + lcd_blank(FB_BLANK_POWERDOWN); + } + +- acpi_bus_generate_event(hotk->device, event, ++ acpi_bus_generate_proc_event(hotk->device, event, + hotk->event_count[event % 128]++); + + return; +@@ -1074,8 +1074,8 @@ + } + + #define ASUS_LED_UNREGISTER(object) \ +- if(object##_led.class_dev \ +- && !IS_ERR(object##_led.class_dev)) \ ++ if(object##_led.dev \ ++ && !IS_ERR(object##_led.dev)) \ + led_classdev_unregister(&object##_led) + + static void asus_led_exit(void) |