Import gftp 2.0.18

gFTP is a free multithreaded file transfer client for *NIX based
machines. It has the following features:
- Distributed under the terms of the GNU Public License Agreement
- Written in C and has a text interface and a GTK+ 1.2/2.x interface
- Supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and
  FSP protocols
- FTP and HTTP proxy server support
- Supports FXP file transfers (transferring files between 2 remote
  servers via FTP)
- Supports UNIX, EPLF, Novell, MacOS, VMS, MVS and NT (DOS) style
  directory listings
- Bookmarks menu to allow you to quickly connect to remote sites
- Fully Internationalized

From Antoine Jacoutot <ajacoutot@lphp.org>
This commit is contained in:
alek 2005-11-02 20:19:29 +00:00
parent 7cd73e7f11
commit 519784b391
9 changed files with 269 additions and 0 deletions

49
net/gftp/Makefile Executable file
View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
COMMENT= "multithreaded gtk2 file transfer client"
DISTNAME= gftp-2.0.18
CATEGORIES= net
HOMEPAGE= http://gftp.seul.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@lphp.org>
# GPL
PERMIT_PACKAGE_CDROM= yes
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= yes
PERMIT_DISTFILES_FTP= yes
MASTER_SITES= ${HOMEPAGE} \
ftp://www.gftp.org/pub/gftp/old-releases/
WANTLIB= readline c m ncurses util
EXTRACT_SUFX= .tar.bz2
MODULES= devel/gettext
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-readline \
--without-included-gettext \
--enable-ssl
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
LIB_DEPENDS= glib.1::devel/glib
CONFIGURE_ARGS+=--disable-gtkport --disable-gtk20
.else
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gtk-x11-2.0.600.10,gdk_pixbuf-2.0.600.0,gdk-x11-2.0.600.0::x11/gtk+2
WANTLIB+= Xrender freetype pthread Xft X11 fontconfig \
gthread-2.0.0.0 glib-2.0.0.0 gmodule-2.0.0.0 \
pangox-1.0.0.0 gobject-2.0.0.0 pangoxft-1.0.0.0 \
pango-1.0.0.0 atk-1.0.0.0
.endif
.include <bsd.port.mk>

4
net/gftp/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (gftp-2.0.18.tar.bz2) = 44b19442d06f6dc68c7211d66029d826
RMD160 (gftp-2.0.18.tar.bz2) = 0e0daea8543ae822b25635647360193362a2648d
SHA1 (gftp-2.0.18.tar.bz2) = c2468f1ff1fe978a5fab3a198e513558f3b48f5a
SIZE (gftp-2.0.18.tar.bz2) = 1374850

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-lib_fsplib_fsplib_c,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
--- lib/fsplib/fsplib.c.orig Mon Oct 17 17:14:01 2005
+++ lib/fsplib/fsplib.c Mon Oct 17 17:14:59 2005
@@ -27,6 +27,14 @@ use of this software.
#include "fsplib.h"
#include "lock.h"
+#ifndef ENOMSG
+# define ENOMSG EINVAL
+#endif
+
+#ifndef ENOTSUP
+# define ENOTSUP EINVAL
+#endif
+
/* ************ Internal functions **************** */
/* builds filename in packet output buffer, appends password if needed */

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_local_c,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
--- lib/local.c.orig Tue Oct 25 10:44:00 2005
+++ lib/local.c Tue Oct 25 10:44:17 2005
@@ -372,7 +372,7 @@ local_get_file_size (gftp_request * requ
static int
local_chdir (gftp_request * request, const char *directory)
{
- char tempstr[255];
+ char tempstr[PATH_MAX];
g_return_val_if_fail (request != NULL, GFTP_EFATAL);
g_return_val_if_fail (request->protonum == GFTP_LOCAL_NUM, GFTP_EFATAL);

View File

@ -0,0 +1,37 @@
$OpenBSD: patch-lib_sshv2_c,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
--- lib/sshv2.c.orig Thu Oct 20 10:48:22 2005
+++ lib/sshv2.c Thu Oct 20 10:49:54 2005
@@ -1867,31 +1867,13 @@ sshv2_put_file (gftp_request * request,
}
-#ifdef G_HAVE_GINT64
-
-static gint64
-sshv2_hton64 (gint64 val)
-{
-#if G_BYTE_ORDER != G_BIG_ENDIAN
- return (GINT64_TO_BE (val));
-#else
- return (val);
-#endif
-}
-
-#endif
-
-
static void
sshv2_setup_file_offset (sshv2_params * params, char *buf)
{
guint32 hinum, lownum;
#ifdef G_HAVE_GINT64
- gint64 offset;
-
- offset = sshv2_hton64 (params->offset);
- lownum = offset >> 32;
- hinum = (guint32) offset;
+ lownum = htonl((guint32) params->offset);
+ hinum = htonl(params->offset >> 32);
#else
hinum = 0;
lownum = htonl (params->offset);

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_text_gftp-text_c,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
--- src/text/gftp-text.c.orig Thu Oct 20 11:39:31 2005
+++ src/text/gftp-text.c Thu Oct 20 11:40:18 2005
@@ -185,7 +185,12 @@ gftp_text_ask_question (const char *ques
else
infd = stdin;
+#if GLIB_MAJOR_VERSION > 1
locale_question = g_locale_from_utf8 (question, -1, NULL, NULL, NULL);
+#else
+ locale_question = NULL;
+#endif
+
if (locale_question != NULL)
{
printf ("%s%s%s ", GFTPUI_COMMON_COLOR_BLUE, locale_question,

13
net/gftp/pkg/DESCR Executable file
View File

@ -0,0 +1,13 @@
gFTP is a free multithreaded file transfer client for *NIX based
machines. It has the following features:
- Distributed under the terms of the GNU Public License Agreement
- Written in C and has a text interface and a GTK+ 1.2/2.x interface
- Supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and
FSP protocols
- FTP and HTTP proxy server support
- Supports FXP file transfers (transferring files between 2 remote
servers via FTP)
- Supports UNIX, EPLF, Novell, MacOS, VMS, MVS and NT (DOS) style
directory listings
- Bookmarks menu to allow you to quickly connect to remote sites
- Fully Internationalized

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.no-no_x11,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
bin/gftp-gtk

118
net/gftp/pkg/PLIST Normal file
View File

@ -0,0 +1,118 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
bin/gftp
bin/gftp-text
@man man/man1/gftp.1
share/applications/
share/applications/gftp.desktop
share/gftp/
share/gftp/COPYING
share/gftp/bookmarks
share/gftp/connect.xpm
share/gftp/deb.xpm
share/gftp/diff.xpm
share/gftp/dir.xpm
share/gftp/doc.xpm
share/gftp/dotdot.xpm
share/gftp/down.xpm
share/gftp/exe.xpm
share/gftp/gftp-logo.xpm
share/gftp/gftp-mini-logo.xpm
share/gftp/gftp.xpm
share/gftp/gftprc
share/gftp/img.xpm
share/gftp/left.xpm
share/gftp/linkdir.xpm
share/gftp/linkfile.xpm
share/gftp/man.xpm
share/gftp/open_dir.xpm
share/gftp/right.xpm
share/gftp/rpm.xpm
share/gftp/sound.xpm
share/gftp/stop.xpm
share/gftp/tar.xpm
share/gftp/txt.xpm
share/gftp/up.xpm
share/gftp/world.xpm
share/locale/am/
share/locale/am/LC_MESSAGES/
share/locale/am/LC_MESSAGES/gftp.mo
share/locale/ar/
share/locale/ar/LC_MESSAGES/
share/locale/ar/LC_MESSAGES/gftp.mo
share/locale/az/
share/locale/az/LC_MESSAGES/
share/locale/az/LC_MESSAGES/gftp.mo
share/locale/be/
share/locale/be/LC_MESSAGES/
share/locale/be/LC_MESSAGES/gftp.mo
share/locale/bg/LC_MESSAGES/gftp.mo
share/locale/bn/
share/locale/bn/LC_MESSAGES/
share/locale/bn/LC_MESSAGES/gftp.mo
share/locale/ca/
share/locale/ca/LC_MESSAGES/
share/locale/ca/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/el/LC_MESSAGES/gftp.mo
share/locale/en_CA/
share/locale/en_CA/LC_MESSAGES/
share/locale/en_CA/LC_MESSAGES/gftp.mo
share/locale/en_GB/
share/locale/en_GB/LC_MESSAGES/
share/locale/en_GB/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/ga/
share/locale/ga/LC_MESSAGES/
share/locale/ga/LC_MESSAGES/gftp.mo
share/locale/hr/LC_MESSAGES/gftp.mo
share/locale/hu/LC_MESSAGES/gftp.mo
share/locale/it/LC_MESSAGES/gftp.mo
share/locale/ja/LC_MESSAGES/gftp.mo
share/locale/ko/LC_MESSAGES/gftp.mo
share/locale/mk/
share/locale/mk/LC_MESSAGES/
share/locale/mk/LC_MESSAGES/gftp.mo
share/locale/ml/
share/locale/ml/LC_MESSAGES/
share/locale/ml/LC_MESSAGES/gftp.mo
share/locale/ms/
share/locale/ms/LC_MESSAGES/
share/locale/ms/LC_MESSAGES/gftp.mo
share/locale/nl/LC_MESSAGES/gftp.mo
share/locale/no/LC_MESSAGES/gftp.mo
share/locale/pa/
share/locale/pa/LC_MESSAGES/
share/locale/pa/LC_MESSAGES/gftp.mo
share/locale/pl/LC_MESSAGES/gftp.mo
share/locale/pt/LC_MESSAGES/gftp.mo
share/locale/pt_BR/LC_MESSAGES/gftp.mo
share/locale/ro/LC_MESSAGES/gftp.mo
share/locale/ru/LC_MESSAGES/gftp.mo
share/locale/sk/LC_MESSAGES/gftp.mo
share/locale/sq/
share/locale/sq/LC_MESSAGES/
share/locale/sq/LC_MESSAGES/gftp.mo
share/locale/sr/
share/locale/sr/LC_MESSAGES/
share/locale/sr/LC_MESSAGES/gftp.mo
share/locale/sr@Latn/
share/locale/sr@Latn/LC_MESSAGES/
share/locale/sr@Latn/LC_MESSAGES/gftp.mo
share/locale/sv/LC_MESSAGES/gftp.mo
share/locale/ta/
share/locale/ta/LC_MESSAGES/
share/locale/ta/LC_MESSAGES/gftp.mo
share/locale/th/
share/locale/th/LC_MESSAGES/
share/locale/th/LC_MESSAGES/gftp.mo
share/locale/tr/LC_MESSAGES/gftp.mo
share/locale/uk/LC_MESSAGES/gftp.mo
share/locale/zh_CN/LC_MESSAGES/gftp.mo
share/locale/zh_TW/LC_MESSAGES/gftp.mo
share/pixmaps/
share/pixmaps/gftp.png
!%%no_x11%%