summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2009-03-22 12:44:53 +0000
committerAlin Năstac <mrness@gentoo.org>2009-03-22 12:44:53 +0000
commit51a5070d0b05cf52416b7c64bf96e6fcf616381b (patch)
tree7fb90341efa26a6d7e9b8a88f9d729825d388f28 /net-dialup/sercd
parentRemoving hawking as a maintainer since he was retired. (diff)
downloadgentoo-2-51a5070d0b05cf52416b7c64bf96e6fcf616381b.tar.gz
gentoo-2-51a5070d0b05cf52416b7c64bf96e6fcf616381b.tar.bz2
gentoo-2-51a5070d0b05cf52416b7c64bf96e6fcf616381b.zip
Initial import from bug 263176.
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'net-dialup/sercd')
-rw-r--r--net-dialup/sercd/ChangeLog11
-rw-r--r--net-dialup/sercd/files/sercd.confd23
-rw-r--r--net-dialup/sercd/files/sercd.initd25
-rw-r--r--net-dialup/sercd/files/sercd.xinetd15
-rw-r--r--net-dialup/sercd/metadata.xml7
-rw-r--r--net-dialup/sercd/sercd-3.0.0.ebuild29
6 files changed, 110 insertions, 0 deletions
diff --git a/net-dialup/sercd/ChangeLog b/net-dialup/sercd/ChangeLog
new file mode 100644
index 000000000000..0aafc4e98f17
--- /dev/null
+++ b/net-dialup/sercd/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-dialup/sercd
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/sercd/ChangeLog,v 1.1 2009/03/22 12:44:53 mrness Exp $
+
+*sercd-3.0.0 (22 Mar 2009)
+
+ 22 Mar 2009; Alin Năstac <mrness@gentoo.org> +files/sercd.confd,
+ +files/sercd.initd, +files/sercd.xinetd, +metadata.xml,
+ +sercd-3.0.0.ebuild:
+ Initial import from bug 263176.
+
diff --git a/net-dialup/sercd/files/sercd.confd b/net-dialup/sercd/files/sercd.confd
new file mode 100644
index 000000000000..c7126a35197c
--- /dev/null
+++ b/net-dialup/sercd/files/sercd.confd
@@ -0,0 +1,23 @@
+# sercd service configuration file
+
+# Run daemon as this user:group
+SERCD_USER=uucp:uucp
+
+# Serial port
+SERCD_DEVFILE=/dev/modem
+
+# Lock file
+SERCD_LOCKFILE=/var/lock/LCK..modem
+
+# Address on which this daemon listens on
+SERCD_ADDR=0.0.0.0
+SERCD_PORT=7000
+
+# Log level; available values are from 0 (LOG_EMERG) to 7 (LOG_DEBUG).
+SERCD_LOGLEVEL=5
+
+# Uncomment this if you want compatibility with Cisco IOS
+# SERCD_OPTS="-i"
+
+# Poll interval is in milliseconds. 0 means no polling
+SERCD_POLLINTERV=100
diff --git a/net-dialup/sercd/files/sercd.initd b/net-dialup/sercd/files/sercd.initd
new file mode 100644
index 000000000000..b8f8744bb28b
--- /dev/null
+++ b/net-dialup/sercd/files/sercd.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/sercd/files/sercd.initd,v 1.1 2009/03/22 12:44:53 mrness Exp $
+
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --exec /usr/sbin/sercd --chuid ${SERCD_USER} --pidfile "${PIDFILE}" \
+ -- ${SERCD_OPTS} -p ${SERCD_PORT} -l ${SERCD_ADDR} \
+ ${SERCD_LOGLEVEL} "${SERCD_DEVFILE}" "${SERCD_LOCKFILE}" ${SERCD_POLLINTERV}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --name sercd --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/net-dialup/sercd/files/sercd.xinetd b/net-dialup/sercd/files/sercd.xinetd
new file mode 100644
index 000000000000..8948e3c3f5fd
--- /dev/null
+++ b/net-dialup/sercd/files/sercd.xinetd
@@ -0,0 +1,15 @@
+# default: on
+# description: RFC 2217 compliant Telnet serial port redirector
+service sredir
+{
+ type = UNLISTED
+ flags = REUSE
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = uucp
+ server = /usr/sbin/sercd
+ server_args = 5 /dev/modem /var/lock/LCK..modem 100
+ port = 7000
+ disable = yes
+}
diff --git a/net-dialup/sercd/metadata.xml b/net-dialup/sercd/metadata.xml
new file mode 100644
index 000000000000..3eee55fc1d01
--- /dev/null
+++ b/net-dialup/sercd/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-dialup</herd>
+<longdescription>sercd is an RFC 2217-compliant serial port redirector.
+It lets you share a serial port through network.</longdescription>
+</pkgmetadata>
diff --git a/net-dialup/sercd/sercd-3.0.0.ebuild b/net-dialup/sercd/sercd-3.0.0.ebuild
new file mode 100644
index 000000000000..bb8fc6d628ba
--- /dev/null
+++ b/net-dialup/sercd/sercd-3.0.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/sercd/sercd-3.0.0.ebuild,v 1.1 2009/03/22 12:44:53 mrness Exp $
+
+EAPI="2"
+
+DESCRIPTION="RFC2217-compliant serial port redirector"
+SRC_URI="mirror://sourceforge/sercd/${P}.tar.gz"
+HOMEPAGE="http://sourceforge.net/projects/sercd"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="xinetd"
+
+RDEPEND="xinetd? ( virtual/inetd )"
+
+src_install () {
+ einstall || die "einstall failed"
+
+ newinitd "${FILESDIR}"/sercd.initd sercd
+ newconfd "${FILESDIR}"/sercd.confd sercd
+ if use xinetd ; then
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/sercd.xinetd sercd
+ fi
+
+ dodoc AUTHORS README
+}