diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2017-05-20 19:09:58 +0300 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2017-05-20 19:11:04 +0300 |
commit | 1e7966aea41dd84c54732478b791a4ab7be83c6f (patch) | |
tree | 887a28f477a98ef8dde7bd281eccbc771801d3c3 /sys-fs | |
parent | 1c09997603e7f3000b09ed87599f4b390f204b4f (diff) | |
download | gentoo-1e7966aea41dd84c54732478b791a4ab7be83c6f.tar.gz gentoo-1e7966aea41dd84c54732478b791a4ab7be83c6f.tar.xz |
sys-fs/loop-aes: version bump
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/loop-aes/Manifest | 1 | ||||
-rw-r--r-- | sys-fs/loop-aes/loop-aes-3.7k.ebuild | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/sys-fs/loop-aes/Manifest b/sys-fs/loop-aes/Manifest index 7deb2a0ed5f..b413ccf2e40 100644 --- a/sys-fs/loop-aes/Manifest +++ b/sys-fs/loop-aes/Manifest @@ -1 +1,2 @@ DIST loop-AES-v3.7j.tar.bz2 326818 SHA256 67ede839d4cac657359c39b05eac46f6991054768a7e1096bef5b92edb3b8aba SHA512 e1b59680680e2b40bb42cad9f1e89a344c7bfd0ee01fdc26151e9edea64b5111744588bc05c672de16c76ae0a3e4d6a8d4c4c9c09709a9f93bfc62a2f64ba7c7 WHIRLPOOL a3798edc3f1393ddf97aeada84c1c5a6e74b8cef94e72629774c4db70001206d5cd429df61035a215131f0281ef284469751eefad1f7ee3fd7cf24153b57077d +DIST loop-AES-v3.7k.tar.bz2 327457 SHA256 3299629ecbcdd54ad703e77eaab395f8a2e46d4a83a30a299e55b549d4d7e44d SHA512 91144642818f81343a1326759a087cc2e9dbf6c3594472d1d508ce811215d5215d673681ad8d563c8c6b2e9203b0e10314829988932b2f9d3382cb1a13d7cacf WHIRLPOOL 9dcfc27d2b598cf6cb1125411d54fb9625e744f441dc75d553ad35ef80c8535bb4cef84613aaa5fe3d5c680243f39ed1654db8e0ea14d9e707d9f8531cc08893 diff --git a/sys-fs/loop-aes/loop-aes-3.7k.ebuild b/sys-fs/loop-aes/loop-aes-3.7k.ebuild new file mode 100644 index 00000000000..b548d043047 --- /dev/null +++ b/sys-fs/loop-aes/loop-aes-3.7k.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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" + +DEPEND="app-crypt/loop-aes-losetup" +RDEPEND="" + +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 +} |