aboutsummaryrefslogtreecommitdiffstats
path: root/security/amavisd-new
diff options
context:
space:
mode:
Diffstat (limited to 'security/amavisd-new')
-rw-r--r--security/amavisd-new/Makefile7
-rw-r--r--security/amavisd-new/files/amavis-p0fanalyzer.in4
-rw-r--r--security/amavisd-new/files/amavisd.in4
3 files changed, 4 insertions, 11 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile
index 9d811ba4cf3f..e830a28153e2 100644
--- a/security/amavisd-new/Makefile
+++ b/security/amavisd-new/Makefile
@@ -1,13 +1,8 @@
-# New ports collection makefile for: amavisd-new
-# Date created: 05 Jun 2002
-# Whom: Christopher K Davis (ckd-freebsd@ckdhr.com)
-#
# $FreeBSD$
-#
-# Based on amavisd ports makefile.
PORTNAME= amavisd-new
PORTVERSION= 2.8.0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= http://www.ijs.si/software/amavisd/ \
diff --git a/security/amavisd-new/files/amavis-p0fanalyzer.in b/security/amavisd-new/files/amavis-p0fanalyzer.in
index d7009711bcfc..19e19cee95f6 100644
--- a/security/amavisd-new/files/amavis-p0fanalyzer.in
+++ b/security/amavisd-new/files/amavis-p0fanalyzer.in
@@ -9,7 +9,6 @@ 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_p0f_daemon_flags="${amavis_p0f_daemon_flags--l}"
amavis_p0fanalyzer_flags="${amavis_p0fanalyzer_flags-2345}"
. /etc/rc.subr
@@ -23,8 +22,7 @@ stop_cmd=p0fanalyzer_stop
p0fanalyzer_start() {
echo "Starting p0f-analyzer." && \
%%DAEMON%% ${amavis_p0fanalyzer_pidfile1} \
- %%PREFIX%%/bin/p0f ${amavis_p0f_daemon_flags} \
- "${amavis_p0fanalyzer_p0f_filter}" 2>&1 | \
+ %%PREFIX%%/bin/p0f "${amavis_p0fanalyzer_p0f_filter}" 2>&1 | \
%%DAEMON%% ${amavis_p0fanalyzer_pidfile2} \
%%PREFIX%%/sbin/p0f-analyzer.pl ${amavis_p0fanalyzer_flags}
}
diff --git a/security/amavisd-new/files/amavisd.in b/security/amavisd-new/files/amavisd.in
index 1b8e77ffee75..67a97f76ef57 100644
--- a/security/amavisd-new/files/amavisd.in
+++ b/security/amavisd-new/files/amavisd.in
@@ -36,8 +36,8 @@ if [ ${amavisd_ram} ];then
echo "WARNING: using ramdisk is reported to be unstable and"
echo "thus it is highly recommended to be turned off."
echo "========================================================"
- df %%AMAVISDIR%%/tmp | grep '^/dev/md' > /dev/null
- if [ $? -eq 1 ];then
+ df /var/amavis/tmp | grep -E '^(/dev/md|tmpfs)' > /dev/null
+ if [ $? -eq 1 ]; then
mdmfs -s ${amavisd_ram} -p 750 -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true
fi
fi