Mon Dec 16 18:00:51 2019 UTC ()
net: Add libtorrent-rasterbar
libtorrent-rasterbar is a feature complete C++ bittorrent implementation
focusing on efficiency and scalability.
(nia)
diff -r1.1278 -r1.1279 pkgsrc/net/Makefile
diff -r0 -r1.1 pkgsrc/net/libtorrent-rasterbar/DESCR
diff -r0 -r1.1 pkgsrc/net/libtorrent-rasterbar/Makefile
diff -r0 -r1.1 pkgsrc/net/libtorrent-rasterbar/PLIST
diff -r0 -r1.1 pkgsrc/net/libtorrent-rasterbar/buildlink3.mk
diff -r0 -r1.1 pkgsrc/net/libtorrent-rasterbar/distinfo
diff -r0 -r1.1 pkgsrc/net/libtorrent-rasterbar/patches/patch-include_libtorrent_buffer.hpp
--- pkgsrc/net/Makefile 2019/11/19 14:31:22 1.1278
+++ pkgsrc/net/Makefile 2019/12/16 18:00:51 1.1279
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.1278 2019/11/19 14:31:22 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.1279 2019/12/16 18:00:51 nia Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Networking tools | | 4 | COMMENT= Networking tools |
5 | | | 5 | |
6 | SUBDIR+= 3proxy | | 6 | SUBDIR+= 3proxy |
7 | SUBDIR+= 6tunnel | | 7 | SUBDIR+= 6tunnel |
8 | SUBDIR+= DarwinStreamingServer | | 8 | SUBDIR+= DarwinStreamingServer |
9 | SUBDIR+= GeoIP | | 9 | SUBDIR+= GeoIP |
10 | SUBDIR+= Geomyidae | | 10 | SUBDIR+= Geomyidae |
11 | SUBDIR+= IglooFTP | | 11 | SUBDIR+= IglooFTP |
12 | SUBDIR+= LaBrea | | 12 | SUBDIR+= LaBrea |
13 | SUBDIR+= ORBit | | 13 | SUBDIR+= ORBit |
14 | SUBDIR+= ORBit2 | | 14 | SUBDIR+= ORBit2 |
| @@ -317,26 +317,27 @@ SUBDIR+= libmms | | | @@ -317,26 +317,27 @@ SUBDIR+= libmms |
317 | SUBDIR+= libnice | | 317 | SUBDIR+= libnice |
318 | SUBDIR+= libnids | | 318 | SUBDIR+= libnids |
319 | SUBDIR+= libnipper | | 319 | SUBDIR+= libnipper |
320 | SUBDIR+= libpcap | | 320 | SUBDIR+= libpcap |
321 | SUBDIR+= libquic | | 321 | SUBDIR+= libquic |
322 | SUBDIR+= libquvi | | 322 | SUBDIR+= libquvi |
323 | SUBDIR+= libquvi-scripts | | 323 | SUBDIR+= libquvi-scripts |
324 | SUBDIR+= libradius | | 324 | SUBDIR+= libradius |
325 | SUBDIR+= librsync | | 325 | SUBDIR+= librsync |
326 | SUBDIR+= libsoup | | 326 | SUBDIR+= libsoup |
327 | SUBDIR+= libsscript | | 327 | SUBDIR+= libsscript |
328 | SUBDIR+= libtelnet | | 328 | SUBDIR+= libtelnet |
329 | SUBDIR+= libtorrent | | 329 | SUBDIR+= libtorrent |
| | | 330 | SUBDIR+= libtorrent-rasterbar |
330 | SUBDIR+= libtrace | | 331 | SUBDIR+= libtrace |
331 | SUBDIR+= libupnp | | 332 | SUBDIR+= libupnp |
332 | SUBDIR+= libvncserver | | 333 | SUBDIR+= libvncserver |
333 | SUBDIR+= libzrtpcpp | | 334 | SUBDIR+= libzrtpcpp |
334 | SUBDIR+= linc | | 335 | SUBDIR+= linc |
335 | SUBDIR+= lldpd | | 336 | SUBDIR+= lldpd |
336 | SUBDIR+= llnlxdir | | 337 | SUBDIR+= llnlxdir |
337 | SUBDIR+= llnlxftp | | 338 | SUBDIR+= llnlxftp |
338 | SUBDIR+= logjam | | 339 | SUBDIR+= logjam |
339 | SUBDIR+= lopster | | 340 | SUBDIR+= lopster |
340 | SUBDIR+= lua-copas | | 341 | SUBDIR+= lua-copas |
341 | SUBDIR+= lua-socket | | 342 | SUBDIR+= lua-socket |
342 | SUBDIR+= mDNSResponder | | 343 | SUBDIR+= mDNSResponder |
libtorrent-rasterbar is a feature complete C++ bittorrent implementation
focusing on efficiency and scalability.
# $NetBSD: Makefile,v 1.1 2019/12/16 18:00:51 nia Exp $
DISTNAME= libtorrent-rasterbar-1.2.2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=arvidn/}
GITHUB_PROJECT= libtorrent
GITHUB_RELEASE= libtorrent-${PKGVERSION_NOREV:S/./_/g}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.libtorrent.org/
COMMENT= Feature complete C++ bittorrent implementation
LICENSE= modified-bsd
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
# C++11
GCC_REQD+= 4.7
PKGCONFIG_OVERRIDE+= libtorrent-rasterbar.pc.in
post-install:
${FIND} ${DESTDIR} -name '*.orig' -print0 | ${XARGS} -0 ${RM} -f
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2019/12/16 18:00:51 nia Exp $
include/libtorrent/ConvertUTF.h
include/libtorrent/add_torrent_params.hpp
include/libtorrent/address.hpp
include/libtorrent/alert.hpp
include/libtorrent/alert_manager.hpp
include/libtorrent/alert_types.hpp
include/libtorrent/announce_entry.hpp
include/libtorrent/assert.hpp
include/libtorrent/aux_/aligned_storage.hpp
include/libtorrent/aux_/aligned_union.hpp
include/libtorrent/aux_/alloca.hpp
include/libtorrent/aux_/allocating_handler.hpp
include/libtorrent/aux_/array.hpp
include/libtorrent/aux_/bind_to_device.hpp
include/libtorrent/aux_/block_cache_reference.hpp
include/libtorrent/aux_/byteswap.hpp
include/libtorrent/aux_/container_wrapper.hpp
include/libtorrent/aux_/cppint_import_export.hpp
include/libtorrent/aux_/cpuid.hpp
include/libtorrent/aux_/deferred_handler.hpp
include/libtorrent/aux_/deque.hpp
include/libtorrent/aux_/dev_random.hpp
include/libtorrent/aux_/disable_warnings_pop.hpp
include/libtorrent/aux_/disable_warnings_push.hpp
include/libtorrent/aux_/disk_job_fence.hpp
include/libtorrent/aux_/escape_string.hpp
include/libtorrent/aux_/export.hpp
include/libtorrent/aux_/ffs.hpp
include/libtorrent/aux_/file_progress.hpp
include/libtorrent/aux_/generate_peer_id.hpp
include/libtorrent/aux_/has_block.hpp
include/libtorrent/aux_/instantiate_connection.hpp
include/libtorrent/aux_/io.hpp
include/libtorrent/aux_/ip_notifier.hpp
include/libtorrent/aux_/listen_socket_handle.hpp
include/libtorrent/aux_/lsd.hpp
include/libtorrent/aux_/merkle.hpp
include/libtorrent/aux_/noexcept_movable.hpp
include/libtorrent/aux_/numeric_cast.hpp
include/libtorrent/aux_/openssl.hpp
include/libtorrent/aux_/path.hpp
include/libtorrent/aux_/portmap.hpp
include/libtorrent/aux_/proxy_settings.hpp
include/libtorrent/aux_/range.hpp
include/libtorrent/aux_/route.h
include/libtorrent/aux_/scope_end.hpp
include/libtorrent/aux_/session_call.hpp
include/libtorrent/aux_/session_impl.hpp
include/libtorrent/aux_/session_interface.hpp
include/libtorrent/aux_/session_settings.hpp
include/libtorrent/aux_/session_udp_sockets.hpp
include/libtorrent/aux_/set_socket_buffer.hpp
include/libtorrent/aux_/socket_type.hpp
include/libtorrent/aux_/storage_piece_set.hpp
include/libtorrent/aux_/storage_utils.hpp
include/libtorrent/aux_/string_ptr.hpp
include/libtorrent/aux_/suggest_piece.hpp
include/libtorrent/aux_/throw.hpp
include/libtorrent/aux_/time.hpp
include/libtorrent/aux_/torrent_impl.hpp
include/libtorrent/aux_/unique_ptr.hpp
include/libtorrent/aux_/vector.hpp
include/libtorrent/aux_/win_crypto_provider.hpp
include/libtorrent/aux_/win_util.hpp
include/libtorrent/aux_/windows.hpp
include/libtorrent/bandwidth_limit.hpp
include/libtorrent/bandwidth_manager.hpp
include/libtorrent/bandwidth_queue_entry.hpp
include/libtorrent/bandwidth_socket.hpp
include/libtorrent/bdecode.hpp
include/libtorrent/bencode.hpp
include/libtorrent/bitfield.hpp
include/libtorrent/block_cache.hpp
include/libtorrent/bloom_filter.hpp
include/libtorrent/broadcast_socket.hpp
include/libtorrent/bt_peer_connection.hpp
include/libtorrent/buffer.hpp
include/libtorrent/chained_buffer.hpp
include/libtorrent/choker.hpp
include/libtorrent/close_reason.hpp
include/libtorrent/config.hpp
include/libtorrent/copy_ptr.hpp
include/libtorrent/crc32c.hpp
include/libtorrent/create_torrent.hpp
include/libtorrent/deadline_timer.hpp
include/libtorrent/debug.hpp
include/libtorrent/disk_buffer_holder.hpp
include/libtorrent/disk_buffer_pool.hpp
include/libtorrent/disk_interface.hpp
include/libtorrent/disk_io_job.hpp
include/libtorrent/disk_io_thread.hpp
include/libtorrent/disk_io_thread_pool.hpp
include/libtorrent/disk_job_pool.hpp
include/libtorrent/disk_observer.hpp
include/libtorrent/download_priority.hpp
include/libtorrent/ed25519.hpp
include/libtorrent/entry.hpp
include/libtorrent/enum_net.hpp
include/libtorrent/error.hpp
include/libtorrent/error_code.hpp
include/libtorrent/extensions.hpp
include/libtorrent/extensions/smart_ban.hpp
include/libtorrent/extensions/ut_metadata.hpp
include/libtorrent/extensions/ut_pex.hpp
include/libtorrent/file.hpp
include/libtorrent/file_pool.hpp
include/libtorrent/file_storage.hpp
include/libtorrent/fingerprint.hpp
include/libtorrent/flags.hpp
include/libtorrent/fwd.hpp
include/libtorrent/gzip.hpp
include/libtorrent/hasher.hpp
include/libtorrent/hasher512.hpp
include/libtorrent/heterogeneous_queue.hpp
include/libtorrent/hex.hpp
include/libtorrent/http_connection.hpp
include/libtorrent/http_parser.hpp
include/libtorrent/http_seed_connection.hpp
include/libtorrent/http_stream.hpp
include/libtorrent/http_tracker_connection.hpp
include/libtorrent/i2p_stream.hpp
include/libtorrent/identify_client.hpp
include/libtorrent/index_range.hpp
include/libtorrent/invariant_check.hpp
include/libtorrent/io.hpp
include/libtorrent/io_service.hpp
include/libtorrent/io_service_fwd.hpp
include/libtorrent/ip_filter.hpp
include/libtorrent/ip_voter.hpp
include/libtorrent/kademlia/announce_flags.hpp
include/libtorrent/kademlia/dht_observer.hpp
include/libtorrent/kademlia/dht_settings.hpp
include/libtorrent/kademlia/dht_state.hpp
include/libtorrent/kademlia/dht_storage.hpp
include/libtorrent/kademlia/dht_tracker.hpp
include/libtorrent/kademlia/direct_request.hpp
include/libtorrent/kademlia/dos_blocker.hpp
include/libtorrent/kademlia/ed25519.hpp
include/libtorrent/kademlia/find_data.hpp
include/libtorrent/kademlia/get_item.hpp
include/libtorrent/kademlia/get_peers.hpp
include/libtorrent/kademlia/io.hpp
include/libtorrent/kademlia/item.hpp
include/libtorrent/kademlia/msg.hpp
include/libtorrent/kademlia/node.hpp
include/libtorrent/kademlia/node_entry.hpp
include/libtorrent/kademlia/node_id.hpp
include/libtorrent/kademlia/observer.hpp
include/libtorrent/kademlia/put_data.hpp
include/libtorrent/kademlia/refresh.hpp
include/libtorrent/kademlia/routing_table.hpp
include/libtorrent/kademlia/rpc_manager.hpp
include/libtorrent/kademlia/sample_infohashes.hpp
include/libtorrent/kademlia/traversal_algorithm.hpp
include/libtorrent/kademlia/types.hpp
include/libtorrent/lazy_entry.hpp
include/libtorrent/link.hpp
include/libtorrent/linked_list.hpp
include/libtorrent/lsd.hpp
include/libtorrent/magnet_uri.hpp
include/libtorrent/natpmp.hpp
include/libtorrent/netlink.hpp
include/libtorrent/operations.hpp
include/libtorrent/optional.hpp
include/libtorrent/packet_buffer.hpp
include/libtorrent/packet_pool.hpp
include/libtorrent/parse_url.hpp
include/libtorrent/part_file.hpp
include/libtorrent/pe_crypto.hpp
include/libtorrent/peer.hpp
include/libtorrent/peer_class.hpp
include/libtorrent/peer_class_set.hpp
include/libtorrent/peer_class_type_filter.hpp
include/libtorrent/peer_connection.hpp
include/libtorrent/peer_connection_handle.hpp
include/libtorrent/peer_connection_interface.hpp
include/libtorrent/peer_id.hpp
include/libtorrent/peer_info.hpp
include/libtorrent/peer_list.hpp
include/libtorrent/peer_request.hpp
include/libtorrent/performance_counters.hpp
include/libtorrent/pex_flags.hpp
include/libtorrent/piece_block.hpp
include/libtorrent/piece_block_progress.hpp
include/libtorrent/piece_picker.hpp
include/libtorrent/platform_util.hpp
include/libtorrent/portmap.hpp
include/libtorrent/proxy_base.hpp
include/libtorrent/puff.hpp
include/libtorrent/random.hpp
include/libtorrent/read_resume_data.hpp
include/libtorrent/receive_buffer.hpp
include/libtorrent/request_blocks.hpp
include/libtorrent/resolve_links.hpp
include/libtorrent/resolver.hpp
include/libtorrent/resolver_interface.hpp
include/libtorrent/session.hpp
include/libtorrent/session_handle.hpp
include/libtorrent/session_settings.hpp
include/libtorrent/session_stats.hpp
include/libtorrent/session_status.hpp
include/libtorrent/session_types.hpp
include/libtorrent/settings_pack.hpp
include/libtorrent/sha1.hpp
include/libtorrent/sha1_hash.hpp
include/libtorrent/sha512.hpp
include/libtorrent/sliding_average.hpp
include/libtorrent/socket.hpp
include/libtorrent/socket_io.hpp
include/libtorrent/socks5_stream.hpp
include/libtorrent/span.hpp
include/libtorrent/ssl_stream.hpp
include/libtorrent/stack_allocator.hpp
include/libtorrent/stat.hpp
include/libtorrent/stat_cache.hpp
include/libtorrent/storage.hpp
include/libtorrent/storage_defs.hpp
include/libtorrent/string_util.hpp
include/libtorrent/string_view.hpp
include/libtorrent/tailqueue.hpp
include/libtorrent/time.hpp
include/libtorrent/timestamp_history.hpp
include/libtorrent/torrent.hpp
include/libtorrent/torrent_flags.hpp
include/libtorrent/torrent_handle.hpp
include/libtorrent/torrent_info.hpp
include/libtorrent/torrent_peer.hpp
include/libtorrent/torrent_peer_allocator.hpp
include/libtorrent/torrent_status.hpp
include/libtorrent/tracker_manager.hpp
include/libtorrent/udp_socket.hpp
include/libtorrent/udp_tracker_connection.hpp
include/libtorrent/union_endpoint.hpp
include/libtorrent/units.hpp
include/libtorrent/upnp.hpp
include/libtorrent/utf8.hpp
include/libtorrent/utp_socket_manager.hpp
include/libtorrent/utp_stream.hpp
include/libtorrent/vector_utils.hpp
include/libtorrent/version.hpp
include/libtorrent/web_connection_base.hpp
include/libtorrent/web_peer_connection.hpp
include/libtorrent/write_resume_data.hpp
include/libtorrent/xml_parse.hpp
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarConfig.cmake
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarConfigVersion.cmake
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets-noconfig.cmake
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets.cmake
lib/libtorrent-rasterbar.so
lib/libtorrent-rasterbar.so.${PKGVERSION}
lib/libtorrent-rasterbar.so.10
lib/pkgconfig/libtorrent-rasterbar.pc
share/cmake/Modules/FindLibtorrentRasterbar.cmake
# $NetBSD: buildlink3.mk,v 1.1 2019/12/16 18:00:51 nia Exp $
BUILDLINK_TREE+= libtorrent-rasterbar
.if !defined(LIBTORRENT_RASTERBAR_BUILDLINK3_MK)
LIBTORRENT_RASTERBAR_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libtorrent-rasterbar+= libtorrent-rasterbar>=1.2.2
BUILDLINK_PKGSRCDIR.libtorrent-rasterbar?= ../../net/libtorrent-rasterbar
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.endif # LIBTORRENT_RASTERBAR_BUILDLINK3_MK
BUILDLINK_TREE+= -libtorrent-rasterbar
$NetBSD: distinfo,v 1.1 2019/12/16 18:00:51 nia Exp $
SHA1 (libtorrent-rasterbar-1.2.2.tar.gz) = ebe0002a37a845bf08e7d91ff1c86120de2173ca
RMD160 (libtorrent-rasterbar-1.2.2.tar.gz) = 3096523905a7de4d0aaeb76d7053b0d2f3fc43dc
SHA512 (libtorrent-rasterbar-1.2.2.tar.gz) = 8ef867d253fe187336ec5919683526997298319b755bcd72eeca2c56c81462d2aed912d2eadcd560d2a8729b36798718f9a1668a83927211f49667af9bdf0a06
Size (libtorrent-rasterbar-1.2.2.tar.gz) = 4088779 bytes
SHA1 (patch-include_libtorrent_buffer.hpp) = 9a2582c3a4740467c60bf621ae0dedb14c507c7c
$NetBSD: patch-include_libtorrent_buffer.hpp,v 1.1 2019/12/16 18:00:51 nia Exp $
Support NetBSD.
--- include/libtorrent/buffer.hpp.orig 2019-09-24 09:52:01.000000000 +0000
+++ include/libtorrent/buffer.hpp
@@ -47,6 +47,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <malloc.h>
#elif defined _MSC_VER
#include <malloc.h>
+#elif defined __NetBSD__
+#include <malloc.h>
#elif defined __FreeBSD__
#include <malloc_np.h>
#elif defined TORRENT_BSD
@@ -85,7 +87,7 @@ public:
// the actual allocation may be larger than we requested. If so, let the
// user take advantage of every single byte
-#if (defined __GLIBC__ && !defined __UCLIBC__) || defined __FreeBSD__
+#if (defined __GLIBC__ && !defined __UCLIBC__) || defined __FreeBSD__ || defined __NetBSD__
m_size = static_cast<difference_type>(::malloc_usable_size(m_begin));
#elif defined _MSC_VER
m_size = static_cast<difference_type>(::_msize(m_begin));