1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit linux-mod versionator
8 MY_P=${MY_PN}-$(replace_version_separator 3 - ${PV})
10 DESCRIPTION="A kernelmodule which monitors the temperature of the aspire one netbook"
11 HOMEPAGE="http://piie.net/index.php?section=acerhdf"
12 SRC_URI="http://piie.net/files/${MY_P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
20 RDEPEND=">=virtual/linux-sources-2.6.30"
25 BUILD_TARGETS="default"
26 MODULE_NAMES="${PN}(:${S}:${S})"
27 MODULESD_ACERHDF_DOCS="README.txt"
28 BUILD_PARAMS="KDIR=${KERNEL_DIR}"
32 if kernel_is lt 2 6 30; then
33 ewarn "This version of ${PN} needs at least kernel version 2.6.30 selected"
34 ewarn "Please set the /usr/src/linux symlink to the right version"
35 die "This version of ${PN} needs at least kernel version 2.6.30 selected"
40 linux-mod_pkg_postinst
41 einfo "The module now starts with kernel mode off"
42 einfo "Read here http://piie.net/files/acerhdf_README.txt how to switch it on"