summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wever <weeve@gentoo.org>2003-10-03 23:40:19 +0000
committerJason Wever <weeve@gentoo.org>2003-10-03 23:40:19 +0000
commit682d4a48a1999924c7e141943be0a87dc0b6bc8a (patch)
tree9f9e84fc4573a5fc2e740361138e348462a4ac5d /app-admin
parentInitial import. Satisfies bug #8652. (diff)
downloadhistorical-682d4a48a1999924c7e141943be0a87dc0b6bc8a.tar.gz
historical-682d4a48a1999924c7e141943be0a87dc0b6bc8a.tar.bz2
historical-682d4a48a1999924c7e141943be0a87dc0b6bc8a.zip
Initial import. Satisfies bug #8652.
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/conserver/Manifest8
-rw-r--r--app-admin/conserver/conserver-8.0.1.ebuild66
-rw-r--r--app-admin/conserver/files/conserver.confd7
-rw-r--r--app-admin/conserver/files/conserver.initd38
-rw-r--r--app-admin/conserver/files/digest-conserver-8.0.11
-rw-r--r--app-admin/conserver/metadata.xml13
6 files changed, 130 insertions, 3 deletions
diff --git a/app-admin/conserver/Manifest b/app-admin/conserver/Manifest
index 5187cd6768cd..a6a74614ca90 100644
--- a/app-admin/conserver/Manifest
+++ b/app-admin/conserver/Manifest
@@ -1,4 +1,6 @@
-MD5 862d21189f68c92225dd9f4f7112cb49 conserver-8.0.1.ebuild 1715
-MD5 7ed8772378681a38e0ea09e0b3f48036 files/conserver.confd 196
-MD5 f271312b525b0601b67e0e7c5b530d65 files/conserver.initd 1088
+MD5 c27b26abaf603255113770c511088f26 conserver-8.0.1.ebuild 1900
+MD5 db109ae3e620120b654118ff198a9d0a metadata.xml 1062
+MD5 8f61413547b954e66281a1f81378b38c ChangeLog 424
+MD5 3a98b3aa2654214cd71e8b2a5b41e4d2 files/conserver.confd 299
+MD5 338bf82fc823c16c8cd8924440abb096 files/conserver.initd 1203
MD5 3d435ff83d5bc903d39c0c25154442c2 files/digest-conserver-8.0.1 67
diff --git a/app-admin/conserver/conserver-8.0.1.ebuild b/app-admin/conserver/conserver-8.0.1.ebuild
new file mode 100644
index 000000000000..58a420a9fd8b
--- /dev/null
+++ b/app-admin/conserver/conserver-8.0.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/conserver/conserver-8.0.1.ebuild,v 1.1 2003/10/03 23:40:16 weeve Exp $
+
+DESCRIPTION="Conserver - Serial Console Manager"
+HOMEPAGE="http://www.conserver.com/"
+SRC_URI="ftp://ftp.conserver.com/conserver/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~sparc"
+
+IUSE="pam ssl tcpd"
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
+ pam? ( sys-libs/pam )
+ tcpd? ( sys-apps/tcp-wrappers )"
+
+src_compile() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with pam) \
+ $(use_with tcpd libwrap) \
+ --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 || die "./configure failed"
+
+ emake || die "compile failed"
+}
+
+src_install () {
+ einstall exampledir=${D}/usr/share/doc/${PF}/examples || die "problem with install"
+
+ ## create data directory
+ dodir /var/consoles
+ fowners daemon.daemon /var/consoles
+ fperms 700 /var/consoles
+
+ ## add startup and sample config
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/conserver.initd conserver
+ insinto /etc/conf.d
+ newins ${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 INSTALL LICENSE README TODO
+ dodoc conserver/Sun-serial conserver.cf/INSTALL
+ dodoc contrib/maketestcerts
+ newdoc conserver.cf/conserver.cf conserver.cf.sample
+}
+
+pkg_postinst() {
+ einfo "Config-file formats _changed_ with version 8.0 !"
+ if use ssl; then
+ einfo "You will need to create certificates to use the ssl-feature."
+ fi
+}
diff --git a/app-admin/conserver/files/conserver.confd b/app-admin/conserver/files/conserver.confd
new file mode 100644
index 000000000000..929b6e7a3448
--- /dev/null
+++ b/app-admin/conserver/files/conserver.confd
@@ -0,0 +1,7 @@
+# Copyright 2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-admin/conserver/files/conserver.confd,v 1.1 2003/10/03 23:40:16 weeve Exp $
+
+## 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..421d19279282
--- /dev/null
+++ b/app-admin/conserver/files/conserver.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/app-admin/conserver/files/conserver.initd,v 1.1 2003/10/03 23:40:16 weeve Exp $
+
+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/digest-conserver-8.0.1 b/app-admin/conserver/files/digest-conserver-8.0.1
new file mode 100644
index 000000000000..366cb98ded20
--- /dev/null
+++ b/app-admin/conserver/files/digest-conserver-8.0.1
@@ -0,0 +1 @@
+MD5 1b89e2f485402a273b1c96a419431ab9 conserver-8.0.1.tar.gz 251707
diff --git a/app-admin/conserver/metadata.xml b/app-admin/conserver/metadata.xml
new file mode 100644
index 000000000000..e3d1c5f50480
--- /dev/null
+++ b/app-admin/conserver/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>weeve@gentoo.org</email>
+ <name>Jason Wever</name>
+</maintainer>
+<longdescription>
+From Conserver's website:
+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>