pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/clamav add freshclamd rc.d script from xtraeme@. ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e96c046eb58f
branches: trunk
changeset: 482592:e96c046eb58f
user: grant <grant%pkgsrc.org@localhost>
date: Sat Oct 30 10:23:02 2004 +0000
description:
add freshclamd rc.d script from xtraeme@. bump PKGREVISION.
diffstat:
mail/clamav/MESSAGE | 5 +----
mail/clamav/Makefile | 6 +++---
mail/clamav/files/freshclamd.sh | 24 ++++++++++++++++++++++++
3 files changed, 28 insertions(+), 7 deletions(-)
diffs (71 lines):
diff -r 7db0dc03fea9 -r e96c046eb58f mail/clamav/MESSAGE
--- a/mail/clamav/MESSAGE Sat Oct 30 09:50:33 2004 +0000
+++ b/mail/clamav/MESSAGE Sat Oct 30 10:23:02 2004 +0000
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.2 2004/10/19 00:02:44 grant Exp $
+$NetBSD: MESSAGE,v 1.3 2004/10/30 10:23:02 grant Exp $
You should update the virus databases to the latest ones available
before using ClamAV. This can be done by running the following command
@@ -7,9 +7,6 @@
${PREFIX}/bin/freshclam
-It is recommended that the virus database be updated hourly by adding the
-appropriate cron job.
-
Note that as of version 0.80, clamav.conf has been replaced by
clamd.conf. Be sure to update your configuration to reflect this.
diff -r 7db0dc03fea9 -r e96c046eb58f mail/clamav/Makefile
--- a/mail/clamav/Makefile Sat Oct 30 09:50:33 2004 +0000
+++ b/mail/clamav/Makefile Sat Oct 30 10:23:02 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2004/10/20 10:18:15 grant Exp $
+# $NetBSD: Makefile,v 1.29 2004/10/30 10:23:02 grant Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
@@ -34,7 +34,7 @@
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
-RCD_SCRIPTS= clamd
+RCD_SCRIPTS= clamd freshclamd
PKG_GROUPS+= ${CLAMAV_GROUP}
PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}::Clamav\\ User
diff -r 7db0dc03fea9 -r e96c046eb58f mail/clamav/files/freshclamd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/clamav/files/freshclamd.sh Sat Oct 30 10:23:02 2004 +0000
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: freshclamd.sh,v 1.1 2004/10/30 10:23:02 grant Exp $
+#
+# PROVIDE: freshclamd
+# REQUIRE: DAEMON LOGIN clamd
+
+
+name="freshclamd"
+command="@PREFIX@/bin/freshclam"
+required_files="@PKG_SYSCONFDIR@/freshclam.conf"
+pidfile="@VARBASE@/run/${name}.pid"
+sig_stop="KILL"
+freshclamd_user="@CLAMAV_USER@"
+command_args="-d -c 2"
+
+. /etc/rc.subr
+
+load_rc_config $name
+run_rc_command "$1"
+
+if [ "$1" != "stop" ]; then
+ echo $(check_process $command) > $pidfile
+fi
Home |
Main Index |
Thread Index |
Old Index