3 inherit eutils linux-mod
5 DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
6 HOMEPAGE="http://tpctl.sourceforge.net/"
7 SRC_URI="http://github.com/downloads/evgeni/tp_smapi/${P}.tar.gz"
12 KEYWORDS="~amd64 ~x86"
17 # We need dmideode if the kernel does not support DMI_DEV_TYPE_OEM_STRING
19 DEPEND="sys-apps/dmidecode"
25 if kernel_is lt 2 6 19; then
27 eerror "${P} requires Linux kernel 2.6.19 or above."
29 die "Unsupported kernel version"
32 MODULE_NAMES="thinkpad_ec(extra:) tp_smapi(extra:)"
33 BUILD_PARAMS="KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR}"
34 BUILD_TARGETS="default"
37 CONFIG_CHECK="~INPUT_UINPUT"
38 WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better"
41 MODULE_NAMES="${MODULE_NAMES} hdaps(extra:)"
42 BUILD_PARAMS="${BUILD_PARAMS} HDAPS=1"
44 CONFIG_CHECK="!SENSORS_HDAPS"
45 ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)"
51 # run again as pkg_pretend is not var safe
58 newinitd "${FILESDIR}"/${P}-initd smapi
59 newconfd "${FILESDIR}"/${P}-confd smapi