/[gentoo-x86]/sys-fs/cryptsetup/cryptsetup-0.1-r3.ebuild
Gentoo

Contents of /sys-fs/cryptsetup/cryptsetup-0.1-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Wed Dec 29 15:51:10 2010 UTC (3 years, 6 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-0.1-r3.ebuild,v 1.13 2009/04/10 16:51:56 caleb Exp $
4
5 inherit linux-info multilib eutils
6
7 DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
8 HOMEPAGE="http://www.saout.de/misc/dm-crypt/"
9 SRC_URI="http://www.saout.de/misc/dm-crypt/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
14 IUSE=""
15
16 RDEPEND="|| (
17 >=sys-fs/lvm2-2.02.45
18 >=sys-fs/device-mapper-1.00.07-r1
19 )
20 !sys-fs/cryptsetup-luks"
21 DEPEND="dev-libs/popt
22 >=dev-libs/libgcrypt-1.1.42
23 dev-libs/libgpg-error"
24
25 dm-crypt_check() {
26 ebegin "Checking for dm-crypt support"
27 linux_chkconfig_present DM_CRYPT
28 eend $?
29
30 if [[ $? -ne 0 ]] ; then
31 ewarn "cryptsetup requires dm-crypt support!"
32 ewarn "Please enable dm-crypt support in your kernel config, found at:"
33 ewarn "(for 2.6 kernels)"
34 ewarn
35 ewarn " Device Drivers"
36 ewarn " Multi-Device Support"
37 ewarn " Device mapper support"
38 ewarn " [*] Crypt Target Support"
39 ewarn
40 ewarn "and recompile your kernel if you want this package to work with this kernel"
41 epause 5
42 fi
43 }
44
45 pkg_setup() {
46 linux-info_pkg_setup
47 dm-crypt_check;
48 }
49
50 src_unpack() {
51 unpack ${A}
52 cd "${S}"
53 epatch "${FILESDIR}/cryptsetup-libmapper.patch"
54 }
55
56 src_compile() {
57 econf --bindir=/bin --disable-nls || die
58
59 sed -i \
60 -e "s|-lgcrypt|/usr/$(get_libdir)/libgcrypt.a|" \
61 -e "s|-lgpg-error|/usr/$(get_libdir)/libgpg-error.a|" \
62 Makefile src/Makefile
63 sed -i -e "s|-lpopt|/usr/$(get_libdir)/libpopt.a|" src/Makefile
64
65 emake || die
66 }
67
68 src_install() {
69 make DESTDIR="${D}" install || die "install failed"
70
71 newconfd ${FILESDIR}/cryptfs.confd cryptfs
72 insinto /lib/rcscripts/addons
73 doins "${FILESDIR}"/dm-crypt-{start,stop}.sh
74 }

  ViewVC Help
Powered by ViewVC 1.1.20