debian/0000775000000000000000000000000012200504652007164 5ustar debian/changelog0000664000000000000000000001250512200504644011042 0ustar ser2net (2.9.1-1) unstable; urgency=low * New Upstream Version * remove patches (fixed upstream) * manually copy AUTHORS to package * use debhelper 9 (Closes: 664373) * Source Format 3.0 (quilt) * add collab-maint info to debian/control * re-work description * fix usage of pidofproc (Closes: #718973) * move pidfile to /run * have init script depend on $remote_fs * Standards-Version: 3.9.4 (no additional changes necessary) -- Marc Haber Wed, 07 Aug 2013 17:48:59 +0000 ser2net (2.6-1) unstable; urgency=low * New upstream version. * Fix segfault (control port use after free). Thanks to Sebastian Andrzej Siewior. Closes: #535159 * add dpatch usage, regenerate debian/control * Apply patch from Geoff Simmons regarding documentation of the timeout option, sync with upstream CVS. Closes: #531733 * debian/watch: use sf redirector. * Standards-Version: 3.8.2 (no changes necessary) -- Marc Haber Mon, 03 Aug 2009 15:17:26 +0200 ser2net (2.5-1) unstable; urgency=low * new upstream version. * now writes its own pidfile. Thanks to Robert Edmonds. Closes: #451272 * LSB-ize init script. Closes: #377030 * Use "Serial port to network proxy" (Upstream name) in the package description and the init script. * Standards-Version: 3.7.2.2 (no changes necessary) * add Homepage field to debian/control * Fix wrong logic in /lib/lsb/init-functions processing. -- Marc Haber Fri, 25 Apr 2008 20:10:58 +0200 ser2net (2.3-1) unstable; urgency=low * new upstream version. Will now build on GNU/kFfeeBSD. Thanks to Aurelien Jarno. Closes: #345247 * Disable DEB_AUTO_UPDATE_DEBIAN_CONTROL * Re-Generate debian/control, manually fix wrong dependencies * bump debhelper level to 5 * Standards-Version: 3.6.2 (no changes necessary) * Update FSF street address * document new option \s in ser2net.conf, enable in default config. -- Marc Haber Tue, 3 Jan 2006 07:46:13 +0000 ser2net (2.2-1) unstable; urgency=low * new upstream version * convert to svn * use merge-with-upstream * use DEB_AUTO_UPDATE_DEBIAN_CONTROL -- Marc Haber Wed, 16 Feb 2005 18:52:59 +0000 ser2net (2.1-2) unstable; urgency=low * include conffile /etc/ser2net.conf that was lost during cdbs conversion. * Give an error message if conffile is not present. Closes: #252826. * include upstream conffile in doc/examples. * ship new and better debian/ser2net.conf. * Configure banners on the TCP ports. * Have binary package suggest telnet. * have debian/watch point to heanet. -- Marc Haber Thu, 8 Jul 2004 21:02:12 +0200 ser2net (2.1-1) unstable; urgency=low * new upstream version * add upstream URL to description. Closes: #247991 * add debian/watch. * convert to cdbs. * build depend on autotools-dev to have cdbs automatically handle config.guess/config.sub * Standards-Version: 3.6.1. No changes necessary. * add force-reload option to init script (identical to reload). * fix wrong section in ser2net.8 (see sourceforge ticket #950437). -- Marc Haber Sat, 8 May 2004 14:21:18 +0000 ser2net (1.9-1) unstable; urgency=low * new upstream version * pull config.{guess|sub} from autotools-dev 20030717.1 * remove build-dep on automake, autoconf * remove force-reload from init script, add reload (new upstream feature) -- Marc Haber Tue, 26 Aug 2003 08:34:48 +0000 ser2net (1.6-4) unstable; urgency=low * use PIDFILE instead of hard-coded path in init script * init script deletes PIDFILE after stopping the daemon (Closes: Bug #171255) * init script only stops the daemon if PIDFILE is present. -- Marc Haber Sun, 1 Dec 2002 14:41:16 +0000 ser2net (1.6-3) unstable; urgency=low * new config/* from ftp.gnu.org to allow building on mipsel. * remove debian/conffiles, debhelper now creates that file automatically. * now use debhelper 4 features * add ${misc:Depends} to Depends: * change Build-Depends: to automake1.4 * Standards-Version: 3.5.8 -- Marc Haber Sat, 23 Nov 2002 10:45:36 +0000 ser2net (1.6-2) unstable; urgency=low * Build-Depend: libwrap0-dev * Now compiled with libwrap as the docs suggest * Standards-Version: 3.5.7 * Fix download URL in debian/copyright * Remove master switch from init script. The maintainer scripts use invoke-rc.d which takes care not to start the daemon in the wrong run level. Use update-rc.d to entirely disable the service. -- Marc Haber Tue, 12 Nov 2002 14:34:32 +0000 ser2net (1.6-1) unstable; urgency=low * new upstream (Closes: Bug #154391). * fix typo in description (Closes: Bug #125347). -- Marc Haber Thu, 8 Aug 2002 23:33:56 +0200 ser2net (1.5-2) unstable; urgency=low * rebuilt with current autoconf helper files (Closes: Bug #115029) -- Marc Haber Tue, 9 Oct 2001 16:48:30 +0000 ser2net (1.5-1) unstable; urgency=low * Initial Release (Closes: Bug #112365). -- Marc Haber Tue, 18 Sep 2001 08:09:57 +0000 debian/control.in0000664000000000000000000000136412200504644011201 0ustar Source: ser2net Section: utils Priority: optional Maintainer: Marc Haber Build-Depends: @cdbs@, libwrap0-dev Standards-Version: 3.8.2 Package: ser2net Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: telnet Description: Allows network connections to serial ports This daemon allows telnet and tcp sessions to be established with a unit's serial ports. Combined with a terminal emulation like xterm or the Linux console, this can be a very simple means of communicating with routers, other systems' serial consoles and other equipment with a serial port. This is remarkably similar to the reverse telnet feature of some Cisco routers. . Upstream URL: http://sourceforge.net/projects/ser2net debian/control0000664000000000000000000000152312200504644010571 0ustar Source: ser2net Section: utils Priority: optional Maintainer: Marc Haber Build-Depends: debhelper (>= 9~), dh-autoreconf, libwrap0-dev Standards-Version: 3.9.4 Homepage: http://sourceforge.net/projects/ser2net Vcs-Git: git://git.debian.org/collab-maint/ser2net.git Vcs-Browser: http://git.debian.org/?p=collab-maint/ser2net.git;a=summary Package: ser2net Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, initscripts (>= 2.88dsf-13.3) Suggests: telnet Description: Serial port to network proxy This daemon allows telnet and tcp sessions to be established with a host's serial ports. Combined with a terminal emulator, this can be a very simple means to configure network devices or other equipment with a serial port. This is remarkably similar to the reverse telnet feature of some Cisco routers. debian/dirs0000664000000000000000000000002112200504644010042 0ustar usr/bin usr/sbin debian/prerm0000664000000000000000000000151612200504644010240 0ustar #! /bin/sh # prerm script for ser2net # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see /usr/share/doc/packaging-manual/ case "$1" in remove|upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/init.d0000664000000000000000000000603612200504644010302 0ustar #! /bin/bash # # ser2net init script for ser2net # # Written by Miquel van Smoorenburg . # Modified for Debian GNU/Linux # by Ian Murdock . # Modified for ser2net by Marc Haber ### BEGIN INIT INFO # Provides: ser2net # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Allows network connections to serial ports # Description: This daemon allows telnet and tcp sessions to be established with a unit's serial ports. ### END INIT INFO set -e if [ -r "/lib/lsb/init-functions" ]; then . /lib/lsb/init-functions else echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed" exit 1 fi if [ -n "$SER2NETDEBUG" ]; then echo "now debugging $0 $@" set -x fi LANG=C export LANG PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/ser2net NAME=ser2net DESC="Serial port to network proxy" PIDFILE=/run/$NAME.pid test -f $DAEMON || exit 0 # Defaults CONFFILE="/etc/ser2net.conf" OPTIONS="" CONTROLPORT="" # Read config file (will override defaults above) [ -r /etc/default/ser2net ] && . /etc/default/ser2net # this is from madduck on IRC, 2006-07-06 # There should be a better possibility to give daemon error messages # and/or to log things log() { case "$1" in [[:digit:]]*) success=$1; shift;; *) :;; esac log_action_begin_msg "$1"; shift log_action_end_msg ${success:-0} "$*" } start () { if ! pidofproc -p "$PIDFILE" "$DAEMON" >/dev/null; then start_daemon -p $PIDFILE $DAEMON ${CONTROLPORT:+-p} $CONTROLPORT -c $CONFFILE -P $PIDFILE $OPTIONS ret=$? else log_failure_msg "already running!" log_end_msg 1 exit 1 fi return $ret } stop () { # this is a workaround for #451529 as ser2net 2.5 does not delete its pidfile SIG="${1:--TERM}" killproc -p "$PIDFILE" "$DAEMON" "$SIG" # this is a workaround for killproc -TERM not zapping the pidfile if ! pidofproc -p "$PIDFILE" "$DAEMON" >/dev/null; then rm -f $PIDFILE fi } status() { log_action_begin_msg "checking $DESC" if pidofproc -p "$PIDFILE" "$DAEMON" >/dev/null; then log_action_end_msg 0 "$NAME running" else if [ -e "$PIDFILE" ]; then log_action_end_msg 1 "$NAME failed" exit 1 else log_action_end_msg 0 "$NAME not running" exit 3 fi fi } if ! [ -e "$CONFFILE" ]; then log_failure_msg "Not starting ser2net: Conffile $CONFFILE missing" log_end_msg 1 exit 1 fi case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" start log_end_msg 0 ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" stop log_end_msg 0 ;; reload|force-reload) log_daemon_msg "Reloading $DESC" "$NAME" stop "-HUP" log_end_msg 0 ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" stop sleep 1 start log_end_msg 0 ;; status) status ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/watch0000664000000000000000000000007612200504644010221 0ustar version=2 http://sf.net/ser2net/ser2net-(.+)\.tar\.gz debian debian/compat0000664000000000000000000000000212200504644010363 0ustar 9 debian/install0000664000000000000000000000006612200504644010560 0ustar debian/ser2net.conf etc AUTHORS usr/share/doc/ser2net debian/docs0000664000000000000000000000001412200504644010033 0ustar NEWS README debian/ser2net.conf0000664000000000000000000000723212200504644011422 0ustar # # This is the configuration file for ser2net. It has the following format: # :::: # TCP port # Name or number of the TCP/IP port to accept con- # nections from for this device. 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. Otherwise # it will bind to all the ports on the machine. # # state Either raw or rawlp or telnet or off. off disables # the port from accepting connections. It can be # turned on later from the control port. raw enables # the port and transfers all data as-is between the # port and the long. rawlp enables the port and # transfers all input data to device, device is open # without any termios setting. It allow to use # /dev/lpX devices and printers connected to them. # telnet enables the port and runs the telnet proto- # col on the port to set up telnet parameters. This # is most useful for using telnet. # # timeout # The time (in seconds) before the port will be dis- # connected if there is no activity on it. A zero # value disables this funciton. # # device The name of the device to connect to. This # must be in the form of /dev/. # # options # Sets operational parameters for the serial port. # Options 300, 1200, 2400, 4800, 9600, 19200, 38400, # 57600, 115200 set the various baud rates. EVEN, # ODD, NONE set the parity. 1STOPBIT, 2STOPBITS set # the number of stop bits. 7DATABITS, 8DATABITS set # the number of data bits. [-]XONXOFF turns on (- # off) XON/XOFF support. [-]RTSCTS turns on (- off) # hardware flow control, [-]LOCAL turns off (- on) # monitoring of the modem lines, and # [-]HANGUP_WHEN_DONE turns on (- off) lowering the # modem control lines when the connextion is done. # NOBREAK disables automatic setting of the break # setting of the serial port. # The "remctl" option allow remote control (ala RFC # 2217) of serial-port configuration. A banner name # may also be specified, that banner will be printed # for the line. If no banner is given, then no # banner is printed. # # or... # BANNER::banner # This will create a banner, if the banner name is given in the # options of a line, that banner will be printed. This takes the # standard "C" \x characters (\r is carraige return, \n is newline, # etc.). It also accepts \d, which prints the device name, \p, # which prints the TCP port number, and \s which prints the serial # parameters (eg 9600N81). Banners can span lines if the last # character on a line is '\'. Note that you *must* use \r\n to # start a new line. # # Note that the same device can be listed multiple times under different # ports, this allows the same serial port to have both telnet and raw # protocols. # The original config file shipped with the upstream sources can be # found in /usr/share/doc/ser2net/examples BANNER:banner:\r\nser2net port \p device \d [\s] (Debian GNU/Linux)\r\n\r\n 2000:telnet:600:/dev/ttyS0:9600 8DATABITS NONE 1STOPBIT banner 2001:telnet:600:/dev/ttyS1:9600 8DATABITS NONE 1STOPBIT banner 3000:telnet:600:/dev/ttyS0:19200 8DATABITS NONE 1STOPBIT banner 3001:telnet:600:/dev/ttyS1:19200 8DATABITS NONE 1STOPBIT banner debian/copyright0000664000000000000000000000135412200504644011123 0ustar This package was first debianized by Marc Haber on Tue, 18 Sep 2001 08:09:57 +0000. It was downloaded from http://sourceforge.net/projects/ser2net Upstream Author: Corey Minyard Copyright: GNU General Public License, Version 2 Modifications for Debian are copyright (C) 2001 Marc Haber, and also released under the terms of the GPL -- version 2, or any later version. A copy of the GNU General Public License is available as /usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution or on the World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also obtain it by writing to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. debian/postrm0000664000000000000000000000154712200504644010443 0ustar #! /bin/sh # postrm script for ser2net # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see /usr/share/doc/packaging-manual/ case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# debian/source/0000775000000000000000000000000012200504644010465 5ustar debian/source/format0000664000000000000000000000001412200504644011673 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000072612200504644010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autoreconf --parallel debian/default0000664000000000000000000000103512200504644010533 0ustar # Defaults for ser2net initscript # sourced by /etc/init.d/ser2net # # This is a POSIX shell fragment # # System-wide ser2net conffile. The initscripts # are triggered by the presence of this file. CONFFILE="/etc/ser2net.conf" # Default options. These take precedence over anything # configured by CONFFILE above, so if you like to have # any of them specified in CONFFILE, remove them from # the line below. # OPTIONS="" # Control port. If nonempty, ser2net will listen on the given # tcp port for control connections # CONTROLPORT="" debian/examples0000664000000000000000000000001512200504644010722 0ustar ser2net.conf debian/postinst0000664000000000000000000000236612200504644011002 0ustar #! /bin/sh # postinst script for ser2net # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see /usr/share/doc/packaging-manual/ # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. case "$1" in configure) # continue below ;; abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0