summaryrefslogtreecommitdiff
path: root/net/batchftp
diff options
context:
space:
mode:
authortron <tron>1999-05-30 21:34:38 +0000
committertron <tron>1999-05-30 21:34:38 +0000
commit2b10c748aec28baa8feac084f742e85d699c9947 (patch)
tree05a0edbd38682b1490f883f3b243af11097d84c3 /net/batchftp
parentd85d596fc2f9ad3acc973e058a164060319490e6 (diff)
downloadpkgsrc-2b10c748aec28baa8feac084f742e85d699c9947.tar.gz
Import new "batchftp" package:
Automatically download files via the FTP protocoll.
Diffstat (limited to 'net/batchftp')
-rw-r--r--net/batchftp/Makefile18
-rw-r--r--net/batchftp/files/Makefile9
-rw-r--r--net/batchftp/files/md53
-rw-r--r--net/batchftp/patches/patch-aa22
-rw-r--r--net/batchftp/pkg/COMMENT1
-rw-r--r--net/batchftp/pkg/DESCR12
-rw-r--r--net/batchftp/pkg/PLIST4
7 files changed, 69 insertions, 0 deletions
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 <bsd.prog.mk>
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