From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-misc/conmux/Manifest | 7 ++++ app-misc/conmux/conmux-0.15.1-r3.ebuild | 63 +++++++++++++++++++++++++++++ app-misc/conmux/files/conmux-registry.confd | 4 ++ app-misc/conmux/files/conmux-registry.initd | 31 ++++++++++++++ app-misc/conmux/files/conmux.confd | 14 +++++++ app-misc/conmux/files/conmux.initd | 39 ++++++++++++++++++ app-misc/conmux/metadata.xml | 17 ++++++++ 7 files changed, 175 insertions(+) create mode 100644 app-misc/conmux/Manifest create mode 100644 app-misc/conmux/conmux-0.15.1-r3.ebuild create mode 100644 app-misc/conmux/files/conmux-registry.confd create mode 100644 app-misc/conmux/files/conmux-registry.initd create mode 100644 app-misc/conmux/files/conmux.confd create mode 100644 app-misc/conmux/files/conmux.initd create mode 100644 app-misc/conmux/metadata.xml (limited to 'app-misc/conmux') diff --git a/app-misc/conmux/Manifest b/app-misc/conmux/Manifest new file mode 100644 index 000000000000..a72e8f14e2e4 --- /dev/null +++ b/app-misc/conmux/Manifest @@ -0,0 +1,7 @@ +AUX conmux-registry.confd 120 BLAKE2B ee736a35e4b05a71030a1119b9fefd1c2e206234547cecc9f378d614788bb1faf5d555c54a8681b230374aaa75c11c1092c263daf75a624deece5b6b9313c429 SHA512 aeae7f7d127d67e5ae96a63fbd694624d599fd329698ea72bd0fb5a4a0d29df3d60c5bdd750431acf13a36f53960af477b483a48324540eda5a4b55b266c081c +AUX conmux-registry.initd 886 BLAKE2B 8d895a7743faa2868ec0ae301c9b727e9b1d4f02cb222dff71dedb12b169f1416af89494fd6cf4c80e9ac8a02234a657eeca52f0ab0f9919f6c2941a4a1a1b7e SHA512 cbe93f419d244eef30e5662d34de9afb683ba9e69107fb3d5a78e2c6f31b5868ec6e4b35ab23597650d9593ad60c91d9c839e85c6589ebf5e17a70129dd2b3a3 +AUX conmux.confd 432 BLAKE2B 6dd0169032c849f1c131cfa0409430689249919cd8015f7f59c2fbadaf3da3ec92ca67c7b0a738a8d243911e06909d831da711c5fc46f1725638c208afcdc30f SHA512 50c6640f231e878817f31f399e8345d82c26bacbc8648d78b444eb572e7fad4c19d1f5b517474c412031dc65345723bffe95358542a6dd4af99a3007d12a7bc0 +AUX conmux.initd 892 BLAKE2B 3a724a77e47f4e0b8ac77581fdcd8f2be0aedbe6a71557f19eaba1517948736263fa36192dd3fbd8a2eb3db4ec5ad90c964b94fa01b1a3c00a12152b14edad8a SHA512 68a15b73bef6ee90504fe5a910d587ae6aad5735082af3dda3f390b66d87ac121fc8b1a846d7fce0432b6d4f06a9c355d881303f9586ea6497c64c0080798098 +DIST conmux-0.15.1.tar.gz 50713 BLAKE2B d764d63f03318614ad0d7088911dee02fbd36d24da7dc988bb3db03cda3e60c5b185f50b5545b086e2a3a7b278aa47af7bfd211c39c88f7ada32e83666eea0c5 SHA512 8138d6d10b4382709828277503d1c23c52fd43109ebad79073be9003c39a9e62c2b7d9d6e78a9e81797c22871985e50a58df0d538ff63e3f580c9a229b520107 +EBUILD conmux-0.15.1-r3.ebuild 1993 BLAKE2B 7c291575b489396038573dffbe566b1d901fc0376fd70636466410f729c9cf23557d834d03bcbcecc5b2e4389da8fb282af4a815c46c87dd163243f9a10c1d56 SHA512 e400f8f46f8a78c01d9bf90959351d5e681efde1398970bfc1d906c62c6584255c3bcb678f48d5caba32737988933fe434309f06f1fb9f8d48ba8f579a5d0643 +MISC metadata.xml 610 BLAKE2B 379832b8245fc3f2354260535108e77ab035e5f0a90cc0c48747883295830ca42781db38f074c99b208846b86ee2be34ed166b001725e98a186b0eb21c58aee7 SHA512 c1bbd52895ee9a132f52fbe92a4e74f469f47fd70b78440bda8ffb4ac6c6b0878da144cf9efe551c45480eb242e76ff75a4e2e61a5359d342c214733e48d48f1 diff --git a/app-misc/conmux/conmux-0.15.1-r3.ebuild b/app-misc/conmux/conmux-0.15.1-r3.ebuild new file mode 100644 index 000000000000..e77e2b81776c --- /dev/null +++ b/app-misc/conmux/conmux-0.15.1-r3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit perl-module + +DESCRIPTION="A console multiplexor" +HOMEPAGE="https://github.com/autotest/autotest" +SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips x86" +IUSE="" + +RDEPEND="dev-perl/IO-Multiplex + dev-perl/URI" +DEPEND="" + +src_prepare() { + # manual installation of drivers and helpers + sed -i -e "/include/d" Makefile || die "Failed to fix Makefile" +} + +src_install() { + perl_set_version + emake BASE="${D}/usr" install + # helpers and drivers have been removed in src_prepare + insinto /usr/share/${PN}/ + doins -r drivers/ helpers/ + fperms -R 0750 /usr/share/${PN}/{drivers,helpers}/ + 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 + perl_set_version + 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 100644 index 000000000000..3e3179a224ab --- /dev/null +++ b/app-misc/conmux/files/conmux-registry.initd @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 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 + # Make sure conmux finds everything + export PATH="${PATH}:/usr/share/conmux/drivers:/usr/share/conmux/helpers" + ebegin "Starting conmux registry daemon" + [ -e ${CONMUX_REGISTRY_LOG} ] && rm ${CONMUX_REGISTRY_LOG} + touch ${CONMUX_REGISTRY_LOG} + start-stop-daemon -b -m --start -p /run/conmux-registry.pid \ + --exec /usr/sbin/conmux-registry -- ${CONMUX_REGISTRY_PORT} \ + ${CONMUX_REGISTRY_LOG} +} + +stop() { + ebegin "Stopping conmux registry 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 100644 index 000000000000..b74fd28b969c --- /dev/null +++ b/app-misc/conmux/files/conmux.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + need conmux-registry +} + +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 + # Make sure conmux finds everything + export PATH="${PATH}:/usr/share/conmux/drivers:/usr/share/conmux/helpers" + ebegin "Starting conmux daemon" + start-stop-daemon -m -b --start -1 ${CONMUX_LOG} \ + -2 ${CONMUX_LOG} -p /run/${SVCNAME}.pid \ + --exec /usr/sbin/conmux -- ${CONMUX_CONFIG} +} + +stop() { + ebegin "Stopping conmux daemon" + start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid + eend $? +} diff --git a/app-misc/conmux/metadata.xml b/app-misc/conmux/metadata.xml new file mode 100644 index 000000000000..41c74b92fdb7 --- /dev/null +++ b/app-misc/conmux/metadata.xml @@ -0,0 +1,17 @@ + + + + + hwoarang@gentoo.org + Markos Chandras + + +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. + + + autotest/autotest + + -- cgit v1.2.3