aboutsummaryrefslogtreecommitdiff
path: root/security/amavisd-new
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2006-11-27 12:55:21 +0000
committerErwin Lansing <erwin@FreeBSD.org>2006-11-27 12:55:21 +0000
commitf7af0844df84e559fa3df4bfda07888832ce68bf (patch)
tree88e77836a901059eacb416abf1e4c33929f82661 /security/amavisd-new
parent4b11149e8bb3bb8845b554b4f2b6506f3f082ce0 (diff)
downloadports-f7af0844df84e559fa3df4bfda07888832ce68bf.tar.gz
ports-f7af0844df84e559fa3df4bfda07888832ce68bf.zip
Notes
Diffstat (limited to 'security/amavisd-new')
-rw-r--r--security/amavisd-new/Makefile12
-rw-r--r--security/amavisd-new/distinfo6
-rw-r--r--security/amavisd-new/files/amavis-p0fanalyzer.sh.in6
3 files changed, 15 insertions, 9 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile
index 501670f03065..c35e726f7c9b 100644
--- a/security/amavisd-new/Makefile
+++ b/security/amavisd-new/Makefile
@@ -7,8 +7,7 @@
# Based on amavisd ports makefile.
PORTNAME= amavisd-new
-PORTVERSION= 2.4.3
-PORTREVISION= 1
+PORTVERSION= 2.4.4
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= http://www.ijs.si/software/amavisd/ \
@@ -76,7 +75,8 @@ SUB_FILES= pkg-install pkg-deinstall pkg-message
SUB_LIST+= AMAVISUSER=${AMAVISUSER} \
AMAVISGROUP=${AMAVISGROUP} \
AMAVISDIR=${AMAVISDIR} \
- AMAVISQUARANTINE=${AMAVISQUARANTINE}
+ AMAVISQUARANTINE=${AMAVISQUARANTINE} \
+ DAEMON="${DAEMON}"
PLIST_SUB+= AMAVIS_NOAMAVIS=${AMAVIS_NOAMAVIS} \
AMAVIS_NOMILTER=${AMAVIS_NOMILTER} \
@@ -84,6 +84,12 @@ PLIST_SUB+= AMAVIS_NOAMAVIS=${AMAVIS_NOAMAVIS} \
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500000
+DAEMON=/usr/sbin/daemon
+.else
+DAEMON=/usr/sbin/daemon -p
+.endif
+
USE_RC_SUBR+= amavisd.sh
.if !defined(WITH_MILTER) || (!exists(/usr/lib/libmilter.a) && !exists(${PREFIX}/lib/libmilter.a))
diff --git a/security/amavisd-new/distinfo b/security/amavisd-new/distinfo
index efef45272781..2eb85d81ab26 100644
--- a/security/amavisd-new/distinfo
+++ b/security/amavisd-new/distinfo
@@ -1,3 +1,3 @@
-MD5 (amavisd-new-2.4.3.tar.gz) = 7c5f23b1cd523df31d10cf38150e8cea
-SHA256 (amavisd-new-2.4.3.tar.gz) = ff71af590a0dc62bda558a037daceaea3b776d1ef7d0689ab0bfb582d436cf15
-SIZE (amavisd-new-2.4.3.tar.gz) = 876615
+MD5 (amavisd-new-2.4.4.tar.gz) = 08b009ca24dc3676293fc6b80db250a3
+SHA256 (amavisd-new-2.4.4.tar.gz) = b3a11ff3813e8b6c7cdf48c852c7bc672b2c0c6115d1b1dba896cd6358b67889
+SIZE (amavisd-new-2.4.4.tar.gz) = 887625
diff --git a/security/amavisd-new/files/amavis-p0fanalyzer.sh.in b/security/amavisd-new/files/amavis-p0fanalyzer.sh.in
index 97a9f16ae6de..df48438d3387 100644
--- a/security/amavisd-new/files/amavis-p0fanalyzer.sh.in
+++ b/security/amavisd-new/files/amavis-p0fanalyzer.sh.in
@@ -22,10 +22,10 @@ stop_cmd=p0fanalyzer_stop
p0fanalyzer_start() {
echo "Starting p0f-analyzer." && \
- /usr/sbin/daemon -p ${amavis_p0fanalyzer_pidfile1} \
- %%PREFIX%%/bin/p0f "${amavis_p0f_daemon_flags}" \
+ %%DAEMON%% ${amavis_p0fanalyzer_pidfile1} \
+ %%PREFIX%%/bin/p0f ${amavis_p0f_daemon_flags} \
-l "${amavis_p0fanalyzer_p0f_filter}" 2>&1 | \
- /usr/sbin/daemon -p ${amavis_p0fanalyzer_pidfile2} \
+ %%DAEMON%% ${amavis_p0fanalyzer_pidfile2} \
%%PREFIX%%/sbin/p0f-analyzer.pl ${amavis_p0fanalyzer_flags}
}