]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - tools/checknewlog.pl
Upgdated lynis to current stable.
[people/pmueller/ipfire-2.x.git] / tools / checknewlog.pl
index 14d2cf711c4ddd6c6c4d80dd779a3c05bd6a2be5..c007f5a02a9b3f1a7ec356ca7c6d4b87bd8b7158 100755 (executable)
@@ -25,15 +25,24 @@ my @FILES = readdir(DIR);
 closedir(DIR);
 
 foreach(@FILES) {
-                                       my $Found = 0;
-                                       if ( $_ =~ /$\.log/ || $_ =~ /^\.+/ ){next;}
-#                                      print $_."\n";
-                                       open(DATEI, "<./log/$_") || die "File not found";
-                                       my @Lines = <DATEI>;
-                                       close(DATEI);
-                                       foreach (@Lines){
-                                                                       if ( $_ =~ /^\+/ ){$Found=1;}
-                                                                       
-                                       }
-                                       if ($Found){print "Changes in $_ check rootfile!\n";}
+#      print $_."\n";
+       my $Found = 0;
+
+       if ( $_ =~ /$\.log/ || $_ =~ /^\.+/  || $_=~ /-install/ || $_=~ /-tools/ || $_=~ /-config/ || $_=~ /-kmod-/|| $_=~ /coreutils/ || $_=~ /esniper/ || $_=~ /libsigc/ || $_ eq 'FILES' ){
+               next;
+       } elsif ( $_=~ /missing_rootfile/ ){
+               print "Rootfile for $_ missing!\n";
+       } else {
+               open(DATEI, "<./log/$_") || die "File not found";
+               my @Lines = <DATEI>;
+               close(DATEI);
+
+               foreach (@Lines){
+                       if ( $_ =~ /^\+/ ){$Found=1;}
+               }
+
+               if ($Found){
+                       print "Changes in $_ check rootfile!\n";
+               }
+       }
 }