Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/cryptsetup: cryptsetup-1.0.7-r1.ebuild ChangeLog
Date: Mon, 30 Nov 2009 00:53:59
Message-Id: E1NEuWY-0007qA-OI@stork.gentoo.org
1 robbat2 09/11/30 00:53:54
2
3 Modified: ChangeLog
4 Added: cryptsetup-1.0.7-r1.ebuild
5 Log:
6 Bug #276803: old sys-fs/devicemapper not supported anymore. Use the new lvm2-2.02.56-r1 for safe static linking.
7 (Portage version: 2.2_rc51/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.78 sys-fs/cryptsetup/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.78&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.78&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/ChangeLog?r1=1.77&r2=1.78
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v
19 retrieving revision 1.77
20 retrieving revision 1.78
21 diff -p -w -b -B -u -u -r1.77 -r1.78
22 --- ChangeLog 28 Nov 2009 00:32:54 -0000 1.77
23 +++ ChangeLog 30 Nov 2009 00:53:54 -0000 1.78
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-fs/cryptsetup
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.77 2009/11/28 00:32:54 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.78 2009/11/30 00:53:54 robbat2 Exp $
29 +
30 +*cryptsetup-1.0.7-r1 (30 Nov 2009)
31 +
32 + 30 Nov 2009; Robin H. Johnson <robbat2@g.o>
33 + +cryptsetup-1.0.7-r1.ebuild:
34 + Bug #276803: old sys-fs/devicemapper not supported anymore. Use the new
35 + lvm2-2.02.56-r1 for safe static linking.
36
37 *cryptsetup-1.0.7 (28 Nov 2009)
38
39
40
41
42 1.1 sys-fs/cryptsetup/cryptsetup-1.0.7-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.0.7-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.0.7-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cryptsetup-1.0.7-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.0.7-r1.ebuild,v 1.1 2009/11/30 00:53:54 robbat2 Exp $
52
53 EAPI=2
54
55 inherit linux-info eutils flag-o-matic multilib
56
57 DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
58 HOMEPAGE="http://luks.endorphin.org/ http://code.google.com/p/cryptsetup/"
59 SRC_URI="http://cryptsetup.googlecode.com/files/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
64 IUSE="dynamic nls selinux"
65
66 DEPEND="
67 >=sys-fs/lvm2-2.02.56-r1
68 >=dev-libs/libgcrypt-1.1.42
69 >=dev-libs/libgpg-error-1.0-r1
70 >=dev-libs/popt-1.7
71 >=sys-fs/udev-124
72 || ( >=sys-libs/e2fsprogs-libs-1.41 <sys-fs/e2fsprogs-1.41 )
73 selinux? ( sys-libs/libselinux )
74 !sys-fs/cryptsetup-luks"
75
76 dm-crypt_check() {
77 local CONFIG_CHECK="~DM_CRYPT"
78 local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
79 check_extra_config
80 }
81
82 crypto_check() {
83 local CONFIG_CHECK="~CRYPTO"
84 local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
85 check_extra_config
86 }
87
88 cbc_check() {
89 local CONFIG_CHECK="~CRYPTO_CBC"
90 local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
91 check_extra_config
92 }
93
94 pkg_setup() {
95 dm-crypt_check
96 crypto_check
97 cbc_check
98
99 if use dynamic ; then
100 ewarn "If you need cryptsetup for an initrd or initramfs then you"
101 ewarn "should NOT use the dynamic USE flag"
102 epause 5
103 fi
104 }
105
106 src_configure() {
107 use selinux || export ac_cv_lib_selinux_is_selinux_enabled=no
108 econf \
109 --sbindir=/sbin \
110 $(use_enable !dynamic static) \
111 --enable-libgcrypt \
112 --enable-libdevmapper \
113 --libdir=/usr/$(get_libdir) \
114 $(use_enable nls) \
115 || die
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" install || die "install failed"
120 rmdir "${D}"/usr/$(get_libdir)/cryptsetup
121 insinto /$(get_libdir)/rcscripts/addons
122 newins "${FILESDIR}"/1.0.6-r2-dm-crypt-start.sh dm-crypt-start.sh || die
123 newins "${FILESDIR}"/1.0.5-dm-crypt-stop.sh dm-crypt-stop.sh || die
124 newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt || die
125 newinitd "${FILESDIR}"/1.0.5-dmcrypt.rc dmcrypt || die
126 }
127
128 pkg_postinst() {
129 ewarn "This ebuild introduces a new set of scripts and configuration"
130 ewarn "than the last version. If you are currently using /etc/conf.d/cryptfs"
131 ewarn "then you *MUST* copy your old file to:"
132 ewarn "/etc/conf.d/dmcrypt"
133 ewarn "Or your encrypted partitions will *NOT* work."
134 elog "Please see the example for configuring a LUKS mountpoint"
135 elog "in /etc/conf.d/dmcrypt"
136 elog
137 elog "If you are using baselayout-2 then please do:"
138 elog "rc-update add dmcrypt boot"
139 elog "This version introduces a command line arguement 'key_timeout'."
140 elog "If you want the search for the removable key device to timeout"
141 elog "after 10 seconds add the following to your bootloader config:"
142 elog "key_timeout=10"
143 elog "A timeout of 0 will mean it will wait indefinitely."
144 }