# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod BUILD="02" MY_P=${P}-${BUILD} S=${WORKDIR}/${MY_P} DESCRIPTION="IBM ThinkPad Harddrive Active Protection System driver" HOMEPAGE="http://hdaps.sourceforge.net/" SRC_URI="http://www.kernel.org/pub/linux/kernel/people/rml/hdaps/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" BUILD_TARGETS="modules" MODULE_NAMES="hdaps(:${S}/kernel:${S}/kernel)" pkg_setup() { linux-mod_pkg_setup if kernel_is 2 4; then die "${P} does not support kernel 2.4.x" fi BUILD_PARAMS="-C ${KV_DIR} SUBDIRS="${S}/kernel"" } src_install() { linux-mod_src_install }