Import dc_gui 0.42; submitted by Nils Nordman <nino@nforced.com>.
dc_gui provides a user-friendly interface for dctc (Direct Connect Text Clone).
This commit is contained in:
parent
044490189f
commit
a12893eee7
32
net/dc_gui/Makefile
Normal file
32
net/dc_gui/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
|
||||
COMMENT= "GUI for dctc (Direct Connect Text Clone)"
|
||||
|
||||
DISTNAME= dc_gui-0.42
|
||||
CATEGORIES= net x11
|
||||
NEED_VERSION= 1.504
|
||||
HOMEPAGE= http://ac2i.tzo.com/dctc/
|
||||
|
||||
MAINTAINER= Nils Nordman <nino@nforced.com>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
LIB_DEPENDS= gnome.36,art_lgpl.4,gnomesupport.,gnomeui.46,gnorba.28::x11/gnome/libs
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= :dctc-*:net/dctc
|
||||
|
||||
SEPARATE_BUILD= simple
|
||||
CONFIGURE_STYLE= autoconf
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
post-patch:
|
||||
@cd ${WRKSRC}; touch Makefile.in */Makefile.in aclocal.m4 stamp-h.in
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/dc_gui/distinfo
Normal file
3
net/dc_gui/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (dc_gui-0.42.tar.gz) = 271595ad0429bd24b1180a97fd0277d2
|
||||
RMD160 (dc_gui-0.42.tar.gz) = c5e4f0cf7c7644dedeaec37561426352430ac96a
|
||||
SHA1 (dc_gui-0.42.tar.gz) = 7af23178864292a4edea3bb9fff5ecfd4a58d784
|
13
net/dc_gui/patches/patch-config_h_in
Normal file
13
net/dc_gui/patches/patch-config_h_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-config_h_in,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- config.h.in.orig Mon Jan 28 12:38:58 2002
|
||||
+++ config.h.in Mon Jan 28 12:39:50 2002
|
||||
@@ -152,6 +152,9 @@
|
||||
/* Define if you have the <X11/SM/SMlib.h> header file. */
|
||||
#undef HAVE_X11_SM_SMLIB_H
|
||||
|
||||
+/* Define if you have the <linux/sem.h> header file. */
|
||||
+#undef HAVE_LINUX_SEM_H
|
||||
+
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
13
net/dc_gui/patches/patch-configure_in
Normal file
13
net/dc_gui/patches/patch-configure_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- configure.in.orig Sun Jan 20 07:52:02 2002
|
||||
+++ configure.in Fri Feb 1 02:31:27 2002
|
||||
@@ -27,6 +27,9 @@ else
|
||||
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
|
||||
fi
|
||||
|
||||
+dnl check for headers
|
||||
+AC_CHECK_HEADERS(linux/sem.h)
|
||||
+
|
||||
dnl check for dctc
|
||||
AC_CHECK_PROG(HAVE_DCTC,dctc,yes,no)
|
||||
if test "x$HAVE_DCTC" = "xno"; then
|
22
net/dc_gui/patches/patch-intl_Makefile_in
Normal file
22
net/dc_gui/patches/patch-intl_Makefile_in
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-intl_Makefile_in,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- intl/Makefile.in.orig Fri Feb 1 02:31:44 2002
|
||||
+++ intl/Makefile.in Fri Feb 1 02:32:13 2002
|
||||
@@ -202,12 +202,12 @@ Makefile: Makefile.in ../config.status
|
||||
# The dependency for intlh.inst is different in gettext and all other
|
||||
# packages. Because we cannot you GNU make features we have to solve
|
||||
# the problem while rewriting Makefile.in.
|
||||
-@GT_YES@intlh.inst: intlh.inst.in ../config.status
|
||||
-@GT_YES@ cd .. \
|
||||
-@GT_YES@ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
|
||||
-@GT_YES@ $(SHELL) ./config.status
|
||||
-@GT_NO@.PHONY: intlh.inst
|
||||
-@GT_NO@intlh.inst:
|
||||
+#intlh.inst: intlh.inst.in ../config.status
|
||||
+# cd .. \
|
||||
+# && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
|
||||
+# $(SHELL) ./config.status
|
||||
+.PHONY: intlh.inst
|
||||
+intlh.inst:
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
28
net/dc_gui/patches/patch-src_callbacks_c
Normal file
28
net/dc_gui/patches/patch-src_callbacks_c
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-src_callbacks_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- src/callbacks.c.orig Mon Jan 28 12:49:50 2002
|
||||
+++ src/callbacks.c Mon Jan 28 12:49:58 2002
|
||||
@@ -9,9 +9,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
-#include <linux/sem.h>
|
||||
#include <gnome.h>
|
||||
|
||||
+#ifdef HAVE_LINUX_SEM_H
|
||||
+# include <linux/sem.h> /* for the value of SEMVMX */
|
||||
+#endif
|
||||
+
|
||||
#include "callbacks.h"
|
||||
#include "interface.h"
|
||||
#include "support.h"
|
||||
@@ -22,6 +25,10 @@
|
||||
#include "do_connect.h"
|
||||
#include "dctc_process.h"
|
||||
#include "gui_define.h"
|
||||
+
|
||||
+#ifdef __OpenBSD__
|
||||
+# define SEMVMX 32767
|
||||
+#endif
|
||||
|
||||
static void start_download_from_clist(char *clist_name, int nick_col, int filename_col, int localfname_col);
|
||||
|
67
net/dc_gui/patches/patch-src_do_connect_c
Normal file
67
net/dc_gui/patches/patch-src_do_connect_c
Normal file
@ -0,0 +1,67 @@
|
||||
$OpenBSD: patch-src_do_connect_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- src/do_connect.c.orig Mon Jan 28 12:31:11 2002
|
||||
+++ src/do_connect.c Mon Jan 28 12:35:39 2002
|
||||
@@ -395,9 +395,11 @@ void start_a_new_dctc(char *hub_address)
|
||||
/* argv[0] */
|
||||
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"dctc"));
|
||||
|
||||
+#ifndef __OpenBSD__
|
||||
/* argv[1] */
|
||||
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"dctc"));
|
||||
-
|
||||
+#endif
|
||||
+
|
||||
add_cmd_line_opt(cmd_line,&sc,"nickname_entry","-n");
|
||||
add_cmd_line_opt(cmd_line,&sc,"user_description_entry","-i");
|
||||
add_cmd_line_opt(cmd_line,&sc,"cnx_type_entry","-c");
|
||||
@@ -533,11 +535,11 @@ void start_a_new_dctc(char *hub_address)
|
||||
/* -5 [if GTK_RADIO_BUTTON(md5sum_computation_checkbutton) is set] */
|
||||
add_cmd_line_opt_radio(cmd_line, &sc,"md5sum_computation_checkbutton", NULL,NULL,"-5",NULL);
|
||||
|
||||
- /* --precmd "/FOLLOWFORCE" or --precmd "/UNFOLLOWFORCE" */
|
||||
- add_cmd_line_opt_radio(cmd_line, &sc,"follow_forcemove_checkbutton", "--precmd","/FOLLOWFORCE","--precmd","/UNFOLLOWFORCE");
|
||||
+ /* -b "/FOLLOWFORCE" or -b "/UNFOLLOWFORCE" */
|
||||
+ add_cmd_line_opt_radio(cmd_line, &sc,"follow_forcemove_checkbutton", "-b","/FOLLOWFORCE","-b","/UNFOLLOWFORCE");
|
||||
|
||||
- /* --precmd "/DDL" or --precmd "/NODDL" */
|
||||
- add_cmd_line_opt_radio(cmd_line, &sc,"ddl_checkbutton", "--precmd","/DDL","--precmd","/NODDL");
|
||||
+ /* -b "/DDL" or -b "/NODDL" */
|
||||
+ add_cmd_line_opt_radio(cmd_line, &sc,"ddl_checkbutton", "-b","/DDL","-b","/NODDL");
|
||||
|
||||
/* -v VERSION [if GTK_RADIO_BUTTON(override_version_check_button) is set and version_number_entry is not empty */
|
||||
{
|
||||
@@ -569,7 +571,7 @@ void start_a_new_dctc(char *hub_address)
|
||||
}
|
||||
}
|
||||
|
||||
- /* --precmd "/RECOND xxx" */
|
||||
+ /* -b "/RECOND xxx" */
|
||||
{
|
||||
GtkWidget *w;
|
||||
w=get_widget_by_widget_name("reconnect_delay_scale");
|
||||
@@ -579,14 +581,14 @@ void start_a_new_dctc(char *hub_address)
|
||||
{
|
||||
char bf[512];
|
||||
|
||||
- g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"--precmd"));
|
||||
+ g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-b"));
|
||||
|
||||
sprintf(bf,"/RECOND %u",(unsigned int)gtk_range_get_adjustment(GTK_RANGE(w))->value);
|
||||
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf));
|
||||
}
|
||||
}
|
||||
|
||||
- /* --precmd "/REBUILD xxx" */
|
||||
+ /* -b "/REBUILD xxx" */
|
||||
{
|
||||
GtkWidget *w;
|
||||
w=get_widget_by_widget_name("rebuild_delay_scale");
|
||||
@@ -596,7 +598,7 @@ void start_a_new_dctc(char *hub_address)
|
||||
{
|
||||
char bf[512];
|
||||
|
||||
- g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"--precmd"));
|
||||
+ g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,"-b"));
|
||||
|
||||
sprintf(bf,"/REBUILD %u",60*(unsigned int)gtk_range_get_adjustment(GTK_RANGE(w))->value);
|
||||
g_ptr_array_add(cmd_line,g_string_chunk_insert(sc,bf));
|
27
net/dc_gui/patches/patch-src_init_fnc_c
Normal file
27
net/dc_gui/patches/patch-src_init_fnc_c
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-src_init_fnc_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- src/init_fnc.c.orig Mon Jan 28 12:40:19 2002
|
||||
+++ src/init_fnc.c Mon Jan 28 12:42:26 2002
|
||||
@@ -7,7 +7,11 @@
|
||||
#include <math.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
-#include <linux/sem.h> /* for the value of SEMVMX */
|
||||
+
|
||||
+#ifdef HAVE_LINUX_SEM_H
|
||||
+# include <linux/sem.h> /* for the value of SEMVMX */
|
||||
+#endif
|
||||
+
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <gnome.h>
|
||||
@@ -17,6 +21,10 @@
|
||||
#include "main.h"
|
||||
#include "do_connect.h"
|
||||
#include "dctc_process.h"
|
||||
+
|
||||
+#ifdef __OpenBSD__
|
||||
+# define SEMVMX 32767
|
||||
+#endif
|
||||
|
||||
GtkStyle *fast_style=NULL; /* style for fast user */
|
||||
|
12
net/dc_gui/patches/patch-src_interface_c
Normal file
12
net/dc_gui/patches/patch-src_interface_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_interface_c,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
--- src/interface.c.orig Mon Jan 28 13:07:23 2002
|
||||
+++ src/interface.c Mon Jan 28 13:08:05 2002
|
||||
@@ -452,7 +452,7 @@ create_app1 (void)
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vpaned2);
|
||||
gnome_app_set_contents (GNOME_APP (app1), vpaned2);
|
||||
- gtk_paned_set_position (GTK_PANED (vpaned2), 0);
|
||||
+ gtk_paned_set_position (GTK_PANED (vpaned2), 200);
|
||||
|
||||
hpaned2 = gtk_hpaned_new ();
|
||||
gtk_widget_set_name (hpaned2, "hpaned2");
|
4
net/dc_gui/pkg/DESCR
Normal file
4
net/dc_gui/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
dc_gui provides a user-friendly interface for dctc
|
||||
(Direct Connect Text Clone).
|
||||
|
||||
WWW: ${HOMEPAGE}
|
6
net/dc_gui/pkg/PLIST
Normal file
6
net/dc_gui/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/02/01 02:40:17 naddy Exp $
|
||||
bin/dc_gui
|
||||
share/gnome/help/dc_gui/C/index.html
|
||||
share/gnome/help/dc_gui/C/topic.dat
|
||||
@dirrm share/gnome/help/dc_gui/C
|
||||
@dirrm share/gnome/help/dc_gui
|
Loading…
Reference in New Issue
Block a user