Mail-Toaster
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Mail/Toaster/Darwin.pm view on Meta::CPAN
$url ||= "http://mail-toaster.org";
if ( -M "/usr/ports" > $age ) {
$self->update_ports();
}
else {
print "ports_check_age: Ports file is current (enough).\n";
}
}
sub update_ports {
my $self = shift;
my $cvsbin = $self->util->find_bin( "cvs",fatal=>0, verbose=>0 );
unless ( -x $cvsbin ) {
die "FATAL: could not find cvs, please install Developer Tools!\n";
}
print "Updating Darwin ports...\n";
my $portsdir = "/usr/darwinports";
lib/Mail/Toaster/FreeBSD.pm view on Meta::CPAN
my $opt_dir = "/var/db/ports/$cat".'_'.$port;
if ( !-d $opt_dir ) {
$self->util->mkdir_system( dir => $opt_dir, %args,);
}
my $prefix = '# This file installed by Mail::Toaster';
$self->util->file_write( "$opt_dir/options", lines => [$prefix,$opts], %args );
}
sub update_ports {
my $self = shift;
my %p = validate( @_, { $self->get_std_opts, } );
my %args = $self->toaster->get_std_args( %p );
return $p{test_ok} if defined $p{test_ok};
return $self->error( "you do not have write permission to /usr/ports.",%args) if ! $self->util->is_writable('/usr/ports', %args);
my $supfile = $self->conf->{'cvsup_supfile_ports'} || "portsnap";
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.703 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )