pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/rtorrent rtorrent: updated to 0.9.7
details: https://anonhg.NetBSD.org/pkgsrc/rev/f532ba7793f2
branches: trunk
changeset: 382261:f532ba7793f2
user: adam <adam%pkgsrc.org@localhost>
date: Sun Jun 24 16:59:52 2018 +0000
description:
rtorrent: updated to 0.9.7
0.9.7:
Bug-fix release while feature-bind is being worked on.
Fixed ip filter memory usage.
Add space to fmt str in log_gz_file_write.
Fix compilation issue with gcc v6.x and empty CXXFLAGS.
Fix BEP7 compatibility with IPv6 trackers and IPv4 peers.
Include SCGI/XMLRPC example in rtorrent.rc.
Handle SIGHUP like SIGINT.
Fix Throttle args.
Fix missing ranlib - not defined but used.
Fix no // are at start of expanded paths.
Fix ncurses header include.
Fix segfault when viewing a magnet download in the leeching view.
diffstat:
net/rtorrent/Makefile | 7 +-
net/rtorrent/distinfo | 20 ++---
net/rtorrent/options.mk | 4 +-
net/rtorrent/patches/patch-ad | 39 ------------
net/rtorrent/patches/patch-ae | 15 ----
net/rtorrent/patches/patch-af | 25 -------
net/rtorrent/patches/patch-ag | 25 -------
net/rtorrent/patches/patch-src_display_canvas.h | 24 +++++++
net/rtorrent/patches/patch-src_display_window__file__list.cc | 12 ---
net/rtorrent/patches/patch-src_main.cc | 24 +++++++
net/rtorrent/patches/patch-src_signal__handler.cc | 12 ---
net/rtorrent/patches/patch-src_utils_directory.cc | 39 ++++++++++++
net/rtorrent/patches/patch-src_utils_directory.h | 15 ++++
13 files changed, 116 insertions(+), 145 deletions(-)
diffs (truncated from 331 to 300 lines):
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/Makefile
--- a/net/rtorrent/Makefile Sun Jun 24 16:57:58 2018 +0000
+++ b/net/rtorrent/Makefile Sun Jun 24 16:59:52 2018 +0000
@@ -1,12 +1,11 @@
-# $NetBSD: Makefile,v 1.69 2018/04/29 21:32:00 adam Exp $
+# $NetBSD: Makefile,v 1.70 2018/06/24 16:59:52 adam Exp $
-DISTNAME= rtorrent-0.9.6
-PKGREVISION= 7
+DISTNAME= rtorrent-0.9.7
CATEGORIES= net
MASTER_SITES= http://rtorrent.net/downloads/
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://rakshasa.github.io/rtorrent/
+HOMEPAGE= https://github.com/rakshasa/rtorrent
COMMENT= Ncurses based torrent client with support for sessions
LICENSE= gnu-gpl-v2
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/distinfo
--- a/net/rtorrent/distinfo Sun Jun 24 16:57:58 2018 +0000
+++ b/net/rtorrent/distinfo Sun Jun 24 16:59:52 2018 +0000
@@ -1,12 +1,10 @@
-$NetBSD: distinfo,v 1.36 2015/11/04 00:35:34 agc Exp $
+$NetBSD: distinfo,v 1.37 2018/06/24 16:59:52 adam Exp $
-SHA1 (rtorrent-0.9.6.tar.gz) = c306a2fe1f329eec9da74522c034b249b0eb7230
-RMD160 (rtorrent-0.9.6.tar.gz) = 8ac9730ccd5544ee0f64628538a892d4f1d86081
-SHA512 (rtorrent-0.9.6.tar.gz) = 704f7b79d5bc78b817da21a6886662a5a97fde210a110c50f708bdc18e1dcf3ef5c5f4e2740261d41221cfc69c19926bf34e10057adf10601da9e6e06b2cef75
-Size (rtorrent-0.9.6.tar.gz) = 610845 bytes
-SHA1 (patch-ad) = b3b38e1d9d0887711ac54433e948bfc28112b985
-SHA1 (patch-ae) = a370881bfdd8534eb25fcbcff8d258b19797941f
-SHA1 (patch-af) = 842a01cbc75e61092b4d33fe9155a728e7c502e6
-SHA1 (patch-ag) = c0278f1d1ce7f635c5d10542026fc565dcff1927
-SHA1 (patch-src_display_window__file__list.cc) = ba005aa1a12317f190a6ec47277e7545b37f2a1c
-SHA1 (patch-src_signal__handler.cc) = a79d2dcd9a14de1e221ab94d2a14fe70b9b9ce36
+SHA1 (rtorrent-0.9.7.tar.gz) = 69d9ff5160f6fe7266b4b0f7a46045fd6370a650
+RMD160 (rtorrent-0.9.7.tar.gz) = 3eb3743d58581a59349ea4dddc23b5f36f2769f8
+SHA512 (rtorrent-0.9.7.tar.gz) = e663bd8984bcec91868beaf16d215708bdea8872338365ba6a05c9ea830b2aff045257bbc8bd0414d84009ee85852822c97bb073dfb41c21e3b0081ecaeecc00
+Size (rtorrent-0.9.7.tar.gz) = 610149 bytes
+SHA1 (patch-src_display_canvas.h) = 6b10c508158d594bcb0633c9e7f3e2885f8456d1
+SHA1 (patch-src_main.cc) = bdd4ebef64c3e137c226fdf1a1ad96c680b28add
+SHA1 (patch-src_utils_directory.cc) = b3b38e1d9d0887711ac54433e948bfc28112b985
+SHA1 (patch-src_utils_directory.h) = a370881bfdd8534eb25fcbcff8d258b19797941f
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/options.mk
--- a/net/rtorrent/options.mk Sun Jun 24 16:57:58 2018 +0000
+++ b/net/rtorrent/options.mk Sun Jun 24 16:59:52 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2011/07/28 23:14:46 tron Exp $
+# $NetBSD: options.mk,v 1.2 2018/06/24 16:59:52 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.rtorrent
PKG_SUPPORTED_OPTIONS= xmlrpc
@@ -7,6 +7,6 @@
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mxmlrpc)
-CONFIGURE_ARGS+= --with-xmlrpc-c=${PREFIX:Q}/bin/xmlrpc-c-config
+CONFIGURE_ARGS+= --with-xmlrpc-c=${PREFIX}/bin/xmlrpc-c-config
. include "../../textproc/xmlrpc-c/buildlink3.mk"
.endif
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-ad
--- a/net/rtorrent/patches/patch-ad Sun Jun 24 16:57:58 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-$NetBSD: patch-ad,v 1.5 2014/06/15 22:44:15 tron Exp $
-
-Fix build under DragonFly.
-
---- src/utils/directory.cc.orig 2014-04-21 14:34:45.000000000 +0100
-+++ src/utils/directory.cc 2014-06-15 21:07:36.000000000 +0100
-@@ -44,6 +44,10 @@
- #include <rak/path.h>
- #include <torrent/exceptions.h>
-
-+#ifdef __DragonFly__
-+#define d_reclen d_namlen
-+#endif
-+
- #include "directory.h"
-
- namespace utils {
-@@ -54,7 +58,9 @@
- if (m_path.empty())
- return false;
-
-- DIR* d = opendir(rak::path_expand(m_path).c_str());
-+ std::string path=rak::path_expand(m_path);
-+
-+ DIR* d = opendir(path.c_str());
- closedir(d);
-
- return d;
-@@ -65,7 +71,9 @@
- if (m_path.empty())
- throw torrent::input_error("Directory::update() tried to open an empty path.");
-
-- DIR* d = opendir(rak::path_expand(m_path).c_str());
-+ std::string path=rak::path_expand(m_path);
-+
-+ DIR* d = opendir(path.c_str());
-
- if (d == NULL)
- return false;
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-ae
--- a/net/rtorrent/patches/patch-ae Sun Jun 24 16:57:58 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ae,v 1.3 2012/05/16 17:42:37 tron Exp $
-
-Fix build under Solaris and DragonFly.
-
---- src/utils/directory.h.orig 2012-03-29 14:06:11.000000000 +0100
-+++ src/utils/directory.h 2012-05-14 23:40:30.000000000 +0100
-@@ -50,7 +50,7 @@
- // The name and types should match POSIX.
- uint32_t d_fileno;
- uint32_t d_reclen; //Not used. Messes with Solaris.
-- uint8_t d_type;
-+ uint32_t d_type;
-
- std::string d_name;
- };
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-af
--- a/net/rtorrent/patches/patch-af Sun Jun 24 16:57:58 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-af,v 1.4 2011/08/01 13:12:38 wiz Exp $
-
-Make this work with "ncurses" 5.8. Patch taken from here.
-
-http://www.mail-archive.com/arch-general%archlinux.org@localhost/msg18728.html
-
---- src/display/canvas.h.orig 2011-04-07 13:36:10.000000000 +0100
-+++ src/display/canvas.h 2011-07-30 16:40:10.000000000 +0100
-@@ -37,6 +37,7 @@
- #ifndef RTORRENT_DISPLAY_CANVAS_H
- #define RTORRENT_DISPLAY_CANVAS_H
-
-+#include <cstdarg>
- #include <string>
- #include <vector>
-
-@@ -48,7 +49,7 @@
- public:
- typedef std::vector<Attributes> attributes_list;
-
-- Canvas(int x = 0, int y = 0, int width = 0, int height = 0);
-+ Canvas(int x = 0, int y = 0, int width = 1, int height = 1);
- ~Canvas() { delwin(m_window); }
-
- void refresh() { wnoutrefresh(m_window); }
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-ag
--- a/net/rtorrent/patches/patch-ag Sun Jun 24 16:57:58 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-ag,v 1.6 2014/06/15 22:44:15 tron Exp $
-
-Fix handling of command line options.
-
-http://libtorrent.rakshasa.no/ticket/2657
-
---- src/main.cc.orig 2012-03-20 15:09:58.000000000 +0000
-+++ src/main.cc
-@@ -843,14 +851,14 @@ main(int argc, char** argv) {
- }
- #endif
-
-- int firstArg = parse_options(control, argc, argv);
--
- if (OptionParser::has_flag('n', argc, argv)) {
- lt_log_print(torrent::LOG_WARN, "Ignoring ~/.rtorrent.rc.");
- } else {
- rpc::parse_command_single(rpc::make_target(), "try_import = ~/.rtorrent.rc");
- }
-
-+ int firstArg = parse_options(control, argc, argv);
-+
- control->initialize();
-
- // Load session torrents and perform scheduled tasks to ensure
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-src_display_canvas.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-src_display_canvas.h Sun Jun 24 16:59:52 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_display_canvas.h,v 1.1 2018/06/24 16:59:52 adam Exp $
+
+Make this work with "ncurses" 5.8. Patch taken from:
+http://www.mail-archive.com/arch-general%archlinux.org@localhost/msg18728.html
+
+--- src/display/canvas.h.orig 2018-06-07 04:25:27.000000000 +0000
++++ src/display/canvas.h
+@@ -37,6 +37,7 @@
+ #ifndef RTORRENT_DISPLAY_CANVAS_H
+ #define RTORRENT_DISPLAY_CANVAS_H
+
++#include <cstdarg>
+ #include <string>
+ #include <vector>
+
+@@ -48,7 +49,7 @@ class Canvas {
+ public:
+ typedef std::vector<Attributes> attributes_list;
+
+- Canvas(int x = 0, int y = 0, int width = 0, int height = 0);
++ Canvas(int x = 0, int y = 0, int width = 1, int height = 1);
+ ~Canvas() { if (!m_isDaemon) { delwin(m_window); } }
+
+ void refresh() { if (!m_isDaemon) { wnoutrefresh(m_window); } }
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-src_display_window__file__list.cc
--- a/net/rtorrent/patches/patch-src_display_window__file__list.cc Sun Jun 24 16:57:58 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-src_display_window__file__list.cc,v 1.3 2013/09/18 16:33:08 joerg Exp $
-
---- src/display/window_file_list.cc.orig 2012-02-14 03:32:01.000000000 +0000
-+++ src/display/window_file_list.cc
-@@ -36,6 +36,7 @@
-
- #include "config.h"
-
-+#include <locale>
- #include <stdio.h>
- #include <torrent/path.h>
- #include <torrent/data/file.h>
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-src_main.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-src_main.cc Sun Jun 24 16:59:52 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_main.cc,v 1.1 2018/06/24 16:59:52 adam Exp $
+
+Fix handling of command line options.
+
+--- src/main.cc.orig 2018-06-07 04:25:26.000000000 +0000
++++ src/main.cc
+@@ -441,8 +441,6 @@ main(int argc, char** argv) {
+ }
+ #endif
+
+- int firstArg = parse_options(argc, argv);
+-
+ if (OptionParser::has_flag('n', argc, argv)) {
+ lt_log_print(torrent::LOG_WARN, "Ignoring rtorrent.rc.");
+ } else {
+@@ -459,6 +457,8 @@ main(int argc, char** argv) {
+ }
+ }
+
++ int firstArg = parse_options(argc, argv);
++
+ control->initialize();
+
+ // Load session torrents and perform scheduled tasks to ensure
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-src_signal__handler.cc
--- a/net/rtorrent/patches/patch-src_signal__handler.cc Sun Jun 24 16:57:58 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-src_signal__handler.cc,v 1.3 2013/09/18 16:33:09 joerg Exp $
-
---- src/signal_handler.cc.orig 2012-03-29 13:06:11.000000000 +0000
-+++ src/signal_handler.cc
-@@ -38,6 +38,7 @@
-
- #include <signal.h>
- #include <stdexcept>
-+#include <string>
- #include "rak/error_number.h"
- #include "signal_handler.h"
-
diff -r 7389fc6baebf -r f532ba7793f2 net/rtorrent/patches/patch-src_utils_directory.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-src_utils_directory.cc Sun Jun 24 16:59:52 2018 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-src_utils_directory.cc,v 1.1 2018/06/24 16:59:52 adam Exp $
+
+Fix build under DragonFly.
+
+--- src/utils/directory.cc.orig 2014-04-21 14:34:45.000000000 +0100
++++ src/utils/directory.cc 2014-06-15 21:07:36.000000000 +0100
+@@ -44,6 +44,10 @@
+ #include <rak/path.h>
+ #include <torrent/exceptions.h>
+
++#ifdef __DragonFly__
++#define d_reclen d_namlen
++#endif
++
+ #include "directory.h"
+
+ namespace utils {
+@@ -54,7 +58,9 @@
+ if (m_path.empty())
+ return false;
+
+- DIR* d = opendir(rak::path_expand(m_path).c_str());
++ std::string path=rak::path_expand(m_path);
++
++ DIR* d = opendir(path.c_str());
+ closedir(d);
+
Home |
Main Index |
Thread Index |
Old Index