blob: 4800fa57b755021e617cfff00561793969255183 (
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
45
46
47
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
MY_PV=${PV/_/}
MY_P=${PN}-${MY_PV}
DESCRIPTION="RAM based block device which acts as swap disk."
HOMEPAGE="http://code.google.com/p/compcache"
SRC_URI="http://compcache.googlecode.com/files/${MY_P}.tar.gz"
LICENSE="GPL"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/$MY_P"
DEPEND=""
MODULE_NAMES="compcache(block/compcache)"
BUILD_TARGETS="all"
pkg_setup() {
get_version
if ! linux_chkconfig_present LZO_COMPRESS; then
MODULE_NAMES="lzo1x_compress(block/compcache:${S}/sub-projects/compression/lzo-kmod) ${MODULE_NAMES}"
fi
if ! linux_chkconfig_present LZO_DECOMPRESS; then
MODULE_NAMES="lzo1x_decompress(block/compcache:${S}/sub-projects/compression/lzo-kmod) ${MODULE_NAMES}"
fi
if ! linux_chkconfig_present TLSF; then
MODULE_NAMES="tlsf(block/compcache:${S}/sub-projects/allocators/tlsf-kmod ${MODULE_NAMES}"
fi
linux-mod_pkg_setup
}
src_install() {
dodoc ${S}/README
linux-mod_src_install
}
|