mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
b4118877b1
KEYWORD: FreeBSD scourge. We have ignored this keyword for a long time now, so this is a non-functional change (therefore no PORTREVISION bumps). Insert a $FreeBSD tag where needed, and adjust a comment in mail/milter-regex to match reality.
38 lines
919 B
Bash
38 lines
919 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
# PROVIDE: snort
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable snort:
|
|
# snort_enable (bool): Set to YES to enable snort
|
|
# Default: NO
|
|
# snort_flags (str): Extra flags passed to snort
|
|
# Default: -Dq -J 8000
|
|
# snort_interface (str): Network interface to sniff
|
|
# Default: ""
|
|
# snort_conf (str): Snort configuration file
|
|
# Default: ${PREFIX}/etc/snort_inline.conf
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="snort"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/bin/snort_inline"
|
|
|
|
load_rc_config $name
|
|
|
|
[ -z "$snort_enable" ] && snort_enable="NO"
|
|
[ -z "$snort_conf" ] && snort_conf="%%PREFIX%%/etc/snort_inline.conf"
|
|
[ -z "$snort_flags" ] && snort_flags="-Dq -J 8000"
|
|
|
|
[ -n "$snort_interface" ] && snort_flags="$snort_flags -i $snort_interface"
|
|
[ -n "$snort_conf" ] && snort_flags="$snort_flags -c $snort_conf"
|
|
|
|
run_rc_command "$1"
|