Fixing the compilation against 2.6.20 (#166288 thanks to Cyril Romain <cyrilromain...
authorChristian Heim <phreak@gentoo.org>
Tue, 13 Feb 2007 16:47:26 +0000 (16:47 +0000)
committerChristian Heim <phreak@gentoo.org>
Tue, 13 Feb 2007 16:47:26 +0000 (16:47 +0000)
Package-Manager: portage-2.1.2-r9

app-laptop/acpi4asus/ChangeLog
app-laptop/acpi4asus/Manifest
app-laptop/acpi4asus/acpi4asus-0.32-r1.ebuild [new file with mode: 0644]
app-laptop/acpi4asus/files/acpi4asus-0.32-2.6.20.patch [new file with mode: 0644]
app-laptop/acpi4asus/files/digest-acpi4asus-0.32-r1 [new file with mode: 0644]

index ce3b14e95d344dad34419b55b9129174359e65c5..8449b4a3429c260f67e7552e78ea851256459e32 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for app-laptop/acpi4asus
 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/acpi4asus/ChangeLog,v 1.10 2007/02/10 10:24:12 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/acpi4asus/ChangeLog,v 1.11 2007/02/13 16:47:26 phreak Exp $
+
+*acpi4asus-0.32-r1 (13 Feb 2007)
+
+  13 Feb 2007; Christian Heim <phreak@gentoo.org>
+  +files/acpi4asus-0.32-2.6.20.patch, +acpi4asus-0.32-r1.ebuild:
+  Fixing the compilation against 2.6.20 (#166288 thanks to Cyril Romain
+  <cyrilromain at yahoo.fr>), fixing the BUILD_PARAMS to use the selected
+  kernel and *not* the running one.
 
 *acpi4asus-0.32 (10 Feb 2007)
 
index 1925d24dd851710e05798df1b63f7a6f01439665..3fc01397aae32ec18cce0d872c2cb0fd4e173af3 100644 (file)
@@ -1,20 +1,28 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+AUX acpi4asus-0.32-2.6.20.patch 517 RMD160 cf5840ab44536c7c9a0a957e0e2edf230c8be587 SHA1 046c2370a0fd78fb239838ec070846089cce2460 SHA256 9a5864c5369795cd81444b80114df43d9e9e7a6a76b840fd093a4156a6dc70e9
+MD5 963e3e6de1330c5a61a9c5910b8dbcb4 files/acpi4asus-0.32-2.6.20.patch 517
+RMD160 cf5840ab44536c7c9a0a957e0e2edf230c8be587 files/acpi4asus-0.32-2.6.20.patch 517
+SHA256 9a5864c5369795cd81444b80114df43d9e9e7a6a76b840fd093a4156a6dc70e9 files/acpi4asus-0.32-2.6.20.patch 517
 DIST acpi4asus-0.30.tar.bz2 30223 RMD160 bbe265b21c94e2d9ed34f64404506a38330d63a9 SHA1 51419da50c17be2e02e9a5c9f7fc84b73098462a SHA256 bb21acac7df47ac9748328d01a99d1d8f6972438fad8fe0868f68bfcfa8dc6e5
 DIST acpi4asus-0.32.tar.bz2 32043 RMD160 253564a1ecb40649100637ecf02e76fb230b39cf SHA1 3ff06c204f9699eebafeecfce6df9389d1dcbe48 SHA256 852482d59f66d2f918a223e27b169d8835efa38a573cfad584d484ef1cffaa09
 EBUILD acpi4asus-0.30.ebuild 1195 RMD160 f7fc51de5dfc39c30a81fdf476818b8593d272e8 SHA1 d7f9bf7eaf09307ed854d0992f2704bda98a674a SHA256 a09759182689833b314d1c6bb2b36ef157e71865ec1f4353745dcbcd05325719
 MD5 1ca8b30285c7547fcaea56bb2d131c12 acpi4asus-0.30.ebuild 1195
 RMD160 f7fc51de5dfc39c30a81fdf476818b8593d272e8 acpi4asus-0.30.ebuild 1195
 SHA256 a09759182689833b314d1c6bb2b36ef157e71865ec1f4353745dcbcd05325719 acpi4asus-0.30.ebuild 1195
+EBUILD acpi4asus-0.32-r1.ebuild 1358 RMD160 745f37ef687231b56515ba04a948304a9ad1088d SHA1 7669c9eb6d9fbeaa3aa43b04b69eea20e5531f5b SHA256 3d3767b2f3fbba1eb7a84d4cc8098b1cfd8c9e6b44299540e940d7d1dbf86431
+MD5 022b90dfefced388ee5612caaf1cfd17 acpi4asus-0.32-r1.ebuild 1358
+RMD160 745f37ef687231b56515ba04a948304a9ad1088d acpi4asus-0.32-r1.ebuild 1358
+SHA256 3d3767b2f3fbba1eb7a84d4cc8098b1cfd8c9e6b44299540e940d7d1dbf86431 acpi4asus-0.32-r1.ebuild 1358
 EBUILD acpi4asus-0.32.ebuild 1246 RMD160 364cd82a16373d1287ea9c954cc5f6d210178e94 SHA1 61cb0d088074931505f2a9394fe81e89398035a9 SHA256 0c928f2483d5e6f0a963c00060739f98b0f03e28d232ce4e5d4c51d9a0882e61
 MD5 0e2b49a630c05f0f156a0fbf05b816cc acpi4asus-0.32.ebuild 1246
 RMD160 364cd82a16373d1287ea9c954cc5f6d210178e94 acpi4asus-0.32.ebuild 1246
 SHA256 0c928f2483d5e6f0a963c00060739f98b0f03e28d232ce4e5d4c51d9a0882e61 acpi4asus-0.32.ebuild 1246
-MISC ChangeLog 1657 RMD160 f1f29fb56d75b1ef726e4d9ed27fea8516e3deb9 SHA1 0e98b9d6c33ce54951dc07b97460f17a0dec3d35 SHA256 954685ce3ed47e003dab271d283a20f34cf9da6805a9cb5bb978d0e2e54d7f80
-MD5 b8bb2ad2b7d8a05ae349e29a616eace6 ChangeLog 1657
-RMD160 f1f29fb56d75b1ef726e4d9ed27fea8516e3deb9 ChangeLog 1657
-SHA256 954685ce3ed47e003dab271d283a20f34cf9da6805a9cb5bb978d0e2e54d7f80 ChangeLog 1657
+MISC ChangeLog 1989 RMD160 e7ba610cf35ba5f2b5e857f99b623b65df744d17 SHA1 690bfcf375b2981dc6ee8a1ee49ef2c77db3a5ba SHA256 47f0213402c5a93f674a25898fa9302c333edb1257646d1027d9098482bce71b
+MD5 8506e04421457a2d1cd449695b629461 ChangeLog 1989
+RMD160 e7ba610cf35ba5f2b5e857f99b623b65df744d17 ChangeLog 1989
+SHA256 47f0213402c5a93f674a25898fa9302c333edb1257646d1027d9098482bce71b ChangeLog 1989
 MISC metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 SHA1 bce3da4745192397c9a08bdbcf7e4914eac9b77b SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f
 MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159
 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 metadata.xml 159
@@ -25,10 +33,13 @@ SHA256 20d4a228f825807e968415850c90655a7ce5f6acbf72a3b34017377caaf02397 files/di
 MD5 aa10a86a3c42473c22d7d98e4d0b3faa files/digest-acpi4asus-0.32 244
 RMD160 3f1b6b2c3a7ec232ad9f771ab211ee5d7a5ee940 files/digest-acpi4asus-0.32 244
 SHA256 8830baa4a15b5b0af084b9fe3d0d9c018925c8e70e64830411d38d0df9b3295d files/digest-acpi4asus-0.32 244
+MD5 aa10a86a3c42473c22d7d98e4d0b3faa files/digest-acpi4asus-0.32-r1 244
+RMD160 3f1b6b2c3a7ec232ad9f771ab211ee5d7a5ee940 files/digest-acpi4asus-0.32-r1 244
+SHA256 8830baa4a15b5b0af084b9fe3d0d9c018925c8e70e64830411d38d0df9b3295d files/digest-acpi4asus-0.32-r1 244
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.2 (GNU/Linux)
 
-iD8DBQFFzZ1WyuNVb5qfaOYRArsuAJ9O0ZUnQ+Rx0RCYnZBfq2sO5eUuaQCeL8W0
-SeJfmk7ar87N9clhFvuaF/0=
-=GS3P
+iD8DBQFF0eunyuNVb5qfaOYRAvmPAJ92p0b4wAo177NgfCwcdJ4ZB47rMgCfa9UZ
+PndWL53KjEr43jXIwqOYCtg=
+=qFqc
 -----END PGP SIGNATURE-----
diff --git a/app-laptop/acpi4asus/acpi4asus-0.32-r1.ebuild b/app-laptop/acpi4asus/acpi4asus-0.32-r1.ebuild
new file mode 100644 (file)
index 0000000..7047615
--- /dev/null
@@ -0,0 +1,62 @@
+# 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.32-r1.ebuild,v 1.1 2007/02/13 16:47:26 phreak 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_acpi(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
+               epatch "${FILESDIR}"/${P}-2.6.20.patch
+       fi
+}
+
+src_compile() {
+       linux-mod_src_compile
+       emake -C asus_acpid
+}
+
+
+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/acpi4asus-0.32-2.6.20.patch b/app-laptop/acpi4asus/files/acpi4asus-0.32-2.6.20.patch
new file mode 100644 (file)
index 0000000..0fb6fef
--- /dev/null
@@ -0,0 +1,13 @@
+Index: acpi4asus-0.32/driver/asus_acpi.c
+===================================================================
+--- acpi4asus-0.32.orig/driver/asus_acpi.c
++++ acpi4asus-0.32/driver/asus_acpi.c
+@@ -2092,7 +2092,7 @@ static int __init asus_acpi_init(void)
+       }
+ #ifdef CONFIG_ACPI_ASUS_NEW_BACKLIGHT
+-      bd = backlight_device_register ("asus", NULL, &asusbl_data);
++      bd = backlight_device_register ("asus", NULL, NULL, &asusbl_data);
+       if (IS_ERR (bd)) {
+               printk(KERN_ERR "Could not register asus backlight device\n");
diff --git a/app-laptop/acpi4asus/files/digest-acpi4asus-0.32-r1 b/app-laptop/acpi4asus/files/digest-acpi4asus-0.32-r1
new file mode 100644 (file)
index 0000000..661b373
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 4a75c5bbf51ffe7deef99bd2d84007b2 acpi4asus-0.32.tar.bz2 32043
+RMD160 253564a1ecb40649100637ecf02e76fb230b39cf acpi4asus-0.32.tar.bz2 32043
+SHA256 852482d59f66d2f918a223e27b169d8835efa38a573cfad584d484ef1cffaa09 acpi4asus-0.32.tar.bz2 32043