diff options
author | wiz <wiz@pkgsrc.org> | 2003-06-10 13:21:52 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-06-10 13:21:52 +0000 |
commit | b59a01d82b54edbf1be863c567947fd30d0e1292 (patch) | |
tree | de3c4d122a9b68a6774a263cb612ee19ad0bfef6 | |
parent | 8296182f279c29fe62527b93e132bf4c72ab7345 (diff) | |
download | pkgsrc-b59a01d82b54edbf1be863c567947fd30d0e1292.tar.gz |
Initial import of dc_gui2, the GTK2/GNOME2 version of dc_gui.
dc_gui2 is a GUI for DCTC (Direct Connect Text Client), another file sharing
protocol.
-rw-r--r-- | net/dc_gui2/DESCR | 16 | ||||
-rw-r--r-- | net/dc_gui2/Makefile | 38 | ||||
-rw-r--r-- | net/dc_gui2/PLIST | 32 | ||||
-rw-r--r-- | net/dc_gui2/distinfo | 8 | ||||
-rw-r--r-- | net/dc_gui2/patches/patch-aa | 12 | ||||
-rw-r--r-- | net/dc_gui2/patches/patch-ab | 15 | ||||
-rw-r--r-- | net/dc_gui2/patches/patch-ac | 29 | ||||
-rw-r--r-- | net/dc_gui2/patches/patch-af | 18 |
8 files changed, 168 insertions, 0 deletions
diff --git a/net/dc_gui2/DESCR b/net/dc_gui2/DESCR new file mode 100644 index 00000000000..c49017efc61 --- /dev/null +++ b/net/dc_gui2/DESCR @@ -0,0 +1,16 @@ +dc_gui2 is a GUI for DCTC (Direct Connect Text Client), another +file sharing protocol. 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_gui2/Makefile b/net/dc_gui2/Makefile new file mode 100644 index 00000000000..83cc89ad4c6 --- /dev/null +++ b/net/dc_gui2/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ +# + +DISTNAME= dc_gui2-0.74 +CATEGORIES= net +MASTER_SITES= http://www.ac2i.tzo.com/dctc/ \ + http://brainz.servebeer.com/dctc/ + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://www.ac2i.tzo.com/dctc/ +COMMENT= graphical user interface for DCTC + +DEPENDS+= dctc>=0.83.9:../../net/dctc + +GNU_CONFIGURE= YES +USE_BUILDLINK2= YES +USE_PKGLOCALEDIR= YES +CONFIGURE_ARGS+= --enable-manual-db-detect +USE_GMAKE= YES + +CPPFLAGS+= -I${BUILDLINK_PREFIX.db4}/include/db4 +CPPFLAGS+= -DNO_PRINTF_LOCALE + +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 + @sleep 5 + @${TOUCH} ${WRKSRC}/stamp-h ${WRKSRC}/stamp-h.in + +.include "../../converters/libiconv/buildlink2.mk" +.include "../../databases/db4/buildlink2.mk" +.include "../../devel/gettext-lib/buildlink2.mk" +.include "../../devel/libgnomeui/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/dc_gui2/PLIST b/net/dc_gui2/PLIST new file mode 100644 index 00000000000..d8c7f79d7b5 --- /dev/null +++ b/net/dc_gui2/PLIST @@ -0,0 +1,32 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ +bin/cmd2dc_gui2 +bin/dc_gui2 +share/applications/dc_gui2.desktop +share/gnome/help/dc_gui/C/chat.html +share/gnome/help/dc_gui/C/chat.png +share/gnome/help/dc_gui/C/connect.html +share/gnome/help/dc_gui/C/favorites.png +share/gnome/help/dc_gui/C/find.html +share/gnome/help/dc_gui/C/find.png +share/gnome/help/dc_gui/C/find_and_gdl_config.html +share/gnome/help/dc_gui/C/find_and_gdl_config.png +share/gnome/help/dc_gui/C/index.html +share/gnome/help/dc_gui/C/private_chat.html +share/gnome/help/dc_gui/C/private_chat.png +share/gnome/help/dc_gui/C/public.png +share/gnome/help/dc_gui/C/recent.png +share/gnome/help/dc_gui/C/running_tab.png +share/gnome/help/dc_gui/C/seen_public.png +share/gnome/help/dc_gui/C/startup.html +share/gnome/help/dc_gui/C/startup.png +share/gnome/help/dc_gui/C/user_file_list.html +share/gnome/help/dc_gui/C/user_file_list.png +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/dc_gui2.mo +${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/dc_gui2.mo +share/pixmaps/dc_gui2.xpm +share/pixmaps/dc_gui2/icon_kill.xpm +@dirrm share/pixmaps/dc_gui2 +@exec ${MKDIR} %D/share/gnome/help/dc_gui/C/images +@dirrm share/gnome/help/dc_gui/C/images +@dirrm share/gnome/help/dc_gui/C +@dirrm share/gnome/help/dc_gui diff --git a/net/dc_gui2/distinfo b/net/dc_gui2/distinfo new file mode 100644 index 00000000000..4ac76677a31 --- /dev/null +++ b/net/dc_gui2/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ + +SHA1 (dc_gui2-0.74.tar.gz) = 794a1756bba364abb3494c06ad5b675bbe8b3abb +Size (dc_gui2-0.74.tar.gz) = 599564 bytes +SHA1 (patch-aa) = ac14a12d740b030f068b9947f87fc4a29b84313a +SHA1 (patch-ab) = 77d2c598e14ef5b79f72784cdbabe3a2c68ef642 +SHA1 (patch-ac) = 5a78d9f28de9b8df1d02c821b39ac14ec00e4622 +SHA1 (patch-af) = cd6f3c4f8af7c540064e17c0e9714ddc13050641 diff --git a/net/dc_gui2/patches/patch-aa b/net/dc_gui2/patches/patch-aa new file mode 100644 index 00000000000..3d4fa82c5d9 --- /dev/null +++ b/net/dc_gui2/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ + +--- configure.orig Tue Jun 10 14:32:15 2003 ++++ configure +@@ -10490,6 +10490,7 @@ + + if test "x$HAVE_DB40" = "xyes"; then + ++ CPPFLAGS="$CPPFLAGS -DBDB_V4" + berkeleydb_libs="-ldb4" + else + { { echo "$as_me:$LINENO: error: no supported BerkeleyDB found (4,1, 4.0, 3.1, 3.2, 3.3)" >&5 diff --git a/net/dc_gui2/patches/patch-ab b/net/dc_gui2/patches/patch-ab new file mode 100644 index 00000000000..ea2e7df3429 --- /dev/null +++ b/net/dc_gui2/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ + +--- src/dctc_process.c.orig Sun Jun 1 10:40:08 2003 ++++ src/dctc_process.c +@@ -1983,8 +1983,8 @@ + 100*((float)(ptr_status[1]+ptr_status[3]))/(float)(ptr_status[2])); + #else + sprintf(stt,"%lu",ptr_status[2]); +- sprintf(stt1,"%lu (%.2f%%)",ptr_status[1]+ptr_status[3] /* => current global position */, +- 100*((float)(values[1]+values[3]))/(float)(values[2])); ++ sprintf(stt1,"%lu (%.2f%%)",ptr_status[1]+ptr_status[3] /* => current global position */, /* NO_PRINTF_LOCAL support added */ ++ 100*((float)(ptr_status[1]+ptr_status[3]))/(float)(ptr_status[2])); + #endif + gtk_list_store_set(ul_gls,iter,ULC_SIZE_COL,stt,ULC_SPEED_COL,stt1,-1); + set=1; diff --git a/net/dc_gui2/patches/patch-ac b/net/dc_gui2/patches/patch-ac new file mode 100644 index 00000000000..eef57c036ca --- /dev/null +++ b/net/dc_gui2/patches/patch-ac @@ -0,0 +1,29 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ + +--- src/callbacks.c.orig Sun Jun 1 10:02:59 2003 ++++ src/callbacks.c +@@ -30,7 +30,13 @@ + #include <sys/socket.h> + #include <sys/un.h> + #include <math.h> ++#ifdef __linux__ + #include <linux/sem.h> ++#else ++#ifndef SEMVMX ++#define SEMVMX 32767 /* semaphore maximum value */ ++#endif ++#endif + #include <fcntl.h> + #include <signal.h> + #include <dirent.h> +@@ -71,6 +77,10 @@ + #include "gtk_helper.h" + #include "network.h" + #include "custom_hublist_tree.h" ++ ++#ifndef MSG_NOSIGNAL ++#define MSG_NOSIGNAL 0 ++#endif + + static void build_start_dl_popup(int from_panel); + void on_load_selected_share_lists_button_clicked (GtkButton *button, gpointer user_data); diff --git a/net/dc_gui2/patches/patch-af b/net/dc_gui2/patches/patch-af new file mode 100644 index 00000000000..20c9c2560ce --- /dev/null +++ b/net/dc_gui2/patches/patch-af @@ -0,0 +1,18 @@ +$NetBSD: patch-af,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $ + +--- src/init_fnc.c.orig Sun Nov 3 08:09:10 2002 ++++ src/init_fnc.c +@@ -12,7 +12,13 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/wait.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 <errno.h> |