# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod MY_P=${PN}-dave-${PV} S=${WORKDIR}/${MY_P} DESCRIPTION="IBM ThinkPad Harddrive Active Protection System driver" HOMEPAGE="http://hdaps.sourceforge.net/" SRC_URI="mirror://sourceforge/hdaps/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" BUILD_TARGETS="all" MODULE_NAMES="ibm_hdaps(misc:)" pkg_setup() { linux-mod_pkg_setup if kernel_is 2 4; then die "${P} does not support kernel 2.4.x" fi BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR}" } src_install() { linux-mod_src_install dosbin ${S}/ibm_hdaps_userspace }