head	1.3;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1;
locks; strict;
comment	@# @;


1.3
date	2013.02.18.01.22.30;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2008.05.03.13.22.16;	author araujo;	state Exp;
branches;
next	1.1;

1.1
date	2006.10.31.02.43.25;	author alepulver;	state Exp;
branches;
next	;


desc
@@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312467
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@--- sguild.orig	2012-12-17 20:54:14.000000000 +0000
+++ sguild	2012-12-17 20:56:47.000000000 +0000
@@@@ -1,6 +1,4 @@@@
 #!/bin/sh
-# Run tcl from users PATH \
-exec tclsh "$0" "$@@"
 
 # $Id: sguild,v 1.193 2011/05/29 15:41:16 bamm Exp $ #
 
@@@@ -218,7 +216,7 @@@@
 ##################################
 
 # Do all priv account actions here.
-# Open log files/etc. Privs will be dropped after.
+# Open log files/usr/local/etc. Privs will be dropped after.
 
 if { ![info exists LOG_PATH] } { set LOG_PATH /var/log/sguild }
 
@@@@ -318,7 +316,7 @@@@
 # Check for certs
 if {![info exists CERTS_PATH]} {
 
-    set CERTS_PATH /etc/sguild/certs
+    set CERTS_PATH /usr/local/etc/sguild/certs
 
 }
 
@@@@ -348,13 +346,13 @@@@
 
 if { ![info exists CONF_FILE] } {
   # No conf file specified check the defaults
-  if { [file exists /etc/sguild/sguild.conf] } {
-    set CONF_FILE /etc/sguild/sguild.conf
+  if { [file exists /usr/local/etc/sguild/sguild.conf] } {
+    set CONF_FILE /usr/local/etc/sguild/sguild.conf
   } elseif { [file exists ./sguild.conf] } {
     set CONF_FILE ./sguild.conf
   } else {
     puts "Couldn't determine where the sguil config file is"
-    puts "Looked for ./sguild.conf and /etc/sguild/sguild.conf."
+    puts "Looked for ./sguild.conf and /usr/local/etc/sguild/sguild.conf."
     DisplayUsage $argv0
   }
 }
@@@@ -476,8 +474,8 @@@@
 # Load accessfile
 if { ![info exists ACCESS_FILE] } {
   # Check the defaults
-  if { [file exists /etc/sguild/sguild.access] } {
-    set ACCESS_FILE "/etc/sguild/sguild.access"
+  if { [file exists /usr/local/etc/sguild/sguild.access] } {
+    set ACCESS_FILE "/usr/local/etc/sguild/sguild.access"
   } elseif { [file exists ./sguild.access] } {
     set ACCESS_FILE "./sguild.access"
   } else {
@@@@ -491,8 +489,8 @@@@
 }
 # Load auto cat config
 if { ![info exists AUTOCAT_FILE] } {
-   if { [file exists /etc/sguild/autocat.conf] } {
-     set AUTOCAT_FILE "/etc/sguild/autocat.conf"
+   if { [file exists /usr/local/etc/sguild/autocat.conf] } {
+     set AUTOCAT_FILE "/usr/local/etc/sguild/autocat.conf"
    } else {
      set AUTOCAT_FILE "./autocat.conf"
    }
@@@@ -502,8 +500,8 @@@@
 }
 # Load email config file
 if { ![info exists EMAIL_FILE] } {
-  if { [file exists /etc/sguild/sguild.email] } {
-    set EMAIL_FILE "/etc/sguild/sguild.email"
+  if { [file exists /usr/local/etc/sguild/sguild.email] } {
+    set EMAIL_FILE "/usr/local/etc/sguild/sguild.email"
   } else {
     set EMAIL_FILE "./sguild.email"
   }
@@@@ -515,8 +513,8 @@@@
 }
 # Load global queries.
 if { ![info exists GLOBAL_QRY_FILE] } {
-  if { [file exists /etc/sguild/sguild.queries] } {
-    set GLOBAL_QRY_FILE "/etc/sguild/sguild.queries"
+  if { [file exists /usr/local/etc/sguild/sguild.queries] } {
+    set GLOBAL_QRY_FILE "/usr/local/etc/sguild/sguild.queries"
   } else {
     set GLOBAL_QRY_FILE "./sguild.queries"
   }
@@@@ -528,8 +526,8 @@@@
 }
 # Load report queries.
 if { ![info exists REPORT_QRY_FILE] } {
-  if { [file exists /etc/sguild/sguild.reports] } {
-    set REPORT_QRY_FILE "/etc/sguild/sguild.reports"
+  if { [file exists /usr/local/etc/sguild/sguild.reports] } {
+    set REPORT_QRY_FILE "/usr/local/etc/sguild/sguild.reports"
   } else {
     set REPORT_QRY_FILE "./sguild.reports"
   }
@


1.2
log
@- Update to 0.7.0.

PR:		ports/122645, ports/122646, ports/122647
Submitted by:	Paul Schmehl <pauls@@utdallas.edu> (maintainer)
@
text
@d1 19
a19 3
--- sguild.orig	2008-04-08 22:02:24.000000000 -0500
+++ sguild	2008-04-08 22:09:11.000000000 -0500
@@@@ -235,7 +235,7 @@@@
d24 1
a24 1
+    set CERTS_PATH /usr/local/etc/sguil-server/certs
d28 1
a28 1
@@@@ -265,13 +265,13 @@@@
d34 2
a35 2
+  if { [file exists /usr/local/etc/sguil-server/sguild.conf] } {
+    set CONF_FILE /usr/local/etc/sguil-server/sguild.conf
d41 1
a41 1
+    puts "Looked for ./sguild.conf and /usr/local/etc/sguil-server/sguild.conf."
d45 1
a45 23
@@@@ -354,17 +354,17 @@@@
 # Check for a valid USERS file
 if { ![info exists USERS_FILE] } {
   # No users file was specified. Go with the defaults
-  if { [file exists /etc/sguild/sguild.users] } {
-    set USERS_FILE "/etc/sguild/sguild.users"
+  if { [file exists /usr/local/etc/sguil-server/sguild.users] } {
+    set USERS_FILE "/usr/local/etc/sguil-server/sguild.users"
   } elseif { [file exists ./sguild.users] } {
     set USERS_FILE "./sguild.users"
   } else {
     if { [info exists ADDUSER] && $ADDUSER } {
-      CreateUsersFile "/etc/sguild/sguild.users"
+      CreateUsersFile "/usr/local/etc/sguil-server/sguild.users"
     } else {
       set DEBUG 2
       LogMessage "ERROR: Could not find a sguild.users file."
-      LogMessage "       Checked in ./ and /etc/sguild/"
+      LogMessage "       Checked in ./ and /usr/local/etc/sguil-server/"
       DisplayUsage $argv0
     }
   }
@@@@ -392,8 +392,8 @@@@
d51 2
a52 2
+  if { [file exists /usr/local/etc/sguil-server/sguild.access] } {
+    set ACCESS_FILE "/usr/local/etc/sguil-server/sguild.access"
d56 1
a56 1
@@@@ -407,8 +407,8 @@@@
d62 2
a63 2
+   if { [file exists /usr/local/etc/sguil-server/autocat.conf] } {
+     set AUTOCAT_FILE "/usr/local/etc/sguil-server/autocat.conf"
d67 1
a67 1
@@@@ -418,8 +418,8 @@@@
d73 2
a74 2
+  if { [file exists /usr/local/etc/sguil-server/sguild.email] } {
+    set EMAIL_FILE "/usr/local/etc/sguil-server/sguild.email"
d78 1
a78 1
@@@@ -431,8 +431,8 @@@@
d84 2
a85 2
+  if { [file exists /usr/local/etc/sguil-server/sguild.queries] } {
+    set GLOBAL_QRY_FILE "/usr/local/etc/sguil-server/sguild.queries"
d89 1
a89 1
@@@@ -444,8 +444,8 @@@@
d95 2
a96 2
+  if { [file exists /usr/local/etc/sguil-server/sguild.reports] } {
+    set REPORT_QRY_FILE "/usr/local/etc/sguil-server/sguild.reports"
@


1.1
log
@Sguil is an open source tool to implement Network
Security Monitoring (NSM).  NSM is the collection,
analysis, and escalation of indications and warnings
to detect and respond to intrusions.  NSM tools are
used more for network audit and specialized
applications than traditional alert-centric "intrusion
detection" systems.

Want to learn more about Network Security Monitoring
(NSM)? Then check out Richard Bejtlich's recently
released book, The Tao of Network Security Monitoring:
Beyond Intrusion Detection. An excerpt reads:

"Network security monitoring (NSM) equips security
staff to deal with the inevitable consequences of too
few resources and too many responsibilities. NSM collects
the data needed to generate better assessment, detection,
and response processes--resulting in decreased impact from
unauthorized activities."

WWW: http://sguil.sourceforge.net/index.php
pauls@@utdallas.edu

PR:		ports/104227
Submitted by:	Paul Schmehl <pauls at utdallas.edu>
@
text
@d1 6
a6 6
--- sguild.orig	Tue Mar 28 04:36:05 2006
+++ sguild	Tue Mar 28 04:37:10 2006
@@@@ -229,7 +229,7 @@@@
   package require tls
   # Check for certs
   if {![info exists CERTS_PATH]} {
d9 4
a12 4
   }
   if {![file exists $CERTS_PATH] || ![file isdirectory $CERTS_PATH]} {
     puts "ERROR: $CERTS_PATH does not exist or is not a directory"
@@@@ -251,13 +251,13 @@@@
d29 1
a29 1
@@@@ -338,17 +338,17 @@@@
d51 1
a51 1
@@@@ -376,8 +376,8 @@@@
d62 1
a62 1
@@@@ -391,8 +391,8 @@@@
d73 1
a73 1
@@@@ -402,8 +402,8 @@@@
d84 1
a84 1
@@@@ -415,8 +415,8 @@@@
d95 1
a95 1
@@@@ -428,8 +428,8 @@@@
@

