mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
20
package/ctorrent/0001-fix-musl-build.patch
Normal file
20
package/ctorrent/0001-fix-musl-build.patch
Normal 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)
|
||||
{
|
||||
13
package/ctorrent/Config.in
Normal file
13
package/ctorrent/Config.in
Normal 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/
|
||||
2
package/ctorrent/ctorrent.hash
Normal file
2
package/ctorrent/ctorrent.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://sourceforge.net/projects/dtorrent/files/dtorrent/3.3.2/
|
||||
sha1 d4e221f0292268f80e2430ce9d451dd64cf1ffaa ctorrent-dnh3.3.2.tar.gz
|
||||
19
package/ctorrent/ctorrent.mk
Normal file
19
package/ctorrent/ctorrent.mk
Normal 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))
|
||||
Reference in New Issue
Block a user