summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/btget/DESCR7
-rw-r--r--net/btget/Makefile26
-rw-r--r--net/btget/PLIST8
-rw-r--r--net/btget/distinfo7
-rw-r--r--net/btget/patches/patch-aa16
-rw-r--r--net/btget/patches/patch-ab12
6 files changed, 76 insertions, 0 deletions
diff --git a/net/btget/DESCR b/net/btget/DESCR
new file mode 100644
index 00000000000..04314697fa1
--- /dev/null
+++ b/net/btget/DESCR
@@ -0,0 +1,7 @@
+LibBT is a C reimplementation of the BitTorrent core protocols. Our
+goal for the project is to develop a low overhead library version of
+the protocols so that BitTorrent transfers can easily be built in to
+any existing application.
+
+A suplied application called `btget' is a full fledged bittorrent
+application based on this library.
diff --git a/net/btget/Makefile b/net/btget/Makefile
new file mode 100644
index 00000000000..1b1f542e07f
--- /dev/null
+++ b/net/btget/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/08/05 22:00:49 reinoud Exp $
+#
+
+DISTNAME= libbt-1.04
+PKGNAME= ${DISTNAME:S/libbt/btget/}
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libbt/}
+
+MAINTAINER= reinoud@NetBSD.org
+HOMEPAGE= http://libbt.sourceforge.net/
+COMMENT= Fast bittorrent client and library written in C
+
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/btget ${PREFIX}/bin/btget
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/btlist ${PREFIX}/bin/btlist
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/btcheck ${PREFIX}/bin/btcheck
+ ${INSTALL_MAN} ${WRKSRC}/man/btget.1 ${PREFIX}/man/man1/btget.1
+ ${INSTALL_MAN} ${WRKSRC}/man/btlist.1 ${PREFIX}/man/man1/btlist.1
+ ${INSTALL_MAN} ${WRKSRC}/man/btcheck.1 ${PREFIX}/man/man1/btcheck.1
+
+.include "../../www/curl/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/btget/PLIST b/net/btget/PLIST
new file mode 100644
index 00000000000..fbc015da5a4
--- /dev/null
+++ b/net/btget/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/08/05 22:00:49 reinoud Exp $
+bin/btcheck
+bin/btget
+bin/btlist
+man/man1/btcheck.1
+man/man1/btget.1
+man/man1/btlist.1
+@dirrm etc/cups/certs
diff --git a/net/btget/distinfo b/net/btget/distinfo
new file mode 100644
index 00000000000..39decf93d93
--- /dev/null
+++ b/net/btget/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/08/05 22:00:49 reinoud Exp $
+
+SHA1 (libbt-1.04.tar.gz) = ee65205f3e5575d86d5fec0b2958bb8855ec0fa5
+RMD160 (libbt-1.04.tar.gz) = a6b827fa1d5dc7a27ab78fefe2ac5009ef115f2a
+Size (libbt-1.04.tar.gz) = 309186 bytes
+SHA1 (patch-aa) = 3f045800da8d372d45fcf59fe2f1f9fb0a288a20
+SHA1 (patch-ab) = dc53a0a44dcc3475122d87280deb2ba946f79588
diff --git a/net/btget/patches/patch-aa b/net/btget/patches/patch-aa
new file mode 100644
index 00000000000..89686020a43
--- /dev/null
+++ b/net/btget/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/08/05 22:00:49 reinoud Exp $
+
+--- include/util.h.orig 2004-04-16 08:41:48.000000000 +0200
++++ include/util.h
+@@ -28,9 +28,11 @@ int hexdecode (unsigned char *digest, in
+ typedef void (*exitfn_ptr) (int,void*);
+ int on_exit( exitfn_ptr exitfn, void* data) ;
+ #endif
++#if 0
+ #define malloc(s) use_btmalloc_instead
+ #define calloc(n,s) use_btcalloc_instead
+ #define realloc(p,s) use_btrealloc_instead
+ #define free(p) use_btfree_instead
++#endif
+
+ #endif
diff --git a/net/btget/patches/patch-ab b/net/btget/patches/patch-ab
new file mode 100644
index 00000000000..0c52b0473f8
--- /dev/null
+++ b/net/btget/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/08/05 22:00:49 reinoud Exp $
+
+--- src/peer.c.orig 2005-04-27 06:47:47.000000000 +0200
++++ src/peer.c
+@@ -6,6 +6,7 @@
+ # include <arpa/inet.h>
+ # include <netdb.h>
+ # include <sys/socket.h>
++# include <limits.h>
+ # if HAVE_UNISTD_H
+ # include <unistd.h>
+ # endif