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 |
# this has to be so long because --enable-minimal fails without an |
637 |
# autoreconf thanks to autoconf-2.61 |
638 |
LDFLAGS='-static' CFLAGS='-Os' ./configure --disable-card-support\ |
639 |
--disable-agent-support --disable-rsa --disable-idea --disable-cast5\ |
640 |
--disable-twofish --disable-camellia --disable-exec --disable-bzip2 \ |
641 |
--disable-photo-viewers --disable-keyserver-helpers --disable-ldap \ |
642 |
--disable-hkp --disable-finger --disable-mailto --disable-generic \ |
643 |
--disable-keyserver-path --disable-dns-srv --disable-dns-pka \ |
644 |
--disable-dns-cert --disable-nls --disable-threads --enable-static\ |
645 |
--disable-selinux-support --disable-capabilities --disable-regex\ |
646 |
--enable-static-rnd=linux --without-libcurl --without-readline\ |
647 |
--enable-noexecstack --without-libusb --disable-gnupg-iconv \ |
648 |
>> ${LOGFILE} 2>&1 || gen_die 'Configuring gnupg failed!' |
649 |
print_info 1 'gnupg: >> Compiling...' |
650 |
MAKE=${UTILS_MAKE} compile_generic "" "" |
651 |
print_info 1 'gnupg: >> Copying to cache...' |
652 |
[ -f "${TEMP}/${GPG_DIR}/g10/gpg" ] || |
653 |
gen_die 'gnupg executable does not exist!' |
654 |
strip "${TEMP}/${GPG_DIR}/g10/gpg" || |
655 |
gen_die 'Could not strip gpg binary!' |
656 |
bzip2 "${TEMP}/${GPG_DIR}/g10/gpg" || |
657 |
gen_die 'bzip2 compression of gpg failed!' |
658 |
mv "${TEMP}/${GPG_DIR}/g10/gpg.bz2" "${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 |
} |