diff options
author | edwin <edwin@FreeBSD.org> | 2008-05-26 12:24:20 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2008-05-26 12:24:20 +0800 |
commit | 34e94504fb0fba7b4a0a999893b56fda79e55d1d (patch) | |
tree | 444c23e5c3e5cb1a0ba6be784364892f7d952c97 | |
parent | 09225fd4a5375c4b3ccff62866013283d17f7406 (diff) | |
download | freebsd-ports-gnome-34e94504fb0fba7b4a0a999893b56fda79e55d1d.tar.gz freebsd-ports-gnome-34e94504fb0fba7b4a0a999893b56fda79e55d1d.tar.zst freebsd-ports-gnome-34e94504fb0fba7b4a0a999893b56fda79e55d1d.zip |
security/barnyard, upgrade the startup script
Improve the startup script to bring it in line with the correct
way of doing rc.subr scripts, bump PORTREVISION in the Makefile
and a minor change to pkg-message.
PR: ports/123938
Submitted by: Paul Schmehl <pauls@utdallas.edu>
-rw-r--r-- | security/barnyard/Makefile | 2 | ||||
-rw-r--r-- | security/barnyard/files/barnyard.sh.in | 40 | ||||
-rw-r--r-- | security/barnyard/files/pkg-message.in | 3 |
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. ************************************************************************ |