View | Details | Raw Unified | Return to bug 159892
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 56-62 Link Here
56
.if defined(WITH_TCL)
56
.if defined(WITH_TCL)
57
USE_TCL=		yes
57
USE_TCL=		yes
58
CONFIGURE_ARGS+=	--with-tcl=${PREFIX}/lib/tcl8.4
58
CONFIGURE_ARGS+=	--with-tcl=${PREFIX}/lib/tcl8.4
59
LIB_DEPENDS+=   	tcl84.1:${PORTSDIR}/lang/tcl84
59
LIB_DEPENDS+=	tcl84.1:${PORTSDIR}/lang/tcl84
60
.endif
60
.endif
61
61
62
pre-install:
62
pre-install:
(-)files/barnyard2.sh.in (-40 / +19 lines)
Lines 13-64 Link Here
13
#				Default: -D
13
#				Default: -D
14
# barnyard2_conf (str):		Barnyard configuration file
14
# barnyard2_conf (str):		Barnyard configuration file
15
#				Default: %%PREFIX%%/etc/barnyard2.conf
15
#				Default: %%PREFIX%%/etc/barnyard2.conf
16
# optional, multi-barnyard2:
17
# barnyard2_rules="1 2 3"
18
# barnyard2_1_flags="-D"
19
# barnyard2_1_pidfile=""
20
# #$command $flags $args
16
#
21
#
17
# USAGE: barnyard2 [-options]
22
# USAGE: barnyard2 [-options]
18
#
23
#
19
# General Options:
20
#        -?         Show this information
21
#        -c <file>  Use configuration file <file>
22
#        -g <gname> Run barnyard gid as <gname> group (or gid) after initialization
23
#        -m <umask> Set umask = <umask>
24
#        -q         Quiet. Don't show banner and status report
25
#        -u <uname> Run barnyard uid as <uname> user (or uid) after initialization
26
#        -v         Be verbose
27
#        -C <file>  Read the classification map from <file>
28
#        -D         Run barnyard in background (daemon) mode
29
#        -G <file>  Read the gen-msg map from <file>
30
#        -L <dir>   Write output files in <dir>
31
#        -R <file>  Read the reference map from <file>
32
#        -S <file>  Read the sid-msg map from <file>
33
#        -T         Test and report on the current configuration
34
#        -U         Use UTC for timestamps
35
#        -V         Show version and exit
36
#
37
# Continual Processing Options:
38
#        -a <dir>   Archive processed files to <dir>
39
#        -f <base>  Use <base> as the base filename pattern
40
#        -d <dir>   Spool files from <dir>
41
#        -n         Only process new events
42
#        -w <file>  Enable bookmarking using <file>
43
#
44
# Batch Processing Mode Options:
45
#        -o         Enable batch processing mode
46
#
47
# Longname options and their corresponding single char version
48
#   --reference <file>              Same as -R
49
#   --classification <file>         Same as -C
50
#   --gen-msg <file>                Same as -G
51
#   --sid-msg <file>                Same as -S
52
#   --pid-path <path>               Specify the path for the barnyard PID file
53
#   --create-pidfile                Create PID file, even when not in Daemon mode
54
#   --nolock-pidfile                Do not try to lock barnyard PID file
55
#   --help                          Same as -?
56
#   --version                       Same as -V
57
24
58
. /etc/rc.subr
25
. /etc/rc.subr
59
26
60
name="barnyard2"
27
name="barnyard2"
61
load_rc_config $name
62
rcvar=`set_rcvar`
28
rcvar=`set_rcvar`
63
# set some defaults
29
# set some defaults
64
: ${barnyard2_enable="NO"}
30
: ${barnyard2_enable="NO"}
Lines 68-71 Link Here
68
command="%%PREFIX%%/bin/barnyard2"
34
command="%%PREFIX%%/bin/barnyard2"
69
command_args="-c ${barnyard2_conf} ${barnyard2_flags}"
35
command_args="-c ${barnyard2_conf} ${barnyard2_flags}"
70
36
71
run_rc_command "$1"
37
load_rc_config $name
38
39
if [ -n "${barnyard2_rules}" ];then
40
  for i in ${barnyard2_rules}; do
41
    echo -n "$i:"
42
    eval barnyard2_flags=\$barnyard2_${i}_flags
43
    eval pidfile=\$barnyard2_${i}_pidfile
44
    eval barnyard2_conf=\$barnyard2_${i}_conf
45
    command_args="-c $barnyard2_conf -D"
46
    run_rc_command "$1"
47
  done
48
else
49
   run_rc_command "$1"
50
fi

Return to bug 159892