summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2007-04-30 04:21:44 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2007-04-30 04:21:44 +0000
commitd6e14e8f1f1c8afa3a001d4cedbb601aa46f0dda (patch)
tree0e787a8a7bbe8b8d7f52e19b0074143500e7ba0f /net-p2p
parent- Added option to toggle NLS support (diff)
Fix a potentially bug that can get tracker users' statistics skewed. Bump the
PORTREVISION. Obtained from: Transmission SVN
Notes
Notes: svn path=/head/; revision=191180
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission-cli/Makefile2
-rw-r--r--net-p2p/transmission-cli/files/patch-libtransmission_tracker.c35
-rw-r--r--net-p2p/transmission-gtk2/Makefile2
-rw-r--r--net-p2p/transmission/Makefile2
-rw-r--r--net-p2p/transmission/files/patch-libtransmission_tracker.c35
5 files changed, 73 insertions, 3 deletions
diff --git a/net-p2p/transmission-cli/Makefile b/net-p2p/transmission-cli/Makefile
index dba7cee895fc..02546643dd21 100644
--- a/net-p2p/transmission-cli/Makefile
+++ b/net-p2p/transmission-cli/Makefile
@@ -7,7 +7,7 @@
PORTNAME= transmission
PORTVERSION= 0.71
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= net-p2p
MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/
DISTNAME= Transmission-${PORTVERSION}
diff --git a/net-p2p/transmission-cli/files/patch-libtransmission_tracker.c b/net-p2p/transmission-cli/files/patch-libtransmission_tracker.c
new file mode 100644
index 000000000000..6f8ad52d06a6
--- /dev/null
+++ b/net-p2p/transmission-cli/files/patch-libtransmission_tracker.c
@@ -0,0 +1,35 @@
+Index: /trunk/libtransmission/tracker.c
+===================================================================
+--- libtransmission/tracker.c (revision 1685)
++++ libtransmission/tracker.c (revision 1810)
+@@ -516,16 +516,15 @@
+ char * event, * trackerid, * idparam;
+ uint64_t left;
+- uint64_t down;
+- uint64_t up;
+ char start;
+ int numwant = 50;
+
+- down = tor->downloadedCur;
+- up = tor->uploadedCur;
+ if( tc->started )
+ {
+ event = "&event=started";
+- down = 0;
+- up = 0;
++
++ tor->downloadedPrev += tor->downloadedCur;
++ tor->downloadedCur = 0;
++ tor->uploadedPrev += tor->uploadedCur;
++ tor->uploadedCur = 0;
+
+ if( shouldChangePort( tc ) )
+@@ -576,6 +575,6 @@
+ "%s",
+ tcInf->announce, start, tor->escapedHashString,
+- tc->id, tc->publicPort, up, down, left, numwant,
+- tor->key, idparam, trackerid, event );
++ tc->id, tc->publicPort, tor->uploadedCur, tor->downloadedCur,
++ left, numwant, tor->key, idparam, trackerid, event );
+ }
+
diff --git a/net-p2p/transmission-gtk2/Makefile b/net-p2p/transmission-gtk2/Makefile
index 4e03a862bdd4..84a64f2f27fd 100644
--- a/net-p2p/transmission-gtk2/Makefile
+++ b/net-p2p/transmission-gtk2/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
#
-PORTREVISION= 0
+PORTREVISION= 1
PKGNAMESUFFIX= -gtk2
COMMENT= A free BitTorrent client written from scratch in C with GTK+2
diff --git a/net-p2p/transmission/Makefile b/net-p2p/transmission/Makefile
index dba7cee895fc..02546643dd21 100644
--- a/net-p2p/transmission/Makefile
+++ b/net-p2p/transmission/Makefile
@@ -7,7 +7,7 @@
PORTNAME= transmission
PORTVERSION= 0.71
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= net-p2p
MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/
DISTNAME= Transmission-${PORTVERSION}
diff --git a/net-p2p/transmission/files/patch-libtransmission_tracker.c b/net-p2p/transmission/files/patch-libtransmission_tracker.c
new file mode 100644
index 000000000000..6f8ad52d06a6
--- /dev/null
+++ b/net-p2p/transmission/files/patch-libtransmission_tracker.c
@@ -0,0 +1,35 @@
+Index: /trunk/libtransmission/tracker.c
+===================================================================
+--- libtransmission/tracker.c (revision 1685)
++++ libtransmission/tracker.c (revision 1810)
+@@ -516,16 +516,15 @@
+ char * event, * trackerid, * idparam;
+ uint64_t left;
+- uint64_t down;
+- uint64_t up;
+ char start;
+ int numwant = 50;
+
+- down = tor->downloadedCur;
+- up = tor->uploadedCur;
+ if( tc->started )
+ {
+ event = "&event=started";
+- down = 0;
+- up = 0;
++
++ tor->downloadedPrev += tor->downloadedCur;
++ tor->downloadedCur = 0;
++ tor->uploadedPrev += tor->uploadedCur;
++ tor->uploadedCur = 0;
+
+ if( shouldChangePort( tc ) )
+@@ -576,6 +575,6 @@
+ "%s",
+ tcInf->announce, start, tor->escapedHashString,
+- tc->id, tc->publicPort, up, down, left, numwant,
+- tor->key, idparam, trackerid, event );
++ tc->id, tc->publicPort, tor->uploadedCur, tor->downloadedCur,
++ left, numwant, tor->key, idparam, trackerid, event );
+ }
+