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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Sun Sep 14 01:41:51 2008 UTC (5 years, 10 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
fix bug #236481. block udev-126 and higher on older versions that won't work with it. add udev as a depend since the code calls it always. remove old version
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 x86_64)

1 # Copyright 1999-2008 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-r2.ebuild,v 1.19 2008/03/26 03:37:41 ricmm 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=">=sys-fs/device-mapper-1.00.07-r1
17 !sys-fs/cryptsetup-luks"
18 DEPEND="dev-libs/popt
19 >=dev-libs/libgcrypt-1.1.42
20 dev-libs/libgpg-error"
21
22 dm-crypt_check() {
23 ebegin "Checking for dm-crypt support"
24 linux_chkconfig_present DM_CRYPT
25 eend $?
26
27 if [[ $? -ne 0 ]] ; then
28 ewarn "cryptsetup requires dm-crypt support!"
29 ewarn "Please enable dm-crypt support in your kernel config, found at:"
30 ewarn "(for 2.6 kernels)"
31 ewarn
32 ewarn " Device Drivers"
33 ewarn " Multi-Device Support"
34 ewarn " Device mapper support"
35 ewarn " [*] Crypt Target Support"
36 ewarn
37 ewarn "and recompile your kernel if you want this package to work with this kernel"
38 epause 5
39 fi
40 }
41
42 pkg_setup() {
43 linux-info_pkg_setup
44 dm-crypt_check;
45 }
46
47 src_compile() {
48 econf --bindir=/bin --disable-nls || die
49
50 sed -i \
51 -e "s|-lgcrypt|/usr/$(get_libdir)/libgcrypt.a|" \
52 -e "s|-lgpg-error|/usr/$(get_libdir)/libgpg-error.a|" \
53 Makefile src/Makefile
54 sed -i -e "s|-lpopt|/usr/$(get_libdir)/libpopt.a|" src/Makefile
55
56 emake || die
57 }
58
59 src_install() {
60 make DESTDIR="${D}" install || die "install failed"
61
62 newconfd ${FILESDIR}/cryptfs.confd cryptfs
63 insinto /lib/rcscripts/addons
64 doins "${FILESDIR}"/dm-crypt-{start,stop}.sh
65 }

  ViewVC Help
Powered by ViewVC 1.1.20