add rcscript

ok ajacoutot jakob (MAINTAINER)
This commit is contained in:
william 2011-09-14 01:45:31 +00:00
parent f40c8faef4
commit 7832d1549c
4 changed files with 15 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.56 2011/05/11 08:24:41 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.57 2011/09/14 01:45:31 william Exp $
COMMENT= SSL encryption wrapper for standard network daemons
@ -6,7 +6,7 @@ VERSION= 4.28
DISTNAME= stunnel-${VERSION}
CATEGORIES= security
REVISION= 0
REVISION= 1
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>

View File

@ -2,8 +2,3 @@ After stunnel is installed, you have to create a server certificate and
put the result in /etc/ssl/private/stunnel.pem. For more information on
how to create certificates, read ssl(8). For more information on stunnel,
read stunnel(8).
You can edit /etc/rc.local so that stunnel is started automatically:
if [ -x ${PREFIX}/sbin/stunnel ]; then
echo -n ' stunnel'; ${PREFIX}/sbin/stunnel
fi

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.10 2011/05/11 08:24:41 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.11 2011/09/14 01:45:31 william Exp $
@newgroup _stunnel:528
@newuser _stunnel:528:_stunnel:daemon:stunnel account:/var/stunnel:/sbin/nologin
@extraunexec rm -rf /var/stunnel/*
@ -10,3 +10,4 @@ share/examples/stunnel/stunnel.conf-sample
@sample ${SYSCONFDIR}/stunnel/stunnel.conf
@sample /var/stunnel/
@extra /var/run/stunnel.pid
@rcscript ${RCDIR}/stunnel

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: stunnel.rc,v 1.1 2011/09/14 01:45:31 william Exp $
daemon="${TRUEPREFIX}/sbin/stunnel"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1