aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/napshare
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2002-01-21 07:02:22 +0000
committerMike Heffner <mikeh@FreeBSD.org>2002-01-21 07:02:22 +0000
commit0c6b0118e188f4d1e0b8370196e5d740e9a860b7 (patch)
tree1125c7d61be3dcb971467fe123ce74c4a761041f /net-p2p/napshare
parent63f99e1d710e1721ff604ec39328590340298bdf (diff)
downloadports-0c6b0118e188f4d1e0b8370196e5d740e9a860b7.tar.gz
ports-0c6b0118e188f4d1e0b8370196e5d740e9a860b7.zip
Notes
Diffstat (limited to 'net-p2p/napshare')
-rw-r--r--net-p2p/napshare/Makefile3
-rw-r--r--net-p2p/napshare/distinfo2
-rw-r--r--net-p2p/napshare/files/patch-aa129
-rw-r--r--net-p2p/napshare/files/patch-ab31
-rw-r--r--net-p2p/napshare/pkg-descr6
5 files changed, 5 insertions, 166 deletions
diff --git a/net-p2p/napshare/Makefile b/net-p2p/napshare/Makefile
index b69638c03f42..50dc4556dc24 100644
--- a/net-p2p/napshare/Makefile
+++ b/net-p2p/napshare/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= napshare
-PORTVERSION= 0.1
-PORTREVISION= 1
+PORTVERSION= 1.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= napshare
diff --git a/net-p2p/napshare/distinfo b/net-p2p/napshare/distinfo
index 8b4f10d3987f..af94cd800abd 100644
--- a/net-p2p/napshare/distinfo
+++ b/net-p2p/napshare/distinfo
@@ -1 +1 @@
-MD5 (napshare-0.1.tar.gz) = d7e841fb0293e38a7f123357e8a1c0a4
+MD5 (napshare-1.0.tar.gz) = 6e1e7b2fce541cb91a48bc2843490b2a
diff --git a/net-p2p/napshare/files/patch-aa b/net-p2p/napshare/files/patch-aa
deleted file mode 100644
index 9468ac402c57..000000000000
--- a/net-p2p/napshare/files/patch-aa
+++ /dev/null
@@ -1,129 +0,0 @@
---- src/main.c.orig Wed Jul 4 10:28:06 2001
-+++ src/main.c Wed Jul 4 10:28:15 2001
-@@ -2,7 +2,6 @@
- #include "gnutella.h"
-
- #include <signal.h>
--#include <mcheck.h>
-
- #include "interface.h"
- #include "support.h"
---- src/search.c.orig Fri May 25 18:52:42 2001
-+++ src/search.c Wed Dec 12 16:33:52 2001
-@@ -14,17 +14,17 @@
-
- // Known Vendor Codes for reference
-
--#define BearShareType 'BEAR'
--#define GnotellaType 'GNOT'
--#define GnucleusType 'GNUC'
--#define LimeWireType 'LIME'
--#define MactellaType 'MACT'
--#define ToadNodeType 'TOAD'
--#define GnutType 'GNUT'
--#define GtkGnutellaType 'GTKG'
--#define NapShareType 'NAPS'
-+#define BearShareType "BEAR"
-+#define GnotellaType "GNOT"
-+#define GnucleusType "GNUC"
-+#define LimeWireType "LIME"
-+#define MactellaType "MACT"
-+#define ToadNodeType "TOAD"
-+#define GnutType "GNUT"
-+#define GtkGnutellaType "GTKG"
-+#define NapShareType "NAPS"
- // Open Cola Folders Client
--#define OCFoldersType 'OCFG'
-+#define OCFoldersType "OCFG"
-
- // some temp strings
- static gchar stmp_1[4096];
-@@ -907,15 +907,13 @@
- GSList *l, *next;
- gchar *titles[5], info[400], vendor[100], temp[6];
- struct record *rc;
-- guint32 row,i,t;
-+ guint32 row,i;
-
- vendor[0] = 0;
- rs->status = 0;
-- if (rs->trailer) { // we have trailer information, decode the vendor specific info
-- READ_GUINT32_BE((rs->trailer + 1), t); // put it into a int for easy compare
-- switch (t) // remember to skip rs->trailer length byte at [0]
-- {
-- case GtkGnutellaType: // got Gtk-Gnutella trailer, handle it
-+ if (rs->trailer) {
-+ // we have trailer information, decode the vendor specific info
-+ if ( !strncasecmp ( rs->trailer + 1, GtkGnutellaType, 4 )) {
- strcat(vendor,"GtkGnut"); // format bit 3= has uploaded, 2= busy, 0= need push
- rs->status = rs->status | 0x80; // bit 7, known vendor flag
- if ((rs->trailer[5] == 1) && (rs->trailer[6] & 0x04))
-@@ -923,54 +921,48 @@
- if ((rs->trailer[5] > 0) && (rs->trailer[6] & 0x01))
- rs->status = rs->status | 0x01; // bit 0, firewall flag
- // if (dbg > 4) printf("TRAILER=%.4X\n",rs->status); // use for testing
-- break;
-
-- case NapShareType: // got NapShare trailer, handle it
-+ } else if ( !strncasecmp ( rs->trailer + 1, NapShareType, 4 )) {
- strcat(vendor,"NapShare"); // format bit 3= has uploaded, 2= busy, 0= need push
- rs->status = rs->status | 0x80; // bit 7, known vendor flag
- if ((rs->trailer[5] == 1) && (rs->trailer[6] & 0x04))
- rs->status = rs->status | 0x02; // bit 1, busy flag
- if ((rs->trailer[5] > 0) && (rs->trailer[6] & 0x01))
- rs->status = rs->status | 0x01; // bit 0, firewall flag
-- break;
-
-- case LimeWireType: // got LimeWire trailer, handle it
-+ } else if ( !strncasecmp ( rs->trailer + 1, LimeWireType, 4 )) {
- strcat(vendor,"Lime"); // Not sure, but should be like bearshare
- rs->status = rs->status | 0x80; // bit 7, known vendor flag
- if ((rs->trailer[5] == 2) && (rs->trailer[7] & 0x04))
- rs->status = rs->status | 0x02; // bit 1, busy flag
- if ((rs->trailer[5] > 0) && (rs->trailer[6] & 0x01))
- rs->status = rs->status | 0x01; // bit 0, firewall flag
-- break;
-
-- case BearShareType: // got Bearshare trailer, handle it
-+ } else if ( !strncasecmp ( rs->trailer + 1, BearShareType, 4 )) {
- strcat(vendor,"Bear"); // Protocol doc says how to decode the bytes, but I cheat
- rs->status = rs->status | 0x80; // bit 7, known vendor flag
- if ((rs->trailer[5] == 2) && (rs->trailer[7] & 0x04))
- rs->status = rs->status | 0x02; // bit 1, busy flag
- if ((rs->trailer[5] > 0) && (rs->trailer[6] & 0x01))
- rs->status = rs->status | 0x01; // bit 0, firewall flag
-- break;
-
-- case GnotellaType: // got Gnotella trailer, handle it
-+ } else if ( !strncasecmp ( rs->trailer + 1, GnotellaType, 4 )) {
- strcat(vendor,"Gnot"); // same as bearshare
- rs->status = rs->status | 0x80; // bit 7, known vendor flag
- if ((rs->trailer[5] == 2) && (rs->trailer[7] & 0x04))
- rs->status = rs->status | 0x02; // bit 1, busy flag
- if ((rs->trailer[5] > 0) && (rs->trailer[6] & 0x01))
- rs->status = rs->status | 0x01; // bit 0, firewall flag
-- break;
-
-- case GnucleusType: // got Gnucleus trailer, handle it
-+ } else if ( !strncasecmp ( rs->trailer + 1, GnucleusType, 4 )) {
- strcat(vendor,"Gnuc"); // same as bearshare
- rs->status = rs->status | 0x80; // bit 7, known vendor flag
- if ((rs->trailer[5] == 2) && (rs->trailer[7] & 0x04))
- rs->status = rs->status | 0x02; // bit 1, busy flag
- if ((rs->trailer[5] > 0) && (rs->trailer[6] & 0x01))
- rs->status = rs->status | 0x01; // bit 0, firewall flag
-- break;
-
-- default:
-+ } else {
- temp[0] = 0;
- for (i=0;i<4;i++) { // unknown type, do we have all alpha ?
- if (isalpha(rs->trailer[i+1])) temp[i] = rs->trailer[i+1];
-@@ -981,7 +973,6 @@
- }
- temp[4] = 0; // terminate
- strcat(vendor,temp);
-- break;
- } // close switch statement
- } // if trailer
- if (rs->status & 0x02) strcat(vendor,",Busy");
diff --git a/net-p2p/napshare/files/patch-ab b/net-p2p/napshare/files/patch-ab
deleted file mode 100644
index 5cecf868df40..000000000000
--- a/net-p2p/napshare/files/patch-ab
+++ /dev/null
@@ -1,31 +0,0 @@
---- src/downloads.c.orig Sat May 26 23:20:32 2001
-+++ src/downloads.c Wed Dec 12 16:27:46 2001
-@@ -241,7 +241,8 @@
-
- d->last_update = time((time_t *) NULL);
-
-- d->remove_msg = reason;
-+ if (reason != NULL)
-+ d->remove_msg = g_strdup(reason);
-
- if (IS_DOWNLOAD_VISIBLE(d)) gui_update_download(d, TRUE);
-
-@@ -521,6 +522,7 @@
-
- g_free(d->path);
- g_free(d->file_name);
-+ g_free(d->remove_msg);
- g_free(d);
- }
-
---- src/gnutella.h.orig Wed Dec 12 16:43:41 2001
-+++ src/gnutella.h Wed Dec 12 16:43:53 2001
-@@ -274,7 +274,7 @@
- guint32 timeout_delay;
- guint restart_timer_id;
-
-- const gchar *remove_msg;
-+ gchar *remove_msg;
-
- guint32 ip;
- guint16 port;
diff --git a/net-p2p/napshare/pkg-descr b/net-p2p/napshare/pkg-descr
index 2fd6dfd3f434..0a484db8ddd8 100644
--- a/net-p2p/napshare/pkg-descr
+++ b/net-p2p/napshare/pkg-descr
@@ -1,9 +1,9 @@
NapShare is a GUI based Gnutella Client.
It's a fully featured Gnutella Client designed to share any type of
-file the user wishes to share. Take a nap while it does the work! When
-finished, you will supply a list of keywords and filters then it will
-download overnight, automatically, also sharing whatever it gets.
+file the user wishes to share. You supply a list of keywords and
+filters for the file types you want and it downloads them overnight,
+automatically
WWW: http://napshare.sourceforge.net/
- Mike Heffner