add rc scripts. "go ahead" ajacoutot@
This commit is contained in:
parent
c7d59dddc2
commit
e1c7a100e8
@ -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 \
|
||||
|
@ -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
|
||||
|
13
security/clamav/pkg/clamav_daemon.rc
Normal file
13
security/clamav/pkg/clamav_daemon.rc
Normal 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
|
14
security/clamav/pkg/clamav_freshclam.rc
Normal file
14
security/clamav/pkg/clamav_freshclam.rc
Normal 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
|
Loading…
Reference in New Issue
Block a user