diff options
author | Roy Marples <uberlord@gentoo.org> | 2006-06-27 09:51:45 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2006-06-27 09:51:45 +0000 |
commit | 02ce49edc32eb4f2ab4d56e08acda40bbde3aee8 (patch) | |
tree | 9714ef64c9c479f4546d0570116becaed1bc3b3b /app-laptop | |
parent | Fix cachecheck to make it work with autoconf-2.60, thanks to flameeyes, bug 1... (diff) | |
download | gentoo-2-02ce49edc32eb4f2ab4d56e08acda40bbde3aee8.tar.gz gentoo-2-02ce49edc32eb4f2ab4d56e08acda40bbde3aee8.tar.bz2 gentoo-2-02ce49edc32eb4f2ab4d56e08acda40bbde3aee8.zip |
Added a kernel patch so --config can enable hdaps on my Z60m
(Portage version: 2.1.1_pre1-r3)
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/hdapsd/ChangeLog | 6 | ||||
-rw-r--r-- | app-laptop/hdapsd/files/hdaps-Z60m.patch | 10 | ||||
-rw-r--r-- | app-laptop/hdapsd/hdapsd-20060409.ebuild | 13 |
3 files changed, 26 insertions, 3 deletions
diff --git a/app-laptop/hdapsd/ChangeLog b/app-laptop/hdapsd/ChangeLog index 30e0fd818f74..d8a05d8199d4 100644 --- a/app-laptop/hdapsd/ChangeLog +++ b/app-laptop/hdapsd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-laptop/hdapsd # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.1 2006/06/26 20:07:24 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.2 2006/06/27 09:51:45 uberlord Exp $ + + 27 Jun 2006; Roy Marples <uberlord@gentoo.org> +files/hdaps-Z60m.patch, + hdapsd-20060409.ebuild: + Added a kernel patch so --config can enable hdaps on my Z60m *hdapsd-20060409 (26 Jun 2006) diff --git a/app-laptop/hdapsd/files/hdaps-Z60m.patch b/app-laptop/hdapsd/files/hdaps-Z60m.patch new file mode 100644 index 000000000000..57c723c01b6a --- /dev/null +++ b/app-laptop/hdapsd/files/hdaps-Z60m.patch @@ -0,0 +1,10 @@ +--- drivers/hwmon/hdaps.c 2006-06-26 09:37:31.131424200 +0100 ++++ drivers/hwmon/hdaps.c 2006-06-26 09:39:49.000000000 +0100 +@@ -539,6 +539,7 @@ + HDAPS_DMI_MATCH_NORMAL("ThinkPad X41 Tablet"), + HDAPS_DMI_MATCH_NORMAL("ThinkPad X41"), + HDAPS_DMI_MATCH_LENOVO("ThinkPad X60"), ++ HDAPS_DMI_MATCH_NORMAL("ThinkPad Z60m"), + { .ident = NULL } + }; + diff --git a/app-laptop/hdapsd/hdapsd-20060409.ebuild b/app-laptop/hdapsd/hdapsd-20060409.ebuild index 588aeaf51877..67896d6a803b 100644 --- a/app-laptop/hdapsd/hdapsd-20060409.ebuild +++ b/app-laptop/hdapsd/hdapsd-20060409.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20060409.ebuild,v 1.1 2006/06/26 20:07:24 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20060409.ebuild,v 1.2 2006/06/27 09:51:45 uberlord Exp $ inherit eutils linux-info @@ -34,7 +34,7 @@ src_install() { newinitd "${FILESDIR}"/hdapsd.init hdapsd # Install our kernel patches - dodoc *.patch + dodoc *.patch "${FILESDIR}"/hdaps-Z60m.patch } kernel_patched() { @@ -62,6 +62,15 @@ pkg_config() { cd "${KERNEL_DIR}" epatch "${docdir}/${p}" + + # This is just a nice to have for me as I use a Z60m myself + if ! grep "Z60m" "${KERNEL_DIR}"/drivers/hwmon/hdaps.c ; then + epatch "${docdir}"/hdaps-Z60m.patch.gz + fi + + echo + einfo "Now you should rebuild your kernel, its modules" + einfo "and then install them." } pkg_postinst(){ |