From owner-freebsd-ports@FreeBSD.ORG Sun May 18 01:44:44 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01311106566B for ; Sun, 18 May 2008 01:44:44 +0000 (UTC) (envelope-from adrian@thearle.com.au) Received: from albert.thearle.com.au (albert.thearle.com.au [150.101.115.54]) by mx1.freebsd.org (Postfix) with SMTP id 380D28FC0C for ; Sun, 18 May 2008 01:44:42 +0000 (UTC) (envelope-from adrian@thearle.com.au) Received: (qmail 70532 invoked by uid 0); 18 May 2008 01:44:41 -0000 Received: from 192.168.123.139 (adrian@thearle.com.au@192.168.123.139) by albert.thearle.com.au (envelope-from , uid 1009) with qmail-scanner-2.01 (clamdscan: 0.88.2/1512. spamassassin: 3.1.1. Clear:RC:1(192.168.123.139):. Processed in 0.181792 secs); 18 May 2008 01:44:41 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=kambah; d=thearle.com.au; b=oO5+A4au2HxeMM4rTdX5q8ba9XtWwXw6BJoOKfg3DeSbhV00vLnyBsl5TIFTP+eB ; Received: from unknown (HELO ?192.168.123.139?) (adrian@thearle.com.au@192.168.123.139) by albert.thearle.com.au with SMTP; 18 May 2008 01:44:40 -0000 Message-ID: <482F89FA.4090408@thearle.com.au> Date: Sun, 18 May 2008 11:44:26 +1000 From: Adrian Thearle User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: garga@FreeBSD.org Content-Type: multipart/mixed; boundary="------------090803070501080305090702" Cc: ports@FreeBSD.org Subject: FreeBSD Port: clamav-0.93 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2008 01:44:44 -0000 This is a multi-part message in MIME format. --------------090803070501080305090702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi I have made a change to the clamav-milter startup script that helps with permissions on the socket. I use postfix, not sure of sendmails requirements, but the socket needs to be writeable by the postfix user. The attached patch adds three variables that can be used to change the permissions and owner of the socket. I checked for this functionality within clam itself, but could not find an option. This is similar to the way spamass-milter does it. Cheers Adrian --------------090803070501080305090702 Content-Type: text/x-diff; name="clamav-milter.in.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="clamav-milter.in.diff" 29a30,36 > start_postcmd=start_postcmd > > start_postcmd() > { > /usr/sbin/chown ${clamav_milter_socket_owner}:${clamav_milter_socket_group} ${clamav_milter_socket} > /bin/chmod ${clamav_milter_socket_mode} ${clamav_milter_socket} > } 64a72,74 > : ${clamav_milter_socket_owner="clamav"} > : ${clamav_milter_socket_group="clamav"} > : ${clamav_milter_socket_mode="755"} --------------090803070501080305090702--