diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-02 07:39:44 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-02 07:39:44 +0800 |
commit | f40cb12ebd682b7d933c882b49ac364247f65599 (patch) | |
tree | 8d74b53aea3626b77228721246116df5f1f9a234 /mail | |
parent | 5053a1c18aff9b10280cec2af404c0d43a95979f (diff) | |
download | freebsd-ports-gnome-f40cb12ebd682b7d933c882b49ac364247f65599.tar.gz freebsd-ports-gnome-f40cb12ebd682b7d933c882b49ac364247f65599.tar.zst freebsd-ports-gnome-f40cb12ebd682b7d933c882b49ac364247f65599.zip |
- Set uid/gid and file protection on /var/run/spamass-milter,
allows easier integration for postfix mail
- Bump PORTREVISION
PR: ports/106153
Submitted by: Thomas Abthorpe <thomas@goodking.ca> (maintainer)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamass-milter/Makefile | 2 | ||||
-rw-r--r-- | mail/spamass-milter/files/spamass-milter.in | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile index 5471f882ec24..5eced9a2a784 100644 --- a/mail/spamass-milter/Makefile +++ b/mail/spamass-milter/Makefile @@ -7,7 +7,7 @@ PORTNAME= spamass-milter PORTVERSION= 0.3.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR= spamass-milt diff --git a/mail/spamass-milter/files/spamass-milter.in b/mail/spamass-milter/files/spamass-milter.in index f73da3b4a710..e6ce12fd88a8 100644 --- a/mail/spamass-milter/files/spamass-milter.in +++ b/mail/spamass-milter/files/spamass-milter.in @@ -34,6 +34,9 @@ start_postcmd() sleep 1 kill -HUP `head -1 /var/run/sendmail.pid` fi + + /usr/sbin/chown ${spamass_milter_socket_owner}:${spamass_milter_socket_group} ${spamass_milter_socket} + /bin/chmod ${spamass_milter_socket_mode} ${spamass_milter_socket} } stop_postcmd() @@ -50,5 +53,8 @@ load_rc_config $name : ${spamass_milter_enable="NO"} : ${spamass_milter_socket="/var/run/spamass-milter.sock"} : ${spamass_milter_flags="-f -p ${spamass_milter_socket}"} +: ${spamass_milter_socket_owner="root"} +: ${spamass_milter_socket_group="wheel"} +: ${spamass_milter_socket_mode="644"} run_rc_command "$1" |