ports/76033: New port: net/libtorrent - BitTorrent Library written in C++
Florent Thoumie
flz at xbsd.org
Mon Jan 10 09:30:25 UTC 2005
>Number: 76033
>Category: ports
>Synopsis: New port: net/libtorrent - BitTorrent Library written in C++
>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: Mon Jan 10 09:30:25 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Florent Thoumie
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
Xbsd.org
>Environment:
System: FreeBSD gate.xbsd.org 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Wed Nov 24 16:35:34 CET 2004 root at gate.xbsd.org:/usr/src/sys/i386/compile/GATE i386
>Description:
LibTorrent is a BitTorrent library written in C++ for *nix. It is designed to avoid
redundant copying and storing of data that other clients and libraries suffer from.
Licensed under the GPL.
WWW: http://libtorrent.rakshasa.no
Tinderbox Buildlogs available on :
http://www.xbsd.org/tb/logs/4-STABLE-FreeBSD/libtorrent-0.4.5.log
http://www.xbsd.org/tb/logs/5-STABLE-FreeBSD/libtorrent-0.4.5.log
http://www.xbsd.org/tb/logs/6-CURRENT-FreeBSD/libtorrent-0.4.5.log
>How-To-Repeat:
N/A
>Fix:
--- libtorrent-0.4.5.shar begins here ---
# 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:
#
# libtorrent
# libtorrent/files
# libtorrent/files/patch-src::data::file.cc
# libtorrent/files/patch-client::rtorrent.cc
# libtorrent/files/patch-src::torrent::torrent.h
# libtorrent/Makefile
# libtorrent/distinfo
# libtorrent/pkg-descr
# libtorrent/pkg-plist
#
echo c - libtorrent
mkdir -p libtorrent > /dev/null 2>&1
echo c - libtorrent/files
mkdir -p libtorrent/files > /dev/null 2>&1
echo x - libtorrent/files/patch-src::data::file.cc
sed 's/^X//' >libtorrent/files/patch-src::data::file.cc << 'END-of-libtorrent/files/patch-src::data::file.cc'
X--- src/data/file.cc.old Fri Jan 7 14:35:43 2005
X+++ src/data/file.cc Fri Jan 7 14:36:35 2005
X@@ -19,8 +19,9 @@
X (flags & in && flags & out ? O_RDWR :
X (flags & in ? O_RDONLY : 0) |
X (flags & out ? O_WRONLY : 0)) |
X-
X+#if defined(Linux)
X (flags & largefile ? O_LARGEFILE : 0) |
X+#endif
X (flags & create ? O_CREAT : 0) |
X (flags & truncate ? O_TRUNC : 0) |
X (flags & nonblock ? O_NONBLOCK : 0),
END-of-libtorrent/files/patch-src::data::file.cc
echo x - libtorrent/files/patch-client::rtorrent.cc
sed 's/^X//' >libtorrent/files/patch-client::rtorrent.cc << 'END-of-libtorrent/files/patch-client::rtorrent.cc'
X--- client/rtorrent.cc.old Fri Jan 7 15:04:15 2005
X+++ client/rtorrent.cc Fri Jan 7 15:04:57 2005
X@@ -19,9 +19,9 @@
X #include "curl_get.h"
X
X // Uncomment this if your system doesn't have execinfo.h
X-#define USE_EXECINFO
X+//#define USE_EXECINFO
X
X-#ifdef USE_EXECINFO
X+#ifdef USE_EXECINFO
X #include <execinfo.h>
X #endif
X
END-of-libtorrent/files/patch-client::rtorrent.cc
echo x - libtorrent/files/patch-src::torrent::torrent.h
sed 's/^X//' >libtorrent/files/patch-src::torrent::torrent.h << 'END-of-libtorrent/files/patch-src::torrent::torrent.h'
X--- src/torrent/torrent.h.old Fri Jan 7 22:34:09 2005
X+++ src/torrent/torrent.h Fri Jan 7 22:51:03 2005
X@@ -4,6 +4,8 @@
X #include <list>
X #include <torrent/common.h>
X #include <torrent/download.h>
X+#include <sys/types.h>
X+#include <sys/select.h>
X
X namespace torrent {
X
END-of-libtorrent/files/patch-src::torrent::torrent.h
echo x - libtorrent/Makefile
sed 's/^X//' >libtorrent/Makefile << 'END-of-libtorrent/Makefile'
X# New ports collection makefile for: libtorrent
X# Date created: Jan 07 2005
X# Whom: Florent Thoumie <flz at xbsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= libtorrent
XPORTVERSION= 0.4.5
XCATEGORIES= net
XMASTER_SITES= http://libtorrent.rakshasa.no/downloads/
X
XMAINTAINER= flz at xbsd.org
XCOMMENT= BitTorrent Library written in C++
X
XLIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl \
X sigc-2.0.0:${PORTSDIR}/devel/libsigc++20
X
XUSE_REINPLACE= yes
XGNU_CONFIGURE= yes
XCONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
X
XWITH_CLIENT?= no
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500000
XUSE_GCC= 3.4
X.endif
X
X.if ${WITH_CLIENT:L} == "yes"
X.if ${OSVERSION} < 500000
XBROKEN= Client doesn't compile on 4.x.
X.endif
X
XPLIST_FILES= bin/rtorrent
X
Xpost-patch:
X @${REINPLACE_CMD} -e "s#-Wall -O3 -g#${CFLAGS} -fpermissive#" ${WRKSRC}/client/Makefile2
XPLIST_FILES= bin/rtorrent
X
Xpost-patch:
X @${REINPLACE_CMD} -e "s#-Wall -O3 -g#${CFLAGS} -fpermissive#" ${WRKSRC}/client/Makefile2
X
Xpost-build:
X @(cd ${WRKSRC}/client; make -f Makefile2)
X
Xpost-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/client/rtorrent ${PREFIX}/bin
X.endif
X
X.include <bsd.port.post.mk>
END-of-libtorrent/Makefile
echo x - libtorrent/distinfo
sed 's/^X//' >libtorrent/distinfo << 'END-of-libtorrent/distinfo'
XMD5 (libtorrent-0.4.5.tar.gz) = 86c38d9036e083c9c2b21b88f7d847fa
XSIZE (libtorrent-0.4.5.tar.gz) = 401624
END-of-libtorrent/distinfo
echo x - libtorrent/pkg-descr
sed 's/^X//' >libtorrent/pkg-descr << 'END-of-libtorrent/pkg-descr'
XLibTorrent is a BitTorrent library written in C++ for *nix. It is designed to avoid
Xredundant copying and storing of data that other clients and libraries suffer from.
XLicensed under the GPL.
X
XWWW: http://libtorrent.rakshasa.no
X
X- Florent Thoumie
Xflz at xbsd.org
END-of-libtorrent/pkg-descr
echo x - libtorrent/pkg-plist
sed 's/^X//' >libtorrent/pkg-plist << 'END-of-libtorrent/pkg-plist'
Xinclude/torrent/common.h
Xinclude/torrent/download.h
Xinclude/torrent/exceptions.h
Xinclude/torrent/entry.h
Xinclude/torrent/http.h
Xinclude/torrent/peer.h
Xinclude/torrent/torrent.h
Xlib/libtorrent.so
Xlib/libtorrent.so.2
Xlib/libtorrent.la
Xlib/pkgconfig/libtorrent.pc
X at dirrm include/torrent
X at unexec rmdir %D/lib/pkgconfig 2> /dev/null || true
END-of-libtorrent/pkg-plist
exit
--- libtorrent-0.4.5.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list