SOURCES: snortalog-paths.patch - absolute paths for data files and...

radek radek at pld-linux.org
Tue Aug 9 18:50:01 CEST 2005


Author: radek                        Date: Tue Aug  9 16:50:01 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- absolute paths for data files and "modules"

---- Files affected:
SOURCES:
   snortalog-paths.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/snortalog-paths.patch
diff -u SOURCES/snortalog-paths.patch:1.1 SOURCES/snortalog-paths.patch:1.2
--- SOURCES/snortalog-paths.patch:1.1	Thu Apr 10 19:56:23 2003
+++ SOURCES/snortalog-paths.patch	Tue Aug  9 18:49:56 2005
@@ -1,13 +1,43 @@
---- snortalog-1.9.0-rc2/snortalog.pl.fix	Thu Apr 10 16:45:08 2003
-+++ snortalog-1.9.0-rc2/snortalog.pl	Thu Apr 10 16:46:43 2003
-@@ -8,8 +8,8 @@
- use Getopt::Long;		# use Getopt for options
- use Socket;                     # use socket for resolving domain name from IP
+--- snortalog_v2.3/snortalog.pl.orig	2005-08-09 18:38:55.015782464 +0200
++++ snortalog_v2.3/snortalog.pl	2005-08-09 18:40:51.690045280 +0200
+@@ -5,6 +5,7 @@
+ # Revision: 2.3.0c
+ # 
  
--$domains_file = "domains";
--$rules_file = "rules";
-+$domains_file = "/usr/share/snortalog/domains";
-+$rules_file = "/usr/share/snortalog/rules";
- $addr_len = 15;
- $nb_len = 6;
- $port_len = 5;
++use lib '/usr/share/snortalog';
+ #
+ # Modules requirement
+ # Detect specific logs - Comment unnecessary log detectection
+@@ -68,10 +69,10 @@
+ #
+ # Main variables
+ #
+-$domains_file = "domains"; $DOMAINS = 1;	# Path to find Domain file
+-$rules_file = "rules"; $RULES = 1;		# Path to find Rules file
+-$hw_file = "hw"; $HW = 1;			# Path to find Hardware file
+-$lang_file = "lang"; $LANG = 1;			# Path to find Language file
++$domains_file = "/usr/share/snortalog/domains"; $DOMAINS = 1;	# Path to find Domain file
++$rules_file = "/usr/share/snortalog/rules"; $RULES = 1;		# Path to find Rules file
++$hw_file = "/usr/share/snortalog/hw"; $HW = 1;			# Path to find Hardware file
++$lang_file = "/usr/share/snortalog/lang"; $LANG = 1;			# Path to find Language file
+ $html_directory = "/tmp/";			# Default output directorys (HTML output exclusively)
+ $dbm_directory = "/tmp/";			# Default output directorys (HTML output exclusively)
+ $tmpout_file = "/tmp/.snortalog.tmp";		# Default tempory file (GUI exclusively)
+@@ -3198,7 +3199,7 @@
+ 		$scrolled_result->insert('end', "\n");
+ 		$scrolled_status->insert('end', "OK\n");
+ 	} else {	
+-		section_header("$description\n", "rules");
++		section_header("$description\n", "/usr/share/snortalog/rules");
+ 		foreach $k (sort { $s21{$b} <=> $s21{$a} } keys %s21) {
+ 			printf("  %5.2f  %-${nb_len}d  %-4d\n", $s21{$k}/$total*100,$s21{$k},$k) if ( $i < $n );
+ 			++$i;
+@@ -4039,7 +4040,7 @@
+ 	print( '=' x $linelength, "\n");
+ 	print(" " x 4, "### ". $n ." of ". keys(%s14) ." ###\n");
+ 	print("    %    No      Actions\n");
+-} elsif ($report eq "rules") {
++} elsif ($report eq "/usr/share/snortalog/rules") {
+ 	$linelength = 13 + $nb_len + 4 + 6;
+ 	print( '=' x $linelength, "\n");
+ 	print(" " x 4, "### ". $n ." of ". keys(%s21) ." ###\n");
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/snortalog-paths.patch?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list