From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001
From: wbx <wbx@hydrogenium.(none)>
Date: Sun, 17 May 2009 14:41:34 +0200
Subject: Initial import

---
 package/libtorrent/Config.in                       | 10 ++++++++
 package/libtorrent/Makefile                        | 27 ++++++++++++++++++++++
 package/libtorrent/ipkg/libtorrent.control         |  5 ++++
 package/libtorrent/patches/patch-rak_functional_h  | 11 +++++++++
 package/libtorrent/patches/patch-src_data_chunk_cc | 11 +++++++++
 .../libtorrent/patches/patch-src_data_chunk_list_h | 11 +++++++++
 .../patches/patch-src_net_address_list_cc          | 12 ++++++++++
 .../patch-src_torrent_data_file_list_iterator_h    | 11 +++++++++
 .../patches/patch-src_torrent_exceptions_cc        | 11 +++++++++
 .../patches/patch-src_torrent_tracker_list_h       | 11 +++++++++
 .../patches/patch-src_utils_diffie_hellman_cc      | 11 +++++++++
 11 files changed, 131 insertions(+)
 create mode 100644 package/libtorrent/Config.in
 create mode 100644 package/libtorrent/Makefile
 create mode 100644 package/libtorrent/ipkg/libtorrent.control
 create mode 100644 package/libtorrent/patches/patch-rak_functional_h
 create mode 100644 package/libtorrent/patches/patch-src_data_chunk_cc
 create mode 100644 package/libtorrent/patches/patch-src_data_chunk_list_h
 create mode 100644 package/libtorrent/patches/patch-src_net_address_list_cc
 create mode 100644 package/libtorrent/patches/patch-src_torrent_data_file_list_iterator_h
 create mode 100644 package/libtorrent/patches/patch-src_torrent_exceptions_cc
 create mode 100644 package/libtorrent/patches/patch-src_torrent_tracker_list_h
 create mode 100644 package/libtorrent/patches/patch-src_utils_diffie_hellman_cc

(limited to 'package/libtorrent')

diff --git a/package/libtorrent/Config.in b/package/libtorrent/Config.in
new file mode 100644
index 000000000..6b65665a1
--- /dev/null
+++ b/package/libtorrent/Config.in
@@ -0,0 +1,10 @@
+config ADK_PACKAGE_LIBTORRENT
+	prompt "libtorrent........................ bittorrent library"
+	tristate
+	default n
+	depends on ADK_CXX
+	select ADK_PACKAGE_LIBSTDCXX
+	select ADK_PACKAGE_LIBOPENSSL
+	select ADK_PACKAGE_LIBSIGCXX
+	help
+	  http://libtorrent.rakshasa.no/
diff --git a/package/libtorrent/Makefile b/package/libtorrent/Makefile
new file mode 100644
index 000000000..8dc335cd8
--- /dev/null
+++ b/package/libtorrent/Makefile
@@ -0,0 +1,27 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:=		libtorrent
+PKG_VERSION:=		0.12.2
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		0831ca06f8906c7898fd67931ab239c7
+MASTER_SITES:=		http://libtorrent.rakshasa.no/downloads/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBTORRENT,libtorrent,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE=	gnu
+CONFIGURE_ARGS+=	--enable-aligned
+BUILD_STYLE=		auto
+INSTALL_STYLE=		auto confprog
+
+post-install:
+	${INSTALL_DIR} ${IDIR_LIBTORRENT}/usr/lib
+	${CP} ${WRKINST}/usr/lib/libtorrent.so.* ${IDIR_LIBTORRENT}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libtorrent/ipkg/libtorrent.control b/package/libtorrent/ipkg/libtorrent.control
new file mode 100644
index 000000000..7634b1860
--- /dev/null
+++ b/package/libtorrent/ipkg/libtorrent.control
@@ -0,0 +1,5 @@
+Package: libtorrent
+Priority: optional
+Section: libs
+Depends: uclibc++
+Description: A bittorrent library 
diff --git a/package/libtorrent/patches/patch-rak_functional_h b/package/libtorrent/patches/patch-rak_functional_h
new file mode 100644
index 000000000..1b8347d6f
--- /dev/null
+++ b/package/libtorrent/patches/patch-rak_functional_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/rak/functional.h	2008-05-07 14:19:14.000000000 +0200
++++ libtorrent-0.12.2/rak/functional.h	2008-12-14 21:36:38.000000000 +0100
+@@ -37,6 +37,7 @@
+ #ifndef RAK_FUNCTIONAL_H
+ #define RAK_FUNCTIONAL_H
+ 
++#include <cstdlib>
+ #include <functional>
+ 
+ namespace rak {
diff --git a/package/libtorrent/patches/patch-src_data_chunk_cc b/package/libtorrent/patches/patch-src_data_chunk_cc
new file mode 100644
index 000000000..af7c2c62d
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_data_chunk_cc
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/data/chunk.cc	2008-05-07 14:19:13.000000000 +0200
++++ libtorrent-0.12.2/src/data/chunk.cc	2008-12-14 21:42:29.000000000 +0100
+@@ -38,6 +38,7 @@
+ 
+ #include <algorithm>
+ #include <functional>
++#include <cstring>
+ 
+ #include "torrent/exceptions.h"
+ 
diff --git a/package/libtorrent/patches/patch-src_data_chunk_list_h b/package/libtorrent/patches/patch-src_data_chunk_list_h
new file mode 100644
index 000000000..c1a324bee
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_data_chunk_list_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/data/chunk_list.h	2008-05-07 14:19:13.000000000 +0200
++++ libtorrent-0.12.2/src/data/chunk_list.h	2008-12-14 21:34:31.000000000 +0100
+@@ -38,6 +38,7 @@
+ #define LIBTORRENT_DATA_CHUNK_LIST_H
+ 
+ #include <vector>
++#include <string>
+ #include <rak/error_number.h>
+ #include <rak/functional.h>
+ 
diff --git a/package/libtorrent/patches/patch-src_net_address_list_cc b/package/libtorrent/patches/patch-src_net_address_list_cc
new file mode 100644
index 000000000..4f888d13d
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_net_address_list_cc
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/net/address_list.cc	2008-05-07 14:19:12.000000000 +0200
++++ libtorrent-0.12.2/src/net/address_list.cc	2008-12-14 21:47:24.000000000 +0100
+@@ -38,6 +38,8 @@
+ 
+ #include <rak/functional.h>
+ 
++#include <algorithm>
++
+ #include "download/download_info.h"  // for SocketAddressCompact
+ 
+ #include "address_list.h"
diff --git a/package/libtorrent/patches/patch-src_torrent_data_file_list_iterator_h b/package/libtorrent/patches/patch-src_torrent_data_file_list_iterator_h
new file mode 100644
index 000000000..d20b9f974
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_torrent_data_file_list_iterator_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/torrent/data/file_list_iterator.h	2008-05-07 14:19:13.000000000 +0200
++++ libtorrent-0.12.2/src/torrent/data/file_list_iterator.h	2008-12-14 21:31:54.000000000 +0100
+@@ -39,6 +39,7 @@
+ 
+ #include <torrent/common.h>
+ #include <torrent/data/file_list.h>
++#include <cstdlib>
+ 
+ namespace torrent {
+ 
diff --git a/package/libtorrent/patches/patch-src_torrent_exceptions_cc b/package/libtorrent/patches/patch-src_torrent_exceptions_cc
new file mode 100644
index 000000000..2ed644ae1
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_torrent_exceptions_cc
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/torrent/exceptions.cc	2008-05-07 14:19:13.000000000 +0200
++++ libtorrent-0.12.2/src/torrent/exceptions.cc	2008-12-14 21:40:48.000000000 +0100
+@@ -37,6 +37,7 @@
+ #include "config.h"
+ 
+ #include <cerrno>
++#include <cstring>
+ 
+ #include "exceptions.h"
+ 
diff --git a/package/libtorrent/patches/patch-src_torrent_tracker_list_h b/package/libtorrent/patches/patch-src_torrent_tracker_list_h
new file mode 100644
index 000000000..b307908e4
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_torrent_tracker_list_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/torrent/tracker_list.h	2008-05-07 14:19:13.000000000 +0200
++++ libtorrent-0.12.2/src/torrent/tracker_list.h	2008-12-14 22:31:57.000000000 +0100
+@@ -39,6 +39,7 @@
+ 
+ #include <algorithm>
+ #include <vector>
++#include <string>
+ #include <torrent/common.h>
+ 
+ namespace torrent {
diff --git a/package/libtorrent/patches/patch-src_utils_diffie_hellman_cc b/package/libtorrent/patches/patch-src_utils_diffie_hellman_cc
new file mode 100644
index 000000000..3608b70ba
--- /dev/null
+++ b/package/libtorrent/patches/patch-src_utils_diffie_hellman_cc
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libtorrent-0.12.2.orig/src/utils/diffie_hellman.cc	2008-05-07 14:19:12.000000000 +0200
++++ libtorrent-0.12.2/src/utils/diffie_hellman.cc	2008-12-14 21:51:18.000000000 +0100
+@@ -37,6 +37,7 @@
+ #include "config.h"
+ 
+ #include <string>
++#include <cstring>
+ 
+ #ifdef USE_OPENSSL
+ #include <openssl/bn.h>
-- 
cgit v1.2.3