blob: 2a07baafffa720fb26e6d76a408d60c2e3c098fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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-1.4.ebuild,v 1.3 2007/02/25 09:43:26 genstef 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"
# get-version
# SLOT="${KV_MAJOR}.${MINOR}"
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 2 4
then
eerror "This version only works with 2.4 kernels"
eerror "For 2.6 kernel support, use version 2.11 or later"
die "No compatible kernel detected!"
fi
}
src_compile() {
$(tc-getCC) -s -I. -D__KERNEL__ -DLINUX -DMODULE -DCOWMAJOR=241 \
-I${KV_DIR}/include ${CFLAGS} -c cowloop.c \
|| die "module compile failure"
}
src_install() {
linux-mod_src_install
doman man/*
}
|