diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/conmux |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/conmux')
-rw-r--r-- | app-misc/conmux/Manifest | 9 | ||||
-rw-r--r-- | app-misc/conmux/conmux-0.15.1-r3.ebuild | 63 | ||||
-rw-r--r-- | app-misc/conmux/files/conmux-registry.confd | 4 | ||||
-rw-r--r-- | app-misc/conmux/files/conmux-registry.initd | 31 | ||||
-rw-r--r-- | app-misc/conmux/files/conmux.confd | 14 | ||||
-rw-r--r-- | app-misc/conmux/files/conmux.initd | 39 | ||||
-rw-r--r-- | app-misc/conmux/metadata.xml | 17 |
7 files changed, 177 insertions, 0 deletions
diff --git a/app-misc/conmux/Manifest b/app-misc/conmux/Manifest new file mode 100644 index 000000000000..c5ed53874200 --- /dev/null +++ b/app-misc/conmux/Manifest @@ -0,0 +1,9 @@ +AUX conmux-registry.confd 120 SHA256 de73b8d55f90bda498a3f42a86b79289738a3a6846b81c44fe043c59d68928cc SHA512 aeae7f7d127d67e5ae96a63fbd694624d599fd329698ea72bd0fb5a4a0d29df3d60c5bdd750431acf13a36f53960af477b483a48324540eda5a4b55b266c081c WHIRLPOOL cdae2d4f3c9a1a9c782585dac955fbb29715ab7f4e96bbe5003fa944e3c191d5dce7b26d3708f89336f71fa41129b36d3a0603ebfc71f9e1706ce8ce6b48dd15 +AUX conmux-registry.initd 886 SHA256 cfe6b219fbe4868b8f4a8d35c9e51fd6e93c397a8d8cf3c78d08af64b8b536a6 SHA512 cbe93f419d244eef30e5662d34de9afb683ba9e69107fb3d5a78e2c6f31b5868ec6e4b35ab23597650d9593ad60c91d9c839e85c6589ebf5e17a70129dd2b3a3 WHIRLPOOL 661cc018f867e1eece6276b8800880a55624dc1c57f9e194909619198768ed699ad6a45037423c0fa6e2bfad546a94055aea19d0b6ee48e1ce208af120ee99e6 +AUX conmux.confd 432 SHA256 5f0f89ed25233677e52017573c188c48b6a9cccfe1dba3ad4338341ee844cf96 SHA512 50c6640f231e878817f31f399e8345d82c26bacbc8648d78b444eb572e7fad4c19d1f5b517474c412031dc65345723bffe95358542a6dd4af99a3007d12a7bc0 WHIRLPOOL 23ee4f04118b7536ea12e4c30b39d340ff11271784fc5cf3ed552a742ef0a035d07877a80f9c30751be7869d91a96e9aa2c46127df4ea053a6549bfdb559988c +AUX conmux.initd 892 SHA256 7fdf4c64461c7549b6577a8b33c10050d39f1095f78a1e7c4bec401aa39aa447 SHA512 68a15b73bef6ee90504fe5a910d587ae6aad5735082af3dda3f390b66d87ac121fc8b1a846d7fce0432b6d4f06a9c355d881303f9586ea6497c64c0080798098 WHIRLPOOL 1d5a7694dc68d4f76a84e9d0084f824685a3afb2f34a5aeddee715ac9741303ce677567b27dafa5751e3e5201a2d626afcc417b0edb17df5507c2bfc2b98e9a8 +DIST conmux-0.15.1.tar.gz 50713 SHA256 52e0e8d8ae2ad679e498f2a8c0a01ec536738e9daf09d88f9e256c349c5e9cb7 SHA512 8138d6d10b4382709828277503d1c23c52fd43109ebad79073be9003c39a9e62c2b7d9d6e78a9e81797c22871985e50a58df0d538ff63e3f580c9a229b520107 WHIRLPOOL 0d6ea7183063d5a3dee4e884ad4de9d694fa0c8116e94f8bee9ed80f26e5ed009a8ec889365b90efe34ffbb2e3f9c3c28a408924fb8b9c68a8c63ecfa0e5325b +EBUILD conmux-0.15.1-r3.ebuild 1993 SHA256 3c5ad7d9ab9cb05d926b416de9eb61c39b1dc0cbf8a088747c7126434db5e94c SHA512 e400f8f46f8a78c01d9bf90959351d5e681efde1398970bfc1d906c62c6584255c3bcb678f48d5caba32737988933fe434309f06f1fb9f8d48ba8f579a5d0643 WHIRLPOOL 23e5c91cea8249ab6bd876b28a6935b1cc18d23b562e2866c1a9a367c7261cc814e850f974fc08f64f36bfef299dd3df93e1eac25104bf8dee4d17385740c64c +MISC ChangeLog 2624 SHA256 b8eef4fcc9117ba045d052075968f2c93284e2ecf160a575013d54f45c9e0842 SHA512 2944c13b89c0db8b5239d352c439933d2a98b8c4c13dc5ffc1c58b2e86cabde350a045ec09db23e684f460a6f04af8e1c1b3600348e942008757821964f5b4b6 WHIRLPOOL 4e0519946b7c9b7c9704bd78c97d8a57b06adb811efb70edf9aeb6acdff32fffb7993223309eda7d5912970f3df753788faa0368a2b1f2993811b2d35b5de0a0 +MISC ChangeLog-2015 1885 SHA256 9a1905c8415137138f6e69f7ed28ff9eb2dc7a5f17aaec49bb9a39260670fb41 SHA512 4464f8f32cae609309faba1c5739e8e3cfac2b04b2e3835ee65641d3dd7a44621809d39620bab39103d47459614a28868af95ea478b0ba042a0df10a8dc1e922 WHIRLPOOL beb202824c8bee8d44fb9c6c2c1b783c72e78ee21487054f2a22379f7e737e61ca035db83c691f03fa706a586d4644507893f8daa46d9f891726d1568ab4e95b +MISC metadata.xml 610 SHA256 4f7b7d9359746fb35f02d0bbd9f8de05bdc605b21e76c2ff66dca15e5ae959d4 SHA512 c1bbd52895ee9a132f52fbe92a4e74f469f47fd70b78440bda8ffb4ac6c6b0878da144cf9efe551c45480eb242e76ff75a4e2e61a5359d342c214733e48d48f1 WHIRLPOOL 928264bee2b88396e19ad56e09c3be950604f53e05750397b8072afbce12d3bfa4d9375bacc8aee57848bcca32c6803d534f57b74a520263ab8ab5c22aa88b20 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <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> + <upstream> + <remote-id type="github">autotest/autotest</remote-id> + </upstream> +</pkgmetadata> |