summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-10-30 10:23:02 +0000
committergrant <grant@pkgsrc.org>2004-10-30 10:23:02 +0000
commit68e2fc993d6d6d477f5d0cc709478f0de0239b12 (patch)
tree1108f9909146b398583c4c8074bbea0efe813bf5 /mail
parent73eeb3da667d6a463914c0402d97dc8e7ff700e8 (diff)
downloadpkgsrc-68e2fc993d6d6d477f5d0cc709478f0de0239b12.tar.gz
add freshclamd rc.d script from xtraeme@. bump PKGREVISION.
Diffstat (limited to 'mail')
-rw-r--r--mail/clamav/MESSAGE5
-rw-r--r--mail/clamav/Makefile6
-rw-r--r--mail/clamav/files/freshclamd.sh24
3 files changed, 28 insertions, 7 deletions
diff --git a/mail/clamav/MESSAGE b/mail/clamav/MESSAGE
index 90c114d19f3..332db2378ee 100644
--- a/mail/clamav/MESSAGE
+++ b/mail/clamav/MESSAGE
@@ -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 @@ as `${ROOT_USER}' or `${CLAMAV_USER}':
${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 --git a/mail/clamav/Makefile b/mail/clamav/Makefile
index 01546154422..6b522db216d 100644
--- a/mail/clamav/Makefile
+++ b/mail/clamav/Makefile
@@ -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 @@ MESSAGE_SUBST+= CLAMAV_USER=${CLAMAV_USER}
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 --git a/mail/clamav/files/freshclamd.sh b/mail/clamav/files/freshclamd.sh
new file mode 100644
index 00000000000..b75a51d5f62
--- /dev/null
+++ b/mail/clamav/files/freshclamd.sh
@@ -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