# $Id$ PNAME="gnupg" PVER="2.0.17" PBUILD="r1" PCATEGORIE="app-crypt" DESCRIPTION="GnuPG is a complete and free replacement for PGP." HOMEPAGE="http://www.gnupg.org/" DEPEND=">= virtual/glibc >= virtual/mta >= app-arch/bzip2-1.0.6 >= net-misc/curl-7.21 >= dev-libs/pth-2 >= app-crypt/libgpg-error-1.9 >= app-crypt/libgcrypt-1.4.6 >= app-crypt/libksba-1.2 >= app-crypt/libassuan-2" SDEPEND=">= app-crypt/libassuan-2.0.2 >= sys-dev/gettext-0.18 >= sys-apps/texinfo-4" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) #UP2DATE="updatecmd ftp://ftp.gnupg.org/gcrypt/${PNAME}/ | lasttarball" UP2DATE="updatecmd ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/ | lasttarball" src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --enable-nls \ --enable-symcryptrun \ --enable-gpg \ --enable-gpgsm \ --enable-agent \ --enable-bzip2 \ --enable-scdaemon \ --disable-ldap \ --disable-capabilities \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # fix missing symlinks and man-pages mlink gpg2 /usr/bin/gpg || die mlink gpgv2 /usr/bin/gpgv || die echo ".so man1/gpg2.1" > ${BINDIR}/usr/share/man/man1/gpg.1 || die echo ".so man1/gpgv2.1" > ${BINDIR}/usr/share/man/man1/gpgv.1 || die minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die }