run conserver as user _conserver instead of root

change maintainer to sthen@
ok sthen@
This commit is contained in:
benno 2014-07-15 13:47:26 +00:00
parent 241f3f2ba2
commit 50c69717f4
6 changed files with 46 additions and 8 deletions

View File

@ -1,12 +1,12 @@
# $OpenBSD: Makefile,v 1.43 2013/03/11 01:30:26 espie Exp $
# $OpenBSD: Makefile,v 1.44 2014/07/15 13:47:26 benno Exp $
COMMENT= manage remote serial consoles via TCP/IP
DISTNAME= conserver-8.1.16
REVISION= 7
REVISION= 8
CATEGORIES= comms
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
HOMEPAGE= http://www.conserver.com/
@ -19,8 +19,14 @@ MASTER_SITES= ftp://ftp.conserver.com/conserver/
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --with-openssl \
--with-master=localhost
CONFIGURE_ARGS= --with-openssl \
--with-pidfile=${LOCALSTATEDIR}/run/conserver/conserver.pid \
--with-master=localhost \
--with-port=3109
post-install:
${INSTALL_DATA} ${FILESDIR}/console.cf \
${PREFIX}/share/examples/conserver/
TEST_TARGET= test

View File

@ -0,0 +1,6 @@
# $OpenBSD: console.cf,v 1.1 2014/07/15 13:47:26 benno Exp $
config * {
master localhost;
port 3109;
}

View File

@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST,v 1.9 2010/11/08 09:58:11 sthen Exp $
@comment $OpenBSD: PLIST,v 1.10 2014/07/15 13:47:26 benno Exp $
@newgroup _conserver:736
@newuser _conserver:736:_conserver:daemon:Serial console server:/nonexistent:/sbin/nologin
@bin bin/console
@man man/man1/console.1
@man man/man5/conserver.cf.5
@ -11,5 +13,7 @@ share/examples/conserver/conserver.cf
@sample ${SYSCONFDIR}/conserver.cf
share/examples/conserver/conserver.passwd
@sample ${SYSCONFDIR}/conserver.passwd
share/examples/conserver/console.cf
@sample ${SYSCONFDIR}/console.cf
@extraunexec rm -rf /var/consoles
@rcscript ${RCDIR}/conserver

View File

@ -0,0 +1,16 @@
$OpenBSD: README,v 1.3 2014/07/15 13:47:26 benno Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
As installed, conserver is running as user _conserver. If you want to
use conserver to manage local serial ports, you have to add _conserver
to group dialer in /etc/group:
dialer:*:117:_conserver
This is not necessary if you only use it to log and control access to
terminal servers over the network.
See more information at http://www.conserver.com/

View File

@ -1,10 +1,15 @@
#!/bin/sh
#
# $OpenBSD: conserver.rc,v 1.5 2011/12/17 22:01:12 sthen Exp $
# $OpenBSD: conserver.rc,v 1.6 2014/07/15 13:47:26 benno Exp $
daemon="${TRUEPREFIX}/sbin/conserver -d"
daemon_flags="-n"
daemon_user="_conserver"
. /etc/rc.d/rc.subr
rc_pre() {
install -d -o _conserver /var/run/conserver
}
rc_cmd $1

View File

@ -1,4 +1,4 @@
$OpenBSD: user.list,v 1.229 2014/07/14 08:36:41 landry Exp $
$OpenBSD: user.list,v 1.230 2014/07/15 13:47:26 benno Exp $
This file lists all users and groups that are created by ports or that
users are encouraged to create after installing a port (these are marked
@ -244,3 +244,4 @@ id user group port options
733 _pop3d _pop3d mail/pop3d
734 _icingacmd net/icinga
735 _wireshark net/wireshark
736 _conserver _conserver comms/conserver