This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
[PATCH] Fix compilation on musl
Using the ssize_t typedef requires including <unistd.h>.
See : https://sourceforge.net/p/dtorrent/patches/3/
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Upstream-status: submitted
---
diff -Nur a/compat.c b/compat.c
--- a/compat.c 2015-07-29 18:22:24.658415171 +0100
+++ b/compat.c 2015-07-29 18:36:21.752576311 +0100
@@ -63,6 +63,7 @@
#ifndef HAVE_STRNSTR
#include <string.h>
+#include <unistd.h>
/* FUNCTION PROGRAMER: Siberiaic Sang */
char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
{

View File

@@ -0,0 +1,13 @@
comment "ctorrent needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
config BR2_PACKAGE_CTORRENT
bool "ctorrent"
depends on BR2_INSTALL_LIBSTDCPP
help
CTorrent is a BitTorrent client implemented in C++
to be lightweight and quick.
http://ctorrent.sourceforge.net/
This is the enhanced version from
http://www.rahul.net/dholmes/ctorrent/

View File

@@ -0,0 +1,2 @@
# From http://sourceforge.net/projects/dtorrent/files/dtorrent/3.3.2/
sha1 d4e221f0292268f80e2430ce9d451dd64cf1ffaa ctorrent-dnh3.3.2.tar.gz

View File

@@ -0,0 +1,19 @@
################################################################################
#
# ctorrent
#
################################################################################
CTORRENT_VERSION = dnh3.3.2
CTORRENT_SITE = http://www.rahul.net/dholmes/ctorrent
CTORRENT_LICENSE = GPL-2.0
CTORRENT_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_OPENSSL),y)
CTORRENT_CONF_OPTS += --with-ssl=yes
CTORRENT_DEPENDENCIES += openssl
else
CTORRENT_CONF_OPTS += --with-ssl=no
endif
$(eval $(autotools-package))