summaryrefslogtreecommitdiffstats
path: root/net-misc/d4x
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/d4x')
-rw-r--r--net-misc/d4x/ChangeLog245
-rw-r--r--net-misc/d4x/Manifest7
-rw-r--r--net-misc/d4x/d4x-2.5.7.1-r3.ebuild60
-rw-r--r--net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch96
-rw-r--r--net-misc/d4x/files/d4x-2.5.7.1-gentoo.patch101
-rw-r--r--net-misc/d4x/files/d4x-ds-X.diff24
-rw-r--r--net-misc/d4x/metadata.xml5
7 files changed, 538 insertions, 0 deletions
diff --git a/net-misc/d4x/ChangeLog b/net-misc/d4x/ChangeLog
new file mode 100644
index 0000000..82d1941
--- /dev/null
+++ b/net-misc/d4x/ChangeLog
@@ -0,0 +1,245 @@
+# ChangeLog for net-misc/d4x
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/d4x/ChangeLog,v 1.52 2008/01/24 14:02:21 armin76 Exp $
+
+ 24 Jan 2008; Raúl Porcel <armin76@gentoo.org> metadata.xml:
+ Fix metadata.xml
+
+ 14 Nov 2007; Raúl Porcel <armin76@gentoo.org> d4x-2.5.7.1-r2.ebuild:
+ sparc stable wrt #198845
+
+ 13 Nov 2007; Christian Faulhammer <opfer@gentoo.org>
+ d4x-2.5.7.1-r2.ebuild:
+ stable x86, bug 198845
+
+ 02 Nov 2007; Samuli Suominen <drac@gentoo.org> d4x-2.5.7.1-r2.ebuild:
+ Forcing -j1 to emake in src_install wrt #197497 and marking AMD64 stable.
+
+*d4x-2.5.7.1-r2 (28 Oct 2007)
+
+ 28 Oct 2007; Samuli Suominen <drac@gentoo.org>
+ +files/d4x-2.5.7.1-gentoo.patch, +d4x-2.5.7.1-r2.ebuild:
+ New ebuild and patch for #111769, #130479 and #193360 plus more.
+
+ 16 Jun 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ d4x-2.5.7.1-r1.ebuild:
+ Added ~ppc, bug #181022
+
+ 17 Mar 2007; Steve Dibb <beandog@gentoo.org> d4x-2.5.7.1-r1.ebuild:
+ amd64 stable
+
+ 13 Mar 2007; Raúl Porcel <armin76@gentoo.org> d4x-2.5.7.1-r1.ebuild:
+ x86 stable
+
+ 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
+ Transition to Manifest2.
+
+ 19 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ -files/d4x-2.4.1-fix-statusbar-crash.patch,
+ -files/d4x-sndserv-bigendian.patch, -d4x-2.4.1-r1.ebuild,
+ d4x-2.5.7.1-r1.ebuild:
+ Cleanup and 2.5.7.1-r1 sparc stable directly to get rid of broken oldie
+
+ 13 May 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ files/d4x-2.5.7.1-speed.patch:
+ Fixed patch.
+
+*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)
+
+ 06 May 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/d4x-2.5.7.1-libintl_fix.patch, +d4x-2.5.7.1.ebuild:
+ Version bump, see bug #130479.
+
+ 24 Apr 2006; Luis Medinas <metalgod@gentoo.org> d4x-2.5.6.ebuild:
+ Stable on amd64. Bug #130803.
+
+ 15 Jan 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ -files/d4x-2.5.0-fix-compile-gtk26.patch,
+ -files/d4x-2.5.0_rc2-gtk24.patch, -files/d4x-2.5.0_rc4-fix-cast.patch,
+ -files/d4x-2.5.5-stdint.patch, -d4x-2.5.0-r1.ebuild, -d4x-2.5.5.ebuild,
+ d4x-2.5.6.ebuild:
+ Removed old versions, 2.5.6 stable on x86.
+
+ 28 Dec 2005; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/d4x-2.5.6-libintl_fix.patch, d4x-2.5.6.ebuild:
+ Fix bug #111769. Thanks to Alexey Maximov.
+
+ 31 Oct 2005; Krzysiek Pawlik <nelchael@gentoo.org> -d4x-2.5.1.ebuild:
+ Removed old 2.5.1.
+
+*d4x-2.5.6 (31 Oct 2005)
+
+ 31 Oct 2005; Krzysiek Pawlik <nelchael@gentoo.org> +d4x-2.5.6.ebuild:
+ Version bump.
+
+ 27 Sep 2005; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/d4x-2.5.5-stdint.patch, d4x-2.5.5.ebuild:
+ Fix bug 107297.
+
+*d4x-2.5.5 (25 Sep 2005)
+
+ 25 Sep 2005; Krzysiek Pawlik <nelchael@gentoo.org> +d4x-2.5.5.ebuild:
+ New version: 2.5.5.
+
+ 20 Aug 2005; Jonathan Smith <smithj@gentoo.org> d4x-2.5.1.ebuild:
+ #103058: fixed dependency problem
+
+ 20 Aug 2005; Jonathan Smith <smithj@gentoo.org> -d4x-2.03.ebuild,
+ -d4x-2.5.0_rc2.ebuild, -d4x-2.5.0_rc4.ebuild, -d4x-2.5.0.ebuild,
+ d4x-2.5.0-r1.ebuild:
+ 2.5.0-r1 stable on x86, old ebuild cleanout
+
+ 18 Aug 2005; Jonathan Smith <smithj@gentoo.org> d4x-2.5.1.ebuild:
+ #103008: ebuild path fix
+
+*d4x-2.5.1 (18 Aug 2005)
+
+ 18 Aug 2005; Jonathan Smith <smithj@gentoo.org> +d4x-2.5.1.ebuild:
+ #102235: version bump
+
+ 18 Aug 2005; Jonathan Smith <smithj@gentoo.org> metadata.xml:
+ maintainer update (again)
+
+*d4x-2.5.0-r1 (24 Jun 2005)
+
+ 24 Jun 2005; Alastair Tse <liquidx@gentoo.org>
+ +files/d4x-2.5.0-fix-compile-gtk26.patch, +d4x-2.5.0-r1.ebuild:
+ Add gtk-2.6 compat patch. thanks to Fyodor Kupchick and Felix Riemann
+ (#79204)
+
+ 13 Jan 2005; Alastair Tse <liquidx@gentoo.org> d4x-2.5.0.ebuild:
+ add flags to enable downloads of greater than 2G (#73784)
+
+*d4x-2.5.0 (05 Dec 2004)
+
+ 05 Dec 2004; Markus Nigbur <pyrania@gentoo.org> +d4x-2.5.0.ebuild:
+ Version bump.
+
+ 05 Oct 2004; Malcolm Lashley <malc@gentoo.org> d4x-2.5.0_rc4.ebuild:
+ ~amd64 - bug #66462
+
+ 03 Jul 2004; <pyrania@gentoo.org> d4x-2.5.0_rc4.ebuild:
+ Marked stable.
+
+ 16 Jun 2004; Martin Schlemmer <azarah@gentoo.org>
+ +files/d4x-2.5.0_rc4-fix-cast.patch, d4x-2.5.0_rc4.ebuild:
+ Fix missing cast that is fatal with newer gcc.
+
+*d4x-2.5.0_rc4 (04 Feb 2004)
+
+ 15 Jun 2004; Alastair Tse <liquidx@gentoo.org> :
+ version bump, fixes industrial crash bug (#35865), should work on gtk2.4
+
+ 11 Jun 2004; Aron Griffis <agriffis@gentoo.org> d4x-2.03.ebuild,
+ d4x-2.4.1-r1.ebuild, d4x-2.5.0_rc2.ebuild:
+ Fix use invocation
+
+ 29 Apr 2004; Alastair Tse <liquidx@gentoo.org>
+ +files/d4x-2.5.0_rc2-gtk24.patch, d4x-2.5.0_rc2.ebuild:
+ add patch for gtk2.4 compatibility (#47984)
+
+ 26 Apr 2004; Aron Griffis <agriffis@gentoo.org> d4x-2.4.1-r1.ebuild:
+ Add die following econf for bug 48950
+
+ 11 Apr 2004; Markus Nigbur <pyrania@gentoo.org> d4x-2.5.0_rc2.ebuild:
+ Marked stable.
+
+ 04 Apr 2004; Jason Wever <weeve@gentoo.org> d4x-2.4.1-r1.ebuild:
+ Marked stable on sparc.
+
+ 28 Mar 2004; Jason Wever <weeve@gentoo.org> d4x-2.4.1-r1.ebuild,
+ files/d4x-sndserv-bigendian.patch:
+ Added big endian patch and ~sparc keyword to 2.4.1-r1.
+
+ 04 Feb 2004; Alastair Tse <liquidx@gentoo.org> d4x-2.4.1-r1.ebuild:
+ workaround deprecated gtk_ calls in 2.4.1 (#32202)
+
+*d4x-2.5.0_rc2 (04 Feb 2004)
+
+ 04 Feb 2004; Alastair Tse <liquidx@gentoo.org> d4x-2.4.1.ebuild,
+ d4x-2.5.0_beta2.ebuild, d4x-2.5.0_rc2.ebuild, metadata.xml:
+ version bump and cleanup (#37018)
+
+*d4x-2.5.0_beta2 (31 Aug 2003)
+
+ 31 Aug 2003; Alastair Tse <liquidx@gentoo.org> d4x-2.5.0_beta2.ebuild :
+ version bump. fixed some old compile probs (#24504). thanks to Nicolas Kaiser
+ <nikai@nikai.net>
+
+*d4x-2.4.1-r1 (30 Mar 2003)
+
+ 30 Mar 2003; Martin Schlemmer <azarah@gentoo.org> d4x-2.4.1-r1.ebuild :
+ Fix a miscompile for me with gcc-3.2.2 and CFLAGS="-O2". Fix indentation
+ of KDE menu stuff.
+
+*d4x-2.4.1 (08 Mar 2003)
+
+ 09 Mar 2003; Alastair Tse <liquidx@gentoo.org> d4x-2.4.1.ebuild :
+ Installs KDE menu entry. Cleaned deps.
+
+ 08 Mar 2003; Alastair Tse <liquidx@gentoo.org> d4x-2.4.1.ebuild :
+ Version Bump. Marked as unstable. Fixes #17023.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*nt-2.4_beta (19 Oct 2002)
+
+ 19 Oct 2002; Martin Schlemmer <azarah@gentoo.org> :
+ Add beta to portage.
+
+ 1 Sep 2002; Martin Schlemmer <azarah@gentoo.org> :
+ Move the whole shebang to net-misc/d4x, as it seems not all know
+ that it was named nt (cannot expect it really), and I think our
+ current nt-2.03 ebuild is much more complete than the newly added
+ one.
+
+*d4x-2.03 (1 Sep 2002)
+
+ 1 Sep 2002; Martin Schlemmer <azarah@gentoo.org> nt-2.03.ebuild :
+ New version.
+
+*nt-2.0.2 (23 Jul 2002)
+
+ 18 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> nt-2.02.ebuild :
+ New version that should fix GCC 3.1 compile problems. Ebuild
+ submitted by Daniel Mettler <mettlerd@icu.unizh.ch>.
+
+*nt-2.01 (7 Jun 2002)
+
+ 09 Jul 2002; phoen][x <phoenix@gentoo.org> nt-2.01.ebuild :
+ Added KEYWORDS, LICENSE.
+
+ 7 Jun 2002; Martin Schlemmer <azarah@gentoo.org> :
+ Bump to latest version.
+
+*nt-2.0 (30 Apr 2002)
+
+ 09 Jul 2002; phoen][x <phoenix@gentoo.org> nt-2.0.ebuild :
+ Added KEYWORDS, LICENSE.
+
+ 3 Jun 2002: Preston A. Elder <prez@gentoo.org> files/nt-2.0-gcc31.patch :
+ Added patch to make compile with gcc 3.1
+
+*nt-2.0_rc2 (28 Apr 2002)
+
+ 09 Jul 2002; phoen][x <phoenix@gentoo.org> nt-2.0_rc2.ebuild :
+ Added KEYWORDS, LICENSE.
+
+*nt-1.30 (1 Feb 2002)
+
+ 09 Jul 2002; phoen][x <phoenix@gentoo.org> nt-1.30.ebuild :
+ Added KEYWORDS, LICENSE, SLOT.
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/net-misc/d4x/Manifest b/net-misc/d4x/Manifest
new file mode 100644
index 0000000..f16da39
--- /dev/null
+++ b/net-misc/d4x/Manifest
@@ -0,0 +1,7 @@
+AUX d4x-2.5.7.1-ds-compile.patch 2799 SHA256 6faaf847883be9b2ddf275b94e77e8bdb70a8c008ba6c27ec6db19fd336d1160 SHA512 0fa471b31418513d30bbabc6013cec1c474f2dfa04fbe857af4b3ea40ca429507948e89a481deacacc5d539cb42cbff9b29e3793f05eaf9f9dfd1d67cf135d64 WHIRLPOOL bfa562fcd496cda3e91d5b4300e82aa238503aeaf18bbd20bf91bbfbaf494dfb15389202c9998af85f5c5c05fbe15ce7361feda7937ffb3a1875ff4fbcedb89c
+AUX d4x-2.5.7.1-gentoo.patch 3760 SHA256 9a9f1a15775a1286dec4a0ec9960b65883bb428498707b8b7b556aaa1a9db69f SHA512 10286577216de4fc155d6d1a27f63c193425c1c5faaa785996db643298b46d8abbfa9d3663f81c1ee7a3201108346ceb317720dfbc8c1bba9be1ad407f3bf1e5 WHIRLPOOL fd06fca58110be03092e4b647ff24af44cab5dd4bded5f2af633231e4347b3380e4af4d3306230a816bbbecd443f46e9a426b58d26b78e6e7c6b701d5adebdc8
+AUX d4x-ds-X.diff 1216 SHA256 02fe41eb14baeee84db4251e2e839cd83dd6a3b2924d3b87ac1e623d9b55ea8f SHA512 b08601bd0a066e9e3a8411686d4c41c5c9e27099d54085e0341ab5b563816a14e93a5cb6c115564b7448e4256fc11f25cc7cf6b827a7a02f81c1fa7e9ffb9e96 WHIRLPOOL 9d777d701a37094bcc4c8121f52093cc33f626ae49610756d29cc5f09eae654104018b403adaf88279376cc106e6cd8f80e6dedee3d5de203246efcce9d39d9d
+DIST d4x-2.5.7.1.tar.bz2 1606760 SHA256 7504bd38e561877ff5217e0e01dcb8eecaf47540248c7d15d6d1fabe049032c4 SHA512 ddf9a1f519e74268d20f5f0c9334559aa4cc26bd0cd5fd7d5f84ffcccaa445f8ac6078682be9ad9edce4fb0a984314c069c7fe40137e5d423e77e692aaa6a834 WHIRLPOOL 86bfa34ec0f2b86668a5dc31a8aabc03c4ace5c306b9e58e554e15e3165877da4f8d1178da6b598f6b550ca547847193941ad635372d7e78cc62c08a65d47103
+EBUILD d4x-2.5.7.1-r3.ebuild 1529 SHA256 3f1ec2d9121fb44acc01d450d79418f694a93cd9ed7b9d3d8c4e6cb9579d6a77 SHA512 4263f5888d3342f626706449721e60fd96577d7b42d052286f17cddde4bf284e8fd94a28bdaa9a2876280803139987d7e408aeefe1b915095b1f4dd1ea7b2bd8 WHIRLPOOL 8163c72bc76baadfeb0617208c42b5efbbdd5b33747110a254f3e71e2600c4ba32cf67e6179a3e4f9f19bafba55ed10c8c0df25666066c39a1118f8817475b2e
+MISC ChangeLog 8168 SHA256 5093bea5fc441050638f4e88ca7f504f0817a419c0c8820a38d9869d0bcd7eb7 SHA512 c1fa6d0b93ab985f0eda6666dce1178a60cb736bd55e4a48a1a04c6125323048b0cad206af7128c1557c41cab4268626366a4ae8ac85ab681fd56a88e7cbf5de WHIRLPOOL 90520a31a121b51588d0f8ecbf9c7521ff60ee457bdb4e7c947f7dc28240d6f1fcae76a68e20cbddd155b1451fb73b476cfb3ad5cbe0e73efb5a4c5a2a314c8b
+MISC metadata.xml 165 SHA256 d7da9ed29b7afb87ac00580d48a49d248f89c92269e9a7791782dc72f4490aec SHA512 243d1391ff105563c9bf0f75b1eab39434cfb69e084e81cebf6e4eb3aa391cd7e36210b2c3808895bf876dd761eb72330144af2a81e467453c60b37ccdf0e63c WHIRLPOOL f63c52b91f14d86972c7de46b5a50b2d47822a1347d627e05845027ff75299dc79a135988141e1dec933925c4e0213287ef6933ed76ed2fd3fcdff3757c1766b
diff --git a/net-misc/d4x/d4x-2.5.7.1-r3.ebuild b/net-misc/d4x/d4x-2.5.7.1-r3.ebuild
new file mode 100644
index 0000000..78c6725
--- /dev/null
+++ b/net-misc/d4x/d4x-2.5.7.1-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2007 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-r2.ebuild,v 1.4 2007/11/14 15:20:17 armin76 Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="GTK based download manager for X."
+HOMEPAGE="http://www.krasu.ru/soft/chuchelo"
+SRC_URI="http://d4x.krasu.ru/files/${P}.tar.bz2"
+
+KEYWORDS="amd64 ~ppc sparc x86"
+SLOT="0"
+LICENSE="Artistic"
+IUSE="ao esd nls oss ssl"
+
+RDEPEND=">=x11-libs/gtk+-2
+ dev-libs/boost
+ ssl? ( dev-libs/openssl )
+ !ao? ( esd? ( media-sound/esound ) )
+ ao? ( media-libs/libao )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext dev-util/intltool )"
+
+pkg_setup() {
+ use ao && ewarn "Selecting USE ao will disable oss and esd."
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # Bugs #111769, #130479 and #193360 plus more.
+ epatch "${FILESDIR}"/${P}-gentoo.patch || die
+ epatch "${FILESDIR}"/d4x-2.5.7.1-ds-compile.patch || die
+ epatch "${FILESDIR}"/d4x-ds-X.diff || die
+}
+
+src_compile() {
+ append-flags -D_FILE_OFFSET_BITS=64
+
+ econf $(use_enable nls) \
+ $(use_enable esd) \
+ $(use_enable oss) \
+ $(use_enable ssl openssl) \
+ $(use_enable ao libao)
+
+ emake OPTFLAGS="${CXXFLAGS}" || die "emake failed."
+}
+
+src_install () {
+ emake -j1 DESTDIR="${D}" install || die "emake install failed."
+
+ dodoc AUTHORS ChangeLog* NEWS README PLANS TODO
+ docinto doc
+ dodoc DOC/{FAQ*,README*,THANKS,TROUBLES}
+ doman DOC/nt.1
+
+ newicon share/nt.xpm ${PN}.xpm
+ make_desktop_entry ${PN} ${PN} ${PN}
+}
diff --git a/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch b/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch
new file mode 100644
index 0000000..b4620d0
--- /dev/null
+++ b/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch
@@ -0,0 +1,96 @@
+diff -dPNur d4x-2.5.7.1/main/face/edit.cc d4x-2.5.7.1-ds/main/face/edit.cc
+--- d4x-2.5.7.1/main/face/edit.cc 2006-03-20 01:10:36.000000000 +0100
++++ d4x-2.5.7.1-ds/main/face/edit.cc 2011-10-09 12:34:07.000000000 +0200
+@@ -1450,7 +1450,7 @@
+
+ static void _proxy_port_changed_(GtkEntry *entry,GtkEntry *entryh){
+ const char *tmp=gtk_entry_get_text(entryh);
+- char *tmp1=index(tmp,':');
++ char *tmp1=(char*)index(tmp,':');
+ if (tmp1){
+ *tmp1=0;
+ char *ns=sum_strings(tmp,":",gtk_entry_get_text(entry),NULL);
+diff -dPNur d4x-2.5.7.1/main/ftp.cc d4x-2.5.7.1-new/main/ftp.cc
+--- d4x-2.5.7.1/main/ftp.cc 2006-04-05 21:11:45.000000000 +0200
++++ d4x-2.5.7.1-new/main/ftp.cc 2011-10-09 12:41:22.000000000 +0200
+@@ -261,7 +261,7 @@
+ };
+
+ static void d4x_ftp_parse_pasv(const char *str,int args[]){
+- char *a=index(str,'(');
++ char *a=(char*)index(str,'(');
+ if (a==NULL) return;
+ a+=1;
+ int i=0;
+diff -dPNur d4x-2.5.7.1/main/html.cc d4x-2.5.7.1-new/main/html.cc
+--- d4x-2.5.7.1/main/html.cc 2005-09-13 07:42:40.000000000 +0200
++++ d4x-2.5.7.1-new/main/html.cc 2011-10-09 12:38:50.000000000 +0200
+@@ -700,7 +700,7 @@
+
+ void tHtmlParser::set_content_type(const char *ct){
+ //Example: text/html; charset=koi8-r
+- char *a=index(ct,'=');
++ char *a=(char*)index(ct,'=');
+ if (a) codepage=a+1;
+ };
+
+diff -dPNur d4x-2.5.7.1/main/locstr.cc d4x-2.5.7.1-new/main/locstr.cc
+--- d4x-2.5.7.1/main/locstr.cc 2005-11-11 22:38:45.000000000 +0100
++++ d4x-2.5.7.1-new/main/locstr.cc 2011-10-09 12:40:33.000000000 +0200
+@@ -281,7 +281,7 @@
+ DBC_RETVAL_IF_FAIL(str!=NULL,NULL);
+ DBC_RETVAL_IF_FAIL(what!=NULL,NULL);
+ while (*str){
+- char *a=index(what,*str);
++ char *a=(char*)index(what,*str);
+ if (a) return(str);
+ str++;
+ };
+@@ -472,7 +472,7 @@
+ char *escape_char(const char *where,char what,char bywhat){
+ DBC_RETVAL_IF_FAIL(where!=NULL,NULL);
+ int num=0;
+- char *tmp=index(where,what);
++ char *tmp=(char*)index(where,what);
+ while(tmp){
+ num+=1;
+ tmp=index(tmp+1,what);
+@@ -481,7 +481,7 @@
+ char *rvalue=new char[strlen(where)+num*2+1];
+ *rvalue=0;
+ char *r=rvalue;
+- tmp=index(where,what);
++ tmp=(char*)index(where,what);
+ while(tmp){
+ if (tmp-where)
+ memcpy(r,where,tmp-where);
+@@ -490,7 +490,7 @@
+ r[1]=what;
+ r+=2;
+ where=tmp+1;
+- tmp=index(where,what);
++ tmp=(char*)index(where,what);
+ };
+ *r=0;
+ if (*where)
+@@ -962,17 +962,17 @@
+ DBC_RETVAL_IF_FAIL(a!=NULL,NULL);
+ DBC_RETVAL_IF_FAIL(b!=NULL,NULL);
+ int i=0;
+- char *temp=index(b,'/');
++ char *temp=(char*)index(b,'/');
+ while (temp){
+ while (*temp=='/') temp+=1;
+ temp=index(temp,'/');
+ i+=1;
+ };
+ i-=1;
+- temp=rindex(a,'/');
++ temp=(char*)rindex(a,'/');
+ while (temp && i>0){
+ *temp=0;
+- char *tmp=rindex(a,'/');
++ char *tmp=(char*)rindex(a,'/');
+ *temp='/';
+ temp=tmp;
+ i-=1;
diff --git a/net-misc/d4x/files/d4x-2.5.7.1-gentoo.patch b/net-misc/d4x/files/d4x-2.5.7.1-gentoo.patch
new file mode 100644
index 0000000..f0014ca
--- /dev/null
+++ b/net-misc/d4x/files/d4x-2.5.7.1-gentoo.patch
@@ -0,0 +1,101 @@
+diff -ur d4x-2.5.7.1.orig/configure d4x-2.5.7.1/configure
+--- d4x-2.5.7.1.orig/configure 2006-04-12 19:48:29.000000000 +0300
++++ d4x-2.5.7.1/configure 2007-10-28 10:56:11.000000000 +0200
+@@ -18398,11 +18398,6 @@
+
+
+ cat >>confdefs.h <<\_ACEOF
+-#define GTK_DISABLE_DEPRECATED
+-_ACEOF
+-
+-
+-cat >>confdefs.h <<\_ACEOF
+ #define _FILE_OFFSET_BITS 64
+ _ACEOF
+
+diff -ur d4x-2.5.7.1.orig/configure.ac d4x-2.5.7.1/configure.ac
+--- d4x-2.5.7.1.orig/configure.ac 2005-11-05 01:35:38.000000000 +0200
++++ d4x-2.5.7.1/configure.ac 2007-10-28 10:56:11.000000000 +0200
+@@ -298,7 +298,6 @@
+
+ # Other needed defines
+ AC_DEFINE(_REENTRANT, , [Enable reenrant code of glibc])
+-AC_DEFINE(GTK_DISABLE_DEPRECATED, , [Enable warnings about deprecated functions usage])
+ AC_DEFINE(_FILE_OFFSET_BITS, 64, [To support files over 2GB])
+
+ # Prepare all requiered flags
+Only in d4x-2.5.7.1: de.po
+diff -ur d4x-2.5.7.1.orig/main/face/list.cc d4x-2.5.7.1/main/face/list.cc
+--- d4x-2.5.7.1.orig/main/face/list.cc 2006-03-20 02:29:41.000000000 +0200
++++ d4x-2.5.7.1/main/face/list.cc 2007-10-28 10:56:11.000000000 +0200
+@@ -8,7 +8,6 @@
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+-#define GTK_DISABLE_DEPRECATED
+
+ #include <stdio.h>
+ #include <gtk/gtk.h>
+diff -ur d4x-2.5.7.1.orig/main/face/prefs.cc d4x-2.5.7.1/main/face/prefs.cc
+--- d4x-2.5.7.1.orig/main/face/prefs.cc 2005-11-05 21:03:19.000000000 +0200
++++ d4x-2.5.7.1/main/face/prefs.cc 2007-10-28 11:04:15.000000000 +0200
+@@ -9,6 +9,7 @@
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
++#include <libintl.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ #include "../ntlocale.h"
+diff -ur d4x-2.5.7.1.orig/main/signal.cc d4x-2.5.7.1/main/signal.cc
+--- d4x-2.5.7.1.orig/main/signal.cc 2006-04-05 23:11:43.000000000 +0300
++++ d4x-2.5.7.1/main/signal.cc 2007-10-28 10:56:11.000000000 +0200
+@@ -89,7 +89,7 @@
+
+
+ void my_pthreads_mutex_init(pthread_mutex_t *lock){
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__GLIBC__)
+ /* manual page for mutexes said that mutexes in linux is fast by
+ default...
+ */
+diff -ur d4x-2.5.7.1.orig/main/socket.cc d4x-2.5.7.1/main/socket.cc
+--- d4x-2.5.7.1.orig/main/socket.cc 2006-04-09 15:39:25.000000000 +0300
++++ d4x-2.5.7.1/main/socket.cc 2007-10-28 10:56:11.000000000 +0200
+@@ -165,10 +165,10 @@
+ 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));
++ //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 -ur d4x-2.5.7.1.orig/Makefile.am d4x-2.5.7.1/Makefile.am
+--- d4x-2.5.7.1.orig/Makefile.am 2005-08-30 04:48:55.000000000 +0300
++++ d4x-2.5.7.1/Makefile.am 2007-10-28 11:28:02.000000000 +0200
+@@ -4,7 +4,7 @@
+
+ ACLOCAL_AMFLAGS = -I m4
+
+-SUBDIRS = DOC intl main po share
++SUBDIRS = intl main po share
+
+ # Extra files/dirs to be included in distribution
+ EXTRA_DIST = $(top_srcdir)/admin/Makefile.template \
+diff -ur d4x-2.5.7.1.orig/Makefile.in d4x-2.5.7.1/Makefile.in
+--- d4x-2.5.7.1.orig/Makefile.in 2006-04-12 19:48:32.000000000 +0300
++++ d4x-2.5.7.1/Makefile.in 2007-10-28 11:27:53.000000000 +0200
+@@ -256,7 +256,7 @@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+ ACLOCAL_AMFLAGS = -I m4
+-SUBDIRS = DOC intl main po share
++SUBDIRS = intl main po share
+
+ # Extra files/dirs to be included in distribution
+ EXTRA_DIST = $(top_srcdir)/admin/Makefile.template \
diff --git a/net-misc/d4x/files/d4x-ds-X.diff b/net-misc/d4x/files/d4x-ds-X.diff
new file mode 100644
index 0000000..72d3596
--- /dev/null
+++ b/net-misc/d4x/files/d4x-ds-X.diff
@@ -0,0 +1,24 @@
+diff -dPNur d4x-2.5.7.1-orig/configure d4x-2.5.7.1/configure
+--- d4x-2.5.7.1-orig/configure 2017-01-29 09:42:34.000000000 +0100
++++ d4x-2.5.7.1/configure 2017-01-29 09:46:56.947138276 +0100
+@@ -18405,7 +18405,7 @@
+ # Prepare all requiered flags
+ CXXFLAGS="$CXXFLAGS $OS_CXXFLAGS"
+ CPPFLAGS="$CPPFLAGS $ESD_CFLAGS $ESD_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS $OS_INCLUDES $AO_CFLAGS $SSL_CFLAGS"
+-LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS"
++LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS -lX11"
+ LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
+
+ # Remove duplicates from options
+diff -dPNur d4x-2.5.7.1-orig/configure.ac d4x-2.5.7.1/configure.ac
+--- d4x-2.5.7.1-orig/configure.ac 2017-01-29 09:47:14.316452900 +0100
++++ d4x-2.5.7.1/configure.ac 2017-01-29 09:42:34.801390253 +0100
+@@ -303,7 +303,7 @@
+ # Prepare all requiered flags
+ CXXFLAGS="$CXXFLAGS $OS_CXXFLAGS"
+ CPPFLAGS="$CPPFLAGS $ESD_CFLAGS $ESD_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS $OS_INCLUDES $AO_CFLAGS $SSL_CFLAGS"
+-LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS"
++LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS -lX11"
+ LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
+
+ # Remove duplicates from options
diff --git a/net-misc/d4x/metadata.xml b/net-misc/d4x/metadata.xml
new file mode 100644
index 0000000..40838bc
--- /dev/null
+++ b/net-misc/d4x/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>desktop-misc</herd>
+</pkgmetadata>