Version bump wrt bug 167680
authorRaúl Porcel <armin76@gentoo.org>
Fri, 23 Mar 2007 17:04:22 +0000 (17:04 +0000)
committerRaúl Porcel <armin76@gentoo.org>
Fri, 23 Mar 2007 17:04:22 +0000 (17:04 +0000)
Package-Manager: portage-2.1.2.2

net-p2p/gnunet-gtk/ChangeLog
net-p2p/gnunet-gtk/files/digest-gnunet-gtk-0.7.1b [new file with mode: 0644]
net-p2p/gnunet-gtk/gnunet-gtk-0.7.1b.ebuild [new file with mode: 0644]
net-p2p/gnunet/ChangeLog
net-p2p/gnunet/files/digest-gnunet-0.7.1b [new file with mode: 0644]
net-p2p/gnunet/gnunet-0.7.1b.ebuild [new file with mode: 0644]

index 8b0d9975017505a31c5ab7161ce21de3eb6d4d50..8aa44f7016cc83b28d160aa9c07be80be6c45f42 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-p2p/gnunet-gtk
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet-gtk/ChangeLog,v 1.6 2007/01/23 15:53:20 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet-gtk/ChangeLog,v 1.7 2007/03/23 17:04:22 armin76 Exp $
+
+*gnunet-gtk-0.7.1b (23 Mar 2007)
+
+  23 Mar 2007; Raúl Porcel <armin76@gentoo.org> +gnunet-gtk-0.7.1b.ebuild:
+  Version bump wrt bug 167680
 
   23 Jan 2007; Raúl Porcel <armin76@gentoo.org> -gnunet-gtk-0.7.0d.ebuild:
   Drop old
diff --git a/net-p2p/gnunet-gtk/files/digest-gnunet-gtk-0.7.1b b/net-p2p/gnunet-gtk/files/digest-gnunet-gtk-0.7.1b
new file mode 100644 (file)
index 0000000..4eab217
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 c3660a540bbbc0034c28252dadd36bd9 gnunet-gtk-0.7.1b.tar.bz2 567409
+RMD160 02cdb94c0ea9cc2e2f7a0a8b14723e14600e8d20 gnunet-gtk-0.7.1b.tar.bz2 567409
+SHA256 6efdc84b898b6e8e6b692dde76e4f04cebea188b75be224d431e4c3497ccb9ff gnunet-gtk-0.7.1b.tar.bz2 567409
diff --git a/net-p2p/gnunet-gtk/gnunet-gtk-0.7.1b.ebuild b/net-p2p/gnunet-gtk/gnunet-gtk-0.7.1b.ebuild
new file mode 100644 (file)
index 0000000..370c000
--- /dev/null
@@ -0,0 +1,25 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet-gtk/gnunet-gtk-0.7.1b.ebuild,v 1.1 2007/03/23 17:04:22 armin76 Exp $
+
+DESCRIPTION="Graphical front end for GNUnet."
+HOMEPAGE="http://gnunet.org/"
+SRC_URI="http://gnunet.org/download/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=x11-libs/gtk+-2.6.0
+       >=net-p2p/gnunet-${PV}
+       >=gnome-base/libglade-2.0"
+
+src_compile() {
+       econf --with-gnunet=/usr || die "econf failed"
+       emake -j1 || die "emake failed"
+}
+
+src_install() {
+       make install DESTDIR=${D} install || die
+}
index cd23c868feb41084e4403153fd1761eda4c1269d..f2e4657edc9c68cb5cbcc3f2dd81ee413064f1d1 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-p2p/gnunet
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.53 2007/01/21 14:27:02 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.54 2007/03/23 17:02:37 armin76 Exp $
+
+*gnunet-0.7.1b (23 Mar 2007)
+
+  23 Mar 2007; Raúl Porcel <armin76@gentoo.org> +gnunet-0.7.1b.ebuild:
+  Version bump wrt bug 167680
 
   21 Jan 2007; Raúl Porcel <armin76@gentoo.org>
   -files/gnunet-ipv6-gentoo.patch, -files/gnunet-0.7.0d-nulludp.patch,
diff --git a/net-p2p/gnunet/files/digest-gnunet-0.7.1b b/net-p2p/gnunet/files/digest-gnunet-0.7.1b
new file mode 100644 (file)
index 0000000..9a65414
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 4fdc7706e6ee1a88c043adedb56131ba GNUnet-0.7.1b.tar.bz2 1431707
+RMD160 efff93e2a01ae1cc4ab5cc801771cc87352dc8de GNUnet-0.7.1b.tar.bz2 1431707
+SHA256 d2e2aaebb26851f0b334488faac419b1ef1ab9c6a047744ce01cf51c6a5180ca GNUnet-0.7.1b.tar.bz2 1431707
diff --git a/net-p2p/gnunet/gnunet-0.7.1b.ebuild b/net-p2p/gnunet/gnunet-0.7.1b.ebuild
new file mode 100644 (file)
index 0000000..5f64b00
--- /dev/null
@@ -0,0 +1,119 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.7.1b.ebuild,v 1.1 2007/03/23 17:02:37 armin76 Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+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.bz2"
+#tests don't work
+RESTRICT="test"
+
+IUSE="ipv6 mysql sqlite ncurses nls gtk"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=dev-libs/libgcrypt-1.2.0
+       >=media-libs/libextractor-0.5.13
+       >=dev-libs/gmp-4.0.0
+       sys-libs/zlib
+       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 || die "Problem adding gnunetd group"
+       enewuser gnunetd -1 -1 /dev/null gnunetd || die "Problem adding gnunetd user"
+}
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+
+       # make mysql default sqstore if we do not compile sql 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
+
+       if use ipv6; then
+               if use amd64; then
+                       ewarn "ipv6 in GNUnet does not currently work with amd64 and has been disabled"
+               else
+                       myconf="${myconf} --enable-ipv6"
+               fi
+       fi
+
+       use mysql || myconf="${myconf} --without-mysql"
+
+       econf \
+               $(use_with sqlite) \
+               $(use_enable nls) \
+               $(use_enable ncurses) \
+               $(use_enable guile) \
+               ${myconf} || die "econf failed"
+
+       emake -j1 || die "emake failed"
+}
+
+src_install() {
+       make install DESTDIR=${D} || die "make install failed"
+       dodoc ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS PLATFORMS README README.fr UPDATING
+       insinto /etc
+       newins contrib/gnunet.root gnunet.conf
+       docinto contrib
+       dodoc contrib/*
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/${PN}-2 gnunet
+       dodir /var/lib/gnunet
+       chown gnunetd:gnunetd ${D}/var/lib/gnunet
+}
+
+pkg_postinst() {
+       # make sure permissions are ok
+       chown -R gnunetd:gnunetd /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 gnunet group"
+       einfo "  2) Run 'gnunet-setup' to generate your client config file"
+       einfo "  3) Run gnunet-setup -d to generate a server config file"
+       einfo "  4) Optionally copy the .gnunet/gnunetd.conf into /etc and"
+       einfo "\tuse as a global server config file:"
+       einfo "$ gnunet-setup -d"
+       einfo "# cp ~/.gnunet/gnunetd.conf /etc/"
+       einfo
+}
+