move to rc.d; ok jasper@

This commit is contained in:
sthen 2010-11-08 09:58:11 +00:00
parent 7f2b17ae6e
commit c32da50683
4 changed files with 14 additions and 27 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.36 2010/11/07 20:47:08 jasper Exp $
# $OpenBSD: Makefile,v 1.37 2010/11/08 09:58:11 sthen Exp $
COMMENT= manage remote serial consoles via TCP/IP
DISTNAME= conserver-8.1.16
REVISION= 1
REVISION= 2
CATEGORIES= comms
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.8 2010/11/07 20:47:08 jasper Exp $
@comment $OpenBSD: PLIST,v 1.9 2010/11/08 09:58:11 sthen Exp $
@bin bin/console
@man man/man1/console.1
@man man/man5/conserver.cf.5
@ -6,10 +6,10 @@
@man man/man8/conserver.8
@bin sbin/conserver
@bin sbin/conserver-convert
share/doc/pkg-readmes/${FULLPKGNAME}
share/examples/conserver/
share/examples/conserver/conserver.cf
@sample ${SYSCONFDIR}/conserver.cf
share/examples/conserver/conserver.passwd
@sample ${SYSCONFDIR}/conserver.passwd
@extraunexec rm -rf /var/consoles
@rcscript ${RCDIR}/conserver

View File

@ -1,23 +0,0 @@
$OpenBSD: README,v 1.1 2010/11/07 20:47:08 jasper Exp $
Using conserver in an OpenBSD environment:
1. Customize the configuration for your needs, see /etc/conserver.cf
2. Edit /etc/rc.conf.local file:
...
conserver=YES
3. Edit /etc/rc.local file:
echo -n 'starting local daemons:'
...
if [ -f /etc/conserver.cf ]; then
if [ X"${conserver}" = X"YES" -a -x ${PREFIX}/sbin/conserver ]; then
echo -n ' conserver'; ${PREFIX}/sbin/conserver -d -n
fi
fi
...
echo '.'
4. See the man pages for conserver, conserver.cf, and console as well as
the files in ${PREFIX}/share/examples/conserver for more information.

View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# $OpenBSD: conserver.rc,v 1.1 2010/11/08 09:58:11 sthen Exp $
. /etc/rc.d/rc.subr
daemon=${TRUEPREFIX}/sbin/conserver
daemon_flags="-d -n"
rc_cmd $1