Add an rc.d script for clamav-milter, from Benny

This commit is contained in:
sthen 2012-01-21 23:02:57 +00:00
parent ae58df5297
commit a58fb78b01
3 changed files with 15 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.73 2011/12/17 22:01:13 sthen Exp $
# $OpenBSD: Makefile,v 1.74 2012/01/21 23:02:57 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.97.3
REVISION= 1
REVISION= 2
CATEGORIES= security
SHARED_LIBS= clamav 18.1 \

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.19 2011/06/10 22:20:20 sthen Exp $
@comment $OpenBSD: PLIST,v 1.20 2012/01/21 23:02:58 sthen Exp $
@newgroup _clamav:539
@newuser _clamav:539:539:daemon:Clam AntiVirus:/nonexistent:/sbin/nologin
@extraunexec rm -fr /var/db/clamav/*
@ -61,5 +61,6 @@ share/examples/clamav/clamd.conf
share/examples/clamav/ex1.c
share/examples/clamav/freshclam.conf
@sample ${SYSCONFDIR}/freshclam.conf
@rcscript ${RCDIR}/clamav_milter
@rcscript ${RCDIR}/clamd
@rcscript ${RCDIR}/freshclam

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: clamav_milter.rc,v 1.1 2012/01/21 23:02:58 sthen Exp $
daemon="/usr/local/sbin/clamav-milter"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1