diff --git a/net-libs/libtorrent/libtorrent-0.12.5.bep b/net-libs/libtorrent/libtorrent-0.12.5.bep new file mode 100644 index 000000000..98205c7c6 --- /dev/null +++ b/net-libs/libtorrent/libtorrent-0.12.5.bep @@ -0,0 +1,21 @@ +DESCRIPTION="libTorrent" +HOMEPAGE="http://libtorrent.rakshasa.no/" +SRC_URI="http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.5.tar.gz" +REVISION="1" +CHECKSUM_MD5="fe8155d364b220713074423100d4bf29" +STATUS_HAIKU="stable" + +# pkgconfig is only a build dependency +DEPEND="gcc4, pkgconfig, openssl, libsigc++" + +BUILD { + cd libtorrent-0.12.5 + autoreconf -vfi + ./configure --prefix=/boot/common --disable-mincore + make +} + +INSTALL { + cd libtorrent-0.12.5 + make install +} diff --git a/net-libs/libtorrent/libtorrent.OptionalPackageDescription b/net-libs/libtorrent/libtorrent.OptionalPackageDescription new file mode 100644 index 000000000..36db9a5f7 --- /dev/null +++ b/net-libs/libtorrent/libtorrent.OptionalPackageDescription @@ -0,0 +1,5 @@ +Package: libTorrent +Version: 0.12.5 +Copyright: 2005-2009 Jari Sundell +License: GNU GPL v2 +URL: http://libtorrent.rakshasa.no diff --git a/net-libs/libtorrent/patches/libtorrent-0.12.5.patch b/net-libs/libtorrent/patches/libtorrent-0.12.5.patch new file mode 100644 index 000000000..21532c828 --- /dev/null +++ b/net-libs/libtorrent/patches/libtorrent-0.12.5.patch @@ -0,0 +1,12 @@ +diff -Naur libtorrent-0.12.5/rak/socket_address.h libtorrent-0.12.5-haiku/rak/socket_address.h +--- libtorrent-0.12.5/rak/socket_address.h 2008-05-07 12:19:14.000000000 +0000 ++++ libtorrent-0.12.5-haiku/rak/socket_address.h 2009-11-25 03:19:59.000000000 +0000 +@@ -54,6 +54,8 @@ + #include + #include + #include ++ ++typedef unsigned short sa_family_t; + + namespace rak { + diff --git a/net-p2p/rtorrent/patches/rtorrent-0.8.5.patch b/net-p2p/rtorrent/patches/rtorrent-0.8.5.patch new file mode 100644 index 000000000..d0d1b81fc --- /dev/null +++ b/net-p2p/rtorrent/patches/rtorrent-0.8.5.patch @@ -0,0 +1,134 @@ +diff -Naur rtorrent-0.8.5/rak/socket_address.h rtorrent-0.8.5-haiku/rak/socket_address.h +--- rtorrent-0.8.5/rak/socket_address.h 2008-05-07 12:19:12.000000000 +0000 ++++ rtorrent-0.8.5-haiku/rak/socket_address.h 2009-11-25 04:04:38.000000000 +0000 +@@ -55,6 +55,8 @@ + #include + #include + ++typedef unsigned short sa_family_t; ++ + namespace rak { + + class socket_address_inet; +diff -Naur rtorrent-0.8.5/src/display/canvas.cc rtorrent-0.8.5-haiku/src/display/canvas.cc +--- rtorrent-0.8.5/src/display/canvas.cc 2008-08-26 20:33:50.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/display/canvas.cc 2009-11-25 04:10:37.000000000 +0000 +@@ -38,7 +38,7 @@ + + #include + #include +-#include ++#include + #include + + #include "canvas.h" +diff -Naur rtorrent-0.8.5/src/display/window_file_list.cc rtorrent-0.8.5-haiku/src/display/window_file_list.cc +--- rtorrent-0.8.5/src/display/window_file_list.cc 2008-11-16 15:55:08.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/display/window_file_list.cc 2009-11-25 17:26:03.000000000 +0000 +@@ -46,6 +46,8 @@ + #include "ui/element_file_list.h" + + #include "window_file_list.h" ++#include ++typedef std::basic_string StdWString; + + namespace display { + +@@ -59,7 +61,7 @@ + + // Convert std::string to std::wstring of given width (in screen positions), + // taking into account that some characters may be occupying two screen positions. +-std::wstring ++StdWString + wstring_width(const std::string& i_str, int width) { + wchar_t result[width + 1]; + size_t length = std::mbstowcs(result, i_str.c_str(), width); +diff -Naur rtorrent-0.8.5/src/input/path_input.cc rtorrent-0.8.5-haiku/src/input/path_input.cc +--- rtorrent-0.8.5/src/input/path_input.cc 2008-05-07 12:19:11.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/input/path_input.cc 2009-11-25 17:27:41.000000000 +0000 +@@ -42,7 +42,8 @@ + #include + + #include +-#include ++#include ++#include + + #include "path_input.h" + +@@ -72,7 +73,7 @@ + + struct _transform_filename { + void operator () (utils::directory_entry& entry) { +- if (entry.d_type == DT_DIR) ++ if (S_ISDIR(entry.d_type)) + entry.d_name += '/'; + } + }; +diff -Naur rtorrent-0.8.5/src/signal_handler.cc rtorrent-0.8.5-haiku/src/signal_handler.cc +--- rtorrent-0.8.5/src/signal_handler.cc 2008-05-07 12:19:11.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/signal_handler.cc 2009-11-25 12:17:33.000000000 +0000 +@@ -107,8 +107,8 @@ + return "Timer signal"; + case SIGTERM: + return "Termination signal"; +- case SIGBUS: +- return "Bus error"; ++// case SIGBUS: ++// return "Bus error"; + default: + return "Unlisted"; + } +diff -Naur rtorrent-0.8.5/src/signal_handler.h rtorrent-0.8.5-haiku/src/signal_handler.h +--- rtorrent-0.8.5/src/signal_handler.h 2008-05-07 12:19:11.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/signal_handler.h 2009-11-25 12:15:35.000000000 +0000 +@@ -37,7 +37,7 @@ + #ifndef RTORRENT_SIGNAL_HANDLER_H + #define RTORRENT_SIGNAL_HANDLER_H + +-#include ++#include + #include + + class SignalHandler { +diff -Naur rtorrent-0.8.5/src/utils/directory.cc rtorrent-0.8.5-haiku/src/utils/directory.cc +--- rtorrent-0.8.5/src/utils/directory.cc 2008-05-07 12:19:11.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/utils/directory.cc 2009-11-25 17:28:40.000000000 +0000 +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include + #include + +@@ -69,6 +70,7 @@ + return false; + + struct dirent* entry; ++ struct stat st; + + while ((entry = readdir(d)) != NULL) { + if ((flags & update_hide_dot) && entry->d_name[0] == '.') +@@ -78,7 +80,8 @@ + + itr->d_fileno = entry->d_fileno; + itr->d_reclen = entry->d_reclen; +- itr->d_type = entry->d_type; ++ lstat(rak::path_expand(m_path).c_str(), &st); ++ itr->d_type = st.st_mode; + + #ifdef DIRENT_NAMLEN_EXISTS_FOOBAR + itr->d_name = std::string(entry->d_name, entry->d_name + entry->d_namlen); +diff -Naur rtorrent-0.8.5/src/utils/directory.h rtorrent-0.8.5-haiku/src/utils/directory.h +--- rtorrent-0.8.5/src/utils/directory.h 2008-05-07 12:19:11.000000000 +0000 ++++ rtorrent-0.8.5-haiku/src/utils/directory.h 2009-11-25 11:29:12.000000000 +0000 +@@ -41,6 +41,8 @@ + #include + #include + ++#define d_fileno d_ino ++ + namespace utils { + + struct directory_entry { diff --git a/net-p2p/rtorrent/rtorrent-0.8.5.bep b/net-p2p/rtorrent/rtorrent-0.8.5.bep new file mode 100644 index 000000000..6a9221941 --- /dev/null +++ b/net-p2p/rtorrent/rtorrent-0.8.5.bep @@ -0,0 +1,21 @@ +DESCRIPTION="rTorrent" +HOMEPAGE="http://libtorrent.rakshasa.no/" +SRC_URI="http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.5.tar.gz" +REVISION="1" +CHECKSUM_MD5="e701095e1824b7e512a17000f4c0a783" +STATUS_HAIKU="stable" + +# pkgconfig is only a build dependency +DEPEND="gcc4, pkgconfig, curl, libsigc++, libtorrent" + +BUILD { + cd rtorrent-0.8.5 + autoreconf -vfi + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd rtorrent-0.8.5 + make install +} diff --git a/net-p2p/rtorrent/rtorrent.OptionalPackageDescription b/net-p2p/rtorrent/rtorrent.OptionalPackageDescription new file mode 100644 index 000000000..e1efe1c53 --- /dev/null +++ b/net-p2p/rtorrent/rtorrent.OptionalPackageDescription @@ -0,0 +1,5 @@ +Package: rTorrent +Version: 0.8.5 +Copyright: 2005-2009 Jari Sundell +License: GNU GPL v2 +URL: http://libtorrent.rakshasa.no