Net-FullAuto
view release on metacpan or search on metacpan
installer/fa_installer.pl view on Meta::CPAN
$choice||=0;
if ($choice==5101) {
$self->{cucb}->SetValue(0);
}
}
sub OnClick_chkbox2 {
my ($self, $event) =@_;
my $desktop=$ENV{HOMEDRIVE}.$ENV{HOMEPATH}.'\\desktop';
my $filedlg = Wx::FileDialog->new($self, # parent
'Open File', # Caption
$desktop, # Default directory
'putty', # Default file
"putty utilities (*.exe)|*.exe", # wildcard
wxFD_SAVE|wxFD_OVERWRITE_PROMPT); #style
# If the user really selected one
if ($filedlg->ShowModal==wxID_OK)
{
my $filename = $filedlg->GetPath;
my $dir=$filename;
$dir=~s/^(.*)\\.*$/$1/;
copy "putty.exe", $filename;
copy "puttygen.exe", "$dir\\puttygen.exe";
copy "pscp.exe", "$dir\\pscp.exe";
}
$self->{epcb}->SetValue(0);
}
sub OnClick_chkbox3 {
my ($self, $event) =@_;
my $desktop=$ENV{HOMEDRIVE}.$ENV{HOMEPATH}.'\\desktop';
my $filedlg = Wx::FileDialog->new($self, # parent
'Open File', # Caption
$desktop, # Default directory
'logs', # Default file
"FullAuto Log Files (*.zip)|*.zip",
# wildcard
wxFD_SAVE|wxFD_OVERWRITE_PROMPT); #style
# If the user really selected one
unless (-e "logs.zip") {
my $title="No Log Files Available";
my $message="No Log Files Available - Logs are available ".
"after an Instruction Set is run => $desktop";
my $dialog=Wx::MessageDialog->new(
$self,$message,$title,wxOK|wxICON_EXCLAMATION);
my $choice=$dialog->ShowModal();
} elsif ($filedlg->ShowModal==wxID_OK) {
my $filename = $filedlg->GetPath;
my $dir=$filename;
$dir=~s/^(.*)\\.*$/$1/;
copy "logs.zip", "$dir\\logs.zip";
}
$self->{elcb}->SetValue(0);
lib/Net/FullAuto/FA_Core.pm view on Meta::CPAN
END
open(AWS,"$c|");
while (my $line=<AWS>) {
print $line;
}
close AWS;
system("sudo chmod 444 /etc/ld.so.conf.d/gtk.conf");
my @urls=(
'ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz',
'http://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz',
'http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.9.0.tar.gz',
'http://cairographics.org/releases/pixman-0.26.0.tar.gz',
'http://cairographics.org/releases/cairo-1.12.2.tar.xz',
'http://ftp.gnome.org/pub/gnome/sources/pango/1.30/pango-1.30.0.tar.xz',
'http://ftp.gnome.org/pub/gnome/sources/atk/2.4/atk-2.4.0.tar.xz',
'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.26/gdk-pixbuf-2.26.1.tar.xz',
'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.10.tar.xz',
);
my $pkg_config='export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/';
foreach my $url (@urls) {
my $file=$url;
lib/Net/FullAuto/ISets/Local/WordPress_is.pm view on Meta::CPAN
$stdout=~s/gcc-//;
my $verss=$stdout;
($stdout,$stderr)=$handle->cmd($sudo.'gcc --version');
$stdout=~s/^.*?GCC[)]\s+?([^\s]+)\s+Copyright.*$/$1/s;
if ($stdout ne $verss) {
($stdout,$stderr)=$handle->cwd('/opt/source');
my $done=0;my $gittry=0;
while ($done==0) {
($stdout,$stderr)=$handle->cmd($sudo.
'git clone --recursive '.
'https://gitlab.freedesktop.org/pkg-config/pkg-config.git',
'__display__');
if (++$gittry>5) {
print "\n\n FATAL ERROR: $stderr\n\n";
cleanup();
}
my $gittest='Connection reset by peer|'.
'Could not read from remote repository';
$done=1 if $stderr!~/$gittest/s;
last if $done;
sleep 30;
( run in 0.361 second using v1.01-cache-2.11-cpan-299005ec8e3 )