Lines 620-622
compile_unionfs_fuse() {
Link Here
|
620 |
rm -rf "${UNIONFS_FUSE_DIR}" > /dev/null |
620 |
rm -rf "${UNIONFS_FUSE_DIR}" > /dev/null |
621 |
fi |
621 |
fi |
622 |
} |
622 |
} |
|
|
623 |
|
624 |
compile_gpg() { |
625 |
if [ ! -f "${GPG_BINCACHE}" ] |
626 |
then |
627 |
[ ! -f "${GPG_SRCTAR}" ] && |
628 |
gen_die "Could not find gnupg source tarball: ${GPG_SRCTAR}. Please place it there, or place another version, changing /etc/genkernel.conf as necessary!" |
629 |
cd "${TEMP}" |
630 |
rm -rf "${GPG_DIR}" |
631 |
tar -jxf "${GPG_SRCTAR}" |
632 |
[ ! -d "${GPG_DIR}" ] && |
633 |
gen_die "gnupg directory ${GPG_DIR} invalid" |
634 |
cd "${GPG_DIR}" |
635 |
print_info 1 'gnupg: >> Configuring...' |
636 |
# --enable-minimal works, but it doesn't reduce the command length much. |
637 |
# Given its history and the precision this needs, explicit is cleaner. |
638 |
LDFLAGS='-static' CFLAGS='-Os' ./configure --prefix=/ \ |
639 |
--enable-static-rnd=linux --disable-dev-random --disable-asm \ |
640 |
--disable-selinux-support --disable-gnupg-iconv --disable-card-support \ |
641 |
--disable-agent-support --disable-bzip2 --disable-exec \ |
642 |
--disable-photo-viewers --disable-keyserver-helpers --disable-ldap \ |
643 |
--disable-hkp --disable-finger --disable-generic --disable-mailto \ |
644 |
--disable-keyserver-path --disable-dns-srv --disable-dns-pka \ |
645 |
--disable-dns-cert --disable-nls --disable-threads --disable-regex \ |
646 |
--disable-optimization --with-included-zlib --without-capabilities \ |
647 |
--without-tar --without-ldap --without-libcurl --without-mailprog \ |
648 |
--without-libpth-prefix --without-libiconv-prefix --without-libintl-prefix\ |
649 |
--without-zlib --without-bzip2 --without-libusb --without-readline \ |
650 |
>> ${LOGFILE} 2>&1 || gen_die 'Configuring gnupg failed!' |
651 |
print_info 1 'gnupg: >> Compiling...' |
652 |
MAKE=${UTILS_MAKE} compile_generic "" "" |
653 |
print_info 1 'gnupg: >> Copying to cache...' |
654 |
[ -f "${TEMP}/${GPG_DIR}/g10/gpg" ] || |
655 |
gen_die 'gnupg executable does not exist!' |
656 |
strip "${TEMP}/${GPG_DIR}/g10/gpg" || |
657 |
gen_die 'Could not strip gpg binary!' |
658 |
bzip2 -z -c "${TEMP}/${GPG_DIR}/g10/gpg" > "${GPG_BINCACHE}" || |
659 |
gen_die 'Could not copy the gpg binary to the package directory, does the directory exist?' |
660 |
|
661 |
cd "${TEMP}" |
662 |
rm -rf "${GPG_DIR}" > /dev/null |
663 |
fi |
664 |
} |