diff options
author | Patrick Lauer <patrick@gentoo.org> | 2010-01-28 11:48:07 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2010-01-28 11:48:07 +0000 |
commit | 1f93f8c811df28727ea54ffef1b1ce2ebc45311e (patch) | |
tree | e5deb2b8c0d895d36bf1d8b6a935597bfb7a1b5c /net-p2p | |
parent | Kwin needs opengl patch even for 4.3.5. Per bug #302548 (diff) | |
download | gentoo-2-1f93f8c811df28727ea54ffef1b1ce2ebc45311e.tar.gz gentoo-2-1f93f8c811df28727ea54ffef1b1ce2ebc45311e.tar.bz2 gentoo-2-1f93f8c811df28727ea54ffef1b1ce2ebc45311e.zip |
Bump for #300533
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/gnunet/ChangeLog | 9 | ||||
-rw-r--r-- | net-p2p/gnunet/gnunet-0.8.1.ebuild | 103 |
2 files changed, 110 insertions, 2 deletions
diff --git a/net-p2p/gnunet/ChangeLog b/net-p2p/gnunet/ChangeLog index a75a12825bbe..a46935f21c31 100644 --- a/net-p2p/gnunet/ChangeLog +++ b/net-p2p/gnunet/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-p2p/gnunet -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.66 2008/09/10 13:52:58 armin76 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.67 2010/01/28 11:48:07 patrick Exp $ + +*gnunet-0.8.1 (28 Jan 2010) + + 28 Jan 2010; Patrick Lauer <patrick@gentoo.org> +gnunet-0.8.1.ebuild: + Bump for #300533 10 Sep 2008; Raúl Porcel <armin76@gentoo.org> gnunet-0.7.3-r1.ebuild, gnunet-0.8.0.ebuild: diff --git a/net-p2p/gnunet/gnunet-0.8.1.ebuild b/net-p2p/gnunet/gnunet-0.8.1.ebuild new file mode 100644 index 000000000000..57b9616911d2 --- /dev/null +++ b/net-p2p/gnunet/gnunet-0.8.1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.8.1.ebuild,v 1.1 2010/01/28 11:48:07 patrick Exp $ + +EAPI=2 + +inherit eutils autotools + +S="${WORKDIR}/GNUnet-${PV}" +DESCRIPTION="GNUnet is an anonymous, distributed, reputation based network." +HOMEPAGE="http://gnunet.org/" +SRC_URI="http://gnunet.org/download/GNUnet-${PV}.tar.gz" +#tests don't work +RESTRICT="test" + +IUSE="ipv6 mysql +sqlite ncurses nls gtk" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +LICENSE="GPL-2" +SLOT="0" + +DEPEND=">=dev-libs/libgcrypt-1.2.0 + >=media-libs/libextractor-0.5.18a + >=dev-libs/gmp-4.0.0 + gnome-base/libglade + sys-libs/zlib + net-misc/curl + gtk? ( >=x11-libs/gtk+-2.6.10 ) + sys-apps/sed + >=dev-scheme/guile-1.8.0 + ncurses? ( sys-libs/ncurses ) + mysql? ( >=virtual/mysql-4.0 ) + sqlite? ( >=dev-db/sqlite-3.0.8 ) + nls? ( sys-devel/gettext )" + +pkg_setup() { + if ! use mysql && ! use sqlite; then + einfo + einfo "You need to specify at least one of 'mysql' or 'sqlite'" + einfo "USE flag in order to have properly installed gnunet" + einfo + die "Invalid USE flag set" + fi +} + +pkg_preinst() { + enewgroup gnunetd + enewuser gnunetd -1 -1 /dev/null gnunetd +} + +src_prepare() { + # make mysql default sqstore if we do not compile sqlite support + # (bug #107330) + ! use sqlite && \ + sed -i 's:default "sqstore_sqlite":default "sqstore_mysql":' \ + contrib/config-daemon.in + + # we do not want to built gtk support with USE=-gtk + if ! use gtk ; then + sed -i "s:AC_DEFINE_UNQUOTED..HAVE_GTK.*:true:" configure.ac + fi + + AT_M4DIR="${S}/m4" eautoreconf +} + +src_compile() { + local myconf + + use mysql || myconf="${myconf} --without-mysql" + + econf \ + $(use_with sqlite) \ + $(use_enable ipv6) \ + $(use_enable nls) \ + $(use_enable ncurses) \ + ${myconf} || die "econf failed" + + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" -j1 install || die "make install failed" + dodoc AUTHORS ChangeLog INSTALL NEWS PLATFORMS README README.fr UPDATING + insinto /etc + newins contrib/gnunet.root gnunet.conf + docinto contrib + dodoc contrib/* + newinitd "${FILESDIR}"/${PN}.initd gnunet + dodir /var/lib/gnunet + chown gnunetd:gnunetd "${D}"/var/lib/gnunet +} + +pkg_postinst() { + # make sure permissions are ok + chown -R gnunetd:gnunetd "${ROOT}"/var/lib/gnunet + + use ipv6 && ewarn "ipv6 support is -very- experimental and prone to bugs" + einfo + einfo "To configure" + einfo " 1) Add user(s) to the gnunetd group" + einfo " 2) Run 'gnunet-setup' to generate your client config file" + einfo " 3) Run gnunet-setup -d as root to generate a server config file" + einfo +} |