summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2008-09-02 18:02:28 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2008-09-02 18:02:28 +0000
commitf811dcb2f84f10de237e67d221c465d1da6f53cf (patch)
tree3810032b4c5db53b56468d94fba4816a0ef37818 /net-misc/ser2net
parentremoved obsolete patch (diff)
downloadhistorical-f811dcb2f84f10de237e67d221c465d1da6f53cf.tar.gz
historical-f811dcb2f84f10de237e67d221c465d1da6f53cf.tar.bz2
historical-f811dcb2f84f10de237e67d221c465d1da6f53cf.zip
version bump, adding init-script + config. Solves bug #160268.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686
Diffstat (limited to 'net-misc/ser2net')
-rw-r--r--net-misc/ser2net/ChangeLog8
-rw-r--r--net-misc/ser2net/Manifest6
-rw-r--r--net-misc/ser2net/files/ser2net.confd23
-rw-r--r--net-misc/ser2net/files/ser2net.initd41
-rw-r--r--net-misc/ser2net/ser2net-2.5.ebuild42
5 files changed, 118 insertions, 2 deletions
diff --git a/net-misc/ser2net/ChangeLog b/net-misc/ser2net/ChangeLog
index e090c090b994..19bbc96222dc 100644
--- a/net-misc/ser2net/ChangeLog
+++ b/net-misc/ser2net/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/ser2net
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ser2net/ChangeLog,v 1.17 2008/09/02 17:58:30 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser2net/ChangeLog,v 1.18 2008/09/02 18:02:27 sbriesen Exp $
+
+*ser2net-2.5 (02 Sep 2008)
+
+ 02 Sep 2008; Stefan Briesenick <sbriesen@gentoo.org> +files/ser2net.confd,
+ +files/ser2net.initd, +ser2net-2.5.ebuild:
+ version bump, adding init-script + config. Solves bug #160268.
02 Sep 2008; Stefan Briesenick <sbriesen@gentoo.org>
-files/ser2net-2.2-tcpwrappers-configure.in.patch:
diff --git a/net-misc/ser2net/Manifest b/net-misc/ser2net/Manifest
index 4d4cec30bd22..c7c171c96cd0 100644
--- a/net-misc/ser2net/Manifest
+++ b/net-misc/ser2net/Manifest
@@ -1,4 +1,8 @@
+AUX ser2net.confd 782 RMD160 5935e8cf02813f9cb6a2b837eb120d330fc99aec SHA1 9682f7844cb4988c9d9614feb7862703a73e7f42 SHA256 a56840d58d852d90d54edbed61eee8e4a19d9d240c7527627e46d2564f9ff745
+AUX ser2net.initd 1348 RMD160 de29a38654d9b6f8780a01869c63403ec59474e5 SHA1 070bcc461e3ea288bca2a195133ad894c243b1d4 SHA256 9dc3844f8d3a8db22463bea23c3cd99d90f23c9fd03e178a79f55b49d6283fc4
DIST ser2net-2.3.tar.gz 303997 RMD160 60d32c572fef2cf7c3c540425d26d7429c8eeb85 SHA1 6326efe6af2a13a248bdaa55fc31e5c0f2422682 SHA256 2b5dfdd457f31bd2eec9afc8ed2873bd40b2d6f3cb9ff7275dd9384218b01734
+DIST ser2net-2.5.tar.gz 343105 RMD160 4856b0b6c7e7ae31ea8105c19ab14844768e7f40 SHA1 8da41448e0a1f5a1e803283380b48323bebf3286 SHA256 fb7bf30c967b4d64f12e6d81f99df3d3e65bb31a919625ec2820e68f65dcef1c
EBUILD ser2net-2.3.ebuild 841 RMD160 f5b3d5853de95eac2061ff92f103b4fa8d6b2525 SHA1 fd19a854b410dc117c3d0eea7b69a423b4a3521d SHA256 bd14023c61644bdca74e4163e14af9b60713822caef6f5c25e5aefd6884bacdd
-MISC ChangeLog 2520 RMD160 f1ddde5cb43bf1133ba22ce0426d0a4efc083e72 SHA1 2658209f7bb42ad7e7ddd11730d7241a6d5fbe80 SHA256 f8842cce9fa85e452c487fb3257b7df3715b69f6e88d9a08fd07df9c77da294e
+EBUILD ser2net-2.5.ebuild 958 RMD160 bb38af420ea0f259cdb5e7d933aa8be00c00e964 SHA1 3d9a64aa79b9b2694bb7b6739d42b766a834a5da SHA256 dbeeb6d949fefadf8cce227dd863e006e8fb4f5c5b13cd02fc44aab71132145f
+MISC ChangeLog 2736 RMD160 910c543a95b38e7951db71a0080258919e2bf396 SHA1 af48b3cb75b67baebe9646fbb46381573ca0a7d3 SHA256 7642ca4d75047a11752e6444e89e820c500eeb0893a4a0b8876d8a425dd12855
MISC metadata.xml 257 RMD160 7716423decf8296528ca21eaa830fac2816fa991 SHA1 01e7fba79bf45ff5ed3b3b12d421a7b8c084142b SHA256 9b843be0ba934a7342d5c3a52eb98e022e171baab73193f3dc8f3d86fe23b1ef
diff --git a/net-misc/ser2net/files/ser2net.confd b/net-misc/ser2net/files/ser2net.confd
new file mode 100644
index 000000000000..7d9c536f4376
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net.confd
@@ -0,0 +1,23 @@
+# 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"
+
diff --git a/net-misc/ser2net/files/ser2net.initd b/net-misc/ser2net/files/ser2net.initd
new file mode 100644
index 000000000000..7ba1b0a85830
--- /dev/null
+++ b/net-misc/ser2net/files/ser2net.initd
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser2net/files/ser2net.initd,v 1.1 2008/09/02 18:02:28 sbriesen Exp $
+
+depend() {
+ need net
+ after bootmisc
+}
+
+config_check() {
+ SER2NET_OPTS=""
+ CONFIG_FILE_DEFAULT="/etc/ser2net.conf"
+
+ yesno "${CISCO_IOS:-no}" && SER2NET_OPTS="${SER2NET_OPTS} -b"
+ yesno "${UUCP_LOCKS:-yes}" || SER2NET_OPTS="${SER2NET_OPTS} -u"
+ [ -z "${CONFIG_FILE}" ] && CONFIG_FILE="${CONFIG_FILE_DEFAULT}"
+ [ -n "${CONTROL_PORT}" ] && SER2NET_OPTS="${SER2NET_OPTS} -p ${CONTROL_PORT}"
+ [ "${CONFIG_FILE}" != "${CONFIG_FILE_DEFAULT}" ] && SER2NET_OPTS="${SER2NET_OPTS} -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 Serial to network proxy (${SVCNAME})"
+ start-stop-daemon --start --quiet --pidfile /var/run/${SVCNAME}.pid \
+ --exec /usr/sbin/ser2net -- ${SER2NET_OPTS} -P /var/run/${SVCNAME}.pid
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping Serial to network proxy (${SVCNAME})"
+ start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
+ eend ${?}
+}
diff --git a/net-misc/ser2net/ser2net-2.5.ebuild b/net-misc/ser2net/ser2net-2.5.ebuild
new file mode 100644
index 000000000000..5e7f1352c7d0
--- /dev/null
+++ b/net-misc/ser2net/ser2net-2.5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ser2net/ser2net-2.5.ebuild,v 1.1 2008/09/02 18:02:27 sbriesen Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+inherit eutils autotools
+
+DESCRIPTION="Serial To Network Proxy"
+SRC_URI="mirror://sourceforge/ser2net/${P}.tar.gz"
+HOMEPAGE="http://sourceforge.net/projects/ser2net"
+
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
+
+IUSE="tcpd"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ eautoreconf
+}
+
+src_compile() {
+ local myopts="$(use_with tcpd tcp-wrappers) --with-uucp-locking"
+ econf ${myopts} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ einstall
+ insinto /etc
+ newins ${PN}.conf ${PN}.conf.dist
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ dodoc AUTHORS NEWS README ChangeLog
+}