summaryrefslogtreecommitdiff
path: root/net/libtorrent
diff options
context:
space:
mode:
authortron <tron>2007-04-20 13:37:57 +0000
committertron <tron>2007-04-20 13:37:57 +0000
commitb1331f888ae9e99619b9f9ef13ab6b3c647c79b6 (patch)
treef18cfd5c2f448b057015a588b5e9dc6b6f2f5474 /net/libtorrent
parent1ec0a81761d07d6ba13888e4bc8c34cf07abd054 (diff)
downloadpkgsrc-b1331f888ae9e99619b9f9ef13ab6b3c647c79b6.tar.gz
Update "libtorrent" package to version 0.11.4 and "rtorrent" package
to version 0.7.4. Changes since versions 0.11.1 and 0.7.1 respectively: - Added "max_open_http" option that limits the max number of simultaneous http connections. By default set to 32. - Directory structured view of the file list. The '/' key collapses directories, while the right arrow or ^F enters the selected directory. Changing the priority for a directory changes all contained files. - Added "create_link" and "delete_link" options which apply to a download. These must be used with the new "on_*" options, so as to allow you to create symbolic links when starting, stopping, finishing, etc, a torrent. - The "tos" option was parsing the hex value with unit == 0, which caused it to always zero it. - Forgot to check if there were any torrents hashing before starting new non-fast-resume checks, which would cause multiple torrents to be hashed at once. - File progress is now updated when hash_check is called, and no longer cleared on close. This fixes a bug with >100% file progress being reported and optimizes file progress updating for completed torrents. - Disabled IPv6 http requests so the trackers won't think we support it, and enabled curl's support for gzip encodings. - Added 'seeding' view on key 8. - Added "max_{up,down}loads_{div,global}" options. See the man page for more information. - Added support for dvorak keyboard layout. Patch by matled at gmx.net. - The STOPPED request was being canceled when a download was closed with f.ex ^K, moved it so it only happens when the download is removed. - Allow properly quoted and escaped arguments to options. F.ex "schedule = wd,10,10,load_start=~/Foo\ Bar/*.torrent" and "schedule = wd,10,10,load_start="~/Foo Bar/*.torrent"" now works. - Added unlimited setting for max unchoked in ChokeManager and made it the default. Set with 0 as a temporary hack. - Don't resize empty files used for creating directories.
Diffstat (limited to 'net/libtorrent')
-rw-r--r--net/libtorrent/Makefile18
-rw-r--r--net/libtorrent/PLIST3
-rw-r--r--net/libtorrent/distinfo12
-rw-r--r--net/libtorrent/patches/patch-aa12
-rw-r--r--net/libtorrent/patches/patch-ab49
-rw-r--r--net/libtorrent/patches/patch-ac16
-rw-r--r--net/libtorrent/patches/patch-ad19
7 files changed, 19 insertions, 110 deletions
diff --git a/net/libtorrent/Makefile b/net/libtorrent/Makefile
index afa4ce4f898..09702d1b577 100644
--- a/net/libtorrent/Makefile
+++ b/net/libtorrent/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2007/01/26 18:48:52 tron Exp $
+# $NetBSD: Makefile,v 1.20 2007/04/20 13:37:57 tron Exp $
-DISTNAME= libtorrent-0.11.1
+DISTNAME= libtorrent-0.11.4
CATEGORIES= net
-MASTER_SITES= http://libtorrent.rakshasa.no/downloads/
+MASTER_SITES= ${HOMEPAGE:=downloads/}
MAINTAINER= tron@NetBSD.org
HOMEPAGE= http://libtorrent.rakshasa.no/
@@ -15,7 +15,6 @@ USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-debug
-CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
GCC_REQD+= 3.3
.include "../../mk/compiler.mk"
@@ -26,6 +25,15 @@ CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
-fno-inline -fforce-addr
.endif
-.include "../../devel/libsigc++2/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
+.if !exists(${BUILDLINK_PREFIX.openssl}/lib/pkgconfig/openssl.pc)
+OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include
+OPENSSL_LIBS= -L${BUILDLINK_PREFIX.openssl}/lib \
+ -W,-lR${BUILDLINK_PREFIX.openssl}/lib
+
+CONFIGURE_ENV+= OPENSSL_CFLAGS=${OPENSSL_CFLAGS:Q}
+CONFIGURE_ENV+= OPENSSL_LIBS=${OPENSSL_LIBS:Q}
+.endif
+
+.include "../../devel/libsigc++2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/libtorrent/PLIST b/net/libtorrent/PLIST
index c55fd9a2310..4059aa253e5 100644
--- a/net/libtorrent/PLIST
+++ b/net/libtorrent/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2007/01/26 18:48:52 tron Exp $
+@comment $NetBSD: PLIST,v 1.7 2007/04/20 13:37:57 tron Exp $
include/torrent/bitfield.h
include/torrent/chunk_manager.h
include/torrent/common.h
@@ -9,6 +9,7 @@ include/torrent/data/block_transfer.h
include/torrent/data/file.h
include/torrent/data/file_list.h
include/torrent/data/file_list_iterator.h
+include/torrent/data/file_manager.h
include/torrent/data/file_utils.h
include/torrent/data/piece.h
include/torrent/data/transfer_list.h
diff --git a/net/libtorrent/distinfo b/net/libtorrent/distinfo
index 7858a7063c9..ade64841c3f 100644
--- a/net/libtorrent/distinfo
+++ b/net/libtorrent/distinfo
@@ -1,9 +1,5 @@
-$NetBSD: distinfo,v 1.15 2007/01/26 18:48:52 tron Exp $
+$NetBSD: distinfo,v 1.16 2007/04/20 13:37:57 tron Exp $
-SHA1 (libtorrent-0.11.1.tar.gz) = 870f63f9a7eda597dbdb4be791ad0d29ea4902e2
-RMD160 (libtorrent-0.11.1.tar.gz) = f28327d0ebb2a608e3fa3f6f3414db150cc2d000
-Size (libtorrent-0.11.1.tar.gz) = 477557 bytes
-SHA1 (patch-aa) = b1b0246f757e382e3c9110a3462d9f3bd69f1fc8
-SHA1 (patch-ab) = 2faa87c46c9cdded0892b110bc704dbc833c231e
-SHA1 (patch-ac) = c7ee6cbac8959e611f11d0855e9bdd711423382e
-SHA1 (patch-ad) = 6bc04779e06ec55a9cd7540955ccf27546e2d87a
+SHA1 (libtorrent-0.11.4.tar.gz) = 6d997974b445858dfc11f88425ca422be610a296
+RMD160 (libtorrent-0.11.4.tar.gz) = 76fe310ee04205f432d1d55e8d4f131aef5a2d8e
+Size (libtorrent-0.11.4.tar.gz) = 513360 bytes
diff --git a/net/libtorrent/patches/patch-aa b/net/libtorrent/patches/patch-aa
deleted file mode 100644
index de3443d08de..00000000000
--- a/net/libtorrent/patches/patch-aa
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aa,v 1.6 2007/01/04 12:45:41 tron Exp $
-
---- src/torrent/chunk_manager.cc.orig 2006-10-27 15:48:45.000000000 +0200
-+++ src/torrent/chunk_manager.cc
-@@ -37,6 +37,7 @@
- #include "config.h"
-
- #include <sys/types.h>
-+#include <sys/time.h>
- #include <sys/resource.h>
-
- #include "data/chunk_list.h"
diff --git a/net/libtorrent/patches/patch-ab b/net/libtorrent/patches/patch-ab
deleted file mode 100644
index 483bb2b3dbc..00000000000
--- a/net/libtorrent/patches/patch-ab
+++ /dev/null
@@ -1,49 +0,0 @@
-$NetBSD: patch-ab,v 1.7 2007/01/26 18:48:52 tron Exp $
-
---- configure.orig 2006-12-24 12:54:00.000000000 +0000
-+++ configure 2007-01-26 15:15:13.000000000 +0000
-@@ -15823,6 +15823,10 @@
- cat >conftest.$ac_ext <<_ACEOF
- #include <sys/types.h>
- #include <sys/mman.h>
-+#if defined(__sun) && defined(__SVR4)
-+ #include <unistd.h>
-+#endif
-+
- void f() { mincore((char*)0, 0, (unsigned char*)0); }
-
- _ACEOF
-@@ -15953,6 +15957,9 @@
- cat >conftest.$ac_ext <<_ACEOF
- #include <sys/types.h>
- #include <sys/mman.h>
-+#if defined(__sun) && defined(__SVR4)
-+ #include <unistd.h>
-+#endif
- void f() { mincore((char*)0, 0, (unsigned char*)0); }
-
- _ACEOF
-@@ -16000,6 +16007,12 @@
- cat >conftest.$ac_ext <<_ACEOF
- #include <sys/types.h>
- #include <sys/mman.h>
-+#if defined(__sun) && defined(__SVR4)
-+ #include <unistd.h>
-+#endif
-+#if defined(__sun) && defined(__SVR4)
-+ #include <unistd.h>
-+#endif
- void f() { mincore((char*)0, 0, (char*)0); }
-
- _ACEOF
-@@ -16701,6 +16714,10 @@
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
-+ : Avoid regenerating within pkgsrc
-+ exit 0
-+ : Avoid regenerating within pkgsrc
-+ exit 0
- ac_cs_recheck=: ;;
- --version | --vers* | -V )
- echo "$ac_cs_version"; exit 0 ;;
diff --git a/net/libtorrent/patches/patch-ac b/net/libtorrent/patches/patch-ac
deleted file mode 100644
index 49ffecc3d2c..00000000000
--- a/net/libtorrent/patches/patch-ac
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2007/01/04 12:45:41 tron Exp $
-
---- rak/socket_address.h.orig 2006-10-27 15:48:46.000000000 +0200
-+++ rak/socket_address.h
-@@ -62,7 +62,11 @@ class socket_address_inet6;
-
- class socket_address {
- public:
-+#if defined(__sun) && defined(__SVR4)
-+ static const sa_family_t af_local = AF_UNIX;
-+#else
- static const sa_family_t af_local = AF_LOCAL;
-+#endif
- static const sa_family_t af_unix = AF_UNIX;
- // static const sa_family_t af_file = AF_FILE;
- static const sa_family_t af_inet = AF_INET;
diff --git a/net/libtorrent/patches/patch-ad b/net/libtorrent/patches/patch-ad
deleted file mode 100644
index d5050a07587..00000000000
--- a/net/libtorrent/patches/patch-ad
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2007/01/04 12:45:41 tron Exp $
-
---- src/data/memory_chunk.cc.orig 2006-10-27 15:48:42.000000000 +0200
-+++ src/data/memory_chunk.cc
-@@ -37,6 +37,14 @@
- #include "config.h"
-
- #include <unistd.h>
-+#if defined(__sun) && defined(__SVR4)
-+/* Ugly hack to make this compile on Solaris. See
-+ * http://www.opensolaris.org/jive/thread.jspa?threadID=21035&tstart=0
-+ */
-+extern "C" {
-+ extern int madvise(caddr_t, size_t, int);
-+}
-+#endif
- #include <rak/error_number.h>
-
- #include "torrent/exceptions.h"