diff options
author | Jon Hood <squinky86@gentoo.org> | 2006-05-14 04:52:06 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2006-05-14 04:52:06 +0000 |
commit | 7277ba39ddb1067ac03b75ffbdf5d471523405c6 (patch) | |
tree | ee2bd80191036bb446dadb16449181f530d91520 /net-p2p/gnunet | |
parent | Version bump in preparation of #133240. (diff) | |
download | gentoo-2-7277ba39ddb1067ac03b75ffbdf5d471523405c6.tar.gz gentoo-2-7277ba39ddb1067ac03b75ffbdf5d471523405c6.tar.bz2 gentoo-2-7277ba39ddb1067ac03b75ffbdf5d471523405c6.zip |
Version bump, #133240. Remove old vulnerable versions.
(Portage version: 2.1_rc1)
Diffstat (limited to 'net-p2p/gnunet')
-rw-r--r-- | net-p2p/gnunet/ChangeLog | 11 | ||||
-rw-r--r-- | net-p2p/gnunet/files/digest-gnunet-0.6.2b | 2 | ||||
-rw-r--r-- | net-p2p/gnunet/files/digest-gnunet-0.7.0d | 3 | ||||
-rw-r--r-- | net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch | 55 | ||||
-rw-r--r-- | net-p2p/gnunet/files/gnunet-2 | 31 | ||||
-rw-r--r-- | net-p2p/gnunet/gnunet-0.7.0d.ebuild | 116 |
6 files changed, 217 insertions, 1 deletions
diff --git a/net-p2p/gnunet/ChangeLog b/net-p2p/gnunet/ChangeLog index 1d082b5f2991..09c44d5f8558 100644 --- a/net-p2p/gnunet/ChangeLog +++ b/net-p2p/gnunet/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-p2p/gnunet # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.43 2006/01/13 13:22:45 mkay Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/ChangeLog,v 1.44 2006/05/14 04:52:06 squinky86 Exp $ + +*gnunet-0.7.0d (14 May 2006) + + 14 May 2006; Jon Hood <squinky86@gentoo.org> -files/gnunet-0.6.6b, + -files/gnunet-0.6.6b-autotools.patch, +files/gnunet-0.7.0d-nulludp.patch, + +files/gnunet-2, -gnunet-0.6.6b.ebuild, -gnunet-0.6.6b-r1.ebuild, + -gnunet-0.7.0.ebuild, -gnunet-0.7.0-r1.ebuild, -gnunet-0.7.0-r2.ebuild, + -gnunet-0.7.0a.ebuild, +gnunet-0.7.0d.ebuild: + Version bump, #133240. Remove old vulnerable versions. *gnunet-0.7.0a (13 Jan 2006) diff --git a/net-p2p/gnunet/files/digest-gnunet-0.6.2b b/net-p2p/gnunet/files/digest-gnunet-0.6.2b index 32ea08b194a3..0a353e597c4c 100644 --- a/net-p2p/gnunet/files/digest-gnunet-0.6.2b +++ b/net-p2p/gnunet/files/digest-gnunet-0.6.2b @@ -1 +1,3 @@ MD5 c3c8dcc940d3fdf35c0f606624362938 GNUnet-0.6.2b.tar.bz2 980714 +RMD160 6bcf1f1a12b1a15c745bea1fbe0c77f450613907 GNUnet-0.6.2b.tar.bz2 980714 +SHA256 015dc02aef8ea748723829d27b76c03fe48dc685082e858a9f48bcdf493d02e4 GNUnet-0.6.2b.tar.bz2 980714 diff --git a/net-p2p/gnunet/files/digest-gnunet-0.7.0d b/net-p2p/gnunet/files/digest-gnunet-0.7.0d new file mode 100644 index 000000000000..8d4042c25a97 --- /dev/null +++ b/net-p2p/gnunet/files/digest-gnunet-0.7.0d @@ -0,0 +1,3 @@ +MD5 c910ceb8acf02e8ef100951bf72ec71a GNUnet-0.7.0d.tar.bz2 1371958 +RMD160 b00d19a326ca0ae92641b89d3039f02782b286d6 GNUnet-0.7.0d.tar.bz2 1371958 +SHA256 990c00d41cb31b52ca30e54ad833327e73f22eca602fdb374bbf1e3eebe0ee33 GNUnet-0.7.0d.tar.bz2 1371958 diff --git a/net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch b/net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch new file mode 100644 index 000000000000..5e666af21ec8 --- /dev/null +++ b/net-p2p/gnunet/files/gnunet-0.7.0d-nulludp.patch @@ -0,0 +1,55 @@ +diff -Naur GNUnet-0.7.0d.orig/src/transports/udp.c GNUnet-0.7.0d/src/transports/udp.c +--- GNUnet-0.7.0d.orig/src/transports/udp.c 2006-03-12 01:04:29.000000000 -0600 ++++ GNUnet-0.7.0d/src/transports/udp.c 2006-05-13 23:17:45.000000000 -0500 +@@ -247,7 +247,21 @@ + } + if (pending <= 0) { + LOG(LOG_WARNING, +- _("UDP: select returned, but ioctl reports 0 bytes available!\n")); ++ _("UDP: select returned, but ioctl reports %d bytes available!\n"), ++ pending); ++ if (pending == 0) { ++ /* maybe empty UDP packet was sent (see report on bug-gnunet, ++ 5/11/6; read 0 bytes from UDP just to kill potential empty packet! */ ++ memset(&incoming, ++ 0, ++ sizeof(struct sockaddr_in)); ++ RECVFROM(udp_sock, ++ NULL, ++ 0, ++ 0, ++ (struct sockaddr * )&incoming, ++ &addrlen); ++ } + continue; + } + if (pending >= 65536) { +diff -Naur GNUnet-0.7.0d.orig/src/transports/udp6.c GNUnet-0.7.0d/src/transports/udp6.c +--- GNUnet-0.7.0d.orig/src/transports/udp6.c 2006-03-11 15:32:00.000000000 -0600 ++++ GNUnet-0.7.0d/src/transports/udp6.c 2006-05-13 23:17:45.000000000 -0500 +@@ -230,6 +230,25 @@ + LOG_STRERROR(LOG_ERROR, "ioctl"); + continue; + } ++ if (pending <= 0) { ++ LOG(LOG_WARNING, ++ _("UDP6: select returned, but ioctl reports %d bytes available!\n"), ++ pending); ++ if (pending == 0) { ++ /* maybe empty UDP packet was sent (see report on bug-gnunet, ++ 5/11/6; read 0 bytes from UDP just to kill potential empty packet! */ ++ memset(&incoming, ++ 0, ++ sizeof(struct sockaddr_in6)); ++ RECVFROM(udp6_sock, ++ NULL, ++ 0, ++ 0, ++ (struct sockaddr * )&incoming, ++ &addrlen); ++ } ++ continue; ++ } + if (pending >= 65536) { + BREAK(); + continue; diff --git a/net-p2p/gnunet/files/gnunet-2 b/net-p2p/gnunet/files/gnunet-2 new file mode 100644 index 000000000000..4d2da5e7c2f9 --- /dev/null +++ b/net-p2p/gnunet/files/gnunet-2 @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 +# description: Gnunet is an anonymous distributed secure network +# this server is required to connect to the network, +# it will open a TCP port to communicate with the +# GUI and an UDP port to communicate with the world. + +depend() { + need net +} + +start() { + ebegin "Starting GNUnet" + # -u username, -c path to gnunet.conf file + start-stop-daemon --start --quiet --background --exec /usr/bin/gnunetd \ + -- -u gnunet -c /etc/gnunet.conf + eend $? "Failed to start GNUnet" +} + +stop() { + ebegin "Stopping GNUnet" + killall gnunetd + eend $? "Failed to stop GNUnet" +} + +restart() { + svc_stop + sleep 3 + svc_start +} diff --git a/net-p2p/gnunet/gnunet-0.7.0d.ebuild b/net-p2p/gnunet/gnunet-0.7.0d.ebuild new file mode 100644 index 000000000000..d37fec8cba2d --- /dev/null +++ b/net-p2p/gnunet/gnunet-0.7.0d.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.7.0d.ebuild,v 1.1 2006/05/14 04:52:06 squinky86 Exp $ + +inherit eutils 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" +#tests don't work +RESTRICT="test" + +IUSE="ipv6 mysql sqlite guile 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 + ncurses? ( sys-libs/ncurses ) + mysql? ( >=dev-db/mysql-4.0.24 ) + sqlite? ( >=dev-db/sqlite-3.0.8 ) + guile? ( >=dev-util/guile-1.6.0 ) + 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 gnunet || die "Problem adding gnunet group" + enewuser gnunet -1 -1 /dev/null gnunet || die "Problem adding gnunet user" +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-nulludp.patch + + # 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 + autoconf || die "autoconf failed" + libtoolize --copy --force + fi +} + +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 gnunet:gnunet ${D}/var/lib/GNUnet +} + +pkg_postinst() { + # make sure permissions are ok + chown -R gnunet:gnunet /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 use as a global server config file" + einfo +} + |