summaryrefslogtreecommitdiff
path: root/net-misc/ser2net
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 /net-misc/ser2net
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/ser2net')
-rw-r--r--net-misc/ser2net/Manifest12
-rw-r--r--net-misc/ser2net/files/ser2net-2.7-b230400.diff20
-rw-r--r--net-misc/ser2net/files/ser2net.confd27
-rw-r--r--net-misc/ser2net/files/ser2net.initd54
-rw-r--r--net-misc/ser2net/metadata.xml15
-rw-r--r--net-misc/ser2net/ser2net-2.10.0.ebuild31
-rw-r--r--net-misc/ser2net/ser2net-2.7-r1.ebuild40
-rw-r--r--net-misc/ser2net/ser2net-2.9.1.ebuild31
8 files changed, 230 insertions, 0 deletions
diff --git a/net-misc/ser2net/Manifest b/net-misc/ser2net/Manifest
new file mode 100644
index 000000000000..3a9f168ce50f
--- /dev/null
+++ b/net-misc/ser2net/Manifest
@@ -0,0 +1,12 @@
+AUX ser2net-2.7-b230400.diff 754 SHA256 14fe4d7817f3c202317a401f69141dff3f4d1c4eb13a8b357bff685b94b17b38 SHA512 47f369b23c6f75421ed143abb75a0d9b46e7ca1ee2c59f17e6d75f98bb61d9fdf4e0792367e732ad60fb0f6804af6f316b291d7743d7807df8192bbdef3363ca WHIRLPOOL 1269a8aaf4fd521293689023ce0c3ba3fc0f497e06110d097a3d64225c73226e97c71be83f6aa95aa84247c65242efbd0034f18e1e3b4e28623c6543ed8287ea
+AUX ser2net.confd 879 SHA256 3058368970e77b8b7fcf6fca9f3530b683d9e9c27c431531f8566dde01dab849 SHA512 15054f7aa604f93bd5a54c2bb96c9a3168905be5ace50bcd2ebeeaf9dc9ae19426388e6118e9e4850125349090ee29542c24487e64c349593a76366be4a5e501 WHIRLPOOL addb450a10b026ef4003ee05a7b1c4dba7c294750d6daefd885d537636d31352d529f73df6cac7693ba940b41fc6294bad0f92cf30bf8265450494c4ed2bbcd4
+AUX ser2net.initd 1528 SHA256 c3154e77c1ff875891e5ed97d1b164661ed44f5a3d297f6f70d5bbcba9a88270 SHA512 d98032d8de463d2023f087106ff68367077dcd4680c673e41e50e42c91578925c72f741508e2b36b0711478e9bc12c61efef76d57c578bc726950c9d6fd2f5c3 WHIRLPOOL 138228edd22ae6cb5bef10373640ff8cf287e06db3fb3d5f847b80ec680b78525b962a8b6f06cd8b38024140893c5865023e285f10e808c0e7d2b39fa92fb354
+DIST ser2net-2.10.0.tar.gz 364322 SHA256 98f6193225338e25f35302fef5e1f16688693ed43e7b3c3e9e09187eb54547ac SHA512 dd3e37619b10d8bf20d738e90c253bc2d109e0a57ee9f3a8b2a85a69399afa5a8459a4602b2856f0b655427023a36c78330851bf7f8d8da0f28d1fe22c1d5e10 WHIRLPOOL 34ed707308c71d5969e653e01f61e047f17669d34e15807675af11f4356cb77fe18d4f4d9041a449c3c2686c2d1dde0f928ea73e3936967a2db5d91838b41ecc
+DIST ser2net-2.7.tar.gz 355064 SHA256 620265d5d4a59714dbb8645d1698a34135077c735e018ef040d57e7d3a621088 SHA512 39ee99031fad45ea8eeeb9e8bec343e8d6bd58c818f56ec01a05c50ef6d8ed845c6521a6d4a306671ed26959bd2df5c0b29a6b4399103815923cf958c1891c16 WHIRLPOOL 1bb875c7603aaf6ef811dfe6404797a1e9ec152d7b1fa70c26c84e341ad7ade11674bf6e0d0edd978a43189c2f0a5757a7809b4a33d0bd0fd1d5e143452ecac5
+DIST ser2net-2.9.1.tar.gz 357820 SHA256 fdee1e69903cf409bdc6f32403a566cbc6006aa9e2a4d6f8f12b90dfd5ca0d0e SHA512 9fd0efc853993b70c0c632a7059df7a04c832f85491194c49dd8b384e1bb1a576ed9cfe28088cc181a2f7084c88dc6ef6dabbc4ead5ad9339a7becebaa6fb8e7 WHIRLPOOL 0601f3d7d15abbbe25dd3970d3e78f289efd399ba8723b53589e956ed1d8a3a7c9dec9197b26527331e7ad5ffbb8042852d1d4fb36fb500d93ccf736cd25acbf
+EBUILD ser2net-2.10.0.ebuild 628 SHA256 dc5a9d4b10eb68069b11bd452873c78e90802ffd81790db7e904f5fae3de4fbd SHA512 5e789763072adba021dab5e10b5be926b8f6108097eef98e3cb1912b4199d8a1f30bca2309b792f676849fa7da00f278f53106f6cb4b166ee73cefddc1f022c5 WHIRLPOOL efa7ab68621eb82ed37001750d1c7558ba039495a97fd5bd3f3aaf1082f1c51c28b7b4d1a4c544cb8286ea6b4dca8924029cc93040d91eb47a5a7003bc8f41de
+EBUILD ser2net-2.7-r1.ebuild 847 SHA256 be09f42b882ad8457421dbc5e52ad1f3306d227efa8e11131bf39ba3b32b7fbb SHA512 f2acf54587c7791b9516db5488eaef6f5fba022a5d43ab6451dae3fda14a190dde790eba2ebce0d1bac488eeb4a90e0496663b243f19d80b5422a3f9583a7345 WHIRLPOOL a8ac79b6259668477d5bce30e5d9c74c7bd752d3e3cae745b5768958c11e7522e010ce4c82410097fe5eb05b687af88f03f2d4825c5212fc9694e1acf2360337
+EBUILD ser2net-2.9.1.ebuild 626 SHA256 d97a441ecff9c4c2423cb024b1f43e74bf92f673223f3fd168e174a9159236a1 SHA512 5c401b1795a2b2a46af9af947891702d1074a8edc6f3e252874531b8325d1a0474871e5f35a2c3684a4d311c06cda74fa57ffc66594fcd7c7d010e52e8ae90c3 WHIRLPOOL 6cbfdede269beb7fccf3a31271c310682b785efa08cdffa6308f7946fe0785c519dabfa1dcdadd7dd3007c6a95b0644079f6edc7ddfddc66ed6c2fbc1dbeb8b4
+MISC ChangeLog 2906 SHA256 0d5557ad7fa334d9839c86df9f22286452dd25e9678ea9fcf7b922f058c6d650 SHA512 92eae2561f0cb8ed5dfac0c500d1bced5b3c4f64ce3b834d683e1c50ebf80eb809187016fb1c76f1ccdba64089670e08e0a144dd8653f09cebaa02c977cfb009 WHIRLPOOL 24403c0c6bb8ecfd4db7cfa2cacddca634d391376ac66f0768b6330c64fbd0db6a337b6c13ab144384c0c0ca829f1c21b5e4e8bd0d5acef72d1be90025d82cbd
+MISC ChangeLog-2015 5280 SHA256 b327b46f50639920cf1cd7c65a988ca4504d6c149765716fa2242416c0ddde20 SHA512 acd2e9673d6e9c9e01a9d901c13249db7342d2df51e9ab64b15cbeee622f1a2a2479c8dce0d249d2f1f755a3d00285b21505811adfe64d879a5a6a96ad60f196 WHIRLPOOL 35f7da17473839ed2e7332aebc49806b71a1571f704b1c1b8ef9b060668af6eedf541d4ac7dfb9085e3689e55738ebd57cb8e56b794e7e6d7b609098fe6820c6
+MISC metadata.xml 439 SHA256 2c28b96b96df9063d4c4d0298de4347d32be0bdf344457ca296641fef465f1fc SHA512 0d8110b7553fc097bc3a6a33bf3f8cfff7046ded71379ae1aaf6f9e49b3b459e2121969c68a245d95e4f163a63adf0630844f8626a901b8b7bff41729c2c76f0 WHIRLPOOL b627c03dfe94139697dacdf89303090fa4d7575764d376e665d45f46ab4a320ef6b3d8e5f436e194e4f8863df8a91f735302ba73096a5342a301297c5e383459
diff --git a/net-misc/ser2net/files/ser2net-2.7-b230400.diff b/net-misc/ser2net/files/ser2net-2.7-b230400.diff
new file mode 100644
index 000000000000..5e567c118eac
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net-2.7-b230400.diff
@@ -0,0 +1,20 @@
+--- ser2net-2.7.orig/devcfg.c 2009-10-23 14:23:25.000000000 +0200
++++ ser2net-2.7/devcfg.c 2012-07-17 21:03:49.708603108 +0200
+@@ -113,6 +113,9 @@
+ } else if (strcmp(pos, "115200") == 0) {
+ cfsetospeed(termctl, B115200);
+ cfsetispeed(termctl, B115200);
++ } else if (strcmp(pos, "230400") == 0) {
++ cfsetospeed(termctl, B230400);
++ cfsetispeed(termctl, B230400);
+ } else if (strcmp(pos, "1STOPBIT") == 0) {
+ termctl->c_cflag &= ~(CSTOPB);
+ } else if (strcmp(pos, "2STOPBITS") == 0) {
+@@ -190,6 +193,7 @@
+ case B38400: str = "38400"; break;
+ case B57600: str = "57600"; break;
+ case B115200: str = "115200"; break;
++ case B230400: str = "230400"; break;
+ default: str = "unknown speed";
+ }
+ return str;
diff --git a/net-misc/ser2net/files/ser2net.confd b/net-misc/ser2net/files/ser2net.confd
new file mode 100644
index 000000000000..c66685159348
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net.confd
@@ -0,0 +1,27 @@
+# Config file for /etc/init.d/ser2net
+
+# Set the configuration file to one other than the default of /etc/ser2net.conf
+#
+#CONFIG_FILE="/etc/ser2net.conf"
+
+# Enables the control port and sets the TCP port to listen to for the control port.
+# A port number may be of the form [host,]port, such as 127.0.0.1,2000 or localhost,2000.
+# If this is specified, it will only bind to the IP address specified for the port.
+# Otherwise, it will bind to all the addresses on the machine.
+#
+#CONTROL_PORT=""
+
+# Cisco IOS uses a different mechanism for specifying the baud rates than the mechanism
+# described in RFC2217. This option sets the IOS version of setting the baud rates.
+# The default is RFC2217s.
+#
+#CISCO_IOS="yes"
+
+# Enable or disable UUCP locking (default=yes)
+#
+#UUCP_LOCKS="no"
+
+# see the ser2net(8) manual page for additional options you can configure here
+#
+#EXTRA_OPTS=""
+
diff --git a/net-misc/ser2net/files/ser2net.initd b/net-misc/ser2net/files/ser2net.initd
new file mode 100644
index 000000000000..3ce489bd1ff1
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net.initd
@@ -0,0 +1,54 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Serial to network proxy (${RC_SVCNAME#*.})"
+pidfile="/var/run/${RC_SVCNAME}.pid"
+command="/usr/sbin/ser2net"
+name="${RC_SVCNAME}"
+
+extra_started_commands="reload"
+description_reload="Reread configuration file and make the appropriate changes"
+start_stop_daemon_args="--quiet --exec ${command} --name ${name} --pidfile ${pidfile}"
+
+depend() {
+ use logger
+ need net
+}
+
+config_check() {
+ command_args="${EXTRA_OPTS}"
+ CONFIG_FILE_DEFAULT="/etc/ser2net.conf"
+
+ yesno "${CISCO_IOS:-no}" && command_args="${SER2NET_OPTS} -b"
+ yesno "${UUCP_LOCKS:-yes}" || command_args="${command_args} -u"
+ [ -z "${CONFIG_FILE}" ] && CONFIG_FILE="${CONFIG_FILE_DEFAULT}"
+ [ -n "${CONTROL_PORT}" ] && command_args="${command_args} -p ${CONTROL_PORT}"
+ [ "${CONFIG_FILE}" != "${CONFIG_FILE_DEFAULT}" ] && command_args="${command_args} -c ${CONFIG_FILE}"
+
+ if [ ! -f "${CONFIG_FILE}" ]; then
+ eerror "Please create ${CONFIG_FILE}"
+ eerror "Sample conf: ${CONFIG_FILE_DEFAULT}.dist"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ config_check || return ${?}
+ ebegin "Starting ${description}"
+ start-stop-daemon --start ${start_stop_daemon_args} -- ${command_args} -P "${pidfile}"
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping ${description}"
+ start-stop-daemon --stop ${start_stop_daemon_args}
+ eend ${?}
+}
+
+reload() {
+ ebegin "Reloading ${description}"
+ start-stop-daemon --signal HUP ${start_stop_daemon_args}
+ eend ${?}
+}
diff --git a/net-misc/ser2net/metadata.xml b/net-misc/ser2net/metadata.xml
new file mode 100644
index 000000000000..730186acfd0b
--- /dev/null
+++ b/net-misc/ser2net/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">ser2net</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/ser2net/ser2net-2.10.0.ebuild b/net-misc/ser2net/ser2net-2.10.0.ebuild
new file mode 100644
index 000000000000..dedcff7d474b
--- /dev/null
+++ b/net-misc/ser2net/ser2net-2.10.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Serial To Network Proxy"
+SRC_URI="mirror://sourceforge/ser2net/${P}.tar.gz"
+HOMEPAGE="https://sourceforge.net/projects/ser2net"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
+RDEPEND="${DEPEND}"
+
+IUSE="tcpd"
+
+src_configure() {
+ econf $(use_with tcpd tcp-wrappers) --with-uucp-locking
+}
+
+src_install () {
+ default
+
+ insinto /etc
+ newins ${PN}.conf ${PN}.conf.dist
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+}
diff --git a/net-misc/ser2net/ser2net-2.7-r1.ebuild b/net-misc/ser2net/ser2net-2.7-r1.ebuild
new file mode 100644
index 000000000000..06e6708100e1
--- /dev/null
+++ b/net-misc/ser2net/ser2net-2.7-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit base autotools
+
+DESCRIPTION="Serial To Network Proxy"
+SRC_URI="mirror://sourceforge/ser2net/${P}.tar.gz"
+HOMEPAGE="https://sourceforge.net/projects/ser2net"
+
+KEYWORDS="~amd64 ppc x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
+RDEPEND="${DEPEND}"
+
+IUSE="tcpd"
+
+PATCHES=( "${FILESDIR}/${P}-b230400.diff" )
+DOCS=( "AUTHORS" "NEWS" "README" "ChangeLog" )
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ local myopts="$(use_with tcpd tcp-wrappers) --with-uucp-locking"
+ econf ${myopts} || die "econf failed"
+}
+
+src_install () {
+ base_src_install
+ insinto /etc
+ newins ${PN}.conf ${PN}.conf.dist
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+}
diff --git a/net-misc/ser2net/ser2net-2.9.1.ebuild b/net-misc/ser2net/ser2net-2.9.1.ebuild
new file mode 100644
index 000000000000..315fc015e035
--- /dev/null
+++ b/net-misc/ser2net/ser2net-2.9.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Serial To Network Proxy"
+SRC_URI="mirror://sourceforge/ser2net/${P}.tar.gz"
+HOMEPAGE="https://sourceforge.net/projects/ser2net"
+
+KEYWORDS="~amd64 ppc x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
+RDEPEND="${DEPEND}"
+
+IUSE="tcpd"
+
+src_configure() {
+ econf $(use_with tcpd tcp-wrappers) --with-uucp-locking
+}
+
+src_install () {
+ default
+
+ insinto /etc
+ newins ${PN}.conf ${PN}.conf.dist
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+}