blob: cf3fb648e9b92ab1b9ad05ab506cfccb47546c0b (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/bestcrypt/bestcrypt-1.7.0.ebuild,v 1.3 2009/06/10 19:06:51 maekke Exp $
EAPI="2"
inherit eutils flag-o-matic linux-mod toolchain-funcs versionator
MY_PN="bcrypt"
MY_PV="$(replace_version_separator 2 -)"
DESCRIPTION="commercially licensed transparent filesystem encryption"
HOMEPAGE="http://www.jetico.com/"
SRC_URI="http://www.jetico.com/linux/BestCrypt-${MY_PV}.tar.gz"
LICENSE="bestcrypt"
SLOT="0"
IUSE=""
KEYWORDS="amd64 x86"
DEPEND="virtual/linux-sources"
RDEPEND=""
S="${WORKDIR}/${MY_PN}-${MY_PV}"
pkg_setup() {
linux-mod_pkg_setup
MODULE_NAMES="bc(block:mod)
bc_3des(block:mod:mod/3des)
bc_bf128(block:mod:mod/bf128)
bc_bf448(block:mod:mod/bf448)
bc_blowfish(block:mod:mod/blowfish)
bc_cast(block:mod:mod/cast)
bc_des(block:mod:mod/des)
bc_gost(block:mod:mod/gost)
bc_idea(block:mod:mod/idea)
bc_rijn(block:mod:mod/rijn)
bc_twofish(block:mod:mod/twofish)"
BUILD_TARGETS="all"
BUILD_PARAMS=" \
CPP=\"$(tc-getCXX)\" \
KERNEL_DIR=\"${KV_DIR}\" \
VER=${KV_MAJOR}.${KV_MINOR} \
KEXT=${KV_OBJ}"
}
src_prepare() {
epatch "${FILESDIR}/${P}-respect_LDFLAGS.patch"
}
src_compile() {
linux-mod_src_compile
filter-flags -fforce-addr
emake BC_CPP="$(tc-getCXX)" EXTRA_CFLAGS="${CXXFLAGS}" || die "emake failed"
}
src_install() {
linux-mod_src_install
dobin build/bctool
dolib.so build/lib{bccore,kgsha{,256}}.so
local link
for link in bcmount bcumount bcformat bcfsck bcnew bcpasswd bcinfo bclink bcunlink bcmake_hidden bcreencrypt; do
dosym bctool "/usr/bin/${link}"
done
insinto /etc
newins etc/bc.conf bc.conf
newinitd "${FILESDIR}/bcrypt3" bcrypt
sed -e '/\(bc_rc6\|bc_serpent\)/d' -i "${D}etc/init.d/bcrypt"
dodoc HIDDEN_PART README
doman man/bctool.8
}
pkg_postinst() {
ewarn
ewarn "The BestCrypt drivers are not free - Please purchace a license from "
ewarn "http://www.jetico.com/"
ewarn
linux-mod_pkg_postinst
}
|