summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2006-05-13 18:26:07 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2006-05-13 18:26:07 +0000
commita00891dff8b80c252d1bf26e4b5702c8aeb3a4b3 (patch)
tree25b626ac3653ea5be438ee307c45394ae9325ae5 /net-misc/d4x
parentbump intltool dep to fix #133166 (diff)
downloadhistorical-a00891dff8b80c252d1bf26e4b5702c8aeb3a4b3.tar.gz
historical-a00891dff8b80c252d1bf26e4b5702c8aeb3a4b3.tar.bz2
historical-a00891dff8b80c252d1bf26e4b5702c8aeb3a4b3.zip
Added a patch to fix download speed issue, see bug #130479.
Package-Manager: portage-2.1_pre10-r5
Diffstat (limited to 'net-misc/d4x')
-rw-r--r--net-misc/d4x/ChangeLog9
-rw-r--r--net-misc/d4x/d4x-2.5.7.1-r1.ebuild93
-rw-r--r--net-misc/d4x/files/d4x-2.5.7.1-speed.patch16
-rw-r--r--net-misc/d4x/files/digest-d4x-2.5.7.1-r13
4 files changed, 120 insertions, 1 deletions
diff --git a/net-misc/d4x/ChangeLog b/net-misc/d4x/ChangeLog
index 6c9d3093bf5f..9f75b5c521cd 100644
--- a/net-misc/d4x/ChangeLog
+++ b/net-misc/d4x/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/d4x
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/d4x/ChangeLog,v 1.40 2006/05/06 17:20:06 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/d4x/ChangeLog,v 1.41 2006/05/13 18:26:07 nelchael Exp $
+
+*d4x-2.5.7.1-r1 (13 May 2006)
+
+ 13 May 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/d4x-2.5.7.1-speed.patch, -d4x-2.5.7.1.ebuild,
+ +d4x-2.5.7.1-r1.ebuild:
+ Added a patch to fix download speed issue, see bug #130479.
*d4x-2.5.7.1 (06 May 2006)
diff --git a/net-misc/d4x/d4x-2.5.7.1-r1.ebuild b/net-misc/d4x/d4x-2.5.7.1-r1.ebuild
new file mode 100644
index 000000000000..6c8c449b2fd5
--- /dev/null
+++ b/net-misc/d4x/d4x-2.5.7.1-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/d4x/d4x-2.5.7.1-r1.ebuild,v 1.1 2006/05/13 18:26:07 nelchael Exp $
+
+IUSE="nls esd gnome oss kde"
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="GTK based download manager for X."
+SRC_URI="http://d4x.krasu.ru/files/${P}.tar.bz2"
+HOMEPAGE="http://www.krasu.ru/soft/chuchelo/"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="Artistic"
+
+DEPEND=">=x11-libs/gtk+-2.0.6
+ >=dev-libs/glib-2.0.6
+ >=sys-devel/gettext-0.11.2
+ >=dev-libs/openssl-0.9.7e
+ dev-libs/boost
+ esd? ( >=media-sound/esound-0.2.7 )"
+
+src_unpack() {
+
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-libintl_fix.patch"
+ epatch "${FILESDIR}/${P}-speed.patch"
+
+ cd ${S}
+ # Fix "implausibly old time stamp 1970-01-01 01:00:00":
+ touch share/themes/gnome/popup/remove.png
+
+ # Use our own $CXXFLAGS
+ sed -i -e \
+ "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g;s:OPTFLAGS=\"-O2\":OPTFLAGS=\"\":g" \
+ configure
+
+}
+
+src_compile() {
+
+ myconf=""
+ append-flags -D_FILE_OFFSET_BITS=64
+
+ use nls \
+ && myconf="${myconf} --enable-nls" \
+ || myconf="${myconf} --disable-nls"
+
+ use esd \
+ && myconf="${myconf} --enable-esd" \
+ || myconf="${myconf} --disable-esd"
+
+ use oss \
+ && myconf="${myconf} --enable-oss" \
+ || myconf="${myconf} --disable-oss"
+
+ econf --enable-release \
+ ${myconf} || die
+
+ emake || die
+
+}
+
+src_install () {
+
+ dodir /usr/bin
+ dodir /usr/share/d4x
+
+ einstall || die
+
+ insinto /usr/share/pixmaps
+ doins share/*.png share/*.xpm
+
+ if use kde
+ then
+ insinto /usr/share/applnk/Internet
+ newins share/nt.desktop d4x.desktop
+ fi
+
+ if use gnome
+ then
+ echo "Categories=Application;Network;" >> ${S}/share/nt.desktop
+ insinto /usr/share/applications
+ newins share/nt.desktop d4x.desktop
+ fi
+
+ rm -rf ${D}/usr/share/d4x/{FAQ*,INSTALL*,README*,LICENSE,AUTHORS,TROUBLES}
+ dodoc AUTHORS COPYING ChangeLog* NEWS PLANS TODO \
+ DOC/{FAQ*,LICENSE,README*,TROUBLES,THANKS}
+
+}
diff --git a/net-misc/d4x/files/d4x-2.5.7.1-speed.patch b/net-misc/d4x/files/d4x-2.5.7.1-speed.patch
new file mode 100644
index 000000000000..9ec0a661a07f
--- /dev/null
+++ b/net-misc/d4x/files/d4x-2.5.7.1-speed.patch
@@ -0,0 +1,16 @@
+--- d4x-2.5.7.1.vanilla/main/socket.cc 2006-05-13 22:24:42.000000000 +0530
++++ d4x-2.5.7.1/main/socket.cc 2006-05-13 22:26:54.000000000 +0530
+@@ -164,11 +164,11 @@
+ if ((fd = socket(info.sin_family,SOCK_STREAM, 0)) < 0)
+ return(SOCKET_CANT_ALLOCATE);
+ int a=1;
+- setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
++
+ setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
+
+ size_t sl=2000; //set receive buffer to default+30% MTU size
+- setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl));
++ #setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl));
+
+ if (!connect_impl())
+ return(SOCKET_CANT_CONNECT);
diff --git a/net-misc/d4x/files/digest-d4x-2.5.7.1-r1 b/net-misc/d4x/files/digest-d4x-2.5.7.1-r1
new file mode 100644
index 000000000000..8b7e6436a924
--- /dev/null
+++ b/net-misc/d4x/files/digest-d4x-2.5.7.1-r1
@@ -0,0 +1,3 @@
+MD5 68d6336c3749a7caabb0f5a5f84f4102 d4x-2.5.7.1.tar.bz2 1606760
+RMD160 3f3cc855638eb5657553ed181b94cdb68e393599 d4x-2.5.7.1.tar.bz2 1606760
+SHA256 7504bd38e561877ff5217e0e01dcb8eecaf47540248c7d15d6d1fabe049032c4 d4x-2.5.7.1.tar.bz2 1606760