aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2005-03-04 09:25:09 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2005-03-04 09:25:09 +0000
commit59fb18e80ecb177c99e698df0925a767d364130b (patch)
tree07a3c9a286ac002cb26135200d6b7c1acdbf22c0 /net-p2p/rtorrent
parent75868fb088bfe76036147b6cc3e7f31b2b3cd107 (diff)
downloadports-59fb18e80ecb177c99e698df0925a767d364130b.tar.gz
ports-59fb18e80ecb177c99e698df0925a767d364130b.zip
Notes
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r--net-p2p/rtorrent/Makefile36
-rw-r--r--net-p2p/rtorrent/distinfo2
-rw-r--r--net-p2p/rtorrent/files/patch-src_display_canvas.h38
-rw-r--r--net-p2p/rtorrent/pkg-descr14
4 files changed, 90 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/Makefile b/net-p2p/rtorrent/Makefile
new file mode 100644
index 000000000000..8a1a3402b781
--- /dev/null
+++ b/net-p2p/rtorrent/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: rtorrent
+# Date created: Mar 03 2005
+# Whom: Florent Thoumie <flz@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rtorrent
+PORTVERSION= 0.1.0
+CATEGORIES= net
+MASTER_SITES= http://libtorrent.rakshasa.no/downloads/
+
+MAINTAINER= flz@FreeBSD.org
+COMMENT= BitTorrent Client written in C++
+
+LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl \
+ torrent.2:${PORTSDIR}/net/libtorrent
+
+USE_GCC= 3.4
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-debug
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+USE_INC_LIBTOOL_VER= 13
+
+PLIST_FILES= bin/rtorrent
+PORTDOCS= README
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-O3||' ${WRKSRC}/configure
+
+post-install:
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}/
+
+.include <bsd.port.mk>
diff --git a/net-p2p/rtorrent/distinfo b/net-p2p/rtorrent/distinfo
new file mode 100644
index 000000000000..94fe29fad646
--- /dev/null
+++ b/net-p2p/rtorrent/distinfo
@@ -0,0 +1,2 @@
+MD5 (rtorrent-0.1.0.tar.gz) = 4617ff0076b27a2004a1fd2a3bf31d2d
+SIZE (rtorrent-0.1.0.tar.gz) = 160077
diff --git a/net-p2p/rtorrent/files/patch-src_display_canvas.h b/net-p2p/rtorrent/files/patch-src_display_canvas.h
new file mode 100644
index 000000000000..6b1b0e31fdb6
--- /dev/null
+++ b/net-p2p/rtorrent/files/patch-src_display_canvas.h
@@ -0,0 +1,38 @@
+--- src/display/canvas.h.orig
++++ src/display/canvas.h
+@@ -34,28 +34,28 @@
+ chtype tl, chtype tr,
+ chtype bl, chtype br) { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
+
+- void print(int x, int y, const char* str) { mvwprintw(m_window, y, x, str); }
++ void print(int x, int y, char* str) { mvwprintw(m_window, y, x, str); }
+
+ template <typename A1>
+- void print(int x, int y, const char* str, A1 a1) { mvwprintw(m_window, y, x, str, a1); }
++ void print(int x, int y, char* str, A1 a1) { mvwprintw(m_window, y, x, str, a1); }
+
+ template <typename A1, typename A2>
+- void print(int x, int y, const char* str, A1 a1, A2 a2) { mvwprintw(m_window, y, x, str, a1, a2); }
++ void print(int x, int y, char* str, A1 a1, A2 a2) { mvwprintw(m_window, y, x, str, a1, a2); }
+
+ template <typename A1, typename A2, typename A3>
+- void print(int x, int y, const char* str,
++ void print(int x, int y, char* str,
+ A1 a1, A2 a2, A3 a3) { mvwprintw(m_window, y, x, str, a1, a2, a3); }
+
+ template <typename A1, typename A2, typename A3, typename A4>
+- void print(int x, int y, const char* str,
++ void print(int x, int y, char* str,
+ A1 a1, A2 a2, A3 a3, A4 a4) { mvwprintw(m_window, y, x, str, a1, a2, a3, a4); }
+
+ template <typename A1, typename A2, typename A3, typename A4, typename A5>
+- void print(int x, int y, const char* str,
++ void print(int x, int y, char* str,
+ A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { mvwprintw(m_window, y, x, str, a1, a2, a3, a4, a5); }
+
+ template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6>
+- void print(int x, int y, const char* str,
++ void print(int x, int y, char* str,
+ A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { mvwprintw(m_window, y, x, str, a1, a2, a3, a4, a5, a6); }
+
+ void set_attr(int x, int y, int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
diff --git a/net-p2p/rtorrent/pkg-descr b/net-p2p/rtorrent/pkg-descr
new file mode 100644
index 000000000000..fae9332c0555
--- /dev/null
+++ b/net-p2p/rtorrent/pkg-descr
@@ -0,0 +1,14 @@
+Rtorrent is a ncurses BitTorrent Client written in C++ for *nix.
+
+Main Features are :
+ * Use an URL or file path to add torrents at runtime
+ * Stop/delete/resume torrents
+ * Optionally loads/saves/deletes torrents automatically in a session directory
+ * Safe fast resume support
+ * Peer's download speed calculated from incoming HAVE messages
+ * Peer download progress
+
+WWW: http://libtorrent.rakshasa.no/
+
+- Florent Thoumie
+flz@FreeBSD.org