# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Ben Lutgens # $Header: /home/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-1.0.6.ebuild,v 1.0 # 2001/04/21 12:45 CST blutgens Exp $ # Updated to GnuPG 1.0.7 by Olivier Reisch on Sun May 5 11:20:22 CEST 2002 DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement" HOMEPAGE="http://www.gnupg.org/" SRC_URI="ftp://ftp.gnupg.org/pub/gcrypt/gnupg/${P}.tar.gz" S="${WORKDIR}/${P}" DEPEND="virtual/glibc nls? ( >=sys-devel/gettext-0.10.35 ) >=sys-libs/zlib-1.1.3" src_unpack() { unpack "${A}" cd "${S}" } src_compile() { # Check to see if we're using nls local myconf if [ -z "`use nls`" ]; then myconf="--disable-nls" fi ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-static-rnd=linux \ --enable-m-guard --host="${CHOST}" \ ${myconf} || die emake || die } src_install () { make DESTDIR="${D}" install || die dodoc ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS PROJECTS dodoc README TODO VERSION docinto doc cd doc dodoc FAQ HACKING DETAILS ChangeLog docinto sgml dodoc gpg.sgml gpgv.sgml dohtml faq.html docinto txt dodoc faq.raw chmod +s "${D}/usr/bin/gpg" } pkg_postinst() { rm "/usr/share/info/gpgv.info.gz" einfo "gpg is installed SUID root to make use of protected memory space" einfo "This is needed in order to have a secure place to store your passphrases," einfo "etc. at runtime but may make some sysadmins nervous" }