debian/0000755000000000000000000000000012141110247007157 5ustar debian/tcpser.10000644000000000000000000000463612141110247010552 0ustar .\" Hey, EMACS: -*- nroff -*- .TH TCPSER 1 "July 5, 2006" .SH NAME tcpser \- emulate a Hayes compatible modem .SH SYNOPSIS .B tcpser \-d \fIdev\fP \-s \fIspeed\fP [\-l \fIlog_level\fP \-t \fItracing_options\fP] ... .br .B tcpser \-v \fIport\fP [\-l \fIlog_level\fP \-t \fItracing_options\fP] ... .SH DESCRIPTION This manual page documents briefly the .B tcpser command. .PP \fBtcpser\fP turns a PC serial port into an emulated Hayes compatible modem that uses TCP/IP for incoming and outgoing connections. It can be used to allow older applications and systems designed for modem use to operate on the Internet. \fBtcpser\fP supports all standard Hayes commands, and understands extended and vendor proprietary commands (though it does not implement many of them). \fBtcpser\fP can be used for both inbound and outbound connections. .SH OPTIONS A summary of options is included below. .TP .B \-h Show summary of options. .TP .B \-p Port to listen on (defaults to 6400). .TP .B \-t Trace flags: (can be combined) .PD 0 .RS 10 .IP "s" modem input .IP "S" modem output .IP "i" IP input .IP "I" IP output .RE .PD 1 .TP .B \-l Log level: 0 (NONE), 1 (FATAL) - 7 (DEBUG_X) (defaults to 0). .TP .B \-L Log file (defaults to stderr). .TP The following can be repeated for each modem desired (\-s, \-S, and \-i will apply to any subsequent device if not set again): .TP .B \-d Serial device (e.g. /dev/ttyS0). Cannot be used with \-v .TP .B \-v TCP port for VICE RS232 (e.g. 25232). Cannot be used with \-d .TP .B \-s Serial port speed (defaults to 38400). .TP .B \-S Speed modem will report (defaults to \-s value). .TP .B \-I Invert DCD pin. .TP .B \-n Add phone entry (number=replacement). .TP .B \-a Filename to send to local side upon answer. .TP .B \-A Filename to send to remote side upon answer. .TP .B \-c Filename to send to local side upon connect. .TP .B \-C Filename to send to remote side upon connect. .TP .B \-N Filename to send when no answer. .TP .B \-B Filename to send when modem(s) busy. .TP .B \-T Filename to send upon inactivity timeout. .TP .B \-i Modem init string (defaults to `', leave off `at' prefix when specifying). .TP .B \-D Direct connection (follow with hostname:port for caller, : for receiver). .SH AUTHOR tcpser was written by Jim Brain . .PP This manual page was written by Peter Collingbourne , for the Debian project (but may be used by others). debian/dirs0000644000000000000000000000001012141110247010032 0ustar usr/bin debian/install0000644000000000000000000000001712141110247010546 0ustar tcpser usr/bin debian/watch0000644000000000000000000000044512141110247010213 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,dversionmangle=s/(\d)(rc\d*)$/$1~$2/ \ http://www.jbrain.com/pub/linux/serial/tcpser-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) # Bart Martens Sun, 23 Dec 2012 13:33:34 +0000 debian/rules0000755000000000000000000000203012141110247010232 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all LDFLAGS = -lpthread # From original Makefile LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS) LDFLAGS += -Wl,--as-needed CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS = $(shell dpkg-buildflags --get CFLAGS) CFLAGS += -Wall -pedantic -g $(CPPFLAGS) build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" touch $@ clean: dh_testdir dh_testroot rm -f build-stamp $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installchangelogs CHANGES dh_installdocs dh_installman dh_install dh_strip dh_compress dh_fixperms dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/changelog0000644000000000000000000000324612141110247011036 0ustar tcpser (1.0rc12-2) unstable; urgency=low [ Jari Aalto ] * QA upload. * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt" (Closes: #664359). * Update to Standards-Version to 3.9.4, debhelper to 9, ${misc:Depends}. * Add build-arch and build-indep targets; use dh_prep in rules file. * Fix copyright-with-old-dh-make-debian-copyright (Lintian). * Move Alioth repository from Bzr to Git (git-buildpackage). * Use hardened build flags http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags [ tony mancill ] * Update d/watch file. Thank you to Bart Martens. * Add patch to address FTBFS with "ld --as-needed". (Closes: #641411) - Thank you to Matthias Klose. -- tony mancill Fri, 03 May 2013 21:27:26 -0700 tcpser (1.0rc12-1) unstable; urgency=low * New upstream release * debian/tcpser.1: fixed typos, added -v option, added square brackets where necessary * src/init.c: reverted "Fixed typo in usage summary" * debian/patches/01-usage-typo.dpatch: moved patch to dpatch * Makefile: reverted "Added install rule to makefile" * debian/rules, debian/install: moved install rule here * debian/control: updated Standards-Version, added dpatch to Build-Depends, added Vcs-Bzr field, added Homepage field * debian/watch: added * debian/copyright: updated year to 2008 -- Peter Collingbourne Mon, 4 Feb 2008 12:51:33 +0000 tcpser (1.0rc10-1) unstable; urgency=low * Initial release (Closes: #376993) * Added install rule to makefile * Wrote man page * Fixed typo in usage summary -- Peter Collingbourne Tue, 4 Jul 2006 18:17:01 -0700 debian/patches/0000755000000000000000000000000012141110247010606 5ustar debian/patches/02-ftbfs-641411.patch0000644000000000000000000000042612141110247013712 0ustar diff --git a/Makefile b/Makefile index 4a6a359..beeacf7 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ $(SRCS): $(CC) $(CFLAGS) -c $*.c tcpser: $(OBJS) - $(CC) $(LDFLAGS) -o $@ $(OBJS) + $(CC) $(OBJS) $(LDFLAGS) -o $@ depend: $(SRCS) $(DEPEND) $(SRCS) debian/patches/series0000644000000000000000000000005212141110247012020 0ustar 01-usage-typo.patch 02-ftbfs-641411.patch debian/patches/01-usage-typo.patch0000644000000000000000000000130212141110247014136 0ustar From: Subject: src/init.c: Fixed typo in usage summary diff -urNad tcpser-1.0rc12~/src/init.c tcpser-1.0rc12/src/init.c --- tcpser-1.0rc12~/src/init.c 2008-02-04 13:48:58.000000000 +0000 +++ tcpser-1.0rc12/src/init.c 2008-02-04 13:59:00.000000000 +0000 @@ -12,7 +12,7 @@ fprintf(stderr, " 's' = modem input\n"); fprintf(stderr, " 'S' = modem output\n"); fprintf(stderr, " 'i' = IP input\n"); - fprintf(stderr, " 'I' = IP input\n"); + fprintf(stderr, " 'I' = IP output\n"); fprintf(stderr, " -l 0 (NONE), 1 (FATAL) - 7 (DEBUG_X) (defaults to 0)\n"); fprintf(stderr, " -L log file (defaults to stderr)\n"); fprintf(stderr, "\n"); debian/docs0000644000000000000000000000000712141110247010027 0ustar README debian/source/0000755000000000000000000000000012141110247010457 5ustar debian/source/format0000644000000000000000000000001412141110247011665 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212141110247010355 0ustar 9 debian/copyright0000644000000000000000000000110212141110247011104 0ustar This package was debianized by Peter Collingbourne on Tue, 4 Jul 2006 18:17:01 -0700. It was downloaded from http://www.jbrain.com/pub/linux/serial Upstream Author: Jim Brain Copyright: Copyright (C) 2008 Jim Brain License: TCPSER is distributed under the GPL 2.0 or later On Debian GNU/Linux systems, the text of the GPL can be found in /usr/share/common-licenses/GPL-2. The Debian packaging is Copyright (C) 2008, Peter Collingbourne and is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. debian/manpages0000644000000000000000000000002012141110247010665 0ustar debian/tcpser.1 debian/control0000644000000000000000000000160312141110247010562 0ustar Source: tcpser Section: net Priority: optional Maintainer: Debian QA Group Build-Depends: debhelper (>= 9) Homepage: http://www.jbrain.com/pub/linux/serial/ Standards-Version: 3.9.4 Vcs-Browser: http://git.debian.org/?p=collab-maint/tcpser.git Vcs-Git: git://git.debian.org/git/collab-maint/tcpser.git Package: tcpser Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: emulate a Hayes compatible modem TCPSER turns a PC serial port into an emulated Hayes compatible modem that uses TCP/IP for incoming and outgoing connections. It can be used to allow older applications and systems designed for modem use to operate on the Internet. TCPSER supports all standard Hayes commands, and understands extended and vendor proprietary commands (though it does not implement many of them). TCPSER can be used for both inbound and outbound connections.