add rc scripts. "go ahead" ajacoutot@

This commit is contained in:
sthen 2010-11-04 11:18:12 +00:00
parent c7d59dddc2
commit e1c7a100e8
4 changed files with 32 additions and 2 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.56 2010/10/25 23:36:38 sthen Exp $
# $OpenBSD: Makefile,v 1.57 2010/11/04 11:18:12 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.96.4
REVISION= 0
CATEGORIES= security
SHARED_LIBS= clamav 16.0 \

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.15 2010/09/21 13:18:26 sthen Exp $
@comment $OpenBSD: PLIST,v 1.16 2010/11/04 11:18:12 sthen Exp $
@newgroup _clamav:539
@newuser _clamav:539:539:daemon:Clam AntiVirus:/nonexistent:/sbin/nologin
bin/clamav-config
@ -59,3 +59,5 @@ share/examples/clamav/clamd.conf
share/examples/clamav/ex1.c
share/examples/clamav/freshclam.conf
@sample ${SYSCONFDIR}/freshclam.conf
@rcscript ${RCDIR}/clamav_daemon
@rcscript ${RCDIR}/clamav_freshclam

View File

@ -0,0 +1,13 @@
#!/bin/sh
#
# $OpenBSD: clamav_daemon.rc,v 1.1 2010/11/04 11:18:12 sthen Exp $
. /etc/rc.d/rc.subr
daemon="${TRUEPREFIX}/sbin/clamd"
rc_reload() {
rc_err "$0: reload is not supported"
}
rc_cmd $1

View File

@ -0,0 +1,14 @@
#!/bin/sh
#
# $OpenBSD: clamav_freshclam.rc,v 1.1 2010/11/04 11:18:12 sthen Exp $
. /etc/rc.d/rc.subr
daemon="${TRUEPREFIX}/bin/freshclam"
daemon_flags="-d"
rc_reload() {
rc_err "$0: reload is not supported"
}
rc_cmd $1