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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Feb 27 08:31:00 2012 UTC (2 years, 5 months ago) by robbat2
Branch: MAIN
Changes since 1.6: +5 -3 lines
Stable version is bitten by the util-linux static-libs as well, per https://forums.gentoo.org/viewtopic-t-914468.html.

(Portage version: 2.2.0_alpha89/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.1.3-r3.ebuild,v 1.6 2011/03/17 16:25:12 ssuominen Exp $
4
5 EAPI="2"
6
7 inherit linux-info eutils multilib 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="dynamic nls selinux"
18
19 S=${WORKDIR}/${MY_P}
20
21 RDEPEND=">=sys-fs/lvm2-2.02.64
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 >=sys-apps/util-linux-2.17.2"
30 DEPEND="${RDEPEND}
31 !dynamic? (
32 || ( >=dev-libs/libgpg-error-1.10[static-libs] <dev-libs/libgpg-error-1.10 )
33 || ( >=dev-libs/popt-1.16-r1[static-libs] <dev-libs/popt-1.16-r1 )
34 dev-libs/libgcrypt[static-libs]
35 || ( >=sys-apps/util-linux-2.20[static-libs] <sys-apps/util-linux-2.20 )
36 )"
37
38 pkg_setup() {
39 local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC"
40 local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
41 local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
42 local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
43 check_extra_config
44
45 if use dynamic ; then
46 ewarn "If you need cryptsetup for an initrd or initramfs then you"
47 ewarn "should NOT use the dynamic USE flag"
48 epause 5
49 fi
50 }
51
52 src_prepare() {
53 elibtoolize
54 }
55
56 src_configure() {
57 econf \
58 --sbindir=/sbin \
59 --enable-shared \
60 $(use_enable !dynamic static) \
61 --libdir=/usr/$(get_libdir) \
62 $(use_enable nls) \
63 $(use_enable selinux)
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" install || die
68 dodoc TODO ChangeLog # README NEWS # last ones are empty
69
70 insinto /$(get_libdir)/rcscripts/addons
71 newins "${FILESDIR}"/1.1.3-dm-crypt-start.sh dm-crypt-start.sh || die
72 newins "${FILESDIR}"/1.1.3-dm-crypt-stop.sh dm-crypt-stop.sh || die
73 newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt || die
74 newinitd "${FILESDIR}"/1.0.5-dmcrypt.rc dmcrypt || die
75 }
76
77 pkg_postinst() {
78 ewarn "This ebuild introduces a new set of scripts and configuration"
79 ewarn "than the last version. If you are currently using /etc/conf.d/cryptfs"
80 ewarn "then you *MUST* copy your old file to:"
81 ewarn "/etc/conf.d/dmcrypt"
82 ewarn "Or your encrypted partitions will *NOT* work."
83 elog "Please see the example for configuring a LUKS mountpoint"
84 elog "in /etc/conf.d/dmcrypt"
85 elog
86 elog "If you are using baselayout-2 then please do:"
87 elog "rc-update add dmcrypt boot"
88 elog "This version introduces a command line arguement 'key_timeout'."
89 elog "If you want the search for the removable key device to timeout"
90 elog "after 10 seconds add the following to your bootloader config:"
91 elog "key_timeout=10"
92 elog "A timeout of 0 will mean it will wait indefinitely."
93 elog
94 elog "Users using cryptsetup-1.0.x (dm-crypt plain) volumes must use"
95 elog "a compatibility mode when using cryptsetup-1.1.x. This can be"
96 elog "done by specifying the cipher (-c), key size (-s) and hash (-h)."
97 elog "For more info, see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Issues_with_Specific_Versions_of_cryptsetup"
98
99 }

  ViewVC Help
Powered by ViewVC 1.1.20