summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/acpi4asus/acpi4asus-0.40.ebuild')
-rw-r--r--app-laptop/acpi4asus/acpi4asus-0.40.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/app-laptop/acpi4asus/acpi4asus-0.40.ebuild b/app-laptop/acpi4asus/acpi4asus-0.40.ebuild
new file mode 100644
index 000000000000..74a4c962e88c
--- /dev/null
+++ b/app-laptop/acpi4asus/acpi4asus-0.40.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/acpi4asus/acpi4asus-0.40.ebuild,v 1.1 2007/03/20 22:19:36 genstef Exp $
+
+inherit linux-mod eutils
+
+DESCRIPTION="Acpi daemon and kernel module to control ASUS Laptop Hotkeys"
+HOMEPAGE="http://sourceforge.net/projects/acpi4asus"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+MODULE_NAMES="asus-laptop(acpi:${S}/driver)"
+BUILD_TARGETS=" "
+RDEPEND="sys-power/acpid"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KDIR=${KV_DIR}"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ if kernel_is ge 2 6 20 ; then
+ die "kernel 2.6.20 and later not yet supported in this release, feel
+ free to provide a patch to change that :)"
+ fi
+}
+
+src_compile() {
+ linux-mod_src_compile
+ emake -C asus-laptop
+}
+
+
+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
+}