From 59fb18e80ecb177c99e698df0925a767d364130b Mon Sep 17 00:00:00 2001 From: Florent Thoumie Date: Fri, 4 Mar 2005 09:25:09 +0000 Subject: - Add Rtorrent 0.1.0, a BitTorrent Client written in C++. Approved by: pav (mentor) --- net-p2p/rtorrent/Makefile | 36 +++++++++++++++++++++ net-p2p/rtorrent/distinfo | 2 ++ net-p2p/rtorrent/files/patch-src_display_canvas.h | 38 +++++++++++++++++++++++ net-p2p/rtorrent/pkg-descr | 14 +++++++++ 4 files changed, 90 insertions(+) create mode 100644 net-p2p/rtorrent/Makefile create mode 100644 net-p2p/rtorrent/distinfo create mode 100644 net-p2p/rtorrent/files/patch-src_display_canvas.h create mode 100644 net-p2p/rtorrent/pkg-descr (limited to 'net-p2p') 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 +# +# $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 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 +- 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 +- 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 +- 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 +- 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 +- 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 +- 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 -- cgit v1.2.3