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

Contents of /sys-fs/cryptsetup/cryptsetup-1.0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 27 19:39:18 2010 UTC (3 years, 8 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup old versions.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

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-1.0.7.ebuild,v 1.1 2009/11/28 00:32:54 robbat2 Exp $
4
5 EAPI=2
6
7 inherit linux-info eutils flag-o-matic multilib
8
9 DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
10 HOMEPAGE="http://luks.endorphin.org/ http://code.google.com/p/cryptsetup/"
11 SRC_URI="http://cryptsetup.googlecode.com/files/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
16 IUSE="dynamic nls selinux"
17
18 DEPEND="|| (
19 >=sys-fs/lvm2-2.02.45
20 >=sys-fs/device-mapper-1.00.07-r1
21 )
22 >=dev-libs/libgcrypt-1.1.42
23 >=dev-libs/libgpg-error-1.0-r1
24 >=dev-libs/popt-1.7
25 >=sys-fs/udev-124
26 || ( >=sys-libs/e2fsprogs-libs-1.41 <sys-fs/e2fsprogs-1.41 )
27 selinux? ( sys-libs/libselinux )
28 !sys-fs/cryptsetup-luks"
29
30 dm-crypt_check() {
31 local CONFIG_CHECK="~DM_CRYPT"
32 local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
33 check_extra_config
34 }
35
36 crypto_check() {
37 local CONFIG_CHECK="~CRYPTO"
38 local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
39 check_extra_config
40 }
41
42 cbc_check() {
43 local CONFIG_CHECK="~CRYPTO_CBC"
44 local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
45 check_extra_config
46 }
47
48 pkg_setup() {
49 dm-crypt_check
50 crypto_check
51 cbc_check
52
53 if use dynamic ; then
54 ewarn "If you need cryptsetup for an initrd or initramfs then you"
55 ewarn "should NOT use the dynamic USE flag"
56 epause 5
57 fi
58 }
59
60 src_configure() {
61 use selinux || export ac_cv_lib_selinux_is_selinux_enabled=no
62 econf \
63 --sbindir=/sbin \
64 $(use_enable !dynamic static) \
65 --enable-libgcrypt \
66 --enable-libdevmapper \
67 --libdir=/usr/$(get_libdir) \
68 $(use_enable nls) \
69 || die
70 }
71
72 src_install() {
73 emake DESTDIR="${D}" install || die "install failed"
74 rmdir "${D}"/usr/$(get_libdir)/cryptsetup
75 insinto /$(get_libdir)/rcscripts/addons
76 newins "${FILESDIR}"/1.0.6-r2-dm-crypt-start.sh dm-crypt-start.sh || die
77 newins "${FILESDIR}"/1.0.5-dm-crypt-stop.sh dm-crypt-stop.sh || die
78 newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt || die
79 newinitd "${FILESDIR}"/1.0.5-dmcrypt.rc dmcrypt || die
80 }
81
82 pkg_postinst() {
83 ewarn "This ebuild introduces a new set of scripts and configuration"
84 ewarn "than the last version. If you are currently using /etc/conf.d/cryptfs"
85 ewarn "then you *MUST* copy your old file to:"
86 ewarn "/etc/conf.d/dmcrypt"
87 ewarn "Or your encrypted partitions will *NOT* work."
88 elog "Please see the example for configuring a LUKS mountpoint"
89 elog "in /etc/conf.d/dmcrypt"
90 elog
91 elog "If you are using baselayout-2 then please do:"
92 elog "rc-update add dmcrypt boot"
93 elog "This version introduces a command line arguement 'key_timeout'."
94 elog "If you want the search for the removable key device to timeout"
95 elog "after 10 seconds add the following to your bootloader config:"
96 elog "key_timeout=10"
97 elog "A timeout of 0 will mean it will wait indefinitely."
98 }

  ViewVC Help
Powered by ViewVC 1.1.20