summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2013-10-29 21:12:59 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2013-10-29 21:12:59 +0000
commit59d7b64af889f20885def4bb5ca2d10f6300e676 (patch)
treee07891523ec58b4ad9c2fdeca3ec23c22c7f08bc /app-misc/conmux
parentChange to git-r3 again, following partial fix of bug 489100. (diff)
downloadgentoo-2-59d7b64af889f20885def4bb5ca2d10f6300e676.tar.gz
gentoo-2-59d7b64af889f20885def4bb5ca2d10f6300e676.tar.bz2
gentoo-2-59d7b64af889f20885def4bb5ca2d10f6300e676.zip
Initial commit for the conmux console multiplexor
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)
Diffstat (limited to 'app-misc/conmux')
-rw-r--r--app-misc/conmux/ChangeLog10
-rw-r--r--app-misc/conmux/Manifest7
-rw-r--r--app-misc/conmux/conmux-0.15.1.ebuild55
-rw-r--r--app-misc/conmux/files/conmux-registry.confd4
-rwxr-xr-xapp-misc/conmux/files/conmux-registry.initd28
-rw-r--r--app-misc/conmux/files/conmux.confd14
-rwxr-xr-xapp-misc/conmux/files/conmux.initd32
-rw-r--r--app-misc/conmux/metadata.xml14
8 files changed, 164 insertions, 0 deletions
diff --git a/app-misc/conmux/ChangeLog b/app-misc/conmux/ChangeLog
new file mode 100644
index 000000000000..2c82d3de1cd7
--- /dev/null
+++ b/app-misc/conmux/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-misc/conmux
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/conmux/ChangeLog,v 1.1 2013/10/29 21:12:59 hwoarang Exp $
+
+*conmux-0.15.1 (29 Oct 2013)
+
+ 29 Oct 2013; Markos Chandras <hwoarang@gentoo.org> +conmux-0.15.1.ebuild,
+ +files/conmux-registry.confd, +files/conmux-registry.initd,
+ +files/conmux.confd, +files/conmux.initd, +metadata.xml:
+ Initial commit for the conmux console multiplexor
diff --git a/app-misc/conmux/Manifest b/app-misc/conmux/Manifest
new file mode 100644
index 000000000000..47777479836c
--- /dev/null
+++ b/app-misc/conmux/Manifest
@@ -0,0 +1,7 @@
+AUX conmux-registry.confd 120 SHA256 de73b8d55f90bda498a3f42a86b79289738a3a6846b81c44fe043c59d68928cc SHA512 aeae7f7d127d67e5ae96a63fbd694624d599fd329698ea72bd0fb5a4a0d29df3d60c5bdd750431acf13a36f53960af477b483a48324540eda5a4b55b266c081c WHIRLPOOL cdae2d4f3c9a1a9c782585dac955fbb29715ab7f4e96bbe5003fa944e3c191d5dce7b26d3708f89336f71fa41129b36d3a0603ebfc71f9e1706ce8ce6b48dd15
+AUX conmux-registry.initd 717 SHA256 ffbf2ff65f7d05442850a24ea1aa5e4849a07428b701702a942360043dce9f3b SHA512 058eb97b49f0a9298a4940162f1bef1e079f03874e6927b43db5c5152c35f435d89dcd083c7a7f4283f300924e911c89326bd954a451259892cff5c86b15e3c1 WHIRLPOOL 004fe68623687ba58586f5d1bfe31e3b848a8317e207c1732e2530c7a9c096a36e83e409a52eb90a4bdd36cbc3038e69f09652528e2f3a018136ad49c7d21943
+AUX conmux.confd 432 SHA256 5f0f89ed25233677e52017573c188c48b6a9cccfe1dba3ad4338341ee844cf96 SHA512 50c6640f231e878817f31f399e8345d82c26bacbc8648d78b444eb572e7fad4c19d1f5b517474c412031dc65345723bffe95358542a6dd4af99a3007d12a7bc0 WHIRLPOOL 23ee4f04118b7536ea12e4c30b39d340ff11271784fc5cf3ed552a742ef0a035d07877a80f9c30751be7869d91a96e9aa2c46127df4ea053a6549bfdb559988c
+AUX conmux.initd 727 SHA256 08ba4c7872d0a83b457bada8a0053d0018ee9ef6c2852d461d9461e6be452aa6 SHA512 7c3eb62a56883b3d5496c6038a9ef1b43370e9791ae6caf033d2d20c9f4b7246483255ca6bffce36fc3ee25dd1049d62e80895a9c73a43fca281c4ccdc1573f8 WHIRLPOOL cdd840fcb484cca2e1fd935579aa65414c777853149e9000293705978a698712f104220731dcdc1fa3129624f2987f686bef91ccc9af6c402b015e40690b9d3f
+DIST conmux-0.15.1.tar.gz 50713 SHA256 52e0e8d8ae2ad679e498f2a8c0a01ec536738e9daf09d88f9e256c349c5e9cb7 SHA512 8138d6d10b4382709828277503d1c23c52fd43109ebad79073be9003c39a9e62c2b7d9d6e78a9e81797c22871985e50a58df0d538ff63e3f580c9a229b520107 WHIRLPOOL 0d6ea7183063d5a3dee4e884ad4de9d694fa0c8116e94f8bee9ed80f26e5ed009a8ec889365b90efe34ffbb2e3f9c3c28a408924fb8b9c68a8c63ecfa0e5325b
+EBUILD conmux-0.15.1.ebuild 1687 SHA256 13fe683be8b9e0f20dc0217d239805df24171a645843eecc6d4dedc91242aec9 SHA512 6b0c31f47392b98cdbd96fa170ebba83ed7886d462ac933252b9b4ec8cbeb84fe3a553724df090ed23c9988b0f64e2b700f6cf3a04e7f5f6be864cd2c01feae5 WHIRLPOOL 9edcb69bf7bf658d5bf48f68f8dd5f2350dc28571c775ef66bf4febc5b59d6169f75484558d2b4e408986395cd6cf3f03d4ab7fb7ad3da4da05c193b9838ac9a
+MISC metadata.xml 496 SHA256 a26ad94fb939652b8c7522a21a042984d347a499b6b5bfe26acd38850ea6303e SHA512 449ce6302725d6ebdb556033ac688902d0edeb7d969fa072b68f182d6083c7cbc2cbd3c62ec873d9dfaefc4d42f68d48b0d9c2c8ecfdb21ff7272d794421fbb2 WHIRLPOOL d839e2f55282a9a7b0a2e7b5173b1090aa6021d2f6b3dcac4c61d7213b75a7819637af4d5b3b41aba52dcc2def75ab9aa31db9a4aa6c7c05d184e8112aa43627
diff --git a/app-misc/conmux/conmux-0.15.1.ebuild b/app-misc/conmux/conmux-0.15.1.ebuild
new file mode 100644
index 000000000000..236d9ce1e516
--- /dev/null
+++ b/app-misc/conmux/conmux-0.15.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/conmux/conmux-0.15.1.ebuild,v 1.1 2013/10/29 21:12:59 hwoarang Exp $
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="A console multiplexor"
+HOMEPAGE="https://github.com/autotest/autotest"
+SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-perl/IO-Multiplex
+ dev-perl/URI"
+DEPEND=""
+
+src_install() {
+ perlinfo
+ emake BASE="${D}/usr" install
+ dodir /etc/${PN}
+ # no need to have the init script in /sbin
+ rm "${D}"/usr/sbin/start || die "failed to remove init script"
+ # console is too generic. Make it conmux-console instead
+ mv "${D}"/usr/bin/console "${D}"/usr/bin/${PN}-console || \
+ die "failed to rename console to conmux-console"
+ # Fix up directory for the module
+ perlinfo
+ dodir ${VENDOR_LIB}/${PN}
+ mv "${D}"/usr/lib/Conmux.pm "${D}"/${VENDOR_LIB}/. || \
+ die "failed to move the Conmux.pm module"
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newinitd "${FILESDIR}"/${PN}-registry.initd ${PN}-registry
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newconfd "${FILESDIR}"/${PN}-registry.confd ${PN}-registry
+ dodoc README
+}
+
+pkg_postinst() {
+ elog ""
+ elog "If you have more than one serial ports and you want to use all"
+ elog "of them with conmux, copy and paste the 'conmux' init.d and conf.d"
+ elog "files as many times as you want, pointing each conf.d file to the"
+ elog "device's configuration file."
+ elog ""
+ elog "See /etc/conf.d/conmux and"
+ elog "https://github.com/autotest/autotest/wiki/Conmux-OriginalDocumentation"
+ elog "https://github.com/autotest/autotest/wiki/Conmux-Howto"
+ elog "for more information"
+ elog ""
+}
diff --git a/app-misc/conmux/files/conmux-registry.confd b/app-misc/conmux/files/conmux-registry.confd
new file mode 100644
index 000000000000..ac7bd8c20d5e
--- /dev/null
+++ b/app-misc/conmux/files/conmux-registry.confd
@@ -0,0 +1,4 @@
+# Port for Registry listener
+CONMAX_REGISTRY_PORT="63000"
+# Log file
+CONMAX_REGISTRY_LOG="/var/log/conmux-registry.log"
diff --git a/app-misc/conmux/files/conmux-registry.initd b/app-misc/conmux/files/conmux-registry.initd
new file mode 100755
index 000000000000..736fecf6a8ac
--- /dev/null
+++ b/app-misc/conmux/files/conmux-registry.initd
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+checkconfig() {
+ # Set sane defaults
+ if [[ -z ${CONMUX_REGISTRY_PORT} ]]; then
+ CONMUX_REGISTRY_PORT="63000"
+ fi
+ if [[ -z ${CONMUX_REGISTRY_LOG} ]]; then
+ CONMUX_REGISTRY_LOG="/var/log/conmux-registry.log"
+ fi
+}
+
+start() {
+ checkconfig
+ ebegin "Starting conmux daemon"
+ touch ${CONMUX_REGISTRY_LOG} ${CONMUX_REGISTRY_FILE}
+ start-stop-daemon -b --start -p /run/conmux-registry.pid \
+ --exec /usr/sbin/conmux-registry \
+ ${CONMUX_REGISTRY_PORT} ${CONMUX_REGISTRY_FILE}
+}
+
+stop() {
+ ebegin "Stopping conmux daemon"
+ start-stop-daemon --stop --pidfile /run/conmux-registry.pid
+ eend $?
+}
diff --git a/app-misc/conmux/files/conmux.confd b/app-misc/conmux/files/conmux.confd
new file mode 100644
index 000000000000..7f983c9ac409
--- /dev/null
+++ b/app-misc/conmux/files/conmux.confd
@@ -0,0 +1,14 @@
+# Configuration file
+# It should point to a valid device configuration file
+# eg CONMUX_CONFIG="/etc/conmux/deviceA.cf
+#
+# See https://github.com/autotest/autotest/wiki/Conmux-Howto
+# and https://github.com/autotest/autotest/wiki/Conmux-OriginalDocumentation
+# for examples
+#
+# Default value is empty so the init script will fail and force you
+# to create a new config
+#
+CONMUX_CONFIG=""
+# Log file
+CONMUX_LOG="/var/log/conmux.log"
diff --git a/app-misc/conmux/files/conmux.initd b/app-misc/conmux/files/conmux.initd
new file mode 100755
index 000000000000..75f53de4445f
--- /dev/null
+++ b/app-misc/conmux/files/conmux.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+checkconfig() {
+ if [[ ! -f ${CONMUX_CONFIG} ]]; then
+ eerror ""
+ eerror "No conmux configuration file was found!"
+ eerror "Please read the conmux README file."
+ eerror ""
+ return 1
+ fi
+ # Sane default
+ if [[ -z ${CONMUX_LOG} ]]; then
+ CONMUX_LOG="/var/log/conmux.log"
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || exit 1
+ ebegin "Starting CONMUX daemon"
+ start-stop-daemon -b --start -1 ${CONMUX_LOG} \
+ -2 ${CONMUX_LOG} -p /run/conmux.pid \
+ --exec /usr/sbin/conmux -- ${CONMUX_CONFIG}
+}
+
+stop() {
+ ebegin "Stopping CONMUX daemon"
+ start-stop-daemon --stop --pidfile /run/conmux.pid
+ eend $?
+}
diff --git a/app-misc/conmux/metadata.xml b/app-misc/conmux/metadata.xml
new file mode 100644
index 000000000000..1d6b94e43f3a
--- /dev/null
+++ b/app-misc/conmux/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>hwoarang@gentoo.org</email>
+<name>Markos Chandras</name>
+</maintainer>
+<longdescription lang="en">
+CONMUX is a console abstractor. Presenting any console with a
+consistent location, naming and semantic. Access to the console,
+and hardreset of the machine is the same regardless of the underlying
+access methodology.
+</longdescription>
+</pkgmetadata>