Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 1999 02:45:01 +0100 (CET)
From:      dmarion@posluh.hr
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10187: New port - gFTP
Message-ID:  <199902220145.CAA98208@svarog.posluh.hr>

next in thread | raw e-mail | index | archive | help

>Number:         10187
>Category:       ports
>Synopsis:       New port - gftp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 21 17:50:02 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Damjan Marion <dmarion@open.hr>
>Release:        FreeBSD 3.0-STABLE i386
>Organization:
>Environment:
>Description:
    
    New port - gFTP GTK based FTP client

>How-To-Repeat:
>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gftp
#	gftp/Makefile
#	gftp/files
#	gftp/files/md5
#	gftp/pkg
#	gftp/pkg/COMMENT
#	gftp/pkg/DESCR
#	gftp/pkg/PLIST
#	gftp/patches
#	gftp/patches/patch-aa
#	gftp/patches/patch-ab
#	gftp/patches/patch-ac
#
echo c - gftp
mkdir -p gftp > /dev/null 2>&1
echo x - gftp/Makefile
sed 's/^X//' >gftp/Makefile << 'END-of-gftp/Makefile'
X# New ports collection makefile for:	gftp
X# Version required:	1.12
X# Date Created:		21 Feb 1999
X# Whom:			Damjan Marion <dmarion@open.hr>
X#
X# $Id$
X#
X
XDISTNAME=	gftp-1.12
XCATEGORIES=	net
XMASTER_SITES=	http://www.newwave.net/~masneyb/
X
XMAINTAINER=	dmarion@open.hr
X
XLIB_DEPENDS=    gtk11d.1:${PORTSDIR}/x11-toolkits/gtk11-devel
X
XUSE_X_PREFIX=	yes
X
Xpost-install:
X	strip ${PREFIX}/bin/gftp
X
X.include <bsd.port.mk>
END-of-gftp/Makefile
echo c - gftp/files
mkdir -p gftp/files > /dev/null 2>&1
echo x - gftp/files/md5
sed 's/^X//' >gftp/files/md5 << 'END-of-gftp/files/md5'
XMD5 (gftp-1.12.tar.gz) = c3c57b80404f49266a4ae36d58718189
END-of-gftp/files/md5
echo c - gftp/pkg
mkdir -p gftp/pkg > /dev/null 2>&1
echo x - gftp/pkg/COMMENT
sed 's/^X//' >gftp/pkg/COMMENT << 'END-of-gftp/pkg/COMMENT'
XgFTP is a free multithreaded GTK based ftp client. 
END-of-gftp/pkg/COMMENT
echo x - gftp/pkg/DESCR
sed 's/^X//' >gftp/pkg/DESCR << 'END-of-gftp/pkg/DESCR'
XgFTP is a free multithreaded ftp client for *NIX based machines running 
XX11R6 or later. It has the following features: 
X  Distributed under the terms of the GNU Public License Agreement 
X  Written in C and uses GTK+ 1.1.x+ for the GUI 
X  Multithreaded to allow for simultaneous downloads 
X  File transfer queues to allow for downloading multiple files 
X  Supports downloading entire directories and subdirectories 
X  Extensive connection manager
X  Supports resuming interrupted file transfers 
X  Supports caching of remote directory listings 
X  Drag-N-Drop support 
X  FTP proxy server support 
X  Supports connecting to a FTP server via command line parameters.
X  Supports associating icons with particular file extensions in the list boxes 
X  Sorting capabilities in the file list boxes 
X  Can restrict files in the list boxes to a particular file specification 
X  Supports viewing and editing of local and remote files 
X  Allows for passive and non-passive file transfers 
X  Eliminates buffer overruns from malicious ftp sites 
X
XLatest version: 1.12
XgFTP is copyright (c) 1998 by Brian Masney <masneyb@newwave.net>.
X
X- Damjan Marion <dmarion@open.hr>
END-of-gftp/pkg/DESCR
echo x - gftp/pkg/PLIST
sed 's/^X//' >gftp/pkg/PLIST << 'END-of-gftp/pkg/PLIST'
Xbin/gftp
Xshare/gftp/deb.xpm
Xshare/gftp/diff.xpm
Xshare/gftp/dir.xpm
Xshare/gftp/doc.xpm
Xshare/gftp/dotdot.xpm
Xshare/gftp/down.xpm
Xshare/gftp/exe.xpm
Xshare/gftp/gftprc
Xshare/gftp/linkdir.xpm
Xshare/gftp/linkfile.xpm
Xshare/gftp/man.xpm
Xshare/gftp/tar.xpm
Xshare/gftp/txt.xpm
Xshare/gftp/up.xpm
X@dirrm share/gftp
END-of-gftp/pkg/PLIST
echo c - gftp/patches
mkdir -p gftp/patches > /dev/null 2>&1
echo x - gftp/patches/patch-aa
sed 's/^X//' >gftp/patches/patch-aa << 'END-of-gftp/patches/patch-aa'
X--- Makefile.orig	Tue Feb 16 18:42:19 1999
X+++ Makefile	Mon Feb 22 01:42:25 1999
X@@ -1,15 +1,15 @@
X VERSION=1.12
X SHELL=/bin/sh
X CC=gcc
X-PREFIX=/usr/local
X+PREFIX=/usr/X11R6
X BINDIR=$(PREFIX)/bin
X SHARE_DIR=$(PREFIX)/share/gftp
X-INSTALL=install
X+INSTALL=install -c
X MACHINE=`uname -m`-`uname -p`-`uname -s`
X # Add -DDEBUG to the CFLAGS line below if you want gFTP to print some extra
X # information to stdout
X-CFLAGS=-Wall -ansi -g `gtk-config --cflags` -DSHARE_DIR=\"$(SHARE_DIR)\"
X-LIBS=-lpthread `gtk-config --libs`
X+CFLAGS=-Wall -ansi `gtk11d-config --cflags` -DSHARE_DIR=\"$(SHARE_DIR)\"
X+LIBS=-pthread `gtk11d-config --libs`
X EXE=gftp
X OBJS=cache.o config_file.o connect_dialog.o delete_dialog.o file_transfer.o \
X      ftp.o gftp.o misc.o misc_dialogs.o mkdir_dialog.o rename_dialog.o \
END-of-gftp/patches/patch-aa
echo x - gftp/patches/patch-ab
sed 's/^X//' >gftp/patches/patch-ab << 'END-of-gftp/patches/patch-ab'
X--- ftp.h.orig	Mon Feb 22 00:14:27 1999
X+++ ftp.h	Mon Feb 22 00:14:46 1999
X@@ -19,7 +19,6 @@
X 
X #ifndef __FTP_H
X #define __FTP_H
X-#define _POSIX_SOURCE
X #define _REENTRANT
X #include <pthread.h>
X #ifdef GNOME
END-of-gftp/patches/patch-ab
echo x - gftp/patches/patch-ac
sed 's/^X//' >gftp/patches/patch-ac << 'END-of-gftp/patches/patch-ac'
X--- file_transfer.c.orig	Mon Feb 22 01:28:36 1999
X+++ file_transfer.c	Mon Feb 22 01:35:23 1999
X@@ -519,9 +519,10 @@
X    int datafd, i, j=0, dl_mode, new_mode;
X    long startsize;
X    FILE *writefd;
X-   float kbs;
X+   float kbs = 0;
X    ssize_t n;
X    int num;
X+   time_t t;
X 
X    num = 0;
X    dl_mode = FTP_NO_MODE_SET;
X@@ -592,7 +593,8 @@
X             if(tdata->curfle->flags & FILE_RESTART) insert_commas(tdata->curtrans+startsize,
X                gotstr, sizeof(gotstr));
X             else insert_commas(tdata->curtrans, gotstr, sizeof(gotstr));
X-            kbs = ((float) tdata->curtrans / 1024) / (float) (time(NULL)-tdata->starttime);
X+            if ((t=time(NULL)-tdata->starttime))
X+              kbs = ((float) tdata->curtrans / 1024) / (float) t;
X             g_snprintf(tdata->progressstr, sizeof(tdata->progressstr), "Recv %s of %s at %.2fkbs (%d of %d)",
X                gotstr, ofstr, kbs, num, tdata->hdata->totalfiles);
X             tdata->flags |= TRANSFER_NEED_UPDATED;
END-of-gftp/patches/patch-ac
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902220145.CAA98208>