ports/61474: New port: net/ctorrent - BitTorrent Client program by C for FreeBSD and Linux
Florent Thoumie
flz at xbsd.org
Sat Jan 17 14:01:20 UTC 2004
>Number: 61474
>Category: ports
>Synopsis: New port: net/ctorrent - BitTorrent Client program by C for FreeBSD and Linux
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 17 06:00:35 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Florent Thoumie
>Release: FreeBSD 4.9-RC i386
>Organization:
Xbsd.org
>Environment:
System: FreeBSD gw 4.9-RC FreeBSD 4.9-RC #4: Sun Oct 5 14:25:09 CEST 2003 rf at gw:/usr/src/sys/compile/GW i386
>Description:
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.
>How-To-Repeat:
N/A
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ctorrent
# ctorrent/files
# ctorrent/files/patch-aa
# ctorrent/Makefile
# ctorrent/pkg-descr
# ctorrent/distinfo
# ctorrent/pkg-plist
#
echo c - ctorrent
mkdir -p ctorrent > /dev/null 2>&1
echo c - ctorrent/files
mkdir -p ctorrent/files > /dev/null 2>&1
echo x - ctorrent/files/patch-aa
sed 's/^X//' >ctorrent/files/patch-aa << 'END-of-ctorrent/files/patch-aa'
Xdiff -u -r btstream.cpp btstream.cpp.new
X--- btstream.cpp Thu Jan 15 15:01:00 2004
X+++ btstream.cpp Sat Jan 17 13:57:34 2004
X@@ -1,3 +1,4 @@
X+#include <arpa/inet.h>
X #include "btstream.h"
X #include "msgencode.h"
X #include "btconfig.h"
Xdiff -u -r httpencode.cpp httpencode.cpp.new
X--- httpencode.cpp Sat Jan 10 20:51:45 2004
X+++ httpencode.cpp.new Sat Jan 17 13:59:25 2004
X@@ -10,6 +10,7 @@
X /* NOTE: */
X /* LINUX/WINDOWS IMPLEMENT's STANDARD C LIBRARY NO strnstr FOUND */
X /* FUNCTION PROGRAMER: Siberiaic Sang */
X+#if 0
X static char* strnstr(const char *haystack,const char *needle,size_t haystacklen)
X {
X char *p;
X@@ -30,6 +31,7 @@
X }
X return (char*) 0;
X }
X+#endif
X /* ************************************************** */
X
X static void url_encode_char(char *b,char c)
Xdiff -u -r iplist.cpp iplist.cpp.new
X--- iplist.cpp Sat Jan 10 20:51:45 2004
X+++ iplist.cpp.new Sat Jan 17 13:58:06 2004
X@@ -1,3 +1,4 @@
X+#include <string.h>
X #include "iplist.h"
X
X IpList IPQUEUE;
Xdiff -u -r peer.cpp peer.cpp.new
X--- peer.cpp Wed Jan 14 12:54:26 2004
X+++ peer.cpp.new Sat Jan 17 13:56:29 2004
X@@ -1,6 +1,7 @@
X #include "peer.h"
X
X #include <stdlib.h>
X+#include <string.h>
X
X #include "btcontent.h"
X #include "msgencode.h"
Xdiff -u -r peer.h peer.h.new
X--- peer.h Thu Jan 15 15:30:15 2004
X+++ peer.h.new Sat Jan 17 13:57:09 2004
X@@ -6,6 +6,7 @@
X #ifdef WINDOWS
X #include <Winsock2.h>
X #else
X+#include <string.h>
X #include <unistd.h>
X #include <sys/socket.h>
X #include <arpa/inet.h>
END-of-ctorrent/files/patch-aa
echo x - ctorrent/Makefile
sed 's/^X//' >ctorrent/Makefile << 'END-of-ctorrent/Makefile'
X# New ports collection makefile for: ctorrent
X# Date created: Jan 17 2004
X# Whom: Florent Thoumie <flz at xbsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= ctorrent
XPORTVERSION= 1.3.r1
XCATEGORIES= net
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= ${PORTNAME}
XDISTNAME= CTorrent-1.3r1
X
XPATCH_DIST_STRIP=-p1
X
XMAINTAINER= flz at xbsd.org
XCOMMENT= BitTorrent Client program by C for FreeBSD and Linux
X
X.include <bsd.port.mk>
END-of-ctorrent/Makefile
echo x - ctorrent/pkg-descr
sed 's/^X//' >ctorrent/pkg-descr << 'END-of-ctorrent/pkg-descr'
XCTorrent is a BitTorrent (be know as BT usually) Client program by C for
XFreeBSD and Linux. Fast and small are CTorrent`s two strengths.
X
XWWW: http://ctorrent.sourceforge.net/
X
X- Florent Thoumie
Xflz at xbsd.org
END-of-ctorrent/pkg-descr
echo x - ctorrent/distinfo
sed 's/^X//' >ctorrent/distinfo << 'END-of-ctorrent/distinfo'
XMD5 (CTorrent-1.3r1.tar.gz) = 833e24c797de4134e78c34aca6c2dd96
END-of-ctorrent/distinfo
echo x - ctorrent/pkg-plist
sed 's/^X//' >ctorrent/pkg-plist << 'END-of-ctorrent/pkg-plist'
Xbin/ctorrent
END-of-ctorrent/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list