Gentoo Archives: gentoo-commits

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