blob: 8e1f5dd6d231dde73cf07a4e24ca00eed65ab5e4 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic linux-info
DESCRIPTION="A utility for management and user-mode mounting of encrypted filesystems"
HOMEPAGE="http://cryptmount.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nls ssl"
DEPEND="sys-fs/device-mapper
>=dev-libs/libgcrypt-1.1.94
ssl? ( dev-libs/openssl )
nls? ( sys-devel/gettext )"
RDEPEND="${DEPEND}"
dm-crypt_check() {
ebegin "Checking for Device mapper support (BLK_DEV_DM)"
linux_chkconfig_present BLK_DEV_DM
eend $?
if [[ $? -ne 0 ]] ; then
ewarn "Cryptmount requires Device mapper support!"
ewarn "Please enable Device mapper support in your kernel config, found at:"
ewarn "(for 2.6 kernels)"
ewarn
ewarn " Device Drivers"
ewarn " Multi-Device Support"
ewarn " <*> Device mapper support"
ewarn
ewarn "and recompile your kernel if you want this package to work."
epause 10
fi
}
pkg_setup() {
linux-info_pkg_setup
dm-crypt_check
}
src_compile() {
# recommended for setXid, dynamically linked biraries
append-ldflags -Wl,-z,now
econf \
--with-gnu-ld \
--with-libgcrypt \
$(use_enable nls) \
$(use_with ssl openssl) \
|| die "Configuration failed"
emake || die "Compilation failed"
}
src_install() {
make install DESTDIR="${D}" || die "Installation failed"
dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README RELNOTES ToDo
}
|