diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-04 11:22:27 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-04 11:22:27 +0800 |
commit | f43e02ef9d5ec06c7749e789f938b5b8a95d149e (patch) | |
tree | cf56565ef6cbf1c1a77690cd1ae9e83399b9a615 /net-p2p | |
parent | 09c97babd10dc22afe3b9dc54f0350d6c4356a83 (diff) | |
download | marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.gz marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.bz2 marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.lz marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.xz marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.zst marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.zip |
share/gnome/ -> share/
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8810 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/dctc-gui/Makefile | 90 | ||||
-rw-r--r-- | net-p2p/dctc-gui/distinfo | 3 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-po_Makefile.in.in | 10 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-src::callbacks.c | 12 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-src::init_fnc.c | 12 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-src::main.c | 36 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/sig_chld.c | 53 | ||||
-rw-r--r-- | net-p2p/dctc-gui/pkg-descr | 21 | ||||
-rw-r--r-- | net-p2p/dctc-gui/pkg-plist | 38 |
9 files changed, 275 insertions, 0 deletions
diff --git a/net-p2p/dctc-gui/Makefile b/net-p2p/dctc-gui/Makefile new file mode 100644 index 000000000..a9a588cde --- /dev/null +++ b/net-p2p/dctc-gui/Makefile @@ -0,0 +1,90 @@ +# New ports collection makefile for: GUI to Direct Connect Text Client +# Date created: Thu Nov 22 00:34:48 BRST 2001 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= dctc +PORTVERSION= 0.66 +PORTREVISION= 5 +CATEGORIES= net-p2p gnome +MASTER_SITES= http://unixpages.org/distfiles/ +PKGNAMESUFFIX= -gui +DISTNAME= dc_gui-${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= A GUI to DirectConnect (www.neo-modus.com) text client + +BUILD_DEPENDS= dctc:${PORTSDIR}/net-p2p/dctc +LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 + +USE_GETTEXT= yes +USE_XLIB= yes +USE_GNOME= gnomehack gnomelibs gnomeprefix +USE_XLIB= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +CONFIGURE_ARGS= --with-gnome=${LOCALBASE} \ + --with-gtk-prefix=${LOCALBASE} \ + --enable-manual-db-detect \ + --with-libiconv-prefix=${LOCALBASE} + +ADDITIONAL_SRCS= sig_chld.c +# +DOC_FILES= COPYING ChangeLog README TODO + +post-extract: +.for file in ${ADDITIONAL_SRCS} + @${CP} ${FILESDIR}/${file} ${WRKSRC}/src +.endfor + +post-patch: + @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} -E -e \ + 's|ldb-4.0|ldb4|; \ + s|<(db.h>)|<db4/\1|' + @${REINPLACE_CMD} -E -e 's|(hublist)|dc_\1|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -E -e \ + 's|(hublist)(.+argv)|dc_\1\2|' \ + ${WRKSRC}/src/init_fnc.c +# XXX - revise at every port update + @${REINPLACE_CMD} -e "s|%'|%|g" ${WRKSRC}/src/*.c +# @${REINPLACE_CMD} -E -e \ +# 's|%lf|%f|; \ +# s|(%\.[[:digit:]])lf|\1f|' \ +# ${WRKSRC}/src/*.c +# clean up so as to not break installation + @${FIND} ${WRKSRC} -type f \ + -name "*.bak" \ + | ${XARGS} -n 10 -x ${RM} +# add sigchld handler +.for file in ${ADDITIONAL_SRCS} + @${REINPLACE_CMD} -E -e \ + 's|^(dc_gui_SOURCES.+)$$|\1 ${file}|; \ + s|^(dc_gui_OBJECTS[^\\]+)(\\*)$$|\1 ${file:S/.c$/.o/} \2|' \ + ${WRKSRC}/src/Makefile.in +.endfor +# disable GNU auto* tools + @${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \ + -x -n 10 ${REINPLACE_CMD} -E -e \ + 's!^(ACLOCAL|AUTOCONF|AUTOMAKE|AUTOHEADER).+$$!\1=${TRUE}!' + +post-configure: + @${ECHO_CMD} '#ifndef MSG_NOSIGNAL' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO_CMD} '# define MSG_NOSIGNAL 0' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO_CMD} '#endif' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO_CMD} '#include <sys/param.h>' >> ${CONFIGURE_WRKSRC}/config.h + @${ECHO_CMD} '#ifndef SEMVMX' >> ${WRKSRC}/config.h + @${ECHO_CMD} '#define SEMVMX 32767' >> ${WRKSRC}/config.h + @${ECHO_CMD} '#endif' >> ${WRKSRC}/config.h + +post-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}${PKGNAMESUFFIX} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/net-p2p/dctc-gui/distinfo b/net-p2p/dctc-gui/distinfo new file mode 100644 index 000000000..83b15b2b0 --- /dev/null +++ b/net-p2p/dctc-gui/distinfo @@ -0,0 +1,3 @@ +MD5 (dc_gui-0.66.tar.gz) = f47aa43a6840e078bc32717d63731b52 +SHA256 (dc_gui-0.66.tar.gz) = a96807ce6bc9074f25951df82c99cde4246842f368a240dfe4dd098627e32c71 +SIZE (dc_gui-0.66.tar.gz) = 461838 diff --git a/net-p2p/dctc-gui/files/patch-po_Makefile.in.in b/net-p2p/dctc-gui/files/patch-po_Makefile.in.in new file mode 100644 index 000000000..b8b90a400 --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-po_Makefile.in.in @@ -0,0 +1,10 @@ +--- po/Makefile.in.in.orig Wed Feb 4 13:19:32 2004 ++++ po/Makefile.in.in Wed Feb 4 13:19:41 2004 +@@ -87,6 +87,7 @@ + $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ + --add-comments --keyword=_ --keyword=N_ \ + --files-from=$(srcdir)/POTFILES.in \ ++ --from-code=ISO-8859-1 \ + && test ! -f $(PACKAGE).po \ + || ( rm -f $(srcdir)/$(PACKAGE).pot \ + && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) diff --git a/net-p2p/dctc-gui/files/patch-src::callbacks.c b/net-p2p/dctc-gui/files/patch-src::callbacks.c new file mode 100644 index 000000000..3c0ad2c3e --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-src::callbacks.c @@ -0,0 +1,12 @@ +--- src/callbacks.c.orig Sun Nov 17 21:18:28 2002 ++++ src/callbacks.c Sun Nov 17 21:19:26 2002 +@@ -14,7 +14,8 @@ + #include <dirent.h> + #include <gdk/gdkkeysyms.h> + #include <gdk/gdk.h> +-#include <linux/sem.h> ++#include <sys/ipc.h> ++#include <sys/sem.h> + #include <gnome.h> + #include <glib.h> + #include <time.h> diff --git a/net-p2p/dctc-gui/files/patch-src::init_fnc.c b/net-p2p/dctc-gui/files/patch-src::init_fnc.c new file mode 100644 index 000000000..3eca24060 --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-src::init_fnc.c @@ -0,0 +1,12 @@ +--- src/init_fnc.c.orig Sun Nov 17 21:19:50 2002 ++++ src/init_fnc.c Sun Nov 17 21:20:39 2002 +@@ -12,7 +12,8 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/wait.h> +-#include <linux/sem.h> /* for the value of SEMVMX */ ++#include <sys/ipc.h> ++#include <sys/sem.h> /* for the value of SEMVMX */ + #include <dirent.h> + #include <string.h> + #include <errno.h> diff --git a/net-p2p/dctc-gui/files/patch-src::main.c b/net-p2p/dctc-gui/files/patch-src::main.c new file mode 100644 index 000000000..f530ccac3 --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-src::main.c @@ -0,0 +1,36 @@ +--- src/main.c.orig Mon Nov 18 23:53:50 2002 ++++ src/main.c Mon Nov 18 23:55:01 2002 +@@ -43,6 +43,9 @@ + GtkWidget *done_popup=NULL; + GtkWidget *fav_popup=NULL; + ++/* sigchld handling */ ++extern void sig_chld(int); ++ + /* this string is "$HOME/.dctc" */ + GString *dctc_main_dir=NULL; + +@@ -289,11 +292,9 @@ + sigset_t set; + + /* ignore SIGPIPE */ +- /* ignore SIGCHLD */ + /* ignore SIGHUP */ + sigemptyset(&set); + sigaddset(&set,SIGPIPE); +- sigaddset(&set,SIGCHLD); + sigaddset(&set,SIGHUP); + act.sa_handler=SIG_IGN; + act.sa_mask=set; +@@ -301,8 +302,10 @@ + + sigprocmask(SIG_UNBLOCK,&set,NULL); + sigaction(SIGPIPE,&act,NULL); +- sigaction(SIGCHLD,&act,NULL); + sigaction(SIGHUP,&act,NULL); ++ ++ /* handle SIGCHLD */ ++ signal(SIGCHLD, sig_chld); /* Prevents zombies */ + } + + static void start_dctc_client_from_huburl(char *dchub_url,char *profile) diff --git a/net-p2p/dctc-gui/files/sig_chld.c b/net-p2p/dctc-gui/files/sig_chld.c new file mode 100644 index 000000000..74b4a4afc --- /dev/null +++ b/net-p2p/dctc-gui/files/sig_chld.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2000, 2001, 2002 + * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD + */ + +#include <sys/types.h> +#include <sys/wait.h> +/* +#include <sys/time.h> +#include <sys/resource.h> +*/ + +/* + * SIGCHLD handler + * + * Let's take care of our children. + * Otherwise, they may get involved with bad ppl + * and become zombies. + */ +void +sig_chld(int signo) +{ + pid_t pid; + int stat; + + while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0); + + return; +} diff --git a/net-p2p/dctc-gui/pkg-descr b/net-p2p/dctc-gui/pkg-descr new file mode 100644 index 000000000..b4b753f5e --- /dev/null +++ b/net-p2p/dctc-gui/pkg-descr @@ -0,0 +1,21 @@ +[ from developer's site] + +This is a Graphical User Interface for DCTC + +I. What is DCTC +DCTC is a Direct Connect clone, a windoz 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. + +II. What is not DCTC +DCTC is written from scratch without any help from neo-modus using +our experience of hotline protocol. + +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. + +WWW: http://ac2i.homelinux.com/dctc/ diff --git a/net-p2p/dctc-gui/pkg-plist b/net-p2p/dctc-gui/pkg-plist new file mode 100644 index 000000000..a171e8456 --- /dev/null +++ b/net-p2p/dctc-gui/pkg-plist @@ -0,0 +1,38 @@ +bin/dc_gui +%%PORTDOCS%%share/doc/dctc-gui/COPYING +%%PORTDOCS%%share/doc/dctc-gui/ChangeLog +%%PORTDOCS%%share/doc/dctc-gui/README +%%PORTDOCS%%share/doc/dctc-gui/TODO +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 +share/locale/de/LC_MESSAGES/dc_gui.mo +share/locale/fr/LC_MESSAGES/dc_gui.mo +share/locale/nl/LC_MESSAGES/dc_gui.mo +share/locale/sv/LC_MESSAGES/dc_gui.mo +share/pixmaps/dc_gui/icon_folder_add.xpm +share/pixmaps/dc_gui/icon_folder_del.xpm +share/pixmaps/dc_gui/icon_kill.xpm +share/pixmaps/dc_gui/icon_refresh.xpm +share/pixmaps/dc_gui/icon_remove_all.xpm +share/pixmaps/dc_gui/icon_remove_selected.xpm +@dirrm share/pixmaps/dc_gui +@dirrmtry share/locale/sv/LC_MESSAGES +@dirrmtry share/locale/sv +@dirrmtry share/locale/nl/LC_MESSAGES +@dirrmtry share/locale/nl +@dirrmtry share/locale/fr/LC_MESSAGES +@dirrmtry share/locale/fr +@dirrmtry share/locale/de/LC_MESSAGES +@dirrmtry share/locale/de +@dirrmtry share/gnome/help/dc_gui/nl/images +@dirrm share/gnome/help/dc_gui/nl +@dirrmtry share/gnome/help/dc_gui/es/images +@dirrm share/gnome/help/dc_gui/es +@dirrmtry share/gnome/help/dc_gui/C/images +@dirrm share/gnome/help/dc_gui/C +@dirrm share/gnome/help/dc_gui +%%PORTDOCS%%@dirrm share/doc/dctc-gui |