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

Contents of /sys-fs/cryptsetup/cryptsetup-1.2.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Oct 21 13:37:06 2012 UTC (22 months ago) by ssuominen
Branch: MAIN
Changes since 1.11: +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.2.0-r1.ebuild,v 1.11 2012/05/21 07:55:41 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="nls selinux +static"
18
19 S=${WORKDIR}/${MY_P}
20
21 RDEPEND="
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 '/enable_static_cryptsetup=yes/d' configure #350463
53 sed -i '/^LOOPDEV=/s:=.*:=`losetup -f` || exit 0:' tests/{compat,mode}-test
54 elibtoolize
55 }
56
57 src_configure() {
58 econf \
59 --sbindir=/sbin \
60 --enable-shared \
61 --libdir=/usr/$(get_libdir) \
62 $(use_enable static static-cryptsetup) \
63 $(use_enable nls) \
64 $(use_enable selinux)
65 }
66
67 src_test() {
68 if [[ ! -e /dev/mapper/control ]] ; then
69 ewarn "No /dev/mapper/control found -- skipping tests"
70 return 0
71 fi
72 default
73 }
74
75 src_install() {
76 emake DESTDIR="${D}" install || die
77 use static && { mv "${D}"/sbin/cryptsetup{.static,} || die ; }
78 dodoc TODO ChangeLog README NEWS
79
80 insinto /$(get_libdir)/rcscripts/addons
81 newins "${FILESDIR}"/1.1.3-dm-crypt-start.sh dm-crypt-start.sh || die
82 newins "${FILESDIR}"/1.1.3-dm-crypt-stop.sh dm-crypt-stop.sh || die
83 newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt || die
84 newinitd "${FILESDIR}"/1.0.5-dmcrypt.rc dmcrypt || die
85 }
86
87 pkg_postinst() {
88 ewarn "This ebuild introduces a new set of scripts and configuration"
89 ewarn "than the last version. If you are currently using /etc/conf.d/cryptfs"
90 ewarn "then you *MUST* copy your old file to:"
91 ewarn "/etc/conf.d/dmcrypt"
92 ewarn "Or your encrypted partitions will *NOT* work."
93 elog "Please see the example for configuring a LUKS mountpoint"
94 elog "in /etc/conf.d/dmcrypt"
95 elog
96 elog "If you are using baselayout-2 then please do:"
97 elog "rc-update add dmcrypt boot"
98 elog "This version introduces a command line arguement 'key_timeout'."
99 elog "If you want the search for the removable key device to timeout"
100 elog "after 10 seconds add the following to your bootloader config:"
101 elog "key_timeout=10"
102 elog "A timeout of 0 will mean it will wait indefinitely."
103 elog
104 elog "Users using cryptsetup-1.0.x (dm-crypt plain) volumes must use"
105 elog "a compatibility mode when using cryptsetup-1.1.x. This can be"
106 elog "done by specifying the cipher (-c), key size (-s) and hash (-h)."
107 elog "For more info, see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Issues_with_Specific_Versions_of_cryptsetup"
108 }

  ViewVC Help
Powered by ViewVC 1.1.20