aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2006-09-18 00:10:42 +0800
committererwin <erwin@FreeBSD.org>2006-09-18 00:10:42 +0800
commit7b70be94cfc5b592013a289d208f2c45a9677a07 (patch)
treef712173a1bcb5a5a2cecbf30bb4e6129df635415
parent86566abd1137de95327fcf4cdbe8b8ad44331907 (diff)
downloadfreebsd-ports-gnome-7b70be94cfc5b592013a289d208f2c45a9677a07.tar.gz
freebsd-ports-gnome-7b70be94cfc5b592013a289d208f2c45a9677a07.tar.zst
freebsd-ports-gnome-7b70be94cfc5b592013a289d208f2c45a9677a07.zip
Really fix p0fanalyzer support this time.
Noticed by: Henrik Schack <henrik@schack.dk> Submitted by: maintainer
-rw-r--r--security/amavisd-new/Makefile2
-rw-r--r--security/amavisd-new/files/amavis-p0fanalyzer.sh.in (renamed from security/amavisd-new/files/p0fanalyzer.sh)4
2 files changed, 3 insertions, 3 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile
index b29bdae80547..6bec20fdca81 100644
--- a/security/amavisd-new/Makefile
+++ b/security/amavisd-new/Makefile
@@ -131,7 +131,7 @@ RUN_DEPENDS+= ${SITE_PERL}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAss
.if defined(WITH_P0F)
RUN_DEPENDS+= ${LOCALBASE}/bin/p0f:${PORTSDIR}/net-mgmt/p0f
-USE_RC_SUBR+= p0fanalyzer.sh
+USE_RC_SUBR+= amavis-p0fanalyzer.sh
.else
AMAVIS_NOP0F= "@comment "
.endif
diff --git a/security/amavisd-new/files/p0fanalyzer.sh b/security/amavisd-new/files/amavis-p0fanalyzer.sh.in
index 77bb4a1f5042..fd05f8831785 100644
--- a/security/amavisd-new/files/p0fanalyzer.sh
+++ b/security/amavisd-new/files/amavis-p0fanalyzer.sh.in
@@ -19,9 +19,9 @@ stop_cmd=p0fanalyzer_stop
p0fanalyzer_start() {
checkyesno p0fanalyzer_enable && echo "Starting p0f-analyzer." && \
/usr/sbin/daemon -p /var/run/p0fanalyzer1.pid \
- /usr/local/bin/p0f -i bge0 -l 'tcp dst port 25' 2>&1 | \
+ %%PREFIX%%/bin/p0f -i bge0 -l 'tcp dst port 25' 2>&1 | \
/usr/sbin/daemon -p /var/run/p0fanalyzer2.pid \
- /usr/local/sbin/p0f-analyzer.pl 2345
+ %%PREFIX%%/sbin/p0f-analyzer.pl 2345
}
p0fanalyzer_stop() {