sys-fs/loop-aes: version bump
authorAlon Bar-Lev <alonbl@gentoo.org>
Thu, 14 Mar 2019 17:28:39 +0000 (19:28 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Thu, 14 Mar 2019 17:29:15 +0000 (19:29 +0200)
Closes: https://bugs.gentoo.org/show_bug.cgi?id=680336
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

sys-fs/loop-aes/Manifest
sys-fs/loop-aes/loop-aes-3.7n.ebuild [new file with mode: 0644]

index 9a9054e12dfa1135889512a8821dc13dafb44e89..aba35c716d5693c7db165164761e92444ddd0614 100644 (file)
@@ -1 +1,2 @@
 DIST loop-AES-v3.7m.tar.bz2 329763 BLAKE2B eed2590ed7b23dbb5ffb07143f8c89a693cfa8741337e7620b2c0e9a7426bf48a11a219f24996636000c07f3bbedabd75a3cf31d95ebb463b108919f9aea314a SHA512 22cdf301e12d185789fe00a5e5b750e33ae4280dc45c98e71193504b7b46899bb973a083ba526657a62c5e3ab641b3d2f03ebf28e424d50caedad2c7a5f87be5
+DIST loop-AES-v3.7n.tar.bz2 373901 BLAKE2B 5cac9bd55f35a6cf0c056a6a2e75a48f49c1d23b7ebe1821e10dab522508e64ed23e5993dbcc19dbdeaab6c315ee4e71c8ecc17d9da41a5ad0794abc92563d7e SHA512 d190561f92a47292285e44c728bf1fcf9b7dd9c54f970ebc11a2988686f409515687a22028187756baaa4622903564e2646971a63eba13557c6ce78dc1f0bb96
diff --git a/sys-fs/loop-aes/loop-aes-3.7n.ebuild b/sys-fs/loop-aes/loop-aes-3.7n.ebuild
new file mode 100644 (file)
index 0000000..715db29
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-mod
+
+MY_P="${PN/aes/AES}-v${PV}"
+
+DESCRIPTION="Linux kernel module to encrypt disk partitions with AES cipher"
+HOMEPAGE="http://loop-aes.sourceforge.net/loop-AES.README"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
+IUSE="cpu_flags_x86_aes extra-ciphers keyscrub cpu_flags_x86_padlock"
+
+REPEND="app-crypt/loop-aes-losetup"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+       linux-mod_pkg_setup
+
+       CONFIG_CHECK="!BLK_DEV_LOOP"
+       MODULE_NAMES="loop(block::tmp-d-kbuild)"
+       BUILD_TARGETS="all"
+
+       BUILD_PARAMS=" \
+               V=1 \
+               LINUX_SOURCE=\"${KERNEL_DIR}\" \
+               KBUILD_OUTPUT=\"${KBUILD_OUTPUT}\" \
+               USE_KBUILD=y MODINST=n RUNDM=n"
+       use cpu_flags_x86_aes && BUILD_PARAMS="${BUILD_PARAMS} INTELAES=y"
+       use keyscrub && BUILD_PARAMS="${BUILD_PARAMS} KEYSCRUB=y"
+       use cpu_flags_x86_padlock && BUILD_PARAMS="${BUILD_PARAMS} PADLOCK=y"
+
+       if use extra-ciphers; then
+               MODULE_NAMES="${MODULE_NAMES}
+                       loop_blowfish(block::tmp-d-kbuild)
+                       loop_serpent(block::tmp-d-kbuild)
+                       loop_twofish(block::tmp-d-kbuild)"
+               BUILD_PARAMS="${BUILD_PARAMS} EXTRA_CIPHERS=y"
+       fi
+}
+
+src_install() {
+       linux-mod_src_install
+
+       dodoc README
+       dobin loop-aes-keygen
+       doman loop-aes-keygen.1
+}
+
+pkg_postinst() {
+       linux-mod_pkg_postinst
+
+       einfo
+       einfo "For more instructions take a look at examples in README at:"
+       einfo "'${EPREFIX}/usr/share/doc/${PF}'"
+       einfo
+       einfo "If you have a newer Intel processor (i5, i7), and you use AES"
+       einfo "you may want to consider using the aes-ni use flag. It will"
+       einfo "use your processors native AES instructions giving quite a speed"
+       einfo "increase."
+       einfo
+
+       ewarn
+       ewarn "Please consider using loop-aes-losetup package instead of"
+       ewarn "util-linux[loop-aes], it will enable all loop-aes services"
+       ewarn "without patching util-linux package"
+       ewarn
+       ewarn "In future only loop-aes-losetup will be available in portage"
+       ewarn
+}