summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Leininger <hlein@korelogic.com>2022-10-29 13:46:31 -0600
committerJoonas Niilola <juippis@gentoo.org>2022-11-14 16:31:03 +0200
commit6fdd1e347a6b9a27a7503821da45f1d6b522a2f6 (patch)
tree26d9e7e215257ec8b0a77a3b670e6df712504d5d /sys-fs/loop-aes
parentapp-crypt/certbot-nginx: drop 1.30.0 (diff)
downloadgentoo-6fdd1e347a6b9a27a7503821da45f1d6b522a2f6.tar.gz
gentoo-6fdd1e347a6b9a27a7503821da45f1d6b522a2f6.tar.bz2
gentoo-6fdd1e347a6b9a27a7503821da45f1d6b522a2f6.zip
sys-fs/loop-aes: add 3.7y
Signed-off-by: Hank Leininger <hlein@korelogic.com> Closes: https://bugs.gentoo.org/878745 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-fs/loop-aes')
-rw-r--r--sys-fs/loop-aes/Manifest1
-rw-r--r--sys-fs/loop-aes/loop-aes-3.7y.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/sys-fs/loop-aes/Manifest b/sys-fs/loop-aes/Manifest
index 523c94b316bf..5be0d8a36c69 100644
--- a/sys-fs/loop-aes/Manifest
+++ b/sys-fs/loop-aes/Manifest
@@ -1,2 +1,3 @@
DIST loop-AES-v3.7w.tar.bz2 379844 BLAKE2B 00877a1711afa0a232f6cf0d568fd667fe891393c4cf4602666c68169c71b4a1308806e37ce48f7e5372d5e2416be2f5f1a680302d6ccc795057ccc1d3716f4b SHA512 882653341edba90a4717624382826296d490cd71d4e8843c9f44f606eda0d30a9e685a5310ed3b996b04ab9095d7be6adccff2a16f1c68a2349c052a69fd0a15
DIST loop-AES-v3.7x.tar.bz2 380098 BLAKE2B 328e9eefcd22875ceb8b64b632032a63f5edac03c1ac6897cd05e0ca5d28b32a03428ba5da92c88361c1c115d28576c21c4d66e840137e203aab75926b5fd0fa SHA512 2d5986e524e11e1c69c4052d9545bd270e1726e0128884a0a942fef4491a90549fac7bf914348f6a8a8a9c3c38b77ebbf4af78a95a5d12d4c1db9d2a2cd04fc2
+DIST loop-AES-v3.7y.tar.bz2 404257 BLAKE2B b54c38abf9e85b5482a1d0795dc4b41301c9a06dfcfd088999e85ce7ca1adf4a91975482b05bf5eaa7efe7a4a96980475a89c8b98bfcb9f1edceeb5e435fd6ff SHA512 d5882974900ca376cd72bd893ff02670801ffb39286112cb1058adc687c560a2ac8fc4440966db46cf9eb614ed6a79da1e80af1c9588871b451af877b203e86f
diff --git a/sys-fs/loop-aes/loop-aes-3.7y.ebuild b/sys-fs/loop-aes/loop-aes-3.7y.ebuild
new file mode 100644
index 000000000000..27b95ca5fd2c
--- /dev/null
+++ b/sys-fs/loop-aes/loop-aes-3.7y.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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="http://loop-aes.sourceforge.net/loop-AES/${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"
+
+DEPEND="app-crypt/loop-aes-losetup"
+
+PATCHES=( "${FILESDIR}"/loop-aes-3.7w-build-initrd_explicit-losetup.patch )
+
+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+=" INTELAES=y"
+ use keyscrub && BUILD_PARAMS+=" KEYSCRUB=y"
+ use cpu_flags_x86_padlock && 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+=" EXTRA_CIPHERS=y"
+ fi
+}
+
+src_install() {
+ linux-mod_src_install
+
+ dodoc README
+ dodoc ChangeLog
+ dobin loop-aes-keygen
+ doman loop-aes-keygen.1
+
+ into /
+ dosbin build-initrd.sh
+}
+
+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
+}