From 4002cda9b73857424c865746f0f0b207f2387896 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 30 May 1999 21:34:38 +0000 Subject: Import new "batchftp" package: Automatically download files via the FTP protocoll. --- net/batchftp/Makefile | 18 ++++++++++++++++++ net/batchftp/files/Makefile | 9 +++++++++ net/batchftp/files/md5 | 3 +++ net/batchftp/patches/patch-aa | 22 ++++++++++++++++++++++ net/batchftp/pkg/COMMENT | 1 + net/batchftp/pkg/DESCR | 12 ++++++++++++ net/batchftp/pkg/PLIST | 4 ++++ 7 files changed, 69 insertions(+) create mode 100644 net/batchftp/Makefile create mode 100644 net/batchftp/files/Makefile create mode 100644 net/batchftp/files/md5 create mode 100644 net/batchftp/patches/patch-aa create mode 100644 net/batchftp/pkg/COMMENT create mode 100644 net/batchftp/pkg/DESCR create mode 100644 net/batchftp/pkg/PLIST (limited to 'net') diff --git a/net/batchftp/Makefile b/net/batchftp/Makefile new file mode 100644 index 00000000000..67dcacd92e6 --- /dev/null +++ b/net/batchftp/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/05/30 21:34:38 tron Exp $ + +DISTNAME= batchftp102 +PKGNAME= batchftp-1.02 +CATEGORIES= net +MASTER_SITES= ftp://ftp.fu-berlin.de/unix/network/batchftp/ + +MAINTAINER= tron@netbsd.org + +WRKSRC= ${WRKDIR} + +post-extract: + ${LN} -fs ${FILESDIR}/Makefile ${WRKSRC} + +pre-install: + ${MKDIR} ${PREFIX}/share/doc/batchftp + +.include "../../mk/bsd.pkg.mk" diff --git a/net/batchftp/files/Makefile b/net/batchftp/files/Makefile new file mode 100644 index 00000000000..600df14fa58 --- /dev/null +++ b/net/batchftp/files/Makefile @@ -0,0 +1,9 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/05/30 21:34:39 tron Exp $ + +PROG= batchftp +MKMAN= no +BINDIR= ${PREFIX}/bin +FILES= batchftp.doc +FILESDIR= ${PREFIX}/share/doc/batchftp + +.include diff --git a/net/batchftp/files/md5 b/net/batchftp/files/md5 new file mode 100644 index 00000000000..b0bac00af33 --- /dev/null +++ b/net/batchftp/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/05/30 21:34:39 tron Exp $ + +MD5 (batchftp102.tar.gz) = 89b82d1b2fce83417c16f333be35475a diff --git a/net/batchftp/patches/patch-aa b/net/batchftp/patches/patch-aa new file mode 100644 index 00000000000..b9c77a18e32 --- /dev/null +++ b/net/batchftp/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/05/30 21:34:39 tron Exp $ + +--- batchftp.c.orig Tue Oct 23 21:12:42 1990 ++++ batchftp.c Sun May 30 23:20:33 1999 +@@ -129,7 +129,7 @@ + + + parent_pid = (int) getpid(); /* sprintf does not always support type "long" */ +- getwd(home_dir); ++ getcwd(home_dir,sizeof(home_dir)); + sprintf(msgfile, "%s/msg%d",home_dir, parent_pid); /*construct full pathname for ftp output file */ + + /* Parse command line switches and assign other arguments */ +@@ -729,7 +729,7 @@ + FILE *fs_ptr; /* pointer to f_stdout */ + FILE *msg_ptr; /* pointer to ftp output file */ + int monitor_flag; /* return value of monitor_ftp () */ +- union wait status; /* wait for child to terminate */ ++ int status; /* wait for child to terminate */ + char *sh_args[3]; /* arguments for execv */ + + *alarm_flag = _FALSE; /* alarm has not been called */ diff --git a/net/batchftp/pkg/COMMENT b/net/batchftp/pkg/COMMENT new file mode 100644 index 00000000000..d2a132b1fcd --- /dev/null +++ b/net/batchftp/pkg/COMMENT @@ -0,0 +1 @@ +Automatically download files via the FTP protocoll. diff --git a/net/batchftp/pkg/DESCR b/net/batchftp/pkg/DESCR new file mode 100644 index 00000000000..45885840de2 --- /dev/null +++ b/net/batchftp/pkg/DESCR @@ -0,0 +1,12 @@ +Batchftp is a C program which automates the ftp process on Berkeley +UNIX systems. A user is able to upload and download files from almost +any remote computer without monitoring the transfer. A user simply +enters the commands or files to be retrieved in an input file. Then, +the program will log onto the specified computer (not necessarily a +ftp site) and execute the given commands. Since Batchftp can run in +the background, a user is free to do other things while the transfer +sessions are taking place. More importantly, it will not give up until +a successful connection has been established with the remote +site. However, execution will be temporarily suspended after a given +number of failures; connection attempts will resume after the extended +delay. diff --git a/net/batchftp/pkg/PLIST b/net/batchftp/pkg/PLIST new file mode 100644 index 00000000000..43e06061006 --- /dev/null +++ b/net/batchftp/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/30 21:34:39 tron Exp $ +bin/batchftp +share/doc/batchftp/batchftp.doc +@dirrm share/doc/batchftp -- cgit v1.2.3