Gentoo Archives: gentoo-commits

From: Alon Bar-Lev <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/loop-aes-losetup/, sys-fs/loop-aes/
Date: Sat, 04 Feb 2017 01:32:03
Message-Id: 1486171854.3ec81dc7cc5f9ac92d5538a27f779455136014d7.alonbl@gentoo
1 commit: 3ec81dc7cc5f9ac92d5538a27f779455136014d7
2 Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 4 01:00:13 2017 +0000
4 Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 4 01:30:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ec81dc7
7
8 sys-fs/loop-aes: cleanup + remove stable
9
10 loop-aes is not stable nor popular
11
12 Package-Manager: portage-2.3.3
13
14 app-crypt/loop-aes-losetup/Manifest | 2 -
15 .../loop-aes-losetup/loop-aes-losetup-2.21.ebuild | 96 ----------------------
16 sys-fs/loop-aes/Manifest | 4 -
17 sys-fs/loop-aes/loop-aes-3.7b.ebuild | 82 ------------------
18 sys-fs/loop-aes/loop-aes-3.7c.ebuild | 83 -------------------
19 sys-fs/loop-aes/loop-aes-3.7e.ebuild | 78 ------------------
20 sys-fs/loop-aes/loop-aes-3.7f.ebuild | 78 ------------------
21 sys-fs/loop-aes/loop-aes-3.7h.ebuild | 2 +-
22 8 files changed, 1 insertion(+), 424 deletions(-)
23
24 diff --git a/app-crypt/loop-aes-losetup/Manifest b/app-crypt/loop-aes-losetup/Manifest
25 index 4cd35f9..c8bf1eb 100644
26 --- a/app-crypt/loop-aes-losetup/Manifest
27 +++ b/app-crypt/loop-aes-losetup/Manifest
28 @@ -1,4 +1,2 @@
29 -DIST util-linux-2.21-20120228.diff.bz2 43809 SHA256 fc28d4f0e2737b53a4db59072ab0fcf4180a8ece28c79219a21780124798572a SHA512 94135ed18699efd949f5937576da2721957177bbef9be8234ae48ee34f30f4cb65361a541f79c636ed6d6bb5c2786e1096d096407834e1421d82ee78ae0790e9 WHIRLPOOL ba23dccc56fc49d7ad9075537317ad4580ace2a4cd8f6b0250f42035c03ba910f3cafa8e8b1da4c7e5a0960d74c42f2706fda579a3b4a6cadc61dccd2fff3ff0
30 -DIST util-linux-2.21.tar.xz 2954504 SHA256 5192e8ba7dcf3cf0dc447f07b3d177f6cb3fb49dfae54ac45d6c8c7d86eeab0f SHA512 aab384db2d1a3e08fd560a3e4d7ed7d6b2ceac61386db94eecae65bd540200a8549e141b99d8dad5c6f96587940b574d0544984acef6a35d1f24870e0072c552 WHIRLPOOL 1968ddd63fd21ef9542bb8afc77292ed2bad6f83e1cd67aa4159db8b320abd80ee0d20a062df35ae2ad91e0bc9068168b9f9e44aa39eaf4861d436dd855bea5d
31 DIST util-linux-2.26-20150310.diff.bz2 41017 SHA256 18d88810d5d6e95313c23162566bcf7e1a7b785bed5dd395127c144127c9e9ef SHA512 c8e7d7a4795d2ed75af5e0513c19510ca649682df86655ecabe1563586bdb46f32bb9abd6cfb09df230f935cfa396e0d63b1545a40a5f4ce47524a82e7dd7ca6 WHIRLPOOL 2ca00b9ec52b64ce1e083b9a706003d1f0445fb5d7f391e28b698c684dba5cb8bc2a590565dcc23ac6527b8099838435b86e7a78097ab8a19491fe14b6c50ca6
32 DIST util-linux-2.26.tar.xz 3847960 SHA256 a23c6f39dea0ed215ccd589509ffc7bb6f706f6e1a04760f493fb0fd7e93c489 SHA512 af07d49a433fce683da7bdf9aea5693ad108aa16166e0147716175bd779fe5090029617dd7db153bc0f5efcf7bdd377761a616efd4cca90a87bf317132ede88c WHIRLPOOL 4f7c9463bfe1523819671824de26e051c496c86884ca34b25208762179345c799fe61e566228ebfcbca2f2b63163539e37b06e438a58f562cf7b53f954564150
33
34 diff --git a/app-crypt/loop-aes-losetup/loop-aes-losetup-2.21.ebuild b/app-crypt/loop-aes-losetup/loop-aes-losetup-2.21.ebuild
35 deleted file mode 100644
36 index 5607877..00000000
37 --- a/app-crypt/loop-aes-losetup/loop-aes-losetup-2.21.ebuild
38 +++ /dev/null
39 @@ -1,96 +0,0 @@
40 -# Copyright 1999-2017 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -# $Id$
43 -
44 -EAPI="4"
45 -
46 -EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
47 -inherit eutils toolchain-funcs flag-o-matic autotools
48 -
49 -MY_PV="${PV/_/-}"
50 -MY_P="util-linux-${MY_PV}"
51 -LOOPAES_PV="${PV}-20120228"
52 -S="${WORKDIR}/${MY_P}"
53 -
54 -DESCRIPTION="Loop-AES losetup utility"
55 -HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
56 -SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz
57 - http://loop-aes.sourceforge.net/updates/util-linux-${LOOPAES_PV}.diff.bz2"
58 -KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-linux"
59 -
60 -LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
61 -SLOT="0"
62 -IUSE="nls selinux uclibc static"
63 -
64 -RDEPEND="selinux? ( sys-libs/libselinux )"
65 -DEPEND="${RDEPEND}
66 - nls? ( sys-devel/gettext )
67 - virtual/os-headers"
68 -
69 -src_prepare() {
70 - epatch "${WORKDIR}"/util-linux-*.diff
71 - use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c
72 - eautoreconf
73 - elibtoolize
74 -}
75 -
76 -lfs_fallocate_test() {
77 - # Make sure we can use fallocate with LFS #300307
78 - cat <<-EOF > "${T}"/fallocate.c
79 - #define _GNU_SOURCE
80 - #include <fcntl.h>
81 - main() { return fallocate(0, 0, 0, 0); }
82 - EOF
83 - append-lfs-flags
84 - $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.c -o /dev/null >/dev/null 2>&1 \
85 - || export ac_cv_func_fallocate=no
86 - rm -f "${T}"/fallocate.c
87 -}
88 -
89 -src_configure() {
90 - lfs_fallocate_test
91 - econf \
92 - --disable-agetty \
93 - --disable-chsh-only-listed \
94 - --disable-cramfs \
95 - --disable-fallocate \
96 - --disable-fsck \
97 - --disable-kill \
98 - --disable-last \
99 - --disable-libmount \
100 - --disable-libmount-mount \
101 - --disable-libuuid \
102 - --disable-login-utils \
103 - --disable-makeinstall-chown \
104 - --disable-makeinstall-setuid \
105 - --disable-mesg \
106 - --disable-mountpoint \
107 - --disable-partx \
108 - --disable-pg-bell \
109 - --disable-pivot_root \
110 - --disable-raw \
111 - --disable-rename \
112 - --disable-require-password \
113 - --disable-reset \
114 - --disable-schedutils \
115 - --disable-switch_root \
116 - --disable-unshare \
117 - --disable-use-tty-group \
118 - --disable-uuidd \
119 - --disable-wall \
120 - --disable-write \
121 - --enable-libblkid \
122 - --enable-mount \
123 - --without-ncurses \
124 - --without-udev \
125 - $(use_enable nls) \
126 - $(use_with selinux) \
127 - $(tc-has-tls || echo --disable-tls) \
128 - $(use static && echo --enable-static-programs=losetup)
129 -}
130 -
131 -src_install() {
132 - emake install DESTDIR="${T}/root"
133 - newsbin "${T}/root/sbin/losetup" loop-aes-losetup
134 - use static && newsbin "${T}/root/bin/losetup.static" loop-aes-losetup.static
135 -}
136
137 diff --git a/sys-fs/loop-aes/Manifest b/sys-fs/loop-aes/Manifest
138 index a3e5729..bfc6bbf 100644
139 --- a/sys-fs/loop-aes/Manifest
140 +++ b/sys-fs/loop-aes/Manifest
141 @@ -1,5 +1 @@
142 -DIST loop-AES-v3.7b.tar.bz2 334227 SHA256 b6794ca655c8a0b9ac47814264d96d7dab588493e3d2c09357eaad1e3436d648 SHA512 f673d8ccb9b3072256ff3501785204f1d64af5211eabaf47b5d3dc6c42e3d7ad6a2e4bcddcad76ee903637097a8aa4e1df9e16fff345af2ecd6e105b32bf35d3 WHIRLPOOL 1d4aeda49fbdfb404d8377bb87572a8a2cf18859917188916c00951829b834c9ec475615adf6f587a4bdda63888fdbee8f91ae0161c1ecba755488292a4d72df
143 -DIST loop-AES-v3.7c.tar.bz2 334719 SHA256 2c4eb21afc6e45d99d17e4c26b084d1f1e45c0453da9092a6a95ef918c588173 SHA512 8b260cfe7864973714ddae37ea7231fdefa98ce104f5bee4a1157653a5dd36a89328ee97f3d76d59e1824468f59e46873acd7e5cf9083b73ef0a3b74c24d6bdb WHIRLPOOL 20d07e5f07a158118dcd022f14dff2144c41c51e9add1c747545b7ae8742dd617705e37b03a39262d9b8faed7550a2563f9d827549c487e31e06287b99d36825
144 -DIST loop-AES-v3.7e.tar.bz2 325609 SHA256 c49f660672347d75a8d971e8afd0e8fbc24d1f50034eca99f85cb72097dfb60c SHA512 823ba931e502239bb93b3d5fab2da3f38f79439790c2f6524dfb953215193e6b5015965ecbd892be85a9957812e9ec8569b59cd91197f6ed956d758429b067cf WHIRLPOOL 0990cc7250d37aee2c991ec6822e2fee233689c23f545177ec6e4bee8ca99265391b97111bcb7526d3ccbb5e8719ffbedb9f497c6d85ee4a8fc4c8488dec8f1a
145 -DIST loop-AES-v3.7f.tar.bz2 325690 SHA256 896091fa2d847c86c4372c7aadf5d49aa62a43803b4fce19ec13981bf0895f3c SHA512 43ebc4e48aaadf4290d927dbf3a2098003f165404254a99b1a1f7f83f968ba168365075c2cfab1bf61c1af4c4aec033055888a1bd04059446d0078d31c43d88b WHIRLPOOL f7a5f9850ea6919ea5fe458ccc29a39b4f14a6d10b15075b5b737e3efdc3cd3be48fb58b0f207ff93596eaef5091260791176b77be5cd603d48c5efdeeb6df4a
146 DIST loop-AES-v3.7h.tar.bz2 326005 SHA256 4035d398c25020bfdbe930810354c75de7036a868dbb429a2d18074ea81f24c3 SHA512 3ccfa1d87e64b9cb8fd0f8b2d9b74d193510f0d91dc0de1232619cb593b60889e42d8a9cac746ca1476b489ff988291ef3de14e0b888c9df84e97a1f6ac7f012 WHIRLPOOL 8533adf1e4a0627d90334f581cd890fb7d85b8e7e694fe3a2fffd954245e01240fb278cfb8330eaca6864641c8c4a69675b899f82a0d172a3e48242e3cec0308
147
148 diff --git a/sys-fs/loop-aes/loop-aes-3.7b.ebuild b/sys-fs/loop-aes/loop-aes-3.7b.ebuild
149 deleted file mode 100644
150 index 9fc6e72..00000000
151 --- a/sys-fs/loop-aes/loop-aes-3.7b.ebuild
152 +++ /dev/null
153 @@ -1,82 +0,0 @@
154 -# Copyright 1999-2015 Gentoo Foundation
155 -# Distributed under the terms of the GNU General Public License v2
156 -# $Id$
157 -
158 -EAPI="5"
159 -
160 -inherit linux-mod
161 -
162 -MY_P="${PN/aes/AES}-v${PV}"
163 -
164 -DESCRIPTION="Linux kernel module to encrypt local file systems and disk partitions with AES cipher"
165 -HOMEPAGE="http://loop-aes.sourceforge.net/loop-AES.README"
166 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
167 -
168 -LICENSE="GPL-2"
169 -SLOT="0"
170 -KEYWORDS="amd64 arm ~hppa ~ppc ~sparc x86"
171 -IUSE="cpu_flags_x86_aes extra-ciphers keyscrub cpu_flags_x86_padlock"
172 -
173 -DEPEND="app-crypt/loop-aes-losetup"
174 -RDEPEND=""
175 -
176 -S="${WORKDIR}/${MY_P}"
177 -
178 -pkg_setup() {
179 - linux-mod_pkg_setup
180 -
181 - CONFIG_CHECK="!BLK_DEV_LOOP"
182 - MODULE_NAMES="loop(block::tmp-d-kbuild)"
183 - BUILD_TARGETS="all"
184 -
185 - BUILD_PARAMS=" \
186 - V=1 \
187 - LINUX_SOURCE=\"${KERNEL_DIR}\" \
188 - KBUILD_OUTPUT=\"${KBUILD_OUTPUT}\" \
189 - USE_KBUILD=y MODINST=n RUNDM=n"
190 - use cpu_flags_x86_aes && BUILD_PARAMS="${BUILD_PARAMS} INTELAES=y"
191 - use keyscrub && BUILD_PARAMS="${BUILD_PARAMS} KEYSCRUB=y"
192 - use cpu_flags_x86_padlock && BUILD_PARAMS="${BUILD_PARAMS} PADLOCK=y"
193 -
194 - if use extra-ciphers; then
195 - MODULE_NAMES="${MODULE_NAMES}
196 - loop_blowfish(block::tmp-d-kbuild)
197 - loop_serpent(block::tmp-d-kbuild)
198 - loop_twofish(block::tmp-d-kbuild)"
199 - BUILD_PARAMS="${BUILD_PARAMS} EXTRA_CIPHERS=y"
200 - fi
201 -}
202 -
203 -src_prepare() {
204 - sed -e 's/make/$(MAKE)/g' -i Makefile || die "sed failed"
205 -}
206 -
207 -src_install() {
208 - linux-mod_src_install
209 -
210 - dodoc README
211 - dobin loop-aes-keygen
212 - doman loop-aes-keygen.1
213 -}
214 -
215 -pkg_postinst() {
216 - linux-mod_pkg_postinst
217 -
218 - einfo
219 - einfo "For more instructions take a look at examples in README at:"
220 - einfo "'${EPREFIX}/usr/share/doc/${PF}'"
221 - einfo
222 - einfo "If you have a newer Intel processor (i5, i7), and you use AES"
223 - einfo "you may want to consider using the aes-ni use flag. It will"
224 - einfo "use your processors native AES instructions giving quite a speed"
225 - einfo "increase."
226 - einfo
227 -
228 - ewarn
229 - ewarn "Please consider using loop-aes-losetup package instead of"
230 - ewarn "util-linux[loop-aes], it will enable all loop-aes services"
231 - ewarn "without patching util-linux package"
232 - ewarn
233 - ewarn "In future only loop-aes-losetup will be available in portage"
234 - ewarn
235 -}
236
237 diff --git a/sys-fs/loop-aes/loop-aes-3.7c.ebuild b/sys-fs/loop-aes/loop-aes-3.7c.ebuild
238 deleted file mode 100644
239 index 60400f4..00000000
240 --- a/sys-fs/loop-aes/loop-aes-3.7c.ebuild
241 +++ /dev/null
242 @@ -1,83 +0,0 @@
243 -# Copyright 1999-2015 Gentoo Foundation
244 -# Distributed under the terms of the GNU General Public License v2
245 -# $Id$
246 -
247 -EAPI="5"
248 -
249 -inherit eutils linux-mod
250 -
251 -MY_P="${PN/aes/AES}-v${PV}"
252 -
253 -DESCRIPTION="Linux kernel module to encrypt local file systems and disk partitions with AES cipher"
254 -HOMEPAGE="http://loop-aes.sourceforge.net/loop-AES.README"
255 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
256 -
257 -LICENSE="GPL-2"
258 -SLOT="0"
259 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
260 -IUSE="cpu_flags_x86_aes extra-ciphers keyscrub cpu_flags_x86_padlock"
261 -
262 -DEPEND="app-crypt/loop-aes-losetup"
263 -RDEPEND=""
264 -
265 -S="${WORKDIR}/${MY_P}"
266 -
267 -pkg_setup() {
268 - linux-mod_pkg_setup
269 -
270 - CONFIG_CHECK="!BLK_DEV_LOOP"
271 - MODULE_NAMES="loop(block::tmp-d-kbuild)"
272 - BUILD_TARGETS="all"
273 -
274 - BUILD_PARAMS=" \
275 - V=1 \
276 - LINUX_SOURCE=\"${KERNEL_DIR}\" \
277 - KBUILD_OUTPUT=\"${KBUILD_OUTPUT}\" \
278 - USE_KBUILD=y MODINST=n RUNDM=n"
279 - use cpu_flags_x86_aes && BUILD_PARAMS="${BUILD_PARAMS} INTELAES=y"
280 - use keyscrub && BUILD_PARAMS="${BUILD_PARAMS} KEYSCRUB=y"
281 - use cpu_flags_x86_padlock && BUILD_PARAMS="${BUILD_PARAMS} PADLOCK=y"
282 -
283 - if use extra-ciphers; then
284 - MODULE_NAMES="${MODULE_NAMES}
285 - loop_blowfish(block::tmp-d-kbuild)
286 - loop_serpent(block::tmp-d-kbuild)
287 - loop_twofish(block::tmp-d-kbuild)"
288 - BUILD_PARAMS="${BUILD_PARAMS} EXTRA_CIPHERS=y"
289 - fi
290 -}
291 -
292 -src_prepare() {
293 - epatch "${FILESDIR}/${P}-linux4.patch"
294 - sed -e 's/make/$(MAKE)/g' -i Makefile || die "sed failed"
295 -}
296 -
297 -src_install() {
298 - linux-mod_src_install
299 -
300 - dodoc README
301 - dobin loop-aes-keygen
302 - doman loop-aes-keygen.1
303 -}
304 -
305 -pkg_postinst() {
306 - linux-mod_pkg_postinst
307 -
308 - einfo
309 - einfo "For more instructions take a look at examples in README at:"
310 - einfo "'${EPREFIX}/usr/share/doc/${PF}'"
311 - einfo
312 - einfo "If you have a newer Intel processor (i5, i7), and you use AES"
313 - einfo "you may want to consider using the aes-ni use flag. It will"
314 - einfo "use your processors native AES instructions giving quite a speed"
315 - einfo "increase."
316 - einfo
317 -
318 - ewarn
319 - ewarn "Please consider using loop-aes-losetup package instead of"
320 - ewarn "util-linux[loop-aes], it will enable all loop-aes services"
321 - ewarn "without patching util-linux package"
322 - ewarn
323 - ewarn "In future only loop-aes-losetup will be available in portage"
324 - ewarn
325 -}
326
327 diff --git a/sys-fs/loop-aes/loop-aes-3.7e.ebuild b/sys-fs/loop-aes/loop-aes-3.7e.ebuild
328 deleted file mode 100644
329 index 69e2e4d..00000000
330 --- a/sys-fs/loop-aes/loop-aes-3.7e.ebuild
331 +++ /dev/null
332 @@ -1,78 +0,0 @@
333 -# Copyright 1999-2015 Gentoo Foundation
334 -# Distributed under the terms of the GNU General Public License v2
335 -# $Id$
336 -
337 -EAPI="5"
338 -
339 -inherit eutils linux-mod
340 -
341 -MY_P="${PN/aes/AES}-v${PV}"
342 -
343 -DESCRIPTION="Linux kernel module to encrypt local file systems and disk partitions with AES cipher"
344 -HOMEPAGE="http://loop-aes.sourceforge.net/loop-AES.README"
345 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
346 -
347 -LICENSE="GPL-2"
348 -SLOT="0"
349 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
350 -IUSE="cpu_flags_x86_aes extra-ciphers keyscrub cpu_flags_x86_padlock"
351 -
352 -DEPEND="app-crypt/loop-aes-losetup"
353 -RDEPEND=""
354 -
355 -S="${WORKDIR}/${MY_P}"
356 -
357 -pkg_setup() {
358 - linux-mod_pkg_setup
359 -
360 - CONFIG_CHECK="!BLK_DEV_LOOP"
361 - MODULE_NAMES="loop(block::tmp-d-kbuild)"
362 - BUILD_TARGETS="all"
363 -
364 - BUILD_PARAMS=" \
365 - V=1 \
366 - LINUX_SOURCE=\"${KERNEL_DIR}\" \
367 - KBUILD_OUTPUT=\"${KBUILD_OUTPUT}\" \
368 - USE_KBUILD=y MODINST=n RUNDM=n"
369 - use cpu_flags_x86_aes && BUILD_PARAMS="${BUILD_PARAMS} INTELAES=y"
370 - use keyscrub && BUILD_PARAMS="${BUILD_PARAMS} KEYSCRUB=y"
371 - use cpu_flags_x86_padlock && BUILD_PARAMS="${BUILD_PARAMS} PADLOCK=y"
372 -
373 - if use extra-ciphers; then
374 - MODULE_NAMES="${MODULE_NAMES}
375 - loop_blowfish(block::tmp-d-kbuild)
376 - loop_serpent(block::tmp-d-kbuild)
377 - loop_twofish(block::tmp-d-kbuild)"
378 - BUILD_PARAMS="${BUILD_PARAMS} EXTRA_CIPHERS=y"
379 - fi
380 -}
381 -
382 -src_install() {
383 - linux-mod_src_install
384 -
385 - dodoc README
386 - dobin loop-aes-keygen
387 - doman loop-aes-keygen.1
388 -}
389 -
390 -pkg_postinst() {
391 - linux-mod_pkg_postinst
392 -
393 - einfo
394 - einfo "For more instructions take a look at examples in README at:"
395 - einfo "'${EPREFIX}/usr/share/doc/${PF}'"
396 - einfo
397 - einfo "If you have a newer Intel processor (i5, i7), and you use AES"
398 - einfo "you may want to consider using the aes-ni use flag. It will"
399 - einfo "use your processors native AES instructions giving quite a speed"
400 - einfo "increase."
401 - einfo
402 -
403 - ewarn
404 - ewarn "Please consider using loop-aes-losetup package instead of"
405 - ewarn "util-linux[loop-aes], it will enable all loop-aes services"
406 - ewarn "without patching util-linux package"
407 - ewarn
408 - ewarn "In future only loop-aes-losetup will be available in portage"
409 - ewarn
410 -}
411
412 diff --git a/sys-fs/loop-aes/loop-aes-3.7f.ebuild b/sys-fs/loop-aes/loop-aes-3.7f.ebuild
413 deleted file mode 100644
414 index 69e2e4d..00000000
415 --- a/sys-fs/loop-aes/loop-aes-3.7f.ebuild
416 +++ /dev/null
417 @@ -1,78 +0,0 @@
418 -# Copyright 1999-2015 Gentoo Foundation
419 -# Distributed under the terms of the GNU General Public License v2
420 -# $Id$
421 -
422 -EAPI="5"
423 -
424 -inherit eutils linux-mod
425 -
426 -MY_P="${PN/aes/AES}-v${PV}"
427 -
428 -DESCRIPTION="Linux kernel module to encrypt local file systems and disk partitions with AES cipher"
429 -HOMEPAGE="http://loop-aes.sourceforge.net/loop-AES.README"
430 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
431 -
432 -LICENSE="GPL-2"
433 -SLOT="0"
434 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
435 -IUSE="cpu_flags_x86_aes extra-ciphers keyscrub cpu_flags_x86_padlock"
436 -
437 -DEPEND="app-crypt/loop-aes-losetup"
438 -RDEPEND=""
439 -
440 -S="${WORKDIR}/${MY_P}"
441 -
442 -pkg_setup() {
443 - linux-mod_pkg_setup
444 -
445 - CONFIG_CHECK="!BLK_DEV_LOOP"
446 - MODULE_NAMES="loop(block::tmp-d-kbuild)"
447 - BUILD_TARGETS="all"
448 -
449 - BUILD_PARAMS=" \
450 - V=1 \
451 - LINUX_SOURCE=\"${KERNEL_DIR}\" \
452 - KBUILD_OUTPUT=\"${KBUILD_OUTPUT}\" \
453 - USE_KBUILD=y MODINST=n RUNDM=n"
454 - use cpu_flags_x86_aes && BUILD_PARAMS="${BUILD_PARAMS} INTELAES=y"
455 - use keyscrub && BUILD_PARAMS="${BUILD_PARAMS} KEYSCRUB=y"
456 - use cpu_flags_x86_padlock && BUILD_PARAMS="${BUILD_PARAMS} PADLOCK=y"
457 -
458 - if use extra-ciphers; then
459 - MODULE_NAMES="${MODULE_NAMES}
460 - loop_blowfish(block::tmp-d-kbuild)
461 - loop_serpent(block::tmp-d-kbuild)
462 - loop_twofish(block::tmp-d-kbuild)"
463 - BUILD_PARAMS="${BUILD_PARAMS} EXTRA_CIPHERS=y"
464 - fi
465 -}
466 -
467 -src_install() {
468 - linux-mod_src_install
469 -
470 - dodoc README
471 - dobin loop-aes-keygen
472 - doman loop-aes-keygen.1
473 -}
474 -
475 -pkg_postinst() {
476 - linux-mod_pkg_postinst
477 -
478 - einfo
479 - einfo "For more instructions take a look at examples in README at:"
480 - einfo "'${EPREFIX}/usr/share/doc/${PF}'"
481 - einfo
482 - einfo "If you have a newer Intel processor (i5, i7), and you use AES"
483 - einfo "you may want to consider using the aes-ni use flag. It will"
484 - einfo "use your processors native AES instructions giving quite a speed"
485 - einfo "increase."
486 - einfo
487 -
488 - ewarn
489 - ewarn "Please consider using loop-aes-losetup package instead of"
490 - ewarn "util-linux[loop-aes], it will enable all loop-aes services"
491 - ewarn "without patching util-linux package"
492 - ewarn
493 - ewarn "In future only loop-aes-losetup will be available in portage"
494 - ewarn
495 -}
496
497 diff --git a/sys-fs/loop-aes/loop-aes-3.7h.ebuild b/sys-fs/loop-aes/loop-aes-3.7h.ebuild
498 index 04fb1d5..242d3c2 100644
499 --- a/sys-fs/loop-aes/loop-aes-3.7h.ebuild
500 +++ b/sys-fs/loop-aes/loop-aes-3.7h.ebuild
501 @@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
502
503 LICENSE="GPL-2"
504 SLOT="0"
505 -KEYWORDS="amd64 ~arm ~hppa ~ppc ~sparc x86"
506 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
507 IUSE="cpu_flags_x86_aes extra-ciphers keyscrub cpu_flags_x86_padlock"
508
509 DEPEND="app-crypt/loop-aes-losetup"