diff options
Diffstat (limited to 'net-p2p/gnunet/gnunet-0.6.2b.ebuild')
-rw-r--r-- | net-p2p/gnunet/gnunet-0.6.2b.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/net-p2p/gnunet/gnunet-0.6.2b.ebuild b/net-p2p/gnunet/gnunet-0.6.2b.ebuild new file mode 100644 index 000000000000..5722ac9181d6 --- /dev/null +++ b/net-p2p/gnunet/gnunet-0.6.2b.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.6.2b.ebuild,v 1.1 2004/06/29 01:25:10 squinky86 Exp $ + +inherit libtool + +S="${WORKDIR}/GNUnet-${PV}" +DESCRIPTION="GNUnet is an anonymous, distributed, reputation based network." +HOMEPAGE="http://www.gnu.org/software/GNUnet/" +SRC_URI="mirror://gnu/${PN}/GNUnet-${PV}.tar.bz2" +RESTRICT="nomirror" + +IUSE="ipv6 gtk crypt mysql" + +KEYWORDS="~x86 ~ppc" +LICENSE="GPL-2" +SLOT="0" + +DEPEND=">=dev-libs/openssl-0.9.6d + >=sys-libs/gdbm-1.8.0 + crypt? ( dev-libs/libgcrypt ) + gtk? ( =x11-libs/gtk+-1.2* ) + mysql? ( dev-db/mysql ) + >=media-libs/libextractor-0.3.1" + +src_unpack() { + unpack ${A} + cp ${FILESDIR}/gnunet-download-manager.scm ${S}/contrib/ + cd ${S} +} + +src_compile() { + elibtoolize + + local myconf + + if ! use gtk; then + myconf="${myconf} --without-gtk" + fi + + if ! use crypt; then + myconf="${myconf} --without-gcrypt" + fi + + if ! use mysql; then + myconf="${myconf} --without-mysql" + fi + + econf ${myconf} `use_enable ipv6` || die + + emake || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + dodoc AUTHORS ChangeLog PLATFORMS README UPDATING + insinto /etc + newins contrib/gnunet.root gnunet.conf + docinto contrib + dodoc contrib/* +} + +pkg_postinst() { + use ipv6 && ewarn "ipv6 support is -very- experimental and prone to bugs" + einfo + einfo "now copy an appropriate config file from" + einfo "/usr/share/doc/${P}/contrib" + einfo "to ~/.gnunet/gnunet.conf" + einfo +} |