aboutsummaryrefslogtreecommitdiff
path: root/security/barnyard
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-05-26 04:24:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-05-26 04:24:20 +0000
commit143041b03e663f762a3f2ecd474202450ba2a731 (patch)
tree47ad085d43923a9d994fb184e0908b3d8c4c5e1c /security/barnyard
parent16cd62f652b35f3bfa35828faab2d313ac9596b2 (diff)
Notes
Diffstat (limited to 'security/barnyard')
-rw-r--r--security/barnyard/Makefile2
-rw-r--r--security/barnyard/files/barnyard.sh.in40
-rw-r--r--security/barnyard/files/pkg-message.in3
3 files changed, 34 insertions, 11 deletions
diff --git a/security/barnyard/Makefile b/security/barnyard/Makefile
index 43e4bf34e705..0ad95cb8b38c 100644
--- a/security/barnyard/Makefile
+++ b/security/barnyard/Makefile
@@ -7,7 +7,7 @@
PORTNAME= barnyard
PORTVERSION= 0.2.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= SF
diff --git a/security/barnyard/files/barnyard.sh.in b/security/barnyard/files/barnyard.sh.in
index b563b7fd7687..a5a1d2a82538 100644
--- a/security/barnyard/files/barnyard.sh.in
+++ b/security/barnyard/files/barnyard.sh.in
@@ -12,22 +12,44 @@
# barnyard_flags (str): Extra flags passed to barnyard
# Default: -D
# barnyard_conf (str): Barnyard configuration file
-# Default: ${PREFIX}/etc/barnyard.conf
+# Default: %%PREFIX%%/etc/barnyard.conf
#
+# Usage: barnyard [OPTIONS]... (continual mode)
+# or: barnyard -o [OPTIONS]... FILES... (batch mode)
+# Information Options:
+# -h Show this help information
+# -? Show this help information
+# -V Show version and exit
+# -R Display processed configuration and exit
+# General Configuration Options:
+# -c <file> Use configuration file <file>
+# -d <dir> Read spool files from <dir>
+# -L <dir> Write output files in <dir>
+# -v Increase the verbosity level by 1
+# -s <file> Read the sid-msg map from <file>
+# -g <file> Read the gen-msg map from <file>
+# -p <file> Read the classification map from <file>
+# Continual Processing Mode Options:
+# -a <dir> Archive processed files to <dir>
+# -f <base> Use <base> as the base unified filename
+# -n Only process new events
+# -w <file> Enable bookmarking using <file>
+# -D Run in daemon mode
+# -X <file> Use <file> as the pid file
+# Batch Processing Mode Options:
+# -o Enable batch processing mode
. %%RC_SUBR%%
name="barnyard"
+load_rc_config $name
rcvar=`set_rcvar`
+# set some defaults
+: ${barnyard_enable="NO"}
+: ${barnyard_conf="%%PREFIX%%/etc/barnyard.conf"}
+: ${barnyard_flags="-D"}
command="%%PREFIX%%/bin/barnyard"
-
-load_rc_config $name
-
-[ -z "$barnyard_enable" ] && barnyard_enable="NO"
-[ -z "$barnyard_conf" ] && barnyard_conf="%%PREFIX%%/etc/barnyard.conf"
-[ -z "$barnyard_flags" ] && barnyard_flags="-D"
-
-[ -n "$barnyard_conf" ] && barnyard_flags="$barnyard_flags -c $barnyard_conf"
+command_args="-c ${barnyard_conf} ${barnyard_flags}"
run_rc_command "$1"
diff --git a/security/barnyard/files/pkg-message.in b/security/barnyard/files/pkg-message.in
index 7012f28c1f06..608c4f92c0dd 100644
--- a/security/barnyard/files/pkg-message.in
+++ b/security/barnyard/files/pkg-message.in
@@ -9,6 +9,7 @@ In order to enable barnyard to start on boot, you must edit /etc/rc.conf
with the appropriate flags, etc. See the FreeBSD Handbook for syntax:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html
-For the various options available, type % barnyard -h after install.
+For the various options available, type % barnyard -h after install or read
+the options in the startup script - in %%PREFIX%%/etc/rc.d.
************************************************************************