aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-p2p/gtk-gnutella/Makefile6
-rw-r--r--net-p2p/gtk-gnutella/distinfo2
-rw-r--r--net-p2p/gtk-gnutella/files/patch-download.c28
-rw-r--r--net-p2p/gtk-gnutella/files/patch-main.c13
-rw-r--r--net/gtk-gnutella/Makefile6
-rw-r--r--net/gtk-gnutella/distinfo2
-rw-r--r--net/gtk-gnutella/files/patch-download.c28
-rw-r--r--net/gtk-gnutella/files/patch-main.c13
8 files changed, 62 insertions, 36 deletions
diff --git a/net-p2p/gtk-gnutella/Makefile b/net-p2p/gtk-gnutella/Makefile
index 009ddde5c908..bd6f18fb10e5 100644
--- a/net-p2p/gtk-gnutella/Makefile
+++ b/net-p2p/gtk-gnutella/Makefile
@@ -6,20 +6,18 @@
#
PORTNAME= gtk-gnutella
-PORTVERSION= 0.15
+PORTVERSION= 0.18
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://gtk-gnutella.sourceforge.net/download/ \
ftp://gtk-gnutella.sourceforge.net/pub/gtk-gnutella/
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}_${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= roman@xpert.com
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GTK= yes
GNU_CONFIGURE= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.include <bsd.port.mk>
diff --git a/net-p2p/gtk-gnutella/distinfo b/net-p2p/gtk-gnutella/distinfo
index 5feeb5968f9d..18b9195934c6 100644
--- a/net-p2p/gtk-gnutella/distinfo
+++ b/net-p2p/gtk-gnutella/distinfo
@@ -1 +1 @@
-MD5 (gtk-gnutella_0.15.tar.gz) = e4474e8712b548b4366eb7c8f9a1951a
+MD5 (gtk-gnutella-0.18.tar.gz) = dd4e19f3c600fe139e0522208f3c9e37
diff --git a/net-p2p/gtk-gnutella/files/patch-download.c b/net-p2p/gtk-gnutella/files/patch-download.c
new file mode 100644
index 000000000000..cb5f1927af04
--- /dev/null
+++ b/net-p2p/gtk-gnutella/files/patch-download.c
@@ -0,0 +1,28 @@
+--- src/downloads.c.orig Wed Oct 3 19:12:04 2001
++++ src/downloads.c Fri Oct 26 11:09:48 2001
+@@ -7,6 +7,8 @@
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <fcntl.h>
+
+ GSList *sl_downloads = NULL;
+@@ -793,6 +795,7 @@
+ gboolean download_send_request(struct download *d)
+ {
+ gint rw;
++ struct sockaddr_in saddr;
+
+ g_return_val_if_fail(d, FALSE);
+
+@@ -821,6 +824,8 @@
+ d->record_index, d->file_name,
+ GTA_VERSION, GTA_SUBVERSION);
+
++ saddr.sin_addr.s_addr=htonl(d->ip);
++ printf("\n\n----Connected to %s:%d\n", inet_ntoa(saddr.sin_addr), d->port);
+ printf("----Sending Request:\n%.*s----\n", (int) rw, dl_tmp);
+ fflush(stdout);
+
diff --git a/net-p2p/gtk-gnutella/files/patch-main.c b/net-p2p/gtk-gnutella/files/patch-main.c
deleted file mode 100644
index 04dd4cea1053..000000000000
--- a/net-p2p/gtk-gnutella/files/patch-main.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/main.c.old Sun Sep 23 09:57:23 2001
-+++ src/main.c Sun Sep 23 09:57:49 2001
-@@ -2,7 +2,10 @@
- #include "gnutella.h"
-
- #include <signal.h>
-+
-+#ifdef HAVE_MCHECK_H
- #include <mcheck.h>
-+#endif
-
- #include "interface.h"
- #include "support.h"
diff --git a/net/gtk-gnutella/Makefile b/net/gtk-gnutella/Makefile
index 009ddde5c908..bd6f18fb10e5 100644
--- a/net/gtk-gnutella/Makefile
+++ b/net/gtk-gnutella/Makefile
@@ -6,20 +6,18 @@
#
PORTNAME= gtk-gnutella
-PORTVERSION= 0.15
+PORTVERSION= 0.18
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://gtk-gnutella.sourceforge.net/download/ \
ftp://gtk-gnutella.sourceforge.net/pub/gtk-gnutella/
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}_${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= roman@xpert.com
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GTK= yes
GNU_CONFIGURE= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.include <bsd.port.mk>
diff --git a/net/gtk-gnutella/distinfo b/net/gtk-gnutella/distinfo
index 5feeb5968f9d..18b9195934c6 100644
--- a/net/gtk-gnutella/distinfo
+++ b/net/gtk-gnutella/distinfo
@@ -1 +1 @@
-MD5 (gtk-gnutella_0.15.tar.gz) = e4474e8712b548b4366eb7c8f9a1951a
+MD5 (gtk-gnutella-0.18.tar.gz) = dd4e19f3c600fe139e0522208f3c9e37
diff --git a/net/gtk-gnutella/files/patch-download.c b/net/gtk-gnutella/files/patch-download.c
new file mode 100644
index 000000000000..cb5f1927af04
--- /dev/null
+++ b/net/gtk-gnutella/files/patch-download.c
@@ -0,0 +1,28 @@
+--- src/downloads.c.orig Wed Oct 3 19:12:04 2001
++++ src/downloads.c Fri Oct 26 11:09:48 2001
+@@ -7,6 +7,8 @@
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <fcntl.h>
+
+ GSList *sl_downloads = NULL;
+@@ -793,6 +795,7 @@
+ gboolean download_send_request(struct download *d)
+ {
+ gint rw;
++ struct sockaddr_in saddr;
+
+ g_return_val_if_fail(d, FALSE);
+
+@@ -821,6 +824,8 @@
+ d->record_index, d->file_name,
+ GTA_VERSION, GTA_SUBVERSION);
+
++ saddr.sin_addr.s_addr=htonl(d->ip);
++ printf("\n\n----Connected to %s:%d\n", inet_ntoa(saddr.sin_addr), d->port);
+ printf("----Sending Request:\n%.*s----\n", (int) rw, dl_tmp);
+ fflush(stdout);
+
diff --git a/net/gtk-gnutella/files/patch-main.c b/net/gtk-gnutella/files/patch-main.c
deleted file mode 100644
index 04dd4cea1053..000000000000
--- a/net/gtk-gnutella/files/patch-main.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/main.c.old Sun Sep 23 09:57:23 2001
-+++ src/main.c Sun Sep 23 09:57:49 2001
-@@ -2,7 +2,10 @@
- #include "gnutella.h"
-
- #include <signal.h>
-+
-+#ifdef HAVE_MCHECK_H
- #include <mcheck.h>
-+#endif
-
- #include "interface.h"
- #include "support.h"