ports/106153: [MAINTAINER] mail/spamass-milter: set uid/gid and file protections on /var/run/spamass-milter.sock
Thomas Abthorpe
thomas at goodking.ca
Fri Dec 1 20:34:41 UTC 2006
>Number: 106153
>Category: ports
>Synopsis: [MAINTAINER] mail/spamass-milter: set uid/gid and file protections on /var/run/spamass-milter.sock
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 01 20:30:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Thomas Abthorpe
>Release: FreeBSD 6.2-RC1 i386
>Organization:
GoodKing.Ca
>Environment:
System: FreeBSD goodking.goodking.ca 6.2-RC1 FreeBSD 6.2-RC1 #2: Thu Nov 16 14:32:18 EST 2006
>Description:
- set uid/gid and file protection on /var/run/spamass-milter, allows easier integration for postfix mail
- bump PORTREVISION
- thanks to Matthew D. Fuller <fullermd_AT_over-yonder.net> for the patch
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- spamass-milter-0.3.1_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/spamass-milter/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- Makefile 20 Nov 2006 21:12:01 -0000 1.24
+++ Makefile 1 Dec 2006 20:13:20 -0000
@@ -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
Index: files/spamass-milter.in
===================================================================
RCS file: /home/ncvs/ports/mail/spamass-milter/files/spamass-milter.in,v
retrieving revision 1.2
diff -u -r1.2 spamass-milter.in
--- files/spamass-milter.in 20 Nov 2006 13:23:01 -0000 1.2
+++ files/spamass-milter.in 1 Dec 2006 20:13:20 -0000
@@ -34,6 +34,9 @@
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 @@
: ${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"
--- spamass-milter-0.3.1_3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list