summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-06-25 17:20:47 +0000
committerwiz <wiz@pkgsrc.org>2004-06-25 17:20:47 +0000
commitfed7c2d2cdf3a2e72f9686c04aa4056eb293b9c0 (patch)
tree03d4fc9553abee0e8feae027de58f935d8fad427 /net
parent40167cf167b802a5c758340129ef51a5c702e754 (diff)
downloadpkgsrc-fed7c2d2cdf3a2e72f9686c04aa4056eb293b9c0.tar.gz
Initial import of ctorrent.
CTorrent is a BitTorrent client written in the C programming language. It currently runs on most Linux variants, MacOS and FreeBSD, but hopefully on Windows as well! CTorrent is built as a console program, which means that it doesn't require any graphical components (such as an X server) on the machine you are running it on, you can even run it remotely through a terminal if you wish.
Diffstat (limited to 'net')
-rw-r--r--net/ctorrent/DESCR6
-rw-r--r--net/ctorrent/Makefile16
-rw-r--r--net/ctorrent/PLIST2
-rw-r--r--net/ctorrent/distinfo6
-rw-r--r--net/ctorrent/patches/patch-aa30
-rw-r--r--net/ctorrent/patches/patch-ab20
6 files changed, 80 insertions, 0 deletions
diff --git a/net/ctorrent/DESCR b/net/ctorrent/DESCR
new file mode 100644
index 00000000000..5c69243e408
--- /dev/null
+++ b/net/ctorrent/DESCR
@@ -0,0 +1,6 @@
+CTorrent is a BitTorrent client written in the C programming language.
+It currently runs on most Linux variants, MacOS and FreeBSD, but
+hopefully on Windows as well! CTorrent is built as a console program,
+which means that it doesn't require any graphical components (such as an
+X server) on the machine you are running it on, you can even run it
+remotely through a terminal if you wish.
diff --git a/net/ctorrent/Makefile b/net/ctorrent/Makefile
new file mode 100644
index 00000000000..460b7a095a6
--- /dev/null
+++ b/net/ctorrent/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/25 17:20:47 wiz Exp $
+#
+
+DISTNAME= ctorrent-1.3.2
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ctorrent/}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://ctorrent.sourceforge.net/
+COMMENT= Bittorrent client for the console
+
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ctorrent/PLIST b/net/ctorrent/PLIST
new file mode 100644
index 00000000000..da21be2382d
--- /dev/null
+++ b/net/ctorrent/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/25 17:20:47 wiz Exp $
+bin/ctorrent
diff --git a/net/ctorrent/distinfo b/net/ctorrent/distinfo
new file mode 100644
index 00000000000..c0f8ea6ad61
--- /dev/null
+++ b/net/ctorrent/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/06/25 17:20:47 wiz Exp $
+
+SHA1 (ctorrent-1.3.2.tar.gz) = 8757bafd304d9c8c0b241a1a91ce8389613f1e69
+Size (ctorrent-1.3.2.tar.gz) = 87195 bytes
+SHA1 (patch-aa) = 338158f13fce9f9b9f29eb49fc7bc7b6ef0d9862
+SHA1 (patch-ab) = 579da81c93609fea7f2a6a9ef6ecdab344e7ad9e
diff --git a/net/ctorrent/patches/patch-aa b/net/ctorrent/patches/patch-aa
new file mode 100644
index 00000000000..3d6b0ce6ea9
--- /dev/null
+++ b/net/ctorrent/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/06/25 17:20:47 wiz Exp $
+
+--- configure.orig 2004-02-01 07:15:43.000000000 +0100
++++ configure
+@@ -2888,13 +2888,13 @@ _ACEOF
+
+ else
+
+-echo "$as_me:$LINENO: checking for SHA1_Init in -lcrypt" >&5
+-echo $ECHO_N "checking for SHA1_Init in -lcrypt... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for SHA1_Init in -lcrypto" >&5
++echo $ECHO_N "checking for SHA1_Init in -lcrypto... $ECHO_C" >&6
+ if test "${ac_cv_lib_crypt_SHA1_Init+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lcrypt $LIBS"
++LIBS="-lcrypto $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -2948,7 +2948,7 @@ if test $ac_cv_lib_crypt_SHA1_Init = yes
+ #define HAVE_LIBCRYPT 1
+ _ACEOF
+
+- LIBS="-lcrypt $LIBS"
++ LIBS="-lcrypto $LIBS"
+
+ else
+
diff --git a/net/ctorrent/patches/patch-ab b/net/ctorrent/patches/patch-ab
new file mode 100644
index 00000000000..d6fe0f13b7c
--- /dev/null
+++ b/net/ctorrent/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/06/25 17:20:47 wiz Exp $
+
+--- peerlist.cpp.orig 2004-06-25 19:16:32.000000000 +0200
++++ peerlist.cpp
+@@ -3,6 +3,7 @@
+ #include "peerlist.h"
+
+ #include <stdlib.h>
++#include <errno.h>
+
+ #include <stdio.h>
+
+@@ -361,6 +362,7 @@ int PeerList::Initial_ListenPort()
+ struct sockaddr_in lis_addr;
+ memset(&lis_addr,0, sizeof(sockaddr_in));
+ lis_addr.sin_addr.s_addr = INADDR_ANY;
++ lis_addr.sin_family = AF_INET;
+
+ m_listen_sock = socket(AF_INET,SOCK_STREAM,0);
+