ports/76033: New port: net/libtorrent - BitTorrent Librarywritten in C++

Florent Thoumie flz at xbsd.org
Mon Jan 10 11:20:21 UTC 2005


The following reply was made to PR ports/76033; it has been noted by GNATS.

From: Florent Thoumie <flz at xbsd.org>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-ports-bugs at FreeBSD.org,
	lioux at FreeBSD.org
Cc:  
Subject: Re: ports/76033: New port: net/libtorrent - BitTorrent Library written
 in C++
Date: Mon, 10 Jan 2005 12:17:53 +0100

 This is a multi-part message in MIME format.
 --------------020209040209020001000205
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Here is the corrected version.
 
 Buildlogs have been updated.
 
 --------------020209040209020001000205
 Content-Type: text/plain;
  name="libtorrent-0.4.5.shar"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="libtorrent-0.4.5.shar"
 
 # 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
 XINSTALLS_SHLIB=	yes
 XUSE_LIBTOOL_VER=	15
 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
 Xpost-patch:
 X	@${REINPLACE_CMD} -e "s#\(pkgconfigdir =\).*#\1 ${PREFIX}/libexec/pkgconfig#" \
 X			${WRKSRC}/Makefile.in
 X	@${REINPLACE_CMD} -e "s#-Wall -O3 -g#${CFLAGS} -fpermissive#" ${WRKSRC}/client/Makefile2
 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-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
 Xavoid redundant copying and storing of data that other clients and libraries
 Xsuffer from. Licensed 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.a
 Xlib/libtorrent.so
 Xlib/libtorrent.so.2
 Xlibexec/pkgconfig/libtorrent.pc
 X at dirrm include/torrent
 X at unexec rmdir %D/libexec/pkgconfig 2> /dev/null || true
 END-of-libtorrent/pkg-plist
 exit
 
 
 --------------020209040209020001000205--



More information about the freebsd-ports-bugs mailing list