head 1.7; access; symbols pkgsrc-2018Q1:1.6.0.34 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.32 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.30 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.26 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.24 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.22 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.20 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.18 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.16 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.14 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.12 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.10 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.8 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.6 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.4 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.2 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.5.0.6 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.4 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.2 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.4.0.2 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.2.0.8 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.4 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.2 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.1.0.6 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.4 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.2 pkgsrc-2011Q3-base:1.1; locks; strict; comment @# @; 1.7 date 2018.06.24.16.59.52; author adam; state dead; branches; next 1.6; commitid YWIsUnXsslYsvyHA; 1.6 date 2014.06.15.22.44.15; author tron; state Exp; branches; next 1.5; commitid 0cXt1i1VyoJQEFEx; 1.5 date 2013.09.18.16.33.08; author joerg; state Exp; branches; next 1.4; commitid NwNeoEqM8lqUhW5x; 1.4 date 2013.06.02.22.52.14; author tron; state Exp; branches; next 1.3; commitid jvCPOGwSvsjYQ5Sw; 1.3 date 2013.05.09.14.28.25; author joerg; state Exp; branches; next 1.2; 1.2 date 2012.05.16.17.42.37; author tron; state Exp; branches; next 1.1; 1.1 date 2011.07.30.17.06.33; author tron; state Exp; branches; next ; desc @@ 1.7 log @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. @ text @$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 @ 1.6 log @Update libtorrent to version 0.13.4 and rtorrent to version 0.9.4. A list of changes is not available unfortunately. But the update seems to prevent crashes with a message like this one: rtorrent: Read past initial payload after incoming encrypted handshake @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.5 2013/09/18 16:33:08 joerg Exp $ @ 1.5 log @Restore Clang support with libc++. Additional changes to deal with the inability of old GCC versions to cast to int implicitly. Bump revision. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.4 2013/06/02 22:52:14 tron Exp $ d3 1 a3 1 Fix handling of command line options. Please look here for details: a8 30 @@@@ -79,6 +79,14 @@@@ #include "thread_worker.h" +#if __cplusplus >= 201103L +#include +using std::bind; +#else +#include +using std::tr1::bind; +#endif + void handle_sigbus(int signum, siginfo_t* sa, void* ptr); void do_panic(int signum); void print_help(); @@@@ -208,11 +216,11 @@@@ main(int argc, char** argv) { torrent::log_add_group_output(torrent::LOG_NOTICE, "important"); torrent::log_add_group_output(torrent::LOG_INFO, "complete"); - torrent::Poll::slot_create_poll() = std::tr1::bind(&core::create_poll); + torrent::Poll::slot_create_poll() = bind(&core::create_poll); torrent::initialize(); - torrent::main_thread()->slot_do_work() = tr1::bind(&client_perform); - torrent::main_thread()->slot_next_timeout() = tr1::bind(&client_next_timeout, control); + torrent::main_thread()->slot_do_work() = bind(&client_perform); + torrent::main_thread()->slot_next_timeout() = bind(&client_next_timeout, control); worker_thread = new ThreadWorker(); worker_thread->init_thread(); @ 1.4 log @Back out all of the C++11 related patches. They don't only break the build under Mac OS X but also under NetBSD/amd64 6.1 with the default G++ compiler. This fixes PR pkg/47873 by myself. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.2 2012/05/16 17:42:37 tron Exp $ d8 32 a39 2 +++ src/main.cc 2012-05-14 23:44:41.000000000 +0100 @@@@ -843,14 +843,14 @@@@ @ 1.3 log @Use enums for constants to not depend on the optimizer to inline the values. Fix C++11 vs TR1 mismatches. @ text @d8 2 a9 32 +++ src/main.cc @@@@ -79,6 +79,14 @@@@ #include "thread_worker.h" +#if __cplusplus >= 201103L +#include +using std::bind; +#else +#include +using std::tr1::bind; +#endif + void handle_sigbus(int signum, siginfo_t* sa, void* ptr); void do_panic(int signum); void print_help(); @@@@ -208,11 +216,11 @@@@ main(int argc, char** argv) { torrent::log_add_group_output(torrent::LOG_NOTICE, "important"); torrent::log_add_group_output(torrent::LOG_INFO, "complete"); - torrent::Poll::slot_create_poll() = std::tr1::bind(&core::create_poll); + torrent::Poll::slot_create_poll() = std::bind(&core::create_poll); torrent::initialize(); - torrent::main_thread()->slot_do_work() = tr1::bind(&client_perform); - torrent::main_thread()->slot_next_timeout() = tr1::bind(&client_next_timeout, control); + torrent::main_thread()->slot_do_work() = bind(&client_perform); + torrent::main_thread()->slot_next_timeout() = bind(&client_next_timeout, control); worker_thread = new ThreadWorker(); worker_thread->init_thread(); @@@@ -843,14 +851,14 @@@@ main(int argc, char** argv) { @ 1.2 log @Update "libtorrent" package to version 0.13.2 and "rtorrent" package to version 0.9.2. A list of changes is not available unfortunately. But it seems that most of the Solaris related build fixes have been integrated. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.1 2011/07/30 17:06:33 tron Exp $ d8 32 a39 2 +++ src/main.cc 2012-05-14 23:44:41.000000000 +0100 @@@@ -843,14 +843,14 @@@@ @ 1.1 log @Update "libtorrent" package to version 0.12.9 and "rtorrent" package to version 0.8.9. Changes since version 0.12.6 respectively 0.8.6: - Added multithreading support for XMLRPC calls. Sponsored by Xirvik. - Discard dht cache if it is corrupt, instead of killing rtorrent. - Better handling of resume after crash/reboot alliviating the need to full hash checks. Sponsored by anonymous source. - Added support for Linux's fallocate and Darwin's fcntl(...,F_PREALLOCATE,...) to preallocate files by default. The 'system.file_allocate' setting will now only be used to indicate you want posix_fallocate called, which may block while it zeros out the file manually. - Added 'event.download.hash_failed' and 'event.download.hash_final_failed'. - Cleaning up command names. The deprecated commands will be redirected. - Renamed 'system.method.*' to 'method.*'. - Added 'system.files.{opened,closed,failed}_counter' commands. - Added xmlrpc calls for peer snubbed, banned and disconnect. - Added '-D' flag which turns of redirects for deprecated commands. Use this to ensure your scripts/webui's will be compatible with future releases. - Added separate '-I' and '-K' switches for command redirects, the former is for testing rtorrent code, the latter for webui's. - Added a static_map implementation based on Josef's patches. - Commited the DHT changes from dht-pex-static_map.diff with changes so it works with the modified static_map implementation. - Applied the magnet-uri patch. - Don't install the out-of-date man page. - Added 'execute.*.bg' commands for non-blocking calls. Always returns 0. - Added support for prioritizing first/last chunk of files matching specified patterns. Default: file.prioritize_toc.set=0 file.prioritize_toc.first.set = {*.avi,*.mp4,*.mkv,*.gz} file.prioritize_toc.last.set = {*.zip} - Added 'method.rlookup' and 'method.rlookup.clear' commands for looking up the event handlers holding a specified key, and set views to support rlookup. - Added 'd.timestamp.finished' that is set when a downloading torrent completes. For torrents that only seed it remains '0'. - Added 'elapsed.{less,greater}' for checking the time elapsed since a time is less/greater, and it also returns false in all cases where the time is '0'. - Moved the default value for 'system.files.max_size' to rtorrent, and set the default in libtorrent to ~0. - Increased the default values for min/max_peers and max_uploads. - Fixed a bug that would cause hash checking to block excessively in some cases. - Fixed a bug when setting the pex flags. - Fixed an issue where DHT's hashing function for TR1 unordered_map was casting unaligned size_t pointers. - Fixed default session name. - Added a missing inline that could cause linking errors. @ text @d1 1 a1 1 $NetBSD$ d7 3 a9 3 --- src/main.cc.orig 2011-06-12 07:43:04.000000000 +0100 +++ src/main.cc 2011-07-30 17:21:50.000000000 +0100 @@@@ -822,13 +822,13 @@@@ d15 3 a17 3 if (OptionParser::has_flag('n', argc, argv)) control->core()->push_log("Ignoring ~/.rtorrent.rc."); else d19 1 @