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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Oct 21 13:37:06 2012 UTC (20 months, 2 weeks ago) by ssuominen
Branch: MAIN
Changes since 1.10: +2 -2 lines
Update sys-fs/udev dependency because stable udev was revision bumped.

(Portage version: 2.2.0_alpha135/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.4.1.ebuild,v 1.10 2012/05/21 07:55:41 ssuominen Exp $
4
5 EAPI="2"
6
7 inherit linux-info libtool
8
9 MY_P=${P/_rc/-rc}
10 DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
11 HOMEPAGE="http://code.google.com/p/cryptsetup/"
12 SRC_URI="http://cryptsetup.googlecode.com/files/${MY_P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
17 IUSE="nls selinux +static"
18
19 S=${WORKDIR}/${MY_P}
20
21 RDEPEND="!<sys-apps/baselayout-2
22 !static? (
23 >=dev-libs/libgcrypt-1.1.42
24 dev-libs/libgpg-error
25 >=dev-libs/popt-1.7
26 >=sys-apps/util-linux-2.17.2
27 >=sys-fs/lvm2-2.02.64
28 )
29 >=sys-fs/udev-124
30 >=sys-libs/e2fsprogs-libs-1.41
31 selinux? ( sys-libs/libselinux )
32 !sys-fs/cryptsetup-luks"
33 DEPEND="${RDEPEND}
34 static? (
35 >=dev-libs/libgpg-error-1.10[static-libs]
36 >=dev-libs/popt-1.16-r1[static-libs]
37 || ( >=sys-apps/util-linux-2.20[static-libs] <sys-apps/util-linux-2.20 )
38 dev-libs/libgcrypt[static-libs]
39 || ( >=sys-fs/lvm2-2.02.88[static-libs] <sys-fs/lvm2-2.02.88 )
40 || ( >=sys-fs/udev-182[static-libs] <=sys-fs/udev-171-r8 =sys-fs/udev-171* )
41 )"
42
43 pkg_setup() {
44 local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC"
45 local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
46 local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
47 local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
48 check_extra_config
49 }
50
51 src_prepare() {
52 sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test
53 elibtoolize
54 }
55
56 src_configure() {
57 econf \
58 --sbindir=/sbin \
59 --enable-shared \
60 $(use_enable static static-cryptsetup) \
61 $(use_enable nls) \
62 $(use_enable selinux)
63 }
64
65 src_test() {
66 if [[ ! -e /dev/mapper/control ]] ; then
67 ewarn "No /dev/mapper/control found -- skipping tests"
68 return 0
69 fi
70 default
71 }
72
73 src_install() {
74 emake DESTDIR="${D}" install || die
75 use static && { mv "${D}"/sbin/cryptsetup{.static,} || die ; }
76 dodoc TODO ChangeLog README NEWS
77
78 newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt || die
79 newinitd "${FILESDIR}"/1.4.1-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 elog
99 elog "Users using cryptsetup-1.0.x (dm-crypt plain) volumes must use"
100 elog "a compatibility mode when using cryptsetup-1.1.x. This can be"
101 elog "done by specifying the cipher (-c), key size (-s) and hash (-h)."
102 elog "For more info, see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Issues_with_Specific_Versions_of_cryptsetup"
103 }

  ViewVC Help
Powered by ViewVC 1.1.20