summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libbt')
-rw-r--r--net-libs/libbt/ChangeLog8
-rw-r--r--net-libs/libbt/Manifest2
-rw-r--r--net-libs/libbt/files/digest-libbt-1.031
-rw-r--r--net-libs/libbt/files/libbt-headerfix.patch58
-rw-r--r--net-libs/libbt/libbt-1.03.ebuild40
5 files changed, 108 insertions, 1 deletions
diff --git a/net-libs/libbt/ChangeLog b/net-libs/libbt/ChangeLog
index f37077f185c8..7a9da9314eb3 100644
--- a/net-libs/libbt/ChangeLog
+++ b/net-libs/libbt/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/libbt
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/ChangeLog,v 1.4 2004/06/24 23:11:49 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/ChangeLog,v 1.5 2004/07/15 08:20:33 squinky86 Exp $
+
+*libbt-1.03 (15 Jul 2004)
+
+ 15 Jul 2004; Jon Hood <squinky86@gentoo.org> +files/libbt-headerfix.patch,
+ +libbt-1.03.ebuild:
+ version bump, closes #52484
15 Jun 2004; Jon Hood <squinky86@gentoo.org> libbt-1.01.ebuild:
stable on x86
diff --git a/net-libs/libbt/Manifest b/net-libs/libbt/Manifest
index aa8660c09947..06ab0aec4aac 100644
--- a/net-libs/libbt/Manifest
+++ b/net-libs/libbt/Manifest
@@ -1,4 +1,6 @@
MD5 f3699abbf6f30bea542bcfa21b2f35b9 libbt-1.01.ebuild 808
+MD5 f3699abbf6f30bea542bcfa21b2f35b9 libbt-1.03.ebuild 808
MD5 bc5b6cd8dfd2deaa3c2b64b9141eac82 ChangeLog 540
MD5 8abcb326775f027b2e13f23344036e34 metadata.xml 224
MD5 3972dbce0a1e44a9d2222c0303465795 files/digest-libbt-1.01 62
+MD5 7e115d3287520d67751b36e03744a51d files/digest-libbt-1.03 62
diff --git a/net-libs/libbt/files/digest-libbt-1.03 b/net-libs/libbt/files/digest-libbt-1.03
new file mode 100644
index 000000000000..ea14a664cc88
--- /dev/null
+++ b/net-libs/libbt/files/digest-libbt-1.03
@@ -0,0 +1 @@
+MD5 f5fdd7f4b641d5da08d678130b4d6bff libbt-1.03.tar.gz 307473
diff --git a/net-libs/libbt/files/libbt-headerfix.patch b/net-libs/libbt/files/libbt-headerfix.patch
new file mode 100644
index 000000000000..293566af4427
--- /dev/null
+++ b/net-libs/libbt/files/libbt-headerfix.patch
@@ -0,0 +1,58 @@
+diff -Naur libbt-1.03.vanilla/src/btget.c libbt-1.03/src/btget.c
+--- libbt-1.03.vanilla/src/btget.c 2004-04-19 17:11:28.000000000 -0500
++++ libbt-1.03/src/btget.c 2004-07-15 03:11:51.926606992 -0500
+@@ -1,6 +1,7 @@
+ /* btget.c */
+ #include "config.h"
+
++#include "util.h"
+ #include <curl/curl.h>
+ #include <curl/easy.h>
+ #include <openssl/sha.h>
+@@ -39,15 +40,14 @@
+
+ /* libbt */
+ #include "bts.h"
+-#include "types.h"
+ #include "benc.h"
+ #include "random.h"
+ #include "peer.h"
+ #include "stream.h"
+-#include "util.h"
+ #include "segmenter.h"
+ #include "context.h"
+ #include "bterror.h"
++#include "types.h"
+
+ #if WIN32
+ #define close(cs) closesocket(cs)
+diff -Naur libbt-1.03.vanilla/src/segmenter.c libbt-1.03/src/segmenter.c
+--- libbt-1.03.vanilla/src/segmenter.c 2004-04-16 00:28:42.000000000 -0500
++++ libbt-1.03/src/segmenter.c 2004-07-15 03:11:51.946603952 -0500
+@@ -1,5 +1,6 @@
+ #include "config.h"
+
++#include "util.h"
+ #include <stdlib.h>
+ #include <openssl/sha.h>
+ #include <string.h>
+@@ -18,8 +19,8 @@
+ # include <fcntl.h>
+ #endif
+ #include <stdio.h>
++#include "types.h"
+
+-#include "util.h"
+ #include "segmenter.h"
+ #include "bitset.h"
+ #undef min
+diff -Naur libbt-1.03.vanilla/src/types.c libbt-1.03/src/types.c
+--- libbt-1.03.vanilla/src/types.c 2004-04-16 01:19:41.000000000 -0500
++++ libbt-1.03/src/types.c 2004-07-15 03:11:51.947603800 -0500
+@@ -1,5 +1,6 @@
+ #include "config.h"
+
++#include "util.h"
+ #include <stdlib.h>
+ #include <string.h>
+ #ifdef HAVE_STRINGS_H
diff --git a/net-libs/libbt/libbt-1.03.ebuild b/net-libs/libbt/libbt-1.03.ebuild
new file mode 100644
index 000000000000..1583f901eeee
--- /dev/null
+++ b/net-libs/libbt/libbt-1.03.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/libbt-1.03.ebuild,v 1.1 2004/07/15 08:20:33 squinky86 Exp $
+
+inherit eutils
+
+DESCRIPTION="libBT is an impementation of the BitTorrent core protocols in C"
+HOMEPAGE="http://libbt.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+RESTRICT="nomirror"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc"
+
+IUSE=""
+
+DEPEND="dev-libs/openssl
+ net-misc/curl
+ sys-fs/e2fsprogs"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-headerfix.patch
+}
+
+src_compile () {
+ econf || die
+ sed -i -e "s:-g -Wall:${CFLAGS} -g -Wall:g" src/Makefile
+ emake || die
+}
+
+src_install () {
+ dobin src/btlist src/btget src/btcheck
+ doman man/*
+ insinto /usr/include/libbt
+ doins include/*
+ dolib src/libbt.a
+ dodoc CHANGELOG COPYING CREDITS README docs/*
+}