Lines 663-665
compile_iscsi() {
Link Here
|
663 |
fi |
663 |
fi |
664 |
} |
664 |
} |
665 |
|
665 |
|
|
|
666 |
compile_gpg() { |
667 |
if [ ! -f "${GPG_BINCACHE}" ] |
668 |
then |
669 |
[ ! -f "${GPG_SRCTAR}" ] && |
670 |
gen_die "Could not find gnupg source tarball: ${GPG_SRCTAR}. Please place it there, or place another version, changing /etc/genkernel.conf as necessary!" |
671 |
cd "${TEMP}" |
672 |
rm -rf "${GPG_DIR}" |
673 |
tar -jxf "${GPG_SRCTAR}" |
674 |
[ ! -d "${GPG_DIR}" ] && |
675 |
gen_die "gnupg directory ${GPG_DIR} invalid" |
676 |
cd "${GPG_DIR}" |
677 |
print_info 1 'gnupg: >> Configuring...' |
678 |
# --enable-minimal works, but it doesn't reduce the command length much. |
679 |
# Given its history and the precision this needs, explicit is cleaner. |
680 |
LDFLAGS='-static' CFLAGS='-Os' ./configure --prefix=/ \ |
681 |
--enable-static-rnd=linux --disable-dev-random --disable-asm \ |
682 |
--disable-selinux-support --disable-gnupg-iconv --disable-card-support \ |
683 |
--disable-agent-support --disable-bzip2 --disable-exec \ |
684 |
--disable-photo-viewers --disable-keyserver-helpers --disable-ldap \ |
685 |
--disable-hkp --disable-finger --disable-generic --disable-mailto \ |
686 |
--disable-keyserver-path --disable-dns-srv --disable-dns-pka \ |
687 |
--disable-dns-cert --disable-nls --disable-threads --disable-regex \ |
688 |
--disable-optimization --with-included-zlib --without-capabilities \ |
689 |
--without-tar --without-ldap --without-libcurl --without-mailprog \ |
690 |
--without-libpth-prefix --without-libiconv-prefix --without-libintl-prefix\ |
691 |
--without-zlib --without-bzip2 --without-libusb --without-readline \ |
692 |
>> ${LOGFILE} 2>&1 || gen_die 'Configuring gnupg failed!' |
693 |
print_info 1 'gnupg: >> Compiling...' |
694 |
MAKE=${UTILS_MAKE} compile_generic "" "" |
695 |
print_info 1 'gnupg: >> Copying to cache...' |
696 |
[ -f "${TEMP}/${GPG_DIR}/g10/gpg" ] || |
697 |
gen_die 'gnupg executable does not exist!' |
698 |
strip "${TEMP}/${GPG_DIR}/g10/gpg" || |
699 |
gen_die 'Could not strip gpg binary!' |
700 |
bzip2 -z -c "${TEMP}/${GPG_DIR}/g10/gpg" > "${GPG_BINCACHE}" || |
701 |
gen_die 'Could not copy the gpg binary to the package directory, does the directory exist?' |
702 |
|
703 |
cd "${TEMP}" |
704 |
rm -rf "${GPG_DIR}" > /dev/null |
705 |
fi |
706 |
} |