diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 10:16:31 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 13:58:14 +0200 |
commit | 9506c1f4149863dfd1f121d862ec69eeeb65b4a5 (patch) | |
tree | d7a153161ec6055594c6d64d141eb33b1670b465 /gkbuilds/gnupg.gkbuild | |
parent | Rework --busybox support (diff) | |
download | genkernel-9506c1f4149863dfd1f121d862ec69eeeb65b4a5.tar.gz genkernel-9506c1f4149863dfd1f121d862ec69eeeb65b4a5.tar.bz2 genkernel-9506c1f4149863dfd1f121d862ec69eeeb65b4a5.zip |
Rework --gpg support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds/gnupg.gkbuild')
-rw-r--r-- | gkbuilds/gnupg.gkbuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/gkbuilds/gnupg.gkbuild b/gkbuilds/gnupg.gkbuild new file mode 100644 index 00000000..d99836a4 --- /dev/null +++ b/gkbuilds/gnupg.gkbuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_configure() { + append-ldflags -static + + local myconf=( + --enable-static-rnd=linux + --disable-dev-random + --disable-asm + --disable-selinux-support + --disable-gnupg-iconv + --disable-card-support + --disable-agent-support + --disable-bzip2 + --disable-exec + --disable-photo-viewers + --disable-keyserver-helpers + --disable-ldap + --disable-hkp + --disable-finger + --disable-generic + --disable-mailto + --disable-keyserver-path + --disable-dns-srv + --disable-dns-cert + --disable-nls + --disable-threads + --disable-regex + --disable-optimization + --with-included-zlib + --without-capabilities + --without-tar + --without-ldap + --without-libcurl + --without-mailprog + --without-libpth-prefix + --without-libiconv-prefix + --without-libintl-prefix + --without-zlib + --without-bzip2 + --without-libusb + --without-readline + ) + + gkconf "${myconf[@]}" +} + +src_install() { + default + + rm -rf \ + "${D}"/usr/bin/gpgsplit \ + "${D}"/usr/bin/gpgv \ + "${D}"/usr/share + + "${STRIP}" --strip-all "${D}"/usr/bin/gpg \ + || die "Failed to strip '${D}/usr/bin/gpg'!" + + # For backward compatibility + mkdir "${D}"/bin || die "Failed to create '${D}/bin'!" + + ln -s ../usr/bin/gpg "${D}"/bin/gpg \ + || die "Failed to create symlink '${D}/bin/gpg' to '${D}/usr/bin/gpg'!" +} |