summaryrefslogtreecommitdiff
path: root/sys-fs/loop-aes
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/loop-aes')
-rw-r--r--sys-fs/loop-aes/Manifest2
-rw-r--r--sys-fs/loop-aes/loop-aes-3.7m.ebuild76
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-fs/loop-aes/Manifest b/sys-fs/loop-aes/Manifest
index 10ee50036a88..8d2c1bcf620b 100644
--- a/sys-fs/loop-aes/Manifest
+++ b/sys-fs/loop-aes/Manifest
@@ -1,3 +1,5 @@
+DIST loop-AES-v3.7m.tar.bz2 329763 BLAKE2B eed2590ed7b23dbb5ffb07143f8c89a693cfa8741337e7620b2c0e9a7426bf48a11a219f24996636000c07f3bbedabd75a3cf31d95ebb463b108919f9aea314a SHA512 22cdf301e12d185789fe00a5e5b750e33ae4280dc45c98e71193504b7b46899bb973a083ba526657a62c5e3ab641b3d2f03ebf28e424d50caedad2c7a5f87be5
DIST loop-AES-v3.7n.tar.bz2 373901 BLAKE2B 5cac9bd55f35a6cf0c056a6a2e75a48f49c1d23b7ebe1821e10dab522508e64ed23e5993dbcc19dbdeaab6c315ee4e71c8ecc17d9da41a5ad0794abc92563d7e SHA512 d190561f92a47292285e44c728bf1fcf9b7dd9c54f970ebc11a2988686f409515687a22028187756baaa4622903564e2646971a63eba13557c6ce78dc1f0bb96
+EBUILD loop-aes-3.7m.ebuild 2035 BLAKE2B 0049c77cbf0acf349c1d5e380b7ac1072ab148acf6174e0ba14f070b55d722b6a8fcc7e7a47e1e37699dd254d124485ef5cfc04ff82ee14053441f62b90d8236 SHA512 964217043c2ed947f591836b51eb8e98a0cc0efa0d1e5673a737c31ea6190625f5b58ea44c27bdf7811e371d92fd1fa05d5b8577c83bb6b3fa167a30bb095ca4
EBUILD loop-aes-3.7n.ebuild 2032 BLAKE2B 2218843eb73db2ed63c8e0f19be6a9f16c4084982067d6b153ca9d42688e5c3e1aa5118fe3a5720b5b5d175b20550d1250dcbf872acfff19d0a63b6d0dfccab0 SHA512 abd4f49db32d9808ccf1d4363e967bbd48cfd0db2390afd6ddb591b2540d44bb66233fad18cc7a0756cc91448a5abc20eaee24641b66bbded73fefb184859309
MISC metadata.xml 633 BLAKE2B 364ea3f67381f2878af750cdf6da32980f96bad6f277d4cdc4c943e72a554e50e9c91fdce007a8ac63e3f9c715481740688b242947a8c19a25996b9f5621d726 SHA512 75e4ed0408d32a91012b03de7ac1f4ac4aac8a20ccc73ad612a9fe79e9046d79eee189e40692c13822e219b8ee35800b04fe36c88168be24248222c6ddd6193c
diff --git a/sys-fs/loop-aes/loop-aes-3.7m.ebuild b/sys-fs/loop-aes/loop-aes-3.7m.ebuild
new file mode 100644
index 000000000000..426c9f5d7fd7
--- /dev/null
+++ b/sys-fs/loop-aes/loop-aes-3.7m.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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
+}