From d90a55c1f51eea0f1da76f663884b811592ced88 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Sat, 17 Jan 2004 17:52:30 +0000 Subject: Add ctorrent 1.3.r1, BitTorrent Client program by C for FreeBSD and Linux. PR: ports/61474 Submitted by: Florent Thoumie --- net-p2p/ctorrent/Makefile | 18 ++++++++++++++++++ net-p2p/ctorrent/distinfo | 1 + net-p2p/ctorrent/files/patch-btstream.cpp | 7 +++++++ net-p2p/ctorrent/files/patch-httpencode.cpp | 18 ++++++++++++++++++ net-p2p/ctorrent/files/patch-iplist.cpp | 7 +++++++ net-p2p/ctorrent/files/patch-peer.cpp | 10 ++++++++++ net-p2p/ctorrent/files/patch-peer.h | 10 ++++++++++ net-p2p/ctorrent/pkg-descr | 7 +++++++ net-p2p/ctorrent/pkg-plist | 1 + 9 files changed, 79 insertions(+) create mode 100644 net-p2p/ctorrent/Makefile create mode 100644 net-p2p/ctorrent/distinfo create mode 100644 net-p2p/ctorrent/files/patch-btstream.cpp create mode 100644 net-p2p/ctorrent/files/patch-httpencode.cpp create mode 100644 net-p2p/ctorrent/files/patch-iplist.cpp create mode 100644 net-p2p/ctorrent/files/patch-peer.cpp create mode 100644 net-p2p/ctorrent/files/patch-peer.h create mode 100644 net-p2p/ctorrent/pkg-descr create mode 100644 net-p2p/ctorrent/pkg-plist (limited to 'net-p2p') diff --git a/net-p2p/ctorrent/Makefile b/net-p2p/ctorrent/Makefile new file mode 100644 index 000000000000..e9b49d438d7e --- /dev/null +++ b/net-p2p/ctorrent/Makefile @@ -0,0 +1,18 @@ +# New ports collection makefile for: ctorrent +# Date created: Jan 17 2004 +# Whom: Florent Thoumie +# +# $FreeBSD$ +# + +PORTNAME= ctorrent +PORTVERSION= 1.3.r1 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= CTorrent-1.3r1 + +MAINTAINER= flz@xbsd.org +COMMENT= BitTorrent Client program by C for FreeBSD and Linux + +.include diff --git a/net-p2p/ctorrent/distinfo b/net-p2p/ctorrent/distinfo new file mode 100644 index 000000000000..c8eb3556346b --- /dev/null +++ b/net-p2p/ctorrent/distinfo @@ -0,0 +1 @@ +MD5 (CTorrent-1.3r1.tar.gz) = 833e24c797de4134e78c34aca6c2dd96 diff --git a/net-p2p/ctorrent/files/patch-btstream.cpp b/net-p2p/ctorrent/files/patch-btstream.cpp new file mode 100644 index 000000000000..eb41ae3b5072 --- /dev/null +++ b/net-p2p/ctorrent/files/patch-btstream.cpp @@ -0,0 +1,7 @@ +--- btstream.cpp.orig Fri Jan 16 00:01:00 2004 ++++ btstream.cpp Sun Jan 18 02:42:47 2004 +@@ -1,3 +1,4 @@ ++#include + #include "btstream.h" + #include "msgencode.h" + #include "btconfig.h" diff --git a/net-p2p/ctorrent/files/patch-httpencode.cpp b/net-p2p/ctorrent/files/patch-httpencode.cpp new file mode 100644 index 000000000000..800f55f32476 --- /dev/null +++ b/net-p2p/ctorrent/files/patch-httpencode.cpp @@ -0,0 +1,18 @@ +--- httpencode.cpp.orig Sun Jan 11 05:51:45 2004 ++++ httpencode.cpp Sun Jan 18 02:43:16 2004 +@@ -10,6 +10,7 @@ + /* NOTE: */ + /* LINUX/WINDOWS IMPLEMENT's STANDARD C LIBRARY NO strnstr FOUND */ + /* FUNCTION PROGRAMER: Siberiaic Sang */ ++#if 0 + static char* strnstr(const char *haystack,const char *needle,size_t haystacklen) + { + char *p; +@@ -30,6 +31,7 @@ static char* strnstr(const char *haystac + } + return (char*) 0; + } ++#endif + /* ************************************************** */ + + static void url_encode_char(char *b,char c) diff --git a/net-p2p/ctorrent/files/patch-iplist.cpp b/net-p2p/ctorrent/files/patch-iplist.cpp new file mode 100644 index 000000000000..9bf36732ab15 --- /dev/null +++ b/net-p2p/ctorrent/files/patch-iplist.cpp @@ -0,0 +1,7 @@ +--- iplist.cpp.orig Sun Jan 11 05:51:45 2004 ++++ iplist.cpp Sun Jan 18 02:43:29 2004 +@@ -1,3 +1,4 @@ ++#include + #include "iplist.h" + + IpList IPQUEUE; diff --git a/net-p2p/ctorrent/files/patch-peer.cpp b/net-p2p/ctorrent/files/patch-peer.cpp new file mode 100644 index 000000000000..5c88f9a026d8 --- /dev/null +++ b/net-p2p/ctorrent/files/patch-peer.cpp @@ -0,0 +1,10 @@ +--- peer.cpp.orig Wed Jan 14 21:54:26 2004 ++++ peer.cpp Sun Jan 18 02:43:36 2004 +@@ -1,6 +1,7 @@ + #include "peer.h" + + #include ++#include + + #include "btcontent.h" + #include "msgencode.h" diff --git a/net-p2p/ctorrent/files/patch-peer.h b/net-p2p/ctorrent/files/patch-peer.h new file mode 100644 index 000000000000..06684a043b0c --- /dev/null +++ b/net-p2p/ctorrent/files/patch-peer.h @@ -0,0 +1,10 @@ +--- peer.h.orig Fri Jan 16 00:30:15 2004 ++++ peer.h Sun Jan 18 02:44:04 2004 +@@ -6,6 +6,7 @@ + #ifdef WINDOWS + #include + #else ++#include + #include + #include + #include diff --git a/net-p2p/ctorrent/pkg-descr b/net-p2p/ctorrent/pkg-descr new file mode 100644 index 000000000000..1bc3263b01c9 --- /dev/null +++ b/net-p2p/ctorrent/pkg-descr @@ -0,0 +1,7 @@ +CTorrent is a BitTorrent (be know as BT usually) Client program by C for +FreeBSD and Linux. Fast and small are CTorrent`s two strengths. + +WWW: http://ctorrent.sourceforge.net/ + +- Florent Thoumie +flz@xbsd.org diff --git a/net-p2p/ctorrent/pkg-plist b/net-p2p/ctorrent/pkg-plist new file mode 100644 index 000000000000..6ce0d4e04b52 --- /dev/null +++ b/net-p2p/ctorrent/pkg-plist @@ -0,0 +1 @@ +bin/ctorrent -- cgit v1.2.3