diff options
author | wiz <wiz> | 2002-09-11 20:47:14 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-09-11 20:47:14 +0000 |
commit | cf1383f765811d68482fff3caab138a6fc1f9d87 (patch) | |
tree | 8c483a0f086dece9d8419b40ffe1a3b68eb0cbd1 /net/dc_gui | |
parent | 5638ed6db19bef2a5672c8afe1ef6a543199a944 (diff) | |
download | pkgsrc-cf1383f765811d68482fff3caab138a6fc1f9d87.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/dc_gui')
-rw-r--r-- | net/dc_gui/DESCR | 14 | ||||
-rw-r--r-- | net/dc_gui/Makefile | 30 | ||||
-rw-r--r-- | net/dc_gui/PLIST | 20 | ||||
-rw-r--r-- | net/dc_gui/distinfo | 11 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-aa | 32 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-ab | 13 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-ac | 58 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-ad | 39 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-ae | 36 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-af | 22 | ||||
-rw-r--r-- | net/dc_gui/patches/patch-ag | 37 |
11 files changed, 312 insertions, 0 deletions
diff --git a/net/dc_gui/DESCR b/net/dc_gui/DESCR new file mode 100644 index 00000000000..f31753313ce --- /dev/null +++ b/net/dc_gui/DESCR @@ -0,0 +1,14 @@ +dc_gui is a GUI for DCTC. Currently, it is still a beta version, +some features don't work but the most useful ones are available: + * Currently, dc_gui can start a new client and/or attach itself + to already running DCTC. You can also start several connections + at the same time. You can switch between several DCTC. + * search: mono-hub search works and takes into account all search + criterias. It is already possible to start a download by clicking + on the wanted file. + * user list: the user list is simply displayed. It is already possible + to retrieve user shared files list. + * transfers: transfers are displayed and can be killed (either using + the popup menu or using the 'd' key). + * Preferences: current DCTC preferences are displayed and taken into + account to start new client or to update running client. diff --git a/net/dc_gui/Makefile b/net/dc_gui/Makefile new file mode 100644 index 00000000000..50604cf50e9 --- /dev/null +++ b/net/dc_gui/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ +# + +DISTNAME= dc_gui-0.60 +CATEGORIES= net +MASTER_SITES= http://www.ac2i.tzo.com/dctc/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.ac2i.tzo.com/dctc/ +COMMENT= graphical user interface for DCTC + +GNU_CONFIGURE= YES +USE_BUILDLINK2= YES +CONFIGURE_ARGS+= --enable-manual-db-detect +USE_GMAKE= 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 "../../converters/libiconv/buildlink2.mk" +.include "../../databases/db4/buildlink2.mk" +.include "../../devel/gettext-lib/buildlink2.mk" +.include "../../x11/gtk/buildlink2.mk" +.include "../../x11/gnome-libs/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/dc_gui/PLIST b/net/dc_gui/PLIST new file mode 100644 index 00000000000..c0c5ae0d52a --- /dev/null +++ b/net/dc_gui/PLIST @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ +bin/dc_gui +share/gnome/help/dc_gui/C/index.html +share/gnome/help/dc_gui/C/topic.dat +share/gnome/help/dc_gui/es/index.html +share/gnome/help/dc_gui/es/topic.dat +share/gnome/help/dc_gui/nl/index.html +share/gnome/help/dc_gui/nl/topic.dat +${PKGLOCALEDIR}/locale/de/LC_MESSAGES/dc_gui.mo +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/dc_gui.mo +${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/dc_gui.mo +${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/dc_gui.mo +@dirrm share/gnome/help/dc_gui/nl/images +@dirrm share/gnome/help/dc_gui/nl +@dirrm share/gnome/help/dc_gui/es/images +@dirrm share/gnome/help/dc_gui/es +@dirrm share/gnome/help/dc_gui/C/images +@dirrm share/gnome/help/dc_gui/C +@dirrm share/gnome/help/dc_gui +@unexec ${RMDIR} share/gnome/help 2>/dev/null || ${TRUE} diff --git a/net/dc_gui/distinfo b/net/dc_gui/distinfo new file mode 100644 index 00000000000..41e19fad187 --- /dev/null +++ b/net/dc_gui/distinfo @@ -0,0 +1,11 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +SHA1 (dc_gui-0.60.tar.gz) = b22a783b9a93d1f07b9d65266469b405597ca7e9 +Size (dc_gui-0.60.tar.gz) = 430608 bytes +SHA1 (patch-aa) = 99881d4f57e646aba7a5f03aa45939e776921f71 +SHA1 (patch-ab) = acda6d89cc60414ebe69b239d357958e94e31de8 +SHA1 (patch-ac) = a1bc03b93bef1217eb9ca1077de4927049cddd74 +SHA1 (patch-ad) = 0854068b6c5940a566df4d6f689a58a7a427e617 +SHA1 (patch-ae) = f2e9fe445efea23fe52f27ff14d5dcc5c0775af0 +SHA1 (patch-af) = 9d6c0f96b5772e2eda691d7dedae539eafdbb24b +SHA1 (patch-ag) = f674203f9c05c9f3c99f9dc0e933c26df5e82e1b diff --git a/net/dc_gui/patches/patch-aa b/net/dc_gui/patches/patch-aa new file mode 100644 index 00000000000..d1476458177 --- /dev/null +++ b/net/dc_gui/patches/patch-aa @@ -0,0 +1,32 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- configure.orig Sat Aug 3 06:52:14 2002 ++++ configure +@@ -4177,14 +4177,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:4182: 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:4182: 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 4190 "configure" + #include "confdefs.h" +@@ -4219,7 +4219,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:4226: checking for db_env_create in -ldb-3.3" >&5 diff --git a/net/dc_gui/patches/patch-ab b/net/dc_gui/patches/patch-ab new file mode 100644 index 00000000000..4abe9a90d8e --- /dev/null +++ b/net/dc_gui/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- src/bdb.c.orig Sat May 18 14:48:11 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 <gtk/gtk.h> + + #include "main.h" diff --git a/net/dc_gui/patches/patch-ac b/net/dc_gui/patches/patch-ac new file mode 100644 index 00000000000..6f8205980e9 --- /dev/null +++ b/net/dc_gui/patches/patch-ac @@ -0,0 +1,58 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- src/callbacks.c.orig Sun Aug 25 10:28:02 2002 ++++ src/callbacks.c +@@ -2,6 +2,13 @@ + # include <config.h> + #endif + ++#ifdef __linux__ ++#include <linux/sem.h> ++#else ++#ifndef SEMVMX ++#define SEMVMX 32767 /* semaphore maximum value */ ++#endif ++#endif + #include <math.h> + #include <sys/types.h> + #include <signal.h> +@@ -14,11 +21,10 @@ + #include <dirent.h> + #include <gdk/gdkkeysyms.h> + #include <gdk/gdk.h> +-#include <linux/sem.h> + #include <gnome.h> + #include <glib.h> + #include <time.h> +-#include <db.h> ++#include <db4/db.h> + #include <string.h> + + #include "callbacks.h" +@@ -1383,7 +1389,7 @@ on_find_entry_activate ( + + val=atof(gtk_entry_get_text(GTK_ENTRY(w))); + +- g_string_sprintfa(req,"%lf",scale*val); ++ g_string_sprintfa(req,"%f",scale*val); + } + + w=get_widget_by_widget_name("find_result"); +@@ -2610,7 +2616,7 @@ on_apply_pref_clicked ( + } + if(i==4) + i=0; +- g_string_sprintf(out,"/OFFSET %lf\n",strtod(v,NULL)*scale[i]); ++ g_string_sprintf(out,"/OFFSET %f\n",strtod(v,NULL)*scale[i]); + send_data_to_dctc(out->str); + } + } +@@ -3226,7 +3232,7 @@ static void reload_ls_cache_clist(int ev + nw[1]=buf; + + printf("%llX",lsch.share_size); +- sprintf(buf,"%'llu", lsch.share_size); ++ sprintf(buf,"%llu", lsch.share_size); + gtk_clist_append(clst,nw); + } + } diff --git a/net/dc_gui/patches/patch-ad b/net/dc_gui/patches/patch-ad new file mode 100644 index 00000000000..695fec0d5e2 --- /dev/null +++ b/net/dc_gui/patches/patch-ad @@ -0,0 +1,39 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- src/dctc_process.c.orig Tue Jul 30 17:54:39 2002 ++++ src/dctc_process.c +@@ -535,9 +535,9 @@ static void update_users_info(void) + } + + if( (amount/(1024.0*1024.0*1024.0)) > 1024.0) +- sprintf(buf,"%'d users (%'.2lfTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); ++ sprintf(buf,"%d users (%.2fTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); + else +- sprintf(buf,"%'d users (%'.2lfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); ++ sprintf(buf,"%d users (%.2fGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); + w=get_widget_by_widget_name("users_info_label"); + if(w==NULL) + return; +@@ -697,7 +697,7 @@ static void uinfo_fnc(const GString *s) + fsize=g_string_new(""); + + if(vsize>(1024.0*1024.0*1024.0)) +- g_string_sprintf(fsize,"%'.2fGB",vsize/(1024.0*1024.0*1024.0)); ++ g_string_sprintf(fsize,"%.2fGB",vsize/(1024.0*1024.0*1024.0)); + else if(vsize>(1024.0*1024.0)) + g_string_sprintf(fsize,"%.2fMB",vsize/(1024.0*1024.0)); + else if(vsize>(1024.0)) +@@ -4140,11 +4140,11 @@ static void first_level_glst_end_fnc(Gtk + #endif + if(spd<1024.0) + { +- g_string_sprintfa(spd_str,"[%.2lfB/s]",spd); ++ g_string_sprintfa(spd_str,"[%.2fB/s]",spd); + } + else if(spd<(1024.0*1024.0)) + { +- g_string_sprintfa(spd_str,"[%.2lfKB/s]",spd/1024.0); ++ g_string_sprintfa(spd_str,"[%.2fKB/s]",spd/1024.0); + } + + /* Estimated Time to Arrival computation: now (in second) + missing_bytes/spd */ diff --git a/net/dc_gui/patches/patch-ae b/net/dc_gui/patches/patch-ae new file mode 100644 index 00000000000..6d9510171fc --- /dev/null +++ b/net/dc_gui/patches/patch-ae @@ -0,0 +1,36 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- src/do_connect.c.orig Wed Aug 14 16:05:09 2002 ++++ src/do_connect.c +@@ -200,11 +200,11 @@ void update_dl_clist_size(GtkCList *clst + + if(spd<1024.0) + { +- sprintf(buf+strlen(buf)," %.2lfB/s",spd); ++ sprintf(buf+strlen(buf)," %.2fB/s",spd); + } + else if(spd<(1024.0*1024.0)) + { +- sprintf(buf+strlen(buf)," %.2lfKB/s",spd/1024.0); ++ sprintf(buf+strlen(buf)," %.2fKB/s",spd/1024.0); + } + } + +@@ -722,7 +722,7 @@ void start_a_new_dctc(char *hub_address, + + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-o")); + +- sprintf(bf,"%.0lf",value); ++ sprintf(bf,"%.0f",value); + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf)); + } + } +@@ -1160,7 +1160,7 @@ void start_a_new_dctc(char *hub_address, + + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-o")); + +- sprintf(bf,"%.0lf",value); ++ sprintf(bf,"%.0f",value); + g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf)); + } + } diff --git a/net/dc_gui/patches/patch-af b/net/dc_gui/patches/patch-af new file mode 100644 index 00000000000..9aaf61f305c --- /dev/null +++ b/net/dc_gui/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD: patch-af,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- src/init_fnc.c.orig Fri Aug 23 19:11:47 2002 ++++ src/init_fnc.c +@@ -11,10 +11,17 @@ + #include <math.h> + #include <sys/types.h> + #include <sys/stat.h> ++#ifdef __linux__ + #include <linux/sem.h> /* for the value of SEMVMX */ ++#else ++#ifndef SEMVMX ++#define SEMVMX 32767 /* semaphore maximum value */ ++#endif ++#endif + #include <dirent.h> + #include <string.h> + #include <gnome.h> ++#include <db4/db.h> + + #include "misc_gtk.h" + #include "init_fnc.h" diff --git a/net/dc_gui/patches/patch-ag b/net/dc_gui/patches/patch-ag new file mode 100644 index 00000000000..14bc675334e --- /dev/null +++ b/net/dc_gui/patches/patch-ag @@ -0,0 +1,37 @@ +$NetBSD: patch-ag,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $ + +--- src/main.c.orig Fri Aug 23 18:41:11 2002 ++++ src/main.c +@@ -8,7 +8,7 @@ + #endif + + #include <signal.h> +-#include <db.h> ++#include <db4/db.h> + #include <errno.h> + #include <sys/stat.h> + #include <sys/types.h> +@@ -329,6 +329,23 @@ main (int argc, char *argv[]) + + dctc_dir=g_string_new(NULL); + g_string_sprintf(dctc_dir,"%s/running",dctc_main_dir->str); ++ if(access(dctc_dir->str,R_OK|W_OK|X_OK)) ++ { ++ if(errno==ENOENT) ++ { ++ if(mkdir(dctc_dir->str,0777)) ++ { ++ perror("mkdir"); ++ fprintf(stderr,"Unable to create %s, abort.\n",dctc_dir->str); ++ exit(1); ++ } ++ } ++ else ++ { ++ fprintf(stderr,"You have no access rights on %s, abort.\n",dctc_dir->str); ++ exit(1); ++ } ++ } + dctc_active_client_file=g_string_new(NULL); + g_string_sprintf(dctc_active_client_file,"%s/gstatus",dctc_main_dir->str); + |