aboutsummaryrefslogtreecommitdiff
path: root/security/amavisd-milter
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-06-09 00:27:43 +0000
committerXin LI <delphij@FreeBSD.org>2011-06-09 00:27:43 +0000
commitda0ebabc465f88a882fb7d478f6e29fe50007b71 (patch)
tree77ea6e06654c2a8d11a12a6daaed894b16534814 /security/amavisd-milter
parentd1b4b50540945383a7df9d06e5827bc6c7b64dd7 (diff)
downloadports-da0ebabc465f88a882fb7d478f6e29fe50007b71.tar.gz
ports-da0ebabc465f88a882fb7d478f6e29fe50007b71.zip
Notes
Diffstat (limited to 'security/amavisd-milter')
-rw-r--r--security/amavisd-milter/Makefile2
-rw-r--r--security/amavisd-milter/files/amavisd-milter.sh.in10
2 files changed, 10 insertions, 2 deletions
diff --git a/security/amavisd-milter/Makefile b/security/amavisd-milter/Makefile
index 49d9fd698099..d17b802241ed 100644
--- a/security/amavisd-milter/Makefile
+++ b/security/amavisd-milter/Makefile
@@ -7,7 +7,7 @@
PORTNAME= amavisd-milter
PORTVERSION= 1.5.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
diff --git a/security/amavisd-milter/files/amavisd-milter.sh.in b/security/amavisd-milter/files/amavisd-milter.sh.in
index e431e802c37a..10b77a8ff515 100644
--- a/security/amavisd-milter/files/amavisd-milter.sh.in
+++ b/security/amavisd-milter/files/amavisd-milter.sh.in
@@ -25,10 +25,18 @@ load_rc_config $name
# Set defaults
: ${amavisd_milter_enable:="NO"}
: ${amavisd_milter_user="%%AMAVISUSER%%"}
+: ${amavisd_milter_socket:="%%AMAVISDIR%%/amavisd-milter.sock"}
+: ${amavisd_milter_socket_perm:="0666"}
pidfile="${amavisd_milter_pidfile:-%%AMAVISDIR%%/amavisd-milter.pid}"
command="%%PREFIX%%/sbin/amavisd-milter"
-command_args="-p ${pidfile}"
+command_args="-p ${pidfile} -s ${amavisd_milter_socket}"
required_files="%%PREFIX%%/etc/amavisd.conf"
+start_postcmd="amavisd_milter_postcmd"
+
+amavisd_milter_postcmd()
+{
+ chmod ${amavisd_milter_socket_perm} ${amavisd_milter_socket}
+}
run_rc_command "$1"