diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 11:43:59 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 13:58:16 +0200 |
commit | 3d071ae86e9b3a08250382f970b2eaea0db85090 (patch) | |
tree | 08168b25ce7d0101c7d139d217cf04321c0bcfb5 /gkbuilds/cryptsetup.gkbuild | |
parent | Rework --mdadm support (diff) | |
download | genkernel-3d071ae86e9b3a08250382f970b2eaea0db85090.tar.gz genkernel-3d071ae86e9b3a08250382f970b2eaea0db85090.tar.bz2 genkernel-3d071ae86e9b3a08250382f970b2eaea0db85090.zip |
Rework --luks support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds/cryptsetup.gkbuild')
-rw-r--r-- | gkbuilds/cryptsetup.gkbuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gkbuilds/cryptsetup.gkbuild b/gkbuilds/cryptsetup.gkbuild new file mode 100644 index 00000000..a99ce28d --- /dev/null +++ b/gkbuilds/cryptsetup.gkbuild @@ -0,0 +1,33 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_configure() { + export ac_cv_header_security_pam_misc_h=no + export ac_cv_header_security_pam_appl_h=no + + local myconf=( + --enable-internal-argon2 + --sbindir=/sbin + --disable-nls + --enable-static=yes + --enable-shared=no + --enable-static-cryptsetup + --with-crypto_backend=gcrypt + ) + + gkconf "${myconf[@]}" +} + +src_install() { + default + + rm -rf \ + "${D}"/sbin/* \ + "${D}"/usr/share/ + + cp -a cryptsetup.static "${D}"/sbin/cryptsetup \ + || die "Failed to copy '${S}/cryptsetup.static' to '${D}/sbin/cryptsetup'!" + + "${STRIP}" --strip-all "${D}"/sbin/cryptsetup \ + || die "Failed to strip '${D}/sbin/cryptsetup'!" +} |