Subversion Repositories camp_sysinfo_client_3

Rev

Rev 120 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 120 Rev 122
Line 189... Line 189...
189
                                    'type' => 'file',
189
                                    'type' => 'file',
190
                                    'permission' => '755',
190
                                    'permission' => '755',
191
                                    'owner' => '<default owner>:<default group>',
191
                                    'owner' => '<default owner>:<default group>',
192
                                    'target' => '/usr/local/opnsense/service/conf/actions.d',
192
                                    'target' => '/usr/local/opnsense/service/conf/actions.d',
193
                                    'post action' => 'service configd restart',
193
                                    'post action' => 'service configd restart',
194
                                    'message' => 'No automatic run can be done. Please log in through the webui and enable the sysinfo cron job'
194
                                    'message' => 'No automatic run can be done. Please log in through the webui and enable the sysinfo cron job via System | Settings | Cron'
195
                                 },
195
                                 },
196
                              },
196
                              },
197
                 },
197
                 },
198
                  
198
                  
199
                );
199
                );
Line 212... Line 212...
212
my %libraries = ( 
212
my %libraries = ( 
213
                  'File::Basename' => { 'debian' => 'apt-get -y install perl-modules' },
213
                  'File::Basename' => { 'debian' => 'apt-get -y install perl-modules' },
214
                  'Exporter' => { 'debian' => 'apt-get -y install perl-base' },
214
                  'Exporter' => { 'debian' => 'apt-get -y install perl-base' },
215
                  'LWP' => { 
215
                  'LWP' => { 
216
                             'debian' => 'apt-get -y install libwww-perl',
216
                             'debian' => 'apt-get -y install libwww-perl',
217
                             'freebsd' => 'pkg install -y p5-libwww'
217
                             'freebsd' => 'pkg install -y p5-libwww',
-
 
218
                             'opnsense' => 'pkg install -y p5-libwww',
218
                           },
219
                           },
219
                );
220
                );
220
 
221
 
221
# utilities md5sum
222
# utilities md5sum
222
# freebsd isomd5sum
223
# freebsd isomd5sum
Line 228... Line 229...
228
sub validateLibraries {
229
sub validateLibraries {
229
   my ( $libraries, $os ) = @_;
230
   my ( $libraries, $os ) = @_;
230
   my @command;
231
   my @command;
231
   my @missingLibs;
232
   my @missingLibs;
232
   foreach my $lib ( keys %$libraries ) {
233
   foreach my $lib ( keys %$libraries ) {
233
      print "Checking on libarary $lib\n";
234
      print "Checking on library $lib\n";
234
      eval( "use $lib;" );
235
      eval( "use $lib;" );
235
      if ( $@ ) {
236
      if ( $@ ) {
236
         print "\tNot found, adding\n";
237
         print "\tNot found, adding\n";
237
         push @command,$$libraries{$lib}{$os} if $$libraries{$lib}{$os};
238
         push @command,$$libraries{$lib}{$os} if $$libraries{$lib}{$os};
238
         push @missingLibs, $lib;
239
         push @missingLibs, $lib;