1 |
vapier 08/10/05 21:01:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cryptsetup-1.0.6-r2.ebuild |
5 |
Log: |
6 |
Do not bang directly on /dev/console so we dont break when running under X or something. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.62 sys-fs/cryptsetup/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.62&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.62&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/ChangeLog?r1=1.61&r2=1.62 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v |
19 |
retrieving revision 1.61 |
20 |
retrieving revision 1.62 |
21 |
diff -u -r1.61 -r1.62 |
22 |
--- ChangeLog 15 Sep 2008 19:34:07 -0000 1.61 |
23 |
+++ ChangeLog 5 Oct 2008 21:01:33 -0000 1.62 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-fs/cryptsetup |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.61 2008/09/15 19:34:07 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.62 2008/10/05 21:01:33 vapier Exp $ |
29 |
+ |
30 |
+*cryptsetup-1.0.6-r2 (05 Oct 2008) |
31 |
+ |
32 |
+ 05 Oct 2008; Mike Frysinger <vapier@g.o> |
33 |
+ +files/1.0.6-dmcrypt.confd, +files/1.0.6-r2-dm-crypt-start.sh, |
34 |
+ +cryptsetup-1.0.6-r2.ebuild: |
35 |
+ Do not bang directly on /dev/console so we dont break when running under X |
36 |
+ or something. |
37 |
|
38 |
15 Sep 2008; Robin H. Johnson <robbat2@g.o> |
39 |
cryptsetup-1.0.6-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-fs/cryptsetup/cryptsetup-1.0.6-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.0.6-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.0.6-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: cryptsetup-1.0.6-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 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.6-r2.ebuild,v 1.1 2008/10/05 21:01:33 vapier 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 |
>=sys-fs/udev-124 |
70 |
selinux? ( sys-libs/libselinux ) |
71 |
!sys-fs/cryptsetup-luks" |
72 |
|
73 |
dm-crypt_check() { |
74 |
local CONFIG_CHECK="~DM_CRYPT" |
75 |
local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n" |
76 |
check_extra_config |
77 |
} |
78 |
|
79 |
crypto_check() { |
80 |
local CONFIG_CHECK="~CRYPTO" |
81 |
local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n" |
82 |
check_extra_config |
83 |
} |
84 |
|
85 |
cbc_check() { |
86 |
local CONFIG_CHECK="~CRYPTO_CBC" |
87 |
local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n" |
88 |
check_extra_config |
89 |
} |
90 |
|
91 |
pkg_setup() { |
92 |
dm-crypt_check |
93 |
crypto_check |
94 |
cbc_check |
95 |
|
96 |
if use dynamic ; then |
97 |
ewarn "If you need cryptsetup for an initrd or initramfs then you" |
98 |
ewarn "should NOT use the dynamic USE flag" |
99 |
epause 5 |
100 |
fi |
101 |
} |
102 |
|
103 |
src_unpack() { |
104 |
unpack ${A} |
105 |
cd "${S}" |
106 |
|
107 |
# fix for bug #236481, use udevadm instead of udevsettle |
108 |
epatch "${FILESDIR}"/${PN}-1.0.6-udevsettle.patch |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
econf \ |
113 |
--sbindir=/sbin \ |
114 |
$(use_enable !dynamic static) \ |
115 |
--libdir=/usr/$(get_libdir) \ |
116 |
$(use_enable nls) \ |
117 |
$(use_enable selinux) \ |
118 |
|| die |
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.6-r2-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.6-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 "than 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 |
} |