add an rc script, ok jim@

This commit is contained in:
sthen 2011-05-01 20:05:54 +00:00
parent fb16f449fe
commit 6a349b7359
4 changed files with 16 additions and 8 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2010/11/19 07:23:06 espie Exp $
# $OpenBSD: Makefile,v 1.5 2011/05/01 20:05:54 sthen Exp $
COMMENT = greytrapping daemon to compliment OpenBSD spamd
DISTNAME = greyscanner-1.01
REVISION = 0
CATEGORIES = mail
HOMEPAGE = http://bitbucket.org/bonetruck/greyscanner/

View File

@ -1,6 +0,0 @@
You will need to edit /etc/rc.local as appropriate and add a section
similar to the following so that greyscanner is started automatically:
if [ -x ${PREFIX}/sbin/greyscanner ]; then
echo -n ' greyscanner'; ${PREFIX}/sbin/greyscanner
fi

View File

@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/06/11 22:27:29 jim Exp $
@comment $OpenBSD: PLIST,v 1.2 2011/05/01 20:05:54 sthen Exp $
@man man/man1/greyscanner.1
sbin/greyscanner
share/examples/greyscanner/
share/examples/greyscanner/greyscanner.conf
@sample ${SYSCONFDIR}/greyscanner.conf
@rcscript ${RCDIR}/greyscanner

View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# $OpenBSD: greyscanner.rc,v 1.1 2011/05/01 20:05:54 sthen Exp $
daemon="${TRUEPREFIX}/sbin/greyscanner"
. /etc/rc.d/rc.subr
pexp="/usr/bin/perl ${daemon}"
rc_reload=NO
rc_cmd $1