# Copyright 1999-2021 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 # devicemapper needs to find udev append-ldflags -Wl,-rpath-link,${BROOT}/usr/lib local myconf=( --enable-internal-argon2 --sbindir=/sbin --disable-asciidoc --disable-nls --disable-selinux --disable-ssh-token --disable-veritysetup --disable-cryptsetup-reencrypt --disable-integritysetup --enable-static=yes --enable-shared=no --enable-static-cryptsetup --enable-udev --with-crypto_backend=gcrypt ) gkconf "${myconf[@]}" } src_install() { default rm -rf \ "${D}"/sbin/* \ "${D}"/usr/share/ install_exe 'cryptsetup.static' "${D}"/sbin/cryptsetup "${STRIP}" --strip-all "${D}"/sbin/cryptsetup \ || die "Failed to strip '${D}/sbin/cryptsetup'!" }