aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/mirror
diff options
context:
space:
mode:
authortorstenb <torstenb@FreeBSD.org>1995-06-16 01:31:25 +0800
committertorstenb <torstenb@FreeBSD.org>1995-06-16 01:31:25 +0800
commit2fb06683024139e1ab9878dd8747169350d990f1 (patch)
tree10f5e9b055252c7f68bb00bcfb5bf0ecb1541a85 /ftp/mirror
parent4220a18ecbb5ea27312a9f40affd527ece97d63c (diff)
downloadfreebsd-ports-gnome-2fb06683024139e1ab9878dd8747169350d990f1.tar.gz
freebsd-ports-gnome-2fb06683024139e1ab9878dd8747169350d990f1.tar.zst
freebsd-ports-gnome-2fb06683024139e1ab9878dd8747169350d990f1.zip
This patch to mirror allows you to specify a "account" too. This
is used by some mainframe FTP's and other bogous machinery. Submitted by: phk
Diffstat (limited to 'ftp/mirror')
-rw-r--r--ftp/mirror/files/patch-ac31
1 files changed, 29 insertions, 2 deletions
diff --git a/ftp/mirror/files/patch-ac b/ftp/mirror/files/patch-ac
index e971a11c0c72..254a5a6afefe 100644
--- a/ftp/mirror/files/patch-ac
+++ b/ftp/mirror/files/patch-ac
@@ -1,5 +1,5 @@
-*** mirror.pl.orig Mon May 15 16:50:06 1995
---- mirror.pl Mon May 15 17:43:06 1995
+*** mirror.pl.orig Thu Jun 15 19:15:46 1995
+--- mirror.pl Thu Jun 15 19:15:26 1995
***************
*** 42,48 ****
@@ -59,3 +59,30 @@
unshift( @INC, $dir );
# Make sure that your PERLLIB environment variable can get you
+***************
+*** 156,161 ****
+--- 157,163 ----
+ $default{ 'local_dir' } = ''; # local directory to copy into
+ $default{ 'remote_user' } = 'anonymous'; # the remote guest account name
+ $default{ 'remote_password' } = "$me@$hostname";
++ $default{ 'remote_acct' } = '';
+ $default{ 'get_patt' } = "."; # regex of pathnames to retrieve
+ $default{ 'exclude_patt' } = ''; # regex of pathnames to ignore
+ $default{ 'update_local' } = 0; # Don't just update local dirs
+***************
+*** 1022,1028 ****
+ if( $con == 1 ){
+ &msg( "login as $remote_user\n" ) if $debug > 1;
+ $curr_remote_user = $remote_user;
+! if( ! &ftp'login( $remote_user, $remote_password ) ){
+ &msg( "Cannot login, skipping package\n" );
+ &disconnect();
+ &msg( "\n" );
+--- 1024,1030 ----
+ if( $con == 1 ){
+ &msg( "login as $remote_user\n" ) if $debug > 1;
+ $curr_remote_user = $remote_user;
+! if( ! &ftp'login( $remote_user, $remote_password, $remote_acct ) ){
+ &msg( "Cannot login, skipping package\n" );
+ &disconnect();
+ &msg( "\n" );