Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/cryptsetup/
Date: Sun, 28 Feb 2016 20:37:51
Message-Id: 1456691861.e2d28b80d71225f33d8c10be52659713a477ef34.polynomial-c@gentoo
1 commit: e2d28b80d71225f33d8c10be52659713a477ef34
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 20:36:49 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 20:37:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2d28b80
7
8 sys-fs/cryptsetup: Removed old.
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-fs/cryptsetup/cryptsetup-1.6.8.ebuild | 103 ----------------------------
14 sys-fs/cryptsetup/cryptsetup-1.7.0.ebuild | 107 ------------------------------
15 2 files changed, 210 deletions(-)
16
17 diff --git a/sys-fs/cryptsetup/cryptsetup-1.6.8.ebuild b/sys-fs/cryptsetup/cryptsetup-1.6.8.ebuild
18 deleted file mode 100644
19 index 36607d9..0000000
20 --- a/sys-fs/cryptsetup/cryptsetup-1.6.8.ebuild
21 +++ /dev/null
22 @@ -1,103 +0,0 @@
23 -# Copyright 1999-2015 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -# $Id$
26 -
27 -EAPI=5
28 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
29 -
30 -inherit autotools python-single-r1 linux-info libtool eutils versionator
31 -
32 -DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
33 -HOMEPAGE="https://gitlab.com/cryptsetup/cryptsetup/blob/master/README.md"
34 -SRC_URI="mirror://kernel/linux/utils/${PN}/v$(get_version_component_range 1-2)/${P}.tar.xz"
35 -
36 -LICENSE="GPL-2+"
37 -SLOT="0"
38 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
39 -CRYPTO_BACKENDS="+gcrypt kernel nettle openssl"
40 -# we don't support nss since it doesn't allow cryptsetup to be built statically
41 -# and it's missing ripemd160 support so it can't provide full backward compatibility
42 -IUSE="${CRYPTO_BACKENDS} nls pwquality python reencrypt static static-libs udev urandom"
43 -REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} )
44 - python? ( ${PYTHON_REQUIRED_USE} )
45 - static? ( !gcrypt )" #496612
46 -
47 -LIB_DEPEND="dev-libs/libgpg-error[static-libs(+)]
48 - dev-libs/popt[static-libs(+)]
49 - sys-apps/util-linux[static-libs(+)]
50 - gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] )
51 - nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] )
52 - openssl? ( dev-libs/openssl:0=[static-libs(+)] )
53 - pwquality? ( dev-libs/libpwquality[static-libs(+)] )
54 - sys-fs/lvm2[static-libs(+)]
55 - udev? ( virtual/libudev[static-libs(+)] )"
56 -# We have to always depend on ${LIB_DEPEND} rather than put behind
57 -# !static? () because we provide a shared library which links against
58 -# these other packages. #414665
59 -RDEPEND="static-libs? ( ${LIB_DEPEND} )
60 - ${LIB_DEPEND//\[static-libs\(+\)\]}
61 - python? ( ${PYTHON_DEPS} )"
62 -DEPEND="${RDEPEND}
63 - virtual/pkgconfig
64 - static? ( ${LIB_DEPEND} )"
65 -
66 -pkg_setup() {
67 - local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC"
68 - local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
69 - local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
70 - local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
71 - check_extra_config
72 -
73 - use python && python-single-r1_pkg_setup
74 -}
75 -
76 -src_prepare() {
77 - sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test || die
78 - epatch_user && eautoreconf
79 -}
80 -
81 -src_configure() {
82 - if use kernel ; then
83 - ewarn "Note that kernel backend is very slow for this type of operation"
84 - ewarn "and is provided mainly for embedded systems wanting to avoid"
85 - ewarn "userspace crypto libraries."
86 - fi
87 -
88 - econf \
89 - --sbindir=/sbin \
90 - --enable-shared \
91 - $(use_enable static static-cryptsetup) \
92 - $(use_enable static-libs static) \
93 - $(use_enable nls) \
94 - $(use_enable pwquality) \
95 - $(use_enable python) \
96 - $(use_enable reencrypt cryptsetup-reencrypt) \
97 - $(use_enable udev) \
98 - $(use_enable !urandom dev-random) \
99 - --with-crypto_backend=$(for x in ${CRYPTO_BACKENDS//+/} ; do usev ${x} ; done)
100 -}
101 -
102 -src_test() {
103 - if [[ ! -e /dev/mapper/control ]] ; then
104 - ewarn "No /dev/mapper/control found -- skipping tests"
105 - return 0
106 - fi
107 - local p
108 - for p in /dev/mapper /dev/loop* ; do
109 - addwrite ${p}
110 - done
111 - default
112 -}
113 -
114 -src_install() {
115 - default
116 - if use static ; then
117 - mv "${ED}"/sbin/cryptsetup{.static,} || die
118 - mv "${ED}"/sbin/veritysetup{.static,} || die
119 - use reencrypt && { mv "${ED}"/sbin/cryptsetup-reencrypt{.static,} || die ; }
120 - fi
121 - prune_libtool_files --modules
122 -
123 - newconfd "${FILESDIR}"/1.6.7-dmcrypt.confd dmcrypt
124 - newinitd "${FILESDIR}"/1.6.7-dmcrypt.rc dmcrypt
125 -}
126
127 diff --git a/sys-fs/cryptsetup/cryptsetup-1.7.0.ebuild b/sys-fs/cryptsetup/cryptsetup-1.7.0.ebuild
128 deleted file mode 100644
129 index a5ac9df..0000000
130 --- a/sys-fs/cryptsetup/cryptsetup-1.7.0.ebuild
131 +++ /dev/null
132 @@ -1,107 +0,0 @@
133 -# Copyright 1999-2015 Gentoo Foundation
134 -# Distributed under the terms of the GNU General Public License v2
135 -# $Id$
136 -
137 -EAPI=5
138 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
139 -
140 -inherit autotools python-single-r1 linux-info libtool eutils versionator
141 -
142 -DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
143 -HOMEPAGE="https://gitlab.com/cryptsetup/cryptsetup/blob/master/README.md"
144 -SRC_URI="mirror://kernel/linux/utils/${PN}/v$(get_version_component_range 1-2)/${P}.tar.xz"
145 -
146 -LICENSE="GPL-2+"
147 -SLOT="0"
148 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
149 -CRYPTO_BACKENDS="+gcrypt kernel nettle openssl"
150 -# we don't support nss since it doesn't allow cryptsetup to be built statically
151 -# and it's missing ripemd160 support so it can't provide full backward compatibility
152 -IUSE="${CRYPTO_BACKENDS} libressl nls pwquality python reencrypt static static-libs udev urandom"
153 -REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} )
154 - python? ( ${PYTHON_REQUIRED_USE} )
155 - static? ( !gcrypt )" #496612
156 -
157 -LIB_DEPEND="dev-libs/libgpg-error[static-libs(+)]
158 - dev-libs/popt[static-libs(+)]
159 - sys-apps/util-linux[static-libs(+)]
160 - gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] )
161 - nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] )
162 - openssl? (
163 - !libressl? ( dev-libs/openssl:0=[static-libs(+)] )
164 - libressl? ( dev-libs/libressl:=[static-libs(+)] )
165 - )
166 - pwquality? ( dev-libs/libpwquality[static-libs(+)] )
167 - sys-fs/lvm2[static-libs(+)]
168 - udev? ( virtual/libudev[static-libs(+)] )"
169 -# We have to always depend on ${LIB_DEPEND} rather than put behind
170 -# !static? () because we provide a shared library which links against
171 -# these other packages. #414665
172 -RDEPEND="static-libs? ( ${LIB_DEPEND} )
173 - ${LIB_DEPEND//\[static-libs\(+\)\]}
174 - python? ( ${PYTHON_DEPS} )"
175 -DEPEND="${RDEPEND}
176 - virtual/pkgconfig
177 - static? ( ${LIB_DEPEND} )"
178 -
179 -pkg_setup() {
180 - local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC ~CRYPTO_SHA256"
181 - local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
182 - local WARNING_CRYPTO_SHA256="CONFIG_CRYPTO_SHA256:\tis not set (required for cryptsetup)\n"
183 - local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n"
184 - local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n"
185 - check_extra_config
186 -
187 - use python && python-single-r1_pkg_setup
188 -}
189 -
190 -src_prepare() {
191 - sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test || die
192 - epatch_user && eautoreconf
193 -}
194 -
195 -src_configure() {
196 - if use kernel ; then
197 - ewarn "Note that kernel backend is very slow for this type of operation"
198 - ewarn "and is provided mainly for embedded systems wanting to avoid"
199 - ewarn "userspace crypto libraries."
200 - fi
201 -
202 - econf \
203 - --sbindir=/sbin \
204 - --enable-shared \
205 - $(use_enable static static-cryptsetup) \
206 - $(use_enable static-libs static) \
207 - $(use_enable nls) \
208 - $(use_enable pwquality) \
209 - $(use_enable python) \
210 - $(use_enable reencrypt cryptsetup-reencrypt) \
211 - $(use_enable udev) \
212 - $(use_enable !urandom dev-random) \
213 - --with-crypto_backend=$(for x in ${CRYPTO_BACKENDS//+/} ; do usev ${x} ; done)
214 -}
215 -
216 -src_test() {
217 - if [[ ! -e /dev/mapper/control ]] ; then
218 - ewarn "No /dev/mapper/control found -- skipping tests"
219 - return 0
220 - fi
221 - local p
222 - for p in /dev/mapper /dev/loop* ; do
223 - addwrite ${p}
224 - done
225 - default
226 -}
227 -
228 -src_install() {
229 - default
230 - if use static ; then
231 - mv "${ED}"/sbin/cryptsetup{.static,} || die
232 - mv "${ED}"/sbin/veritysetup{.static,} || die
233 - use reencrypt && { mv "${ED}"/sbin/cryptsetup-reencrypt{.static,} || die ; }
234 - fi
235 - prune_libtool_files --modules
236 -
237 - newconfd "${FILESDIR}"/1.6.7-dmcrypt.confd dmcrypt
238 - newinitd "${FILESDIR}"/1.6.7-dmcrypt.rc dmcrypt
239 -}