ports/111003: [patch] /usr/ports/security/amavisd-new
Robert Felber
robtone at ek-muc.de
Thu Mar 29 09:10:03 UTC 2007
>Number: 111003
>Category: ports
>Synopsis: [patch] /usr/ports/security/amavisd-new
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 29 09:10:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Robert Felber
>Release: FreeBSD 6.1-RELEASE-p7 i386
>Organization:
Autohaus Erich Kuttendreier (Ford Main Dealer Munich)
>Environment:
System: 6.1-RELEASE-p7
>Description:
The rc script /usr/local/etc/rc.d/amavis-p0fanalyzer does not allow
to set a specific interface on which p0f(1) shall listen on.
I have added an amavis_p0fanalyzer_p0f_flags parameter which can be set
via /etc/rc.conf and defaults to '-l' (ell)
>How-To-Repeat:
>Fix:
--- amavis-p0fanalyzer begins here ---
#!/bin/sh
# $FreeBSD: ports/security/amavisd-new/files/amavis-p0fanalyzer.sh.in,v 1.5 2007/02/26 23:02:04 dougb Exp $
# PROVIDE: amavis_p0fanalyzer
# REQUIRE: DAEMON
# BEFORE: amavisd
amavis_p0fanalyzer_enable="${amavis_p0fanalyzer_enable-NO}"
amavis_p0fanalyzer_p0f_filter="${amavis_p0fanalyzer_p0f_filter-"tcp dst port 25"}"
amavis_p0fanalyzer_pidfile1="${amavis_p0fanalyzer_pidfile1-/var/run/p0fanalyzer1.pid}"
amavis_p0fanalyzer_pidfile2="${amavis_p0fanalyzer_pidfile2-/var/run/p0fanalyzer2.pid}"
amavis_p0fanalyzer_flags="${amavis_p0fanalyzer_flags-2345}"
amavis_p0fanalyzer_p0f_flags="${amavis_p0fanalyzer_p0f_flags--l}"
. /etc/rc.subr
name="amavis_p0fanalyzer"
rcvar=`set_rcvar`
start_cmd=p0fanalyzer_start
stop_cmd=p0fanalyzer_stop
p0fanalyzer_start() {
echo "Starting p0f-analyzer." && \
/usr/sbin/daemon -p ${amavis_p0fanalyzer_pidfile1} \
/usr/local/bin/p0f ${amavis_p0f_daemon_flags} \
${amavis_p0fanalyzer_p0f_flags} \
"${amavis_p0fanalyzer_p0f_filter}" 2>&1 | \
/usr/sbin/daemon -p ${amavis_p0fanalyzer_pidfile2} \
/usr/local/sbin/p0f-analyzer.pl ${amavis_p0fanalyzer_flags}
}
p0fanalyzer_stop() {
/bin/kill `cat ${amavis_p0fanalyzer_pidfile2}` && rm ${amavis_p0fanalyzer_pidfile2}
/bin/kill `cat ${amavis_p0fanalyzer_pidfile1}` && rm ${amavis_p0fanalyzer_pidfile1}
}
load_rc_config $name
run_rc_command "$1"
--- amavis-p0fanalyzer ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list