From owner-freebsd-ports@FreeBSD.ORG Thu Jun 1 22:48:47 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C010B16AC06 for ; Thu, 1 Jun 2006 22:48:47 +0000 (UTC) (envelope-from paul.murphy@cogeco.ca) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DC8C43D53 for ; Thu, 1 Jun 2006 22:48:46 +0000 (GMT) (envelope-from paul.murphy@cogeco.ca) Received: from mercury.upton.net (d141-24-210.home.cgocable.net [24.141.24.210]) by fep1.cogeco.net (Postfix) with ESMTP id 14C1312416; Thu, 1 Jun 2006 18:48:45 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mercury.upton.net (Postfix) with ESMTP id 392DD60D2; Thu, 1 Jun 2006 18:52:00 -0400 (EDT) X-Virus-Scanned: amavisd-new at upton.net Received: from mercury.upton.net ([127.0.0.1]) by localhost (mercury.upton.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E6MkmSiMRZy2; Thu, 1 Jun 2006 18:49:46 -0400 (EDT) Received: from [127.0.0.1] (jupiter.upton.net [192.168.0.5]) by mercury.upton.net (Postfix) with ESMTP id 3F4EB60E7; Thu, 1 Jun 2006 18:26:45 -0400 (EDT) Message-ID: <447F68B4.7050503@cogeco.ca> Date: Thu, 01 Jun 2006 18:22:44 -0400 From: Paul Murphy User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: gkovesdan@t-hosting.hu Content-Type: multipart/mixed; boundary="------------030204040006090808030206" X-Antivirus: avast! (VPS 0622-3, 01/06/2006), Outbound message X-Antivirus-Status: Clean X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports@freebsd.org Subject: security/amavisd-new startup script 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: Thu, 01 Jun 2006 22:48:53 -0000 This is a multi-part message in MIME format. --------------030204040006090808030206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I need to keep the amavisd-new pid file in a location other than the default (/var/amavis/amavisd.pid), so I have rewritten the amavis rc script to include a knob for 'pidfile'. Please consider the attached file for the amavisd-new port. --------------030204040006090808030206 Content-Type: text/plain; name="amavisd" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="amavisd" #!/bin/sh # # $FreeBSD: ports/security/amavisd-new/files/amavisd.sh.in,v 1.3 2006/02/20 20:47:36 dougb Exp $ # # PROVIDE: amavisd # REQUIRE: LOGIN # BEFORE: mail # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable amavisd: # #amavisd_enable="YES" # . /etc/rc.subr name=amavisd rcvar=`set_rcvar` load_rc_config $name # Set defaults : ${amavisd_enable:="NO"} pidfile=${amavisd_pid:-"/var/amavis/amavisd.pid"} command=/usr/local/sbin/amavisd > /dev/null 2>&1 required_files=/usr/local/etc/amavisd.conf stop_postcmd=stop_postcmd stop_postcmd() { rm -f $pidfile } run_rc_command "$1" --------------030204040006090808030206 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-Description: avast info --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0622-3, 01/06/2006 Tested on: 01/06/2006 6:22:50 PM avast! - copyright (c) 1988-2006 ALWIL Software. http://www.avast.com --------------030204040006090808030206--