diff options
author | delphij <delphij@FreeBSD.org> | 2011-06-09 08:27:43 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-06-09 08:27:43 +0800 |
commit | 1a038b5e5db2cd862291b2813ae8569aafa54458 (patch) | |
tree | 48c735a1eec088afc521d11e89a0608ff767cef7 /security/amavisd-milter | |
parent | 5ac06bb837782165460cb017ef930fdc52d40850 (diff) | |
download | freebsd-ports-gnome-1a038b5e5db2cd862291b2813ae8569aafa54458.tar.gz freebsd-ports-gnome-1a038b5e5db2cd862291b2813ae8569aafa54458.tar.zst freebsd-ports-gnome-1a038b5e5db2cd862291b2813ae8569aafa54458.zip |
Make it possible to specify socket location and permissions for the milter.
Approved by: maintainer
PR: ports/157674
Diffstat (limited to 'security/amavisd-milter')
-rw-r--r-- | security/amavisd-milter/Makefile | 2 | ||||
-rw-r--r-- | security/amavisd-milter/files/amavisd-milter.sh.in | 10 |
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" |