summaryrefslogtreecommitdiff
path: root/app-admin/conserver
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/conserver
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/conserver')
-rw-r--r--app-admin/conserver/Manifest12
-rw-r--r--app-admin/conserver/conserver-8.1.18-r1.ebuild89
-rw-r--r--app-admin/conserver/conserver-8.1.18.ebuild86
-rw-r--r--app-admin/conserver/files/conserver-8.1.18-dmalloc.patch100
-rw-r--r--app-admin/conserver/files/conserver-prestrip.patch24
-rw-r--r--app-admin/conserver/files/conserver.confd6
-rw-r--r--app-admin/conserver/files/conserver.initd37
-rw-r--r--app-admin/conserver/files/conserver.initd-r137
-rw-r--r--app-admin/conserver/files/conserver.pam-pambase6
-rw-r--r--app-admin/conserver/metadata.xml26
10 files changed, 423 insertions, 0 deletions
diff --git a/app-admin/conserver/Manifest b/app-admin/conserver/Manifest
new file mode 100644
index 000000000000..7069a2b71689
--- /dev/null
+++ b/app-admin/conserver/Manifest
@@ -0,0 +1,12 @@
+AUX conserver-8.1.18-dmalloc.patch 2806 SHA256 4c2ce7620fd78d2d4b2fcdb11fbef03eb532124f95dc9653488d6c166fb59621 SHA512 90d3a4bd6fb3a58ece053e4680dab5b24f23c7265e5244f3185b67a143c58ccd2c200c2fccc0a6cec8444ab2895f358138cba05be27119b014187e539dfa78d6 WHIRLPOOL 6f2cc198e2b1d7e335c0f89ec674c0ccd0111811deafda3dbe61708b0621173ce7a51e524e9c3235a052c047f320aa0996bc94d159b11ef52eb112989e414c41
+AUX conserver-prestrip.patch 882 SHA256 3e333d4e3bce4faa67255fc8065c22590b24e812956f8d7b9645ae2788dd4839 SHA512 aeb112f8df0bd97ac3e3b909a42c54d2d16d6d59d39ea10dca9c86d2a6f866ba33c56fca77fb551c706314692469ed668a0158ff04712594192856b363bcb4af WHIRLPOOL 6a6b14c7a85d8bd3fa938792e580a84e31b6c048e54e06a137569a95f5382524d4c4687e01c66e7403d32accf829637e157dd44cd9edaf6523b7b9d4557540d6
+AUX conserver.confd 170 SHA256 ba9aa2d43ed094a90478bc01e763e3c4158ada567539ec2625dbdd0d08cd67db SHA512 af326d215eb7b6e4bdf68a9fc8b58c42dae9d0b31f653af181097c7cf4ee663bcc7c848f77ef051327e54a18e0202536b524b1b82d36693751f07d2c37f5b071 WHIRLPOOL 929d4e756c0e9e8a126f81425a28fa75584fab78d24291505920572946fac5394c33dc1df283e8f065a1a594a12caf3b0edc6bb6772be865824035acf0f4e0b4
+AUX conserver.initd 1055 SHA256 6eb6d2f9361496a896f4df1892b3dbad6f8c55b7629e2d148f05e7cdb2052738 SHA512 4bd10a1cd95707d6ebde6774ed88ef69552ed1b823baac4942958f9ecc2c5185f45d08d9a4707ad31320645c80e13a34b5fecbfb6eac9f282c2c422820986ac6 WHIRLPOOL 2e07da4552bcd782e6cb81ce0b1f1b563a05bb0a5df9e1790878755322f31ff5ecea7e16ac3fa730f8f8011d386d9e7c54e5daf1b8c4517594fad87f91ab681a
+AUX conserver.initd-r1 1088 SHA256 108da59df71dfb6494724a123da98321abc628f3e7a5beaaa32f1b8187181d85 SHA512 332e59313f066a8e313f65b0f04c4a7f464cb77f9ac2b3ab5beb24b5fee393d9036b9f80a1c9cc0f6ba43a5c3519801aea6d61f96bed861d5caa3130ab4ff1e3 WHIRLPOOL ac4eafc17d20d01950bea945fe38c087dd412fef4a8e5cd9ebab5b87447caf0d343d341d5030da6da7b88f14b6ebf0acd13dca857f34a887d2bf778d60e477db
+AUX conserver.pam-pambase 194 SHA256 7b1f7770c8781453907b2785c54b1043c8e66202437479c4d9664b71a0bac816 SHA512 5368394be5b9d97e0ae751d84fbb4848aa27fd57b1a2eea8c7919e56246e390985deca80f0019c2104034103f73ac382a5ab2129113a0ff0b63b0b8bd83648c9 WHIRLPOOL ad118856b14aae65730dc224882d442314b6620df51fae55b000ab74afb744f2f99e47d009c8733e18269915ac0f02e5cdc1bd2a3e0b67f8527ef9b39bbe99d4
+DIST conserver-8.1.18.tar.gz 323247 SHA256 3c73cebf732419c41c7c860032e41d83c1f152fe3115a30dc9851820b7864e14 SHA512 a8029aef5fd84f93eb3ae56ba7f751d79a6065c012bfd805e050f8c9edf09fd660c272d3f3ce0a47cfb17678574babbecad63f8bfd50ad4fdccdbabc2249435f WHIRLPOOL e12e54f2af25ef696ecf61818da0dd8cd09c23ca03e0fbb8445ee8eca5dc4ec2dbb25e88a68ac4a51c49b89838bf875ac65ac0e59d49337f36aa3929aa02dc81
+EBUILD conserver-8.1.18-r1.ebuild 2298 SHA256 f5c6c4e0721836ace4479030208b011494300f14d8c859730a4d0d09458a2007 SHA512 51e12d2e12ec0c793bc5df6ef8887404acea3bb07565e222afa7225a8578b4432b1197494047c24d0e96cde05b2e7f42404ac8e8c0509d773efc7b6aa4b121b2 WHIRLPOOL 25331585488cda2c222b4d4e31686c7fe5d5ba95d8d213c993a1e6f4fd7b2e0073e98c807858b7678864d12d87288b156e64f484ddd8d35c436b7659c7339048
+EBUILD conserver-8.1.18.ebuild 2230 SHA256 f56ded4a398d96d173fc727c9c6322a84bfab782551b2cad6b8494483d9ed14f SHA512 a77a9c4550d25b134033f7d549528f58438f06012d2ecc8564dde521ed4dca880b7fd9ad75b43e0061988574a43c395e7760bb3b10e9709bdae54cfbf9311dc1 WHIRLPOOL 0a02f6b57d545e67bcf3e7c2bbc2256f51495b667e40fc992d6df98f4e832fe1cc2b98faa3cb79a1537d97ce90f348cfa2982ac36d0e93a1b804590cc50c41bd
+MISC ChangeLog 3284 SHA256 20e16c1aab0c530c8202cc7bd3103a14bdd3a111bc75f8813e7f86b7bc9d759d SHA512 d34f862a217885fea4c48eaf3eeb2b739d773ad5794d32ddd84cb4f594fbfef73eab8e979181a1e19510b2d4e86a1be9bc0d331bb069ce394fa8c84329e0ad62 WHIRLPOOL e120e7f76a3683f7ce4cf07f2f93bcbac89ed9334b6a8fc30050a33768d91659b8b3e107ca58285aabfaffdb32ce946f26897562628832a704bea042f6787047
+MISC ChangeLog-2015 12410 SHA256 2ba145452e54ec60b7ff51d61888de1adfe61be3522277aa8aa13e8e360d8bd5 SHA512 2b9e88baeae008abe0580dc0c17f62fec81e903d16b0ec94aed108b905559cf103a2179182043d6c524aefc470ccfd241768b3e0c9543cafbba0dde73058c7ca WHIRLPOOL d2f884fedccf7c4a33a481937a7c56f58b634a7fb879fb22da8af62db7ce4b6b867941b61b6148cace75b13151ab2e1ca72e58ed4040207b8090330e3d2ce72f
+MISC metadata.xml 1247 SHA256 36a93b4105050235fda58276d36ce96316ae2c482caff74132b377f9b6a428a7 SHA512 a5d15b8c926b8f073c1c70bfe591d118880f58157e4e128d9f048f96898905bf0a49ea6710f8684d169d5e128a80bde242b9c1d787de59dba4449816d0e30e54 WHIRLPOOL 79f4fed7b1f62df0aaff4f6ce481299b969a980bd917d378ad00f5ea71796e4dcac7aa3f7adfada8ed6f38d04ffd619472b03d41cdc34a074d6e91b73c745327
diff --git a/app-admin/conserver/conserver-8.1.18-r1.ebuild b/app-admin/conserver/conserver-8.1.18-r1.ebuild
new file mode 100644
index 000000000000..c23494679c75
--- /dev/null
+++ b/app-admin/conserver/conserver-8.1.18-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit ssl-cert eutils pam autotools
+
+DESCRIPTION="Serial Console Manager"
+HOMEPAGE="http://www.conserver.com/"
+SRC_URI="http://www.conserver.com/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="kerberos libressl pam ssl tcpd debug"
+
+DEPEND="ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ pam? ( virtual/pam )
+ tcpd? ( sys-apps/tcp-wrappers )
+ debug? ( dev-libs/dmalloc )
+ kerberos? (
+ virtual/krb5
+ net-libs/libgssglue
+ )"
+RDEPEND="${DEPEND}
+ pam? ( >=sys-auth/pambase-20080219.1 )"
+
+src_prepare() {
+ # Apply patch to prevent package from stripping binaries
+ epatch "${FILESDIR}"/${PN}-prestrip.patch
+
+ # Apply patch to use custom dmalloc macro
+ epatch "${FILESDIR}"/${P}-dmalloc.patch
+
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with pam) \
+ $(use_with tcpd libwrap) \
+ $(use_with debug dmalloc) \
+ $(use_with kerberos gssapi) \
+ --with-logfile=/var/log/conserver.log \
+ --with-pidfile=/var/run/conserver.pid \
+ --with-cffile=conserver/conserver.cf \
+ --with-pwdfile=conserver/conserver.passwd \
+ --with-master=localhost \
+ --with-port=7782
+}
+
+src_install() {
+ emake DESTDIR="${D}" exampledir="/usr/share/doc/${PF}/examples" install
+
+ ## create data directory
+ dodir /var/consoles
+ fowners daemon:daemon /var/consoles
+ fperms 700 /var/consoles
+
+ ## add startup and sample config
+ newinitd "${FILESDIR}"/conserver.initd-r1 conserver
+ newconfd "${FILESDIR}"/conserver.confd conserver
+
+ dodir /etc/conserver
+ fperms 700 /etc/conserver
+ insinto /etc/conserver
+ newins "${S}"/conserver.cf/conserver.cf conserver.cf.sample
+ newins "${S}"/conserver.cf/conserver.passwd conserver.passwd.sample
+
+ ## add docs
+ dohtml conserver.html
+ dodoc CHANGES FAQ PROTOCOL README TODO
+ dodoc conserver/Sun-serial contrib/maketestcerts
+ newdoc conserver.cf/conserver.cf conserver.cf.sample
+
+ # Add pam config
+ newpamd "${FILESDIR}"/conserver.pam-pambase conserver
+}
+
+pkg_postinst() {
+ # Add certs if SSL use flag is enabled
+ if use ssl && [ ! -f "${ROOT}"/etc/ssl/conserver/conserver.key ]; then
+ install_cert /etc/ssl/conserver/conserver
+ fi
+}
diff --git a/app-admin/conserver/conserver-8.1.18.ebuild b/app-admin/conserver/conserver-8.1.18.ebuild
new file mode 100644
index 000000000000..cb1fea8dbe92
--- /dev/null
+++ b/app-admin/conserver/conserver-8.1.18.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit ssl-cert eutils pam autotools
+
+DESCRIPTION="Serial Console Manager"
+HOMEPAGE="http://www.conserver.com/"
+SRC_URI="http://www.conserver.com/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
+IUSE="kerberos pam ssl tcpd debug"
+
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
+ pam? ( virtual/pam )
+ tcpd? ( sys-apps/tcp-wrappers )
+ debug? ( dev-libs/dmalloc )
+ kerberos? (
+ virtual/krb5
+ net-libs/libgssglue
+ )"
+RDEPEND="${DEPEND}
+ pam? ( >=sys-auth/pambase-20080219.1 )"
+
+src_prepare() {
+ # Apply patch to prevent package from stripping binaries
+ epatch "${FILESDIR}"/${PN}-prestrip.patch
+
+ # Apply patch to use custom dmalloc macro
+ epatch "${FILESDIR}"/${P}-dmalloc.patch
+
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with pam) \
+ $(use_with tcpd libwrap) \
+ $(use_with debug dmalloc) \
+ $(use_with kerberos gssapi) \
+ --with-logfile=/var/log/conserver.log \
+ --with-pidfile=/var/run/conserver.pid \
+ --with-cffile=conserver/conserver.cf \
+ --with-pwdfile=conserver/conserver.passwd \
+ --with-master=localhost \
+ --with-port=7782
+}
+
+src_install() {
+ emake DESTDIR="${D}" exampledir="/usr/share/doc/${PF}/examples" install
+
+ ## create data directory
+ dodir /var/consoles
+ fowners daemon:daemon /var/consoles
+ fperms 700 /var/consoles
+
+ ## add startup and sample config
+ newinitd "${FILESDIR}"/conserver.initd conserver
+ newconfd "${FILESDIR}"/conserver.confd conserver
+
+ dodir /etc/conserver
+ fperms 700 /etc/conserver
+ insinto /etc/conserver
+ newins "${S}"/conserver.cf/conserver.cf conserver.cf.sample
+ newins "${S}"/conserver.cf/conserver.passwd conserver.passwd.sample
+
+ ## add docs
+ dohtml conserver.html
+ dodoc CHANGES FAQ PROTOCOL README TODO
+ dodoc conserver/Sun-serial contrib/maketestcerts
+ newdoc conserver.cf/conserver.cf conserver.cf.sample
+
+ # Add pam config
+ newpamd "${FILESDIR}"/conserver.pam-pambase conserver
+}
+
+pkg_postinst() {
+ # Add certs if SSL use flag is enabled
+ if use ssl && [ ! -f "${ROOT}"/etc/ssl/conserver/conserver.key ]; then
+ install_cert /etc/ssl/conserver/conserver
+ fi
+}
diff --git a/app-admin/conserver/files/conserver-8.1.18-dmalloc.patch b/app-admin/conserver/files/conserver-8.1.18-dmalloc.patch
new file mode 100644
index 000000000000..ff82f74b261c
--- /dev/null
+++ b/app-admin/conserver/files/conserver-8.1.18-dmalloc.patch
@@ -0,0 +1,100 @@
+--- configure.in 2011-08-19 01:11:06.000000000 -0400
++++ configure.in 2011-08-19 02:06:50.000000000 -0400
+@@ -320,6 +320,8 @@
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+
++AM_WITH_DMALLOC([cons_with_dmalloc="YES"],[cons_with_dmalloc="NO"])
++
+ dnl ### Compiler characteristics. ##################################
+ AC_AIX
+ AC_C_CONST
+@@ -578,51 +580,6 @@
+ fi]
+ )
+
+-cons_with_dmalloc="NO"
+-AC_ARG_WITH(dmalloc,
+- AS_HELP_STRING([--with-dmalloc@<:@=PATH@:>@],
+- [Compile in dmalloc support]),
+- [if test "$withval" != "no"; then
+- if test "$withval" != "yes"; then
+- DMALLOCCPPFLAGS="-I$withval/include"
+- if test "$use_dash_r" != "yes"; then
+- DMALLOCLDFLAGS="-L$withval/lib"
+- else
+- DMALLOCLDFLAGS="-L$withval/lib -R$withval/lib"
+- fi
+- else
+- DMALLOCCPPFLAGS=""
+- DMALLOCLDFLAGS=""
+- fi
+-
+- oCPPFLAGS="$CPPFLAGS"
+- oLDFLAGS="$LDFLAGS"
+- oLIBS="$LIBS"
+- have_dmalloc=no
+-
+- CPPFLAGS="$CPPFLAGS $DMALLOCCPPFLAGS"
+- LDFLAGS="$LDFLAGS $DMALLOCLDFLAGS"
+-
+- AC_CHECK_HEADER([dmalloc.h],
+- [LIBS="$LIBS -ldmalloc"
+- AC_MSG_CHECKING(for dmalloc libraries -ldmalloc)
+- AC_TRY_LINK([#include <dmalloc.h>
+- ],[dmalloc_debug(0)],
+- [AC_MSG_RESULT(yes)
+- cons_with_dmalloc="YES"
+- AC_DEFINE(HAVE_DMALLOC)
+- have_dmalloc=yes],
+- [AC_MSG_RESULT(no)])],)
+-
+- if test $have_dmalloc = no; then
+- LIBS="$oLIBS"
+- CPPFLAGS="$oCPPFLAGS"
+- LDFLAGS="$oLDFLAGS"
+- fi
+- fi]
+-)
+-
+-
+ dnl ### Check for needed functions. ################################
+
+ dnl dnl The following basically stollen from the less-358 distribution, but
+--- /dev/null 2011-08-07 13:18:05.535976733 -0400
++++ m4/dmalloc.m4 2011-08-19 03:49:03.755073497 -0400
+@@ -0,0 +1,34 @@
++## ----------------------------------- ## -*- Autoconf -*-
++## Check if --with-dmalloc was given. ##
++## From Franc,ois Pinard ##
++## ----------------------------------- ##
++
++# Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2010,
++# 2011 Free Software Foundation, Inc.
++#
++# This file is free software; the Free Software Foundation
++# gives unlimited permission to copy and/or distribute it,
++# with or without modifications, as long as this notice is preserved.
++
++# serial 7
++
++dnl AM_WITH_DMALLOC([ACTION-IF-FOUND],[ACTION-IF-NOT])
++AC_DEFUN([AM_WITH_DMALLOC],
++[AC_MSG_CHECKING([if malloc debugging is wanted])
++AC_ARG_WITH([dmalloc],
++[AS_HELP_STRING([--with-dmalloc],
++ [use dmalloc, as in http://www.dmalloc.com])],
++[if test "$withval" = yes; then
++ AC_MSG_RESULT([yes])
++ AC_DEFINE([WITH_DMALLOC], [1],
++ [Define if using the dmalloc debugging malloc package])
++ LIBS="$LIBS -ldmalloc"
++ LDFLAGS="$LDFLAGS -g"
++ [$1]
++else
++ AC_MSG_RESULT([no])
++ [$2]
++fi], [AC_MSG_RESULT([no])])
++])
++
++AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC])
diff --git a/app-admin/conserver/files/conserver-prestrip.patch b/app-admin/conserver/files/conserver-prestrip.patch
new file mode 100644
index 000000000000..e67c49da1a66
--- /dev/null
+++ b/app-admin/conserver/files/conserver-prestrip.patch
@@ -0,0 +1,24 @@
+diff -Nuar conserver-8.1.14.orig/conserver/Makefile.in conserver-8.1.14/conserver/Makefile.in
+--- conserver-8.1.14.orig/conserver/Makefile.in 2006-10-25 17:41:00.398082243 -0600
++++ conserver-8.1.14/conserver/Makefile.in 2006-10-25 17:41:27.876759095 -0600
+@@ -13,7 +13,7 @@
+
+ ### Installation programs and flags
+ INSTALL = @INSTALL@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
++INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ LN_S = @LN_S@
+ MKDIR = @MKDIR@
+
+diff -Nuar conserver-8.1.14.orig/console/Makefile.in conserver-8.1.14/console/Makefile.in
+--- conserver-8.1.14.orig/console/Makefile.in 2006-10-25 17:41:00.401081662 -0600
++++ conserver-8.1.14/console/Makefile.in 2006-10-25 17:41:18.188635834 -0600
+@@ -9,7 +9,7 @@
+
+ ### Installation programs and flags
+ INSTALL = @INSTALL@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
++INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ LN_S = @LN_S@
+ MKDIR = @MKDIR@
+
diff --git a/app-admin/conserver/files/conserver.confd b/app-admin/conserver/files/conserver.confd
new file mode 100644
index 000000000000..4544fed4ab36
--- /dev/null
+++ b/app-admin/conserver/files/conserver.confd
@@ -0,0 +1,6 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+## Config file for /etc/init.d/conserver
+
+CONSERVER_OPTS="-d"
diff --git a/app-admin/conserver/files/conserver.initd b/app-admin/conserver/files/conserver.initd
new file mode 100644
index 000000000000..0c0771c72c6b
--- /dev/null
+++ b/app-admin/conserver/files/conserver.initd
@@ -0,0 +1,37 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need clock
+}
+
+checkconfig() {
+ if [ ! -e /etc/conserver/conserver.cf ] ; then
+ eerror "You need to create /etc/conserver/conserver.cf first."
+ eerror "A sample is placed there to be renamed and ajusted."
+ eerror "Read the man page or see /usr/share/doc/conserver-<version>/."
+ return 1
+ fi
+
+ if [ ! -e /etc/conserver/conserver.passwd ] ; then
+ eerror "You need to create /etc/conserver/conserver.passwd first."
+ eerror "A sample is placed there to be renamed and ajusted."
+ eerror "Read the man page or see /usr/share/doc/conserver-<version>/."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting conserver"
+ start-stop-daemon --start --quiet --exec \
+ /usr/sbin/conserver -- ${CONSERVER_OPTS} 1>/dev/null
+ eend $? "Failed to start conserver"
+}
+
+stop() {
+ ebegin "Stopping conserver"
+ start-stop-daemon --stop --quiet --pidfile /var/run/conserver.pid
+ eend $? "Failed to stop conserver"
+}
diff --git a/app-admin/conserver/files/conserver.initd-r1 b/app-admin/conserver/files/conserver.initd-r1
new file mode 100644
index 000000000000..907b1b711705
--- /dev/null
+++ b/app-admin/conserver/files/conserver.initd-r1
@@ -0,0 +1,37 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need clock
+}
+
+checkconfig() {
+ if [ ! -e /etc/conserver/conserver.cf ] ; then
+ eerror "You need to create /etc/conserver/conserver.cf first."
+ eerror "A sample is placed there to be renamed and ajusted."
+ eerror "Read the man page or see /usr/share/doc/conserver-<version>/."
+ return 1
+ fi
+
+ if [ ! -e /etc/conserver/conserver.passwd ] ; then
+ eerror "You need to create /etc/conserver/conserver.passwd first."
+ eerror "A sample is placed there to be renamed and ajusted."
+ eerror "Read the man page or see /usr/share/doc/conserver-<version>/."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting conserver"
+ start-stop-daemon --start --quiet --pidfile /var/run/conserver.pid --exec \
+ /usr/sbin/conserver -- ${CONSERVER_OPTS} 1>/dev/null
+ eend $? "Failed to start conserver"
+}
+
+stop() {
+ ebegin "Stopping conserver"
+ start-stop-daemon --stop --quiet --pidfile /var/run/conserver.pid
+ eend $? "Failed to stop conserver"
+}
diff --git a/app-admin/conserver/files/conserver.pam-pambase b/app-admin/conserver/files/conserver.pam-pambase
new file mode 100644
index 000000000000..30025fe1403e
--- /dev/null
+++ b/app-admin/conserver/files/conserver.pam-pambase
@@ -0,0 +1,6 @@
+auth required pam_securetty.so
+auth include system-remote-login
+
+account include system-remote-login
+password include system-remote-login
+session include system-remote-login
diff --git a/app-admin/conserver/metadata.xml b/app-admin/conserver/metadata.xml
new file mode 100644
index 000000000000..324e981b462a
--- /dev/null
+++ b/app-admin/conserver/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dan@danweeks.net</email>
+ <name>Dan Weeks</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Conserver is an application that allows multiple users to watch a serial
+ console at the same time. It can log the data, allows users to take
+ write-access of a console (one at a time), and has a variety of bells
+ and whistles to accentuate that basic functionality. The idea is that
+ conserver will log all your serial traffic so you can go back and review
+ why something crashed, look at changes (if done on the console), or tie
+ the console logs into a monitoring system (just watch the logfiles it
+ creates). With multi-user capabilities you can work on equipment with
+ others, mentor, train, etc. It also does all that client-server stuff so
+ that, assuming you have a network connection, you can interact with any
+ of the equipment from home or wherever.
+ </longdescription>
+</pkgmetadata>