summaryrefslogtreecommitdiff
path: root/net/dctc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-09-11 20:47:14 +0000
committerwiz <wiz@pkgsrc.org>2002-09-11 20:47:14 +0000
commit963cdd4291515e081177a23b3d018fd8489f272a (patch)
tree8c483a0f086dece9d8419b40ffe1a3b68eb0cbd1 /net/dctc
parentb614a434b80837a5c517e9bcb8761d4308173bb1 (diff)
downloadpkgsrc-963cdd4291515e081177a23b3d018fd8489f272a.tar.gz
Initial import of dctc (Direct Connect Text Client) and its GUI, dc_gui
(Direct Connect GUI). Requested by reed some months ago ;) DC is another file sharing protocol.
Diffstat (limited to 'net/dctc')
-rw-r--r--net/dctc/DESCR11
-rw-r--r--net/dctc/Makefile28
-rw-r--r--net/dctc/PLIST5
-rw-r--r--net/dctc/distinfo15
-rw-r--r--net/dctc/patches/patch-aa10
-rw-r--r--net/dctc/patches/patch-ab32
-rw-r--r--net/dctc/patches/patch-ac13
-rw-r--r--net/dctc/patches/patch-ad66
-rw-r--r--net/dctc/patches/patch-ae20
-rw-r--r--net/dctc/patches/patch-af21
-rw-r--r--net/dctc/patches/patch-ag13
-rw-r--r--net/dctc/patches/patch-ah13
-rw-r--r--net/dctc/patches/patch-ai14
-rw-r--r--net/dctc/patches/patch-aj13
-rw-r--r--net/dctc/patches/patch-ak13
15 files changed, 287 insertions, 0 deletions
diff --git a/net/dctc/DESCR b/net/dctc/DESCR
new file mode 100644
index 00000000000..073a038ead9
--- /dev/null
+++ b/net/dctc/DESCR
@@ -0,0 +1,11 @@
+DCTC is a Direct Connect clone, a windows client allowing users to
+share their files and talk (like IRC but more software sharing
+oriented) using a proprietary protocol.
+
+DCTC stands for Direct Connect Text Client.
+
+DCTC is not designed to be used by human. It doesn't contains any
+GUI or CLI. The goal of this project is to build a Direct Connect
+client which can be used by other programs. So even if you can
+enter command using the keyboard, don't say the human interface is
+poor.
diff --git a/net/dctc/Makefile b/net/dctc/Makefile
new file mode 100644
index 00000000000..7e09934f85e
--- /dev/null
+++ b/net/dctc/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+#
+
+DISTNAME= dctc-0.83.3
+CATEGORIES= net
+MASTER_SITES= http://www.ac2i.tzo.com/dctc/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.ac2i.tzo.com/dctc/
+COMMENT= Direct Connect clone (Direct Connect Text Client)
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK2= YES
+CONFIGURE_ARGS+= --enable-manual-db-detect
+REPLACE_PERL= GDLjoiner
+USE_PERL5= YES
+
+post-configure:
+ @${ECHO} '#ifndef MSG_NOSIGNAL' >> ${WRKSRC}/config.h
+ @${ECHO} '# define MSG_NOSIGNAL 0' >> ${WRKSRC}/config.h
+ @${ECHO} '#endif' >> ${WRKSRC}/config.h
+ @${ECHO} '#ifndef ENODATA' >> ${WRKSRC}/config.h
+ @${ECHO} '# define ENODATA ENOMSG' >> ${WRKSRC}/config.h
+ @${ECHO} '#endif' >> ${WRKSRC}/config.h
+
+.include "../../databases/db4/buildlink2.mk"
+.include "../../devel/glib/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/dctc/PLIST b/net/dctc/PLIST
new file mode 100644
index 00000000000..89a89d755c6
--- /dev/null
+++ b/net/dctc/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+bin/GDLjoiner
+bin/dctc
+bin/hublist
+man/man1/dctc.1
diff --git a/net/dctc/distinfo b/net/dctc/distinfo
new file mode 100644
index 00000000000..db68b4aec8d
--- /dev/null
+++ b/net/dctc/distinfo
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+SHA1 (dctc-0.83.3.tar.gz) = 908458670d5c47cd3d5a9505abbf95f1eba95c72
+Size (dctc-0.83.3.tar.gz) = 246841 bytes
+SHA1 (patch-aa) = 68a3ca5f8b7e28717e1a294456be56c846f3c521
+SHA1 (patch-ab) = 59ae59cdcfb6a279fc241d6d55a78a64aa36ad9f
+SHA1 (patch-ac) = e851bca630b1db46a0fce9843f7dc81049aadeec
+SHA1 (patch-ad) = b99489b8a14db6781f74dda15d53306a6434c09a
+SHA1 (patch-ae) = 40e4f5c3929beb1b118a7a8180cdf93a2083e084
+SHA1 (patch-af) = ab50755aee9900bf23d4888f90b25614c0866f16
+SHA1 (patch-ag) = 61f8cc1cb35312de15dbc43e0ce7d185b7cda88e
+SHA1 (patch-ah) = 4d481b1fcb1b32debf44b4506ed39be09d64ae79
+SHA1 (patch-ai) = 787fe1e96b03e2ab4ec5de6ccb765e1a4ae9bb5c
+SHA1 (patch-aj) = 695cac1218b4a6c1fe3057bcf3b853343885e1c0
+SHA1 (patch-ak) = 184ca9047b3d3444ef166a321fbd563d9e4bca3a
diff --git a/net/dctc/patches/patch-aa b/net/dctc/patches/patch-aa
new file mode 100644
index 00000000000..060f1f2deff
--- /dev/null
+++ b/net/dctc/patches/patch-aa
@@ -0,0 +1,10 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- GDLjoiner.orig Thu Aug 22 17:35:13 2002
++++ GDLjoiner
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env perl
++#! /usr/bin/perl
+ #
+ # Used to join a directory of dctc created parts of one file
+ # Copyright Tobias Olsson 2002
diff --git a/net/dctc/patches/patch-ab b/net/dctc/patches/patch-ab
new file mode 100644
index 00000000000..f82bad5a933
--- /dev/null
+++ b/net/dctc/patches/patch-ab
@@ -0,0 +1,32 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- configure.orig Thu Jul 25 14:42:18 2002
++++ configure
+@@ -1860,14 +1860,14 @@ fi
+
+
+ if test "x$manu_db" = "xyes"; then
+- echo $ac_n "checking for db_env_create in -ldb-4.0""... $ac_c" 1>&6
+-echo "configure:1865: checking for db_env_create in -ldb-4.0" >&5
+-ac_lib_var=`echo db-4.0'_'db_env_create | sed 'y%./+-%__p_%'`
++ echo $ac_n "checking for db_env_create in -ldb4""... $ac_c" 1>&6
++echo "configure:1865: checking for db_env_create in -ldb4" >&5
++ac_lib_var=`echo db4'_'db_env_create | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-ldb-4.0 $LIBS"
++LIBS="-ldb4 $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1873 "configure"
+ #include "confdefs.h"
+@@ -1902,7 +1902,7 @@ fi
+
+ if test "x$HAVE_DB40" = "xyes"; then
+
+- berkeleydb_libs="-ldb-4.0"
++ berkeleydb_libs="-ldb4"
+ else
+ echo $ac_n "checking for db_env_create in -ldb-3.3""... $ac_c" 1>&6
+ echo "configure:1909: checking for db_env_create in -ldb-3.3" >&5
diff --git a/net/dctc/patches/patch-ac b/net/dctc/patches/patch-ac
new file mode 100644
index 00000000000..458e6504a70
--- /dev/null
+++ b/net/dctc/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/09/11 20:47:15 wiz Exp $
+
+--- src/bdb.c.orig Sat May 18 12:09:04 2002
++++ src/bdb.c
+@@ -28,7 +28,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <string.h>
+-#include <db.h>
++#include <db4/db.h>
+ #include <glib.h>
+
+ #include "var.h"
diff --git a/net/dctc/patches/patch-ad b/net/dctc/patches/patch-ad
new file mode 100644
index 00000000000..5885e7cc5e4
--- /dev/null
+++ b/net/dctc/patches/patch-ad
@@ -0,0 +1,66 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- src/display.c.orig Mon Jul 15 16:32:39 2002
++++ src/display.c
+@@ -36,7 +36,7 @@
+ #include "var.h"
+
+ /* this mutex provides a lock for stdout to avoid display conflict between thread */
+-G_LOCK_DEFINE_STATIC(stdout);
++G_LOCK_DEFINE_STATIC(std_out);
+
+ static FILE *log_fd=NULL;
+ static FILE *errlog_fd=NULL;
+@@ -135,7 +135,7 @@ void disp_msg_full(DISP_MSG_TYPE msg_typ
+ if((msg_type==DEBUG_MSG)&&(debug_mode==0))
+ return;
+
+- G_LOCK(stdout);
++ G_LOCK(std_out);
+ o_str=g_string_new("");
+
+ va_start(ap,fnc_name);
+@@ -258,7 +258,7 @@ void disp_msg_full(DISP_MSG_TYPE msg_typ
+ va_end(ap);
+
+ fflush(stdout); /* flush stdout before unlocking */
+- G_UNLOCK(stdout);
++ G_UNLOCK(std_out);
+ }
+
+ /***********************************/
+@@ -269,7 +269,7 @@ void disp_msg_full(DISP_MSG_TYPE msg_typ
+ void change_logfile(char *filename)
+ {
+ /* to avoid potential access conflict, we lock the display */
+- G_LOCK(stdout);
++ G_LOCK(std_out);
+
+ /* close the previously existing FILE */
+ if(log_fd!=NULL)
+@@ -287,7 +287,7 @@ void change_logfile(char *filename)
+ disp_msg(ERR_MSG,"change_logfile",strerror(errno),NULL);
+ }
+ }
+- G_UNLOCK(stdout);
++ G_UNLOCK(std_out);
+ }
+
+ /***************************************/
+@@ -298,7 +298,7 @@ void change_logfile(char *filename)
+ void change_errlogfile(char *filename)
+ {
+ /* to avoid potential access conflict, we lock the display */
+- G_LOCK(stdout);
++ G_LOCK(std_out);
+
+ /* close the previously existing FILE */
+ if(errlog_fd!=NULL)
+@@ -316,6 +316,6 @@ void change_errlogfile(char *filename)
+ disp_msg(ERR_MSG,"change_errlogfile",strerror(errno),NULL);
+ }
+ }
+- G_UNLOCK(stdout);
++ G_UNLOCK(std_out);
+ }
+
diff --git a/net/dctc/patches/patch-ae b/net/dctc/patches/patch-ae
new file mode 100644
index 00000000000..16530375bcc
--- /dev/null
+++ b/net/dctc/patches/patch-ae
@@ -0,0 +1,20 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- src/keyboard.c.orig Mon Jul 15 09:13:14 2002
++++ src/keyboard.c
+@@ -35,7 +35,6 @@
+ #include <netdb.h>
+ #include <glib.h>
+
+-#if !(defined(BSD) && (BSD >= 199103))
+ #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
+ /* union semun is defined by including <sys/sem.h> */
+ #else
+@@ -47,7 +46,6 @@
+ struct seminfo *__buf; /* buffer for IPC_INFO */
+ };
+ #endif
+-#endif
+
+ #include "dc_com.h"
+ #include "display.h"
diff --git a/net/dctc/patches/patch-af b/net/dctc/patches/patch-af
new file mode 100644
index 00000000000..ff1ab33112f
--- /dev/null
+++ b/net/dctc/patches/patch-af
@@ -0,0 +1,21 @@
+$NetBSD: patch-af,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- src/main.c.orig Mon Jul 15 16:39:50 2002
++++ src/main.c
+@@ -34,11 +34,15 @@
+ #include <sys/param.h>
+ #include <sys/utsname.h>
+ #include <sys/un.h>
++#ifdef __linux__
+ #include <linux/sem.h> /* for the value of SEMVMX */
++#else
++#include <sys/sem.h>
++#endif
+ #include <errno.h>
+ #include <getopt.h>
+ #include <string.h>
+-#include <db.h>
++#include <db4/db.h>
+ #include <glib.h>
+ #include <pthread.h>
+
diff --git a/net/dctc/patches/patch-ag b/net/dctc/patches/patch-ag
new file mode 100644
index 00000000000..a9dcf7060cd
--- /dev/null
+++ b/net/dctc/patches/patch-ag
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- src/mydb.c.orig Sun Apr 14 17:13:47 2002
++++ src/mydb.c
+@@ -1079,7 +1079,7 @@ static void send_a_db_result(int output_
+ /* (if dest_nick==NULL, dest_addr is the destination) */
+ /* (if dest_addr==NULL, dest_nick is the destination) */
+ /*******************************************************************************/
+-void search_in_db(int sck, char *dest_nick, int file_type, SIZE_ATTRIB size_matter, unsigned long size, char *pattern, unsigned char *md5sum, struct sockaddr_in *dest_addr)
++void search_in_db(int sck, char *dest_nick, int file_type, SIZE_ATTRIB size_matter, unsigned long size, char *pattern, unsigned char *md5sum, struct sockaddr *dest_addr)
+ {
+ int i;
+ int nb_result=0;
diff --git a/net/dctc/patches/patch-ah b/net/dctc/patches/patch-ah
new file mode 100644
index 00000000000..b19b5ca3480
--- /dev/null
+++ b/net/dctc/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $
+
+--- src/mydb.h.orig Sat Apr 13 11:45:19 2002
++++ src/mydb.h
+@@ -97,7 +97,7 @@ typedef enum
+ /* (if dest_nick==NULL, dest_addr is the destination) */
+ /* (if dest_addr==NULL, dest_nick is the destination) */
+ /*******************************************************************************/
+-void search_in_db(int sck, char *dest_nick, int file_type, SIZE_ATTRIB size_matter, unsigned long size, char *pattern, unsigned char *md5sum, struct sockaddr_in *dest_addr);
++void search_in_db(int sck, char *dest_nick, int file_type, SIZE_ATTRIB size_matter, unsigned long size, char *pattern, unsigned char *md5sum, struct sockaddr *dest_addr);
+
+ /*************************************************************/
+ /* check if the given filename exists in the shared database */
diff --git a/net/dctc/patches/patch-ai b/net/dctc/patches/patch-ai
new file mode 100644
index 00000000000..7e98d1d53e5
--- /dev/null
+++ b/net/dctc/patches/patch-ai
@@ -0,0 +1,14 @@
+$NetBSD: patch-ai,v 1.1.1.1 2002/09/11 20:47:15 wiz Exp $
+
+--- src/network.c.orig Fri May 24 17:13:04 2002
++++ src/network.c
+@@ -353,8 +353,7 @@ GString *get_default_host_ip(void)
+ /* the following script does this: */
+ /* 1) extract the interface used by the default route: netstat -rn | grep ^0.0.0.0 | awk '{print $8;} */
+ /* 2) obtain the IP of this interface: netstat xxx | fgrep inet | cut -d : -f 2 | awk '{print $1;}' */
+- const char *cmd=
+- "/sbin/ifconfig `netstat -rn | grep ^0.0.0.0 | awk '{print $8;}'` | fgrep inet | cut -d : -f 2 | awk '{print $1;}'";
++ const char *cmd= "/sbin/route -n get default | awk '/local/{print$NF}'";
+
+ f=popen(cmd,"r");
+ if(f==NULL)
diff --git a/net/dctc/patches/patch-aj b/net/dctc/patches/patch-aj
new file mode 100644
index 00000000000..e4c63b48532
--- /dev/null
+++ b/net/dctc/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1.1.1 2002/09/11 20:47:15 wiz Exp $
+
+--- src/uaddr.c.orig Tue May 28 18:23:48 2002
++++ src/uaddr.c
+@@ -17,7 +17,7 @@
+ #include <sys/socket.h>
+ #include <errno.h>
+ #include <sys/un.h>
+-#include <db.h>
++#include <db4/db.h>
+ #include <glib.h>
+
+ #include "var.h"
diff --git a/net/dctc/patches/patch-ak b/net/dctc/patches/patch-ak
new file mode 100644
index 00000000000..c31457910e8
--- /dev/null
+++ b/net/dctc/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1.1.1 2002/09/11 20:47:15 wiz Exp $
+
+--- src/user_manage.c.orig Sun Jul 28 07:18:48 2002
++++ src/user_manage.c
+@@ -5,7 +5,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <db.h>
++#include <db4/db.h>
+ #include <glib.h>
+
+ #include "user_manage.h"