freebsd-ports/ftp/mirror/files/patch-ac
Torsten Blum 116a2abbae - Upgrade to 2.9
- Use perl5
1998-06-08 12:41:15 +00:00

72 lines
2.3 KiB
Text

*** mirror.pl.orig Fri May 29 21:01:42 1998
--- mirror.pl Mon Jun 8 14:36:52 1998
***************
*** 1,4 ****
! #!/usr/bin/perl
# Make local directories mirror images of a remote sites
#
#
--- 1,4 ----
! #!/usr/local/bin/perl5
# Make local directories mirror images of a remote sites
#
#
***************
*** 104,110 ****
# Try to find the default location of various programs via
# the users PATH then using $extra_path
if( ! $on_win ){
! $extra_path = '/usr/local/bin:/usr/new/bin:/usr/public/bin:/usr/ucb:/usr/bin:/bin:/etc:/usr/etc:/usr/local/etc';
}
if( $extra_path ne '' ){
$ENV{ 'PATH' } .= $path_sep . $extra_path;
--- 104,110 ----
# Try to find the default location of various programs via
# the users PATH then using $extra_path
if( ! $on_win ){
! $extra_path = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin';
}
if( $extra_path ne '' ){
$ENV{ 'PATH' } .= $path_sep . $extra_path;
***************
*** 159,177 ****
$rm_prog = &find_prog( 'rm' );
# Generate checksums
! $sum_prog = &find_prog( 'sum' );
# SPECIAL NOTE: This is eval'd, so DONT put double-quotes (") in it.
# You can get local variables to appear as in the second example:
! $mail_subject = '-s \'mirror update\'';
! # $mail_subject = ' -s \'mirror update of $package\'';
# When scanning the local directory, how often to prod the remote
# system to keep the connection alive
$prod_interval = 60;
# Put the directory that mirror is actually in at the start of PERLLIB.
! $dir = &real_dir_from_path( $0 );
unshift( @INC, $dir );
# Debian GNU/Linux stores mirror.defaults in /etc/mirror
--- 159,178 ----
$rm_prog = &find_prog( 'rm' );
# Generate checksums
! $sum_prog = &find_prog( 'md5' );
# SPECIAL NOTE: This is eval'd, so DONT put double-quotes (") in it.
# You can get local variables to appear as in the second example:
! # $mail_subject = '-s \'mirror update\'';
! $mail_subject = ' -s \'mirror update of $package\'';
# When scanning the local directory, how often to prod the remote
# system to keep the connection alive
$prod_interval = 60;
# Put the directory that mirror is actually in at the start of PERLLIB.
! # $dir = &real_dir_from_path( $0 );
! $dir = "/usr/local/lib/mirror";
unshift( @INC, $dir );
# Debian GNU/Linux stores mirror.defaults in /etc/mirror