From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 5 00:50:20 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88CD916A4DA for ; Wed, 5 Jul 2006 00:50:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5432843D60 for ; Wed, 5 Jul 2006 00:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k650oJs5038227 for ; Wed, 5 Jul 2006 00:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k650oJF0038226; Wed, 5 Jul 2006 00:50:19 GMT (envelope-from gnats) Resent-Date: Wed, 5 Jul 2006 00:50:19 GMT Resent-Message-Id: <200607050050.k650oJF0038226@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marshal Newrock Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 864CC16A4DE for ; Wed, 5 Jul 2006 00:43:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 598A943D49 for ; Wed, 5 Jul 2006 00:43:43 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k650hhlp069692 for ; Wed, 5 Jul 2006 00:43:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k650hgCN069690; Wed, 5 Jul 2006 00:43:43 GMT (envelope-from nobody) Message-Id: <200607050043.k650hgCN069690@www.freebsd.org> Date: Wed, 5 Jul 2006 00:43:43 GMT From: Marshal Newrock To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/99794: rc script for spampd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jul 2006 00:50:20 -0000 >Number: 99794 >Category: ports >Synopsis: rc script for spampd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 05 00:50:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Marshal Newrock >Release: 6.1 >Organization: Ideal Solution >Environment: FreeBSD sa1.freedombi.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 >Description: spampd currently has an old-style rc script, which requires editing the script to change options. Attached is a new script. >How-To-Repeat: >Fix: #!/bin/sh # # PROVIDE: spampd # # Add the fellowing line to /etc/rc.conf to enable spampd: # # spampd_enable (bool): Set it to "YES" to enable spampd # Default is "NO" # spampd_flags . /etc/rc.subr name="spampd" rcvar=`set_rcvar` : ${spampd_enable="NO"} : ${spampd_pidfile="/var/run/spamd/spampd.pid"} : ${spampd_flags="--user=spamd --group=spamd --host 127.0.0.1:10024 --relayhost=127.0.0.1:10025 --dose --tagall --auto-whitelist"} load_rc_config $name command=/usr/local/sbin/$name command_args="${spampd_flags} --pid=${spampd_pidfile}" pidfile=${spampd_pidfile} sig_stop=-KILL run_rc_command $1 >Release-Note: >Audit-Trail: >Unformatted: