# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-fs/cowloop/cowloop-2.14.ebuild,v 1.5 2007/07/13 05:15:33 mr_bones_ Exp $ inherit linux-mod toolchain-funcs DESCRIPTION="A copy-on-write loop driver (block device) to be used on top of any other block driver" HOMEPAGE="http://www.atconsultancy.nl/cowloop/" SRC_URI="http://www.atconsultancy.nl/cowloop/packages/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="x86" IUSE="" DEPEND="virtual/libc virtual/linux-sources" MODULE_NAMES="cowloop(fs:)" BUILD_TARGETS="modules" pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} -I." einfo "Linux kernel ${KV_FULL}" if kernel_is lt 2 6 then eerror "This version only works with 2.6 kernels" eerror "For 2.4 kernel support, use version 1.4" die "No compatible kernel detected!" fi } src_compile() { linux-mod_src_compile CC="$(tc-getCC) ${CFLAGS}" emake cowdev cowrepair cowsync cowlist || die "make failed" } src_install() { linux-mod_src_install dosbin cowdev cowrepair cowsync cowlist doman man/* }