1 |
radhermit 13/06/04 18:58:59 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: cryptsetup-1.6.1.ebuild |
5 |
Log: |
6 |
Version bump (bug #464610 by Manuel Rüger), convert to python-single-r1, add support for choosing a crypto backend (gcrypt, kernel, nettle, or openssl), remove old postinst warning, and only show postinst logs on new installs. |
7 |
|
8 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.8 sys-fs/cryptsetup/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/metadata.xml?rev=1.8&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/metadata.xml?rev=1.8&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/metadata.xml?r1=1.7&r2=1.8 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/metadata.xml,v |
20 |
retrieving revision 1.7 |
21 |
retrieving revision 1.8 |
22 |
diff -u -r1.7 -r1.8 |
23 |
--- metadata.xml 17 Jan 2013 23:35:08 -0000 1.7 |
24 |
+++ metadata.xml 4 Jun 2013 18:58:59 -0000 1.8 |
25 |
@@ -4,6 +4,10 @@ |
26 |
<herd>base-system</herd> |
27 |
<use> |
28 |
<flag name="dynamic">Build cryptsetup dynamically</flag> |
29 |
+ <flag name="gcrypt">Enable the <pkg>dev-libs/libgcrypt</pkg> crypto backend</flag> |
30 |
+ <flag name="kernel">Enable the kernel crypto backend</flag> |
31 |
+ <flag name="nettle">Enable the <pkg>dev-libs/nettle</pkg> crypto backend</flag> |
32 |
+ <flag name="openssl">Enable the <pkg>dev-libs/openssl</pkg> crypto backend</flag> |
33 |
<flag name="urandom">Use /dev/urandom instead of /dev/random</flag> |
34 |
<flag name="reencrypt">Build cryptsetup-reencrypt</flag> |
35 |
</use> |
36 |
|
37 |
|
38 |
|
39 |
1.150 sys-fs/cryptsetup/ChangeLog |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.150&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.150&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/ChangeLog?r1=1.149&r2=1.150 |
44 |
|
45 |
Index: ChangeLog |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v |
48 |
retrieving revision 1.149 |
49 |
retrieving revision 1.150 |
50 |
diff -u -r1.149 -r1.150 |
51 |
--- ChangeLog 9 Apr 2013 10:06:06 -0000 1.149 |
52 |
+++ ChangeLog 4 Jun 2013 18:58:59 -0000 1.150 |
53 |
@@ -1,6 +1,14 @@ |
54 |
# ChangeLog for sys-fs/cryptsetup |
55 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.149 2013/04/09 10:06:06 ssuominen Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.150 2013/06/04 18:58:59 radhermit Exp $ |
58 |
+ |
59 |
+*cryptsetup-1.6.1 (04 Jun 2013) |
60 |
+ |
61 |
+ 04 Jun 2013; Tim Harder <radhermit@g.o> +cryptsetup-1.6.1.ebuild, |
62 |
+ metadata.xml: |
63 |
+ Version bump (bug #464610 by Manuel Rüger), convert to python-single-r1, add |
64 |
+ support for choosing a crypto backend (gcrypt, kernel, nettle, or openssl), |
65 |
+ remove old postinst warning, and only show postinst logs on new installs. |
66 |
|
67 |
09 Apr 2013; Samuli Suominen <ssuominen@g.o> |
68 |
cryptsetup-1.0.6-r2.ebuild: |
69 |
|
70 |
|
71 |
|
72 |
1.1 sys-fs/cryptsetup/cryptsetup-1.6.1.ebuild |
73 |
|
74 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.6.1.ebuild?rev=1.1&view=markup |
75 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.6.1.ebuild?rev=1.1&content-type=text/plain |
76 |
|
77 |
Index: cryptsetup-1.6.1.ebuild |
78 |
=================================================================== |
79 |
# Copyright 1999-2013 Gentoo Foundation |
80 |
# Distributed under the terms of the GNU General Public License v2 |
81 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.6.1.ebuild,v 1.1 2013/06/04 18:58:59 radhermit Exp $ |
82 |
|
83 |
EAPI=5 |
84 |
PYTHON_COMPAT=( python{2_5,2_6,2_7} ) |
85 |
|
86 |
inherit python-single-r1 linux-info libtool eutils |
87 |
|
88 |
DESCRIPTION="Tool to setup encrypted devices with dm-crypt" |
89 |
HOMEPAGE="http://code.google.com/p/cryptsetup/" |
90 |
SRC_URI="http://cryptsetup.googlecode.com/files/${P}.tar.bz2" |
91 |
|
92 |
LICENSE="GPL-2+" |
93 |
SLOT="0" |
94 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
95 |
CRYPTO_BACKENDS="+gcrypt kernel nettle openssl" |
96 |
# we don't support nss since it doesn't allow cryptsetup to be built statically |
97 |
# and it's missing ripemd160 support so it can't provide full backward compatibility |
98 |
IUSE="${CRYPTO_BACKENDS} nls python reencrypt selinux static static-libs udev urandom" |
99 |
REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} ) |
100 |
python? ( ${PYTHON_REQUIRED_USE} )" |
101 |
|
102 |
LIB_DEPEND="dev-libs/libgpg-error[static-libs(+)] |
103 |
dev-libs/popt[static-libs(+)] |
104 |
sys-apps/util-linux[static-libs(+)] |
105 |
gcrypt? ( dev-libs/libgcrypt[-caps,static-libs(+)] ) |
106 |
nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] ) |
107 |
openssl? ( dev-libs/openssl[static-libs(+)] ) |
108 |
sys-fs/lvm2[static-libs(+)] |
109 |
sys-libs/e2fsprogs-libs[static-libs(+)] |
110 |
udev? ( virtual/udev[static-libs(+)] )" |
111 |
# We have to always depend on ${LIB_DEPEND} rather than put behind |
112 |
# static? () because we provide a shared library which links against |
113 |
# these other packages. #414665 |
114 |
RDEPEND="static-libs? ( ${LIB_DEPEND} ) |
115 |
${LIB_DEPEND//\[static-libs(+)]} |
116 |
selinux? ( sys-libs/libselinux ) |
117 |
python? ( ${PYTHON_DEPS} )" |
118 |
DEPEND="${RDEPEND} |
119 |
virtual/pkgconfig |
120 |
static? ( ${LIB_DEPEND} )" |
121 |
|
122 |
pkg_setup() { |
123 |
local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC" |
124 |
local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n" |
125 |
local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n" |
126 |
local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n" |
127 |
check_extra_config |
128 |
|
129 |
use python && python-single-r1_pkg_setup |
130 |
} |
131 |
|
132 |
src_prepare() { |
133 |
sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test || die |
134 |
elibtoolize |
135 |
} |
136 |
|
137 |
src_configure() { |
138 |
if use kernel ; then |
139 |
ewarn "Note that kernel backend is very slow for this type of operation" |
140 |
ewarn "and is provided mainly for embedded systems wanting to avoid" |
141 |
ewarn "userspace crypto libraries." |
142 |
fi |
143 |
|
144 |
econf \ |
145 |
--sbindir=/sbin \ |
146 |
--enable-shared \ |
147 |
$(use_enable static static-cryptsetup) \ |
148 |
$(use_enable static-libs static) \ |
149 |
$(use_enable nls) \ |
150 |
$(use_enable python) \ |
151 |
$(use_enable reencrypt cryptsetup-reencrypt) \ |
152 |
$(use_enable selinux) \ |
153 |
$(use_enable udev) \ |
154 |
$(use_enable !urandom dev-random) \ |
155 |
--with-crypto_backend=$(for x in ${CRYPTO_BACKENDS//+/}; do use ${x} && echo ${x} ; done) |
156 |
} |
157 |
|
158 |
src_test() { |
159 |
if [[ ! -e /dev/mapper/control ]] ; then |
160 |
ewarn "No /dev/mapper/control found -- skipping tests" |
161 |
return 0 |
162 |
fi |
163 |
local p |
164 |
for p in /dev/mapper /dev/loop* ; do |
165 |
addwrite ${p} |
166 |
done |
167 |
default |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
default |
172 |
if use static ; then |
173 |
mv "${ED}"/sbin/cryptsetup{.static,} || die |
174 |
mv "${ED}"/sbin/veritysetup{.static,} || die |
175 |
use reencrypt && { mv "${ED}"/sbin/cryptsetup-reencrypt{.static,} || die ; } |
176 |
fi |
177 |
prune_libtool_files --modules |
178 |
|
179 |
newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt |
180 |
newinitd "${FILESDIR}"/1.5.1-dmcrypt.rc dmcrypt |
181 |
} |
182 |
|
183 |
pkg_postinst() { |
184 |
if [[ -z ${REPLACING_VERSIONS} ]] ; then |
185 |
elog "Please see the example for configuring a LUKS mountpoint" |
186 |
elog "in /etc/conf.d/dmcrypt" |
187 |
elog |
188 |
elog "If you are using baselayout-2 then please do:" |
189 |
elog "rc-update add dmcrypt boot" |
190 |
elog "This version introduces a command line arguement 'key_timeout'." |
191 |
elog "If you want the search for the removable key device to timeout" |
192 |
elog "after 10 seconds add the following to your bootloader config:" |
193 |
elog "key_timeout=10" |
194 |
elog "A timeout of 0 will mean it will wait indefinitely." |
195 |
elog |
196 |
elog "Users using cryptsetup-1.0.x (dm-crypt plain) volumes must use" |
197 |
elog "a compatibility mode when using cryptsetup-1.1.x. This can be" |
198 |
elog "done by specifying the cipher (-c), key size (-s) and hash (-h)." |
199 |
elog "For more info, see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Issues_with_Specific_Versions_of_cryptsetup" |
200 |
fi |
201 |
} |