summaryrefslogtreecommitdiff
path: root/net/gftp
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2001-05-14 17:26:53 +0000
committerrh <rh@pkgsrc.org>2001-05-14 17:26:53 +0000
commit84dcd19c4648a0e31a57af128a6a3168cf34138d (patch)
tree3b6f7a2177c3ddfb67196f88e068557d019598ee /net/gftp
parent64f8906786449fe563ddd6447ba6b4345e8f9e28 (diff)
downloadpkgsrc-84dcd19c4648a0e31a57af128a6a3168cf34138d.tar.gz
Initial import of gftp-2.0.7.1, a graphical FTP client using gtk+. This
package was provided in PR pkg/12006 by Jared D. McNeill <jmcneill@invisible.yi.org> and modified by me to compensate for non-preemptive threading. This also closes PR pkg/12936 by Martti Kuparinen <martti.kuparinen@iki.fi>
Diffstat (limited to 'net/gftp')
-rw-r--r--net/gftp/Makefile17
-rw-r--r--net/gftp/distinfo6
-rw-r--r--net/gftp/patches/patch-aa13
-rw-r--r--net/gftp/patches/patch-ab39
-rw-r--r--net/gftp/pkg/DESCR2
-rw-r--r--net/gftp/pkg/PLIST41
6 files changed, 118 insertions, 0 deletions
diff --git a/net/gftp/Makefile b/net/gftp/Makefile
new file mode 100644
index 00000000000..6809042e488
--- /dev/null
+++ b/net/gftp/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/14 17:26:53 rh Exp $
+
+DISTNAME= gftp-2.0.7b
+PKGNAME= gftp-2.0.7.1
+CATEGORIES= net
+MASTER_SITES= http://gftp.seul.org/
+
+MAINTAINER= jmcneill@invisible.yi.org
+HOMEPAGE= http://gftp.seul.org/
+COMMENT= multithreaded ftp client for *NIX based machines running X11R6
+
+DEPENDS+= gtk+>=1.2.3:../../x11/gtk
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include -D_POSIX_THREAD_SYSCALL_SOFT=1 ${CFLAGS}"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/gftp/distinfo b/net/gftp/distinfo
new file mode 100644
index 00000000000..e8624aec75b
--- /dev/null
+++ b/net/gftp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/14 17:26:53 rh Exp $
+
+SHA1 (gftp-2.0.7b.tar.gz) = 9a3dae1dbaeb0246ade524d37b8b7c000df61088
+Size (gftp-2.0.7b.tar.gz) = 657874 bytes
+SHA1 (patch-aa) = dc1720a8d18c2fcbdc45832431d6d68a4501c0ae
+SHA1 (patch-ab) = e9ae08c20a29dac5d7fabba06be87c9473107cf4
diff --git a/net/gftp/patches/patch-aa b/net/gftp/patches/patch-aa
new file mode 100644
index 00000000000..5a318c4017a
--- /dev/null
+++ b/net/gftp/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/14 17:26:53 rh Exp $
+
+--- po/Makefile.in.in.orig Sat Jan 20 00:02:53 2001
++++ po/Makefile.in.in Sat Jan 20 00:03:34 2001
+@@ -18,7 +18,7 @@
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+-datadir = $(prefix)/@DATADIRNAME@
++datadir = $(prefix)/share
+ localedir = $(datadir)/locale
+ gnulocaledir = $(prefix)/share/locale
+ gettextsrcdir = $(prefix)/share/gettext/po
diff --git a/net/gftp/patches/patch-ab b/net/gftp/patches/patch-ab
new file mode 100644
index 00000000000..f7675002d4a
--- /dev/null
+++ b/net/gftp/patches/patch-ab
@@ -0,0 +1,39 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/05/14 17:26:53 rh Exp $
+
+--- src/gftp.c.orig Tue May 1 15:19:17 2001
++++ src/gftp.c
+@@ -80,6 +80,23 @@
+ static int remote_start, local_start, tools_start;
+ static GtkItemFactoryEntry *menus;
+
++#ifdef __NetBSD__
++#include <gtk/gtk.h>
++#include <pthread.h>
++
++/*
++ * NetBSD uses non-preemptive pth, so we yield the processor periodically
++ */
++
++gint
++pth_nbschedule (gpointer data)
++{
++ pthread_yield_np();
++
++ return TRUE;
++}
++#endif
++
+ int
+ main (int argc, char *argv[])
+ {
+@@ -138,6 +155,10 @@
+ gftp_connect (window1.hdata->ftpdata);
+ ftp_list_files (&window1, 0);
+ update_ftp_info ();
++
++#ifdef __NetBSD__
++ gtk_timeout_add (200, pth_nbschedule, NULL);
++#endif
+
+ gtk_main ();
+ return (0);
diff --git a/net/gftp/pkg/DESCR b/net/gftp/pkg/DESCR
new file mode 100644
index 00000000000..30abb4002ad
--- /dev/null
+++ b/net/gftp/pkg/DESCR
@@ -0,0 +1,2 @@
+gFTP is a free multithreaded ftp client for *NIX based machines running X11R6
+or later.
diff --git a/net/gftp/pkg/PLIST b/net/gftp/pkg/PLIST
new file mode 100644
index 00000000000..c21c8f4c590
--- /dev/null
+++ b/net/gftp/pkg/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/14 17:26:53 rh Exp $
+bin/gftp
+share/locale/br/LC_MESSAGES/gftp.mo
+share/locale/cs/LC_MESSAGES/gftp.mo
+share/locale/da/LC_MESSAGES/gftp.mo
+share/locale/de/LC_MESSAGES/gftp.mo
+share/locale/es/LC_MESSAGES/gftp.mo
+share/locale/fi/LC_MESSAGES/gftp.mo
+share/locale/fr/LC_MESSAGES/gftp.mo
+share/locale/ja/LC_MESSAGES/gftp.mo
+share/locale/ko/LC_MESSAGES/gftp.mo
+share/locale/nl/LC_MESSAGES/gftp.mo
+share/locale/pl/LC_MESSAGES/gftp.mo
+share/locale/pt_BR/LC_MESSAGES/gftp.mo
+share/locale/ru/LC_MESSAGES/gftp.mo
+share/locale/sv/LC_MESSAGES/gftp.mo
+share/locale/zh_TW.Big5/LC_MESSAGES/gftp.mo
+man/man1/gftp.1
+share/gftp/COPYING
+share/gftp/bookmarks
+share/gftp/deb.xpm
+share/gftp/diff.xpm
+share/gftp/dir.xpm
+share/gftp/doc.xpm
+share/gftp/dotdot.xpm
+share/gftp/exe.xpm
+share/gftp/gftp-logo.xpm
+share/gftp/gftprc
+share/gftp/img.xpm
+share/gftp/linkdir.xpm
+share/gftp/linkfile.xpm
+share/gftp/man.xpm
+share/gftp/open_dir.xpm
+share/gftp/rpm.xpm
+share/gftp/sound.xpm
+share/gftp/tar.xpm
+share/gftp/txt.xpm
+share/gftp/world.xpm
+share/gnome/apps/Internet/gftp.desktop
+share/pixmaps/gftp.png
+@dirrm share/gftp