blob: e3db69c00045d5acdeb54485569257a3aae26852 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit linux-mod versionator
MY_P="${PN}-$(delete_version_separator '_')"
DESCRIPTION="Compressed RAM as fast swap"
HOMEPAGE="http://compcache.googlecode.com"
SRC_URI="http://compcache.googlecode.com/files/${MY_P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=virtual/linux-sources-2.6"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
BUILD_PARAMS='KV_OUT_DIR="${KV_OUT_DIR}"'
BUILD_TARGETS="all"
CONFIG_CHECK="LZO_COMPRESS LZO_DECOMPRESS" # CRYPTO_LZO
MODULE_NAMES="ramzswap(compcache:${S}:${S})
xvmalloc(:${S}:${S}/sub-projects/allocators/xvmalloc-kmod)"
MODULESD_XVMALLOC_ENABLED="no"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e 's#/lib/modules/$(shell uname -r)/build#"$(KV_OUT_DIR)"#' \
Makefile sub-projects/allocators/xvmalloc-kmod/Makefile || die
}
src_install() {
linux-mod_src_install
dosbin sub-projects/rzscontrol/rzscontrol || die
doman sub-projects/rzscontrol/man/rzscontrol.1 || die
dodoc Changelog README load_modules.sh unload_modules.sh || die
}
|