From owner-freebsd-perl@FreeBSD.ORG Sun Aug 13 07:32:10 2006 Return-Path: X-Original-To: perl@freebsd.org Delivered-To: freebsd-perl@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E237E16A4DA for ; Sun, 13 Aug 2006 07:32:10 +0000 (UTC) (envelope-from gtetlow@spiff.melthusia.org) Received: from spiff.melthusia.org (spiff.melthusia.org [207.178.198.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69B5E43D49 for ; Sun, 13 Aug 2006 07:32:10 +0000 (GMT) (envelope-from gtetlow@spiff.melthusia.org) Received: from spiff.melthusia.org (gtetlow@localhost [127.0.0.1]) by spiff.melthusia.org (8.13.6/8.13.6) with ESMTP id k7D7W96X056861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 13 Aug 2006 00:32:09 -0700 (PDT) (envelope-from gtetlow@spiff.melthusia.org) Received: (from gtetlow@localhost) by spiff.melthusia.org (8.13.6/8.13.6/Submit) id k7D7W7kZ056860 for perl@freebsd.org; Sun, 13 Aug 2006 00:32:07 -0700 (PDT) (envelope-from gtetlow) Date: Sun, 13 Aug 2006 00:32:07 -0700 From: Gordon Tetlow To: perl@freebsd.org Message-ID: <20060813073207.GJ99492@spiff.melthusia.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RIYY1s2vRbPFwWeW" Content-Disposition: inline X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . User-Agent: Mutt/1.5.12-2006-07-14 Cc: Subject: Periodic script for SpamAssassin port X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 07:32:11 -0000 --RIYY1s2vRbPFwWeW Content-Type: multipart/mixed; boundary="5I6of5zJg18YgZEa" Content-Disposition: inline --5I6of5zJg18YgZEa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I hacked together a quick periodic script that will run sa-update and restart spamd (as necessary). I figured it might be useful to add it to the port. --5I6of5zJg18YgZEa Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="503.sa-update" #!/bin/sh # # $FreeBSD$ # # Maintenance shell script to download updates from the SpamAssassin # central update host. # Define these variables in either /etc/periodic.conf or # /etc/periodic.conf.local to override the default values. # # daily_sa_update_enable="YES" # do update daily_sa_update_enable="YES" # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi rc=0 case "$daily_sa_update_enable" in [Yy][Ee][Ss]) /usr/local/bin/sa-update case "$?" in 0) echo "SpamAssassin updates sucessfully installed." # Restart the spamd daemon. If it isn't configured # in /etc/rc.conf this does nothing. /usr/local/etc/rc.d/sa-spamd restart if [ $? -gt 0 ]; then echo "Problem restarting spamd." rc=3 fi ;; 1) echo "No SpamAssassin updates available." ;; *) echo "Errors were reported during SpamAssassin update." rc=3 ;; esac ;; esac exit $rc --5I6of5zJg18YgZEa-- --RIYY1s2vRbPFwWeW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE3tV3Ru2t9DV9ZfsRAvblAKCRe+0o8caDahjR5fajCoIdxDh23gCgi+FS SNVW9Vgfvwrf5omPdJcZWYY= =0f3P -----END PGP SIGNATURE----- --RIYY1s2vRbPFwWeW--