Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/cryptsetup: cryptsetup-1.6.3.ebuild ChangeLog
Date: Fri, 27 Dec 2013 19:15:29
Message-Id: 20131227191524.5291C2004C@flycatcher.gentoo.org
1 polynomial-c 13/12/27 19:15:24
2
3 Modified: ChangeLog
4 Added: cryptsetup-1.6.3.ebuild
5 Log:
6 Version bump by Manuel Rüger (bug #496126)
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
9
10 Revision Changes Path
11 1.164 sys-fs/cryptsetup/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.164&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/ChangeLog?rev=1.164&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/ChangeLog?r1=1.163&r2=1.164
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v
20 retrieving revision 1.163
21 retrieving revision 1.164
22 diff -u -r1.163 -r1.164
23 --- ChangeLog 23 Dec 2013 16:23:00 -0000 1.163
24 +++ ChangeLog 27 Dec 2013 19:15:24 -0000 1.164
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-fs/cryptsetup
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.163 2013/12/23 16:23:00 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/ChangeLog,v 1.164 2013/12/27 19:15:24 polynomial-c Exp $
30 +
31 +*cryptsetup-1.6.3 (27 Dec 2013)
32 +
33 + 27 Dec 2013; Lars Wendler <polynomial-c@g.o> +cryptsetup-1.6.3.ebuild:
34 + Version bump by Manuel Rüger (bug #496126).
35
36 23 Dec 2013; Agostino Sarubbo <ago@g.o> cryptsetup-1.6.2.ebuild:
37 Stable for sparc, wrt bug #487652
38
39
40
41 1.1 sys-fs/cryptsetup/cryptsetup-1.6.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.6.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.6.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cryptsetup-1.6.3.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.6.3.ebuild,v 1.1 2013/12/27 19:15:24 polynomial-c Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_6,2_7} )
54
55 inherit autotools python-single-r1 linux-info libtool eutils
56
57 DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
58 HOMEPAGE="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 CRYPTO_BACKENDS="+gcrypt kernel nettle openssl"
65 # we don't support nss since it doesn't allow cryptsetup to be built statically
66 # and it's missing ripemd160 support so it can't provide full backward compatibility
67 IUSE="${CRYPTO_BACKENDS} nls python reencrypt static static-libs udev urandom"
68 REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} )
69 python? ( ${PYTHON_REQUIRED_USE} )"
70
71 LIB_DEPEND="dev-libs/libgpg-error[static-libs(+)]
72 dev-libs/popt[static-libs(+)]
73 sys-apps/util-linux[static-libs(+)]
74 gcrypt? ( dev-libs/libgcrypt[static-libs(+)] )
75 nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] )
76 openssl? ( dev-libs/openssl[static-libs(+)] )
77 sys-fs/lvm2[static-libs(+)]
78 sys-libs/e2fsprogs-libs[static-libs(+)]
79 udev? ( virtual/udev[static-libs(+)] )"
80 # We have to always depend on ${LIB_DEPEND} rather than put behind
81 # !static? () because we provide a shared library which links against
82 # these other packages. #414665
83 RDEPEND="static-libs? ( ${LIB_DEPEND} )
84 ${LIB_DEPEND//\[static-libs\(+\)\]}
85 python? ( ${PYTHON_DEPS} )"
86 DEPEND="${RDEPEND}
87 virtual/pkgconfig
88 static? ( ${LIB_DEPEND} )"
89
90 pkg_setup() {
91 local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC"
92 local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
93 local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
94 local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
95 check_extra_config
96
97 use python && python-single-r1_pkg_setup
98 }
99
100 src_prepare() {
101 sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test || die
102 eautoreconf
103 }
104
105 src_configure() {
106 if use kernel ; then
107 ewarn "Note that kernel backend is very slow for this type of operation"
108 ewarn "and is provided mainly for embedded systems wanting to avoid"
109 ewarn "userspace crypto libraries."
110 fi
111
112 econf \
113 --sbindir=/sbin \
114 --enable-shared \
115 $(use_enable static static-cryptsetup) \
116 $(use_enable static-libs static) \
117 $(use_enable nls) \
118 $(use_enable python) \
119 $(use_enable reencrypt cryptsetup-reencrypt) \
120 $(use_enable udev) \
121 $(use_enable !urandom dev-random) \
122 --with-crypto_backend=$(for x in ${CRYPTO_BACKENDS//+/}; do use ${x} && echo ${x} ; done)
123 }
124
125 src_test() {
126 if [[ ! -e /dev/mapper/control ]] ; then
127 ewarn "No /dev/mapper/control found -- skipping tests"
128 return 0
129 fi
130 local p
131 for p in /dev/mapper /dev/loop* ; do
132 addwrite ${p}
133 done
134 default
135 }
136
137 src_install() {
138 default
139 if use static ; then
140 mv "${ED}"/sbin/cryptsetup{.static,} || die
141 mv "${ED}"/sbin/veritysetup{.static,} || die
142 use reencrypt && { mv "${ED}"/sbin/cryptsetup-reencrypt{.static,} || die ; }
143 fi
144 prune_libtool_files --modules
145
146 newconfd "${FILESDIR}"/1.0.6-dmcrypt.confd dmcrypt
147 newinitd "${FILESDIR}"/1.5.1-dmcrypt.rc dmcrypt
148 }
149
150 pkg_postinst() {
151 if [[ -z ${REPLACING_VERSIONS} ]] ; then
152 elog "Please see the example for configuring a LUKS mountpoint"
153 elog "in /etc/conf.d/dmcrypt"
154 elog
155 elog "If you are using baselayout-2 then please do:"
156 elog "rc-update add dmcrypt boot"
157 elog "This version introduces a command line arguement 'key_timeout'."
158 elog "If you want the search for the removable key device to timeout"
159 elog "after 10 seconds add the following to your bootloader config:"
160 elog "key_timeout=10"
161 elog "A timeout of 0 will mean it will wait indefinitely."
162 elog
163 elog "Users using cryptsetup-1.0.x (dm-crypt plain) volumes must use"
164 elog "a compatibility mode when using cryptsetup-1.1.x. This can be"
165 elog "done by specifying the cipher (-c), key size (-s) and hash (-h)."
166 elog "For more info, see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Issues_with_Specific_Versions_of_cryptsetup"
167 fi
168 }