Apache-Yaalr
view release on metacpan or search on metacpan
Version: 0.03.2
Improved and somewhat more thourough testing.
Preparing to add new functionality and to create more modules
Version: 0.02.9
Removed guess() in favor of os()
inc/Module/AutoInstall.pm view on Meta::CPAN
}
}
$UnderCPAN = _check_lock(); # check for $UnderCPAN
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) {
require Config;
print
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
chdir $cwd;
# import to main::
no strict 'refs';
*{'main::WriteMakefile'} = \&Write if caller(0) eq 'main';
inc/Module/AutoInstall.pm view on Meta::CPAN
sub _has_cpanplus {
return (
$HasCPANPLUS = (
$INC{'CPANPLUS/Config.pm'}
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
my $cpan = File::Spec->canonpath( $CPAN::Config->{cpan_home} );
return ( index( $cwd, $cpan ) > -1 );
}
lib/Apache/Yaalr.pm view on Meta::CPAN
my (@potential_confs, @dirs);
my @mac = qw( /etc/apache /etc/apache2 /etc/httpd /usr/local/apache2 /Library/WebServer/ );
my @lin = qw( /etc/apache /etc/apache2/sites-avilable/ /etc/httpd /usr/local/apache2 /etc/apache-perl );
sub new {
my $package = shift;
return bless({}, $package);
}
sub os { # operating system best guess, we'll need this later
my $self = shift;
my $uname = `which uname`;
my @os;
if ($uname) {
push @os, `uname -a` or croak "Cannot execute uname -a";
} elsif ($^O) {
push @os, "$^O unknown";
} else {
push @os, "unknown unknown";
( run in 0.296 second using v1.01-cache-2.11-cpan-702932259ff )