debian/0000755000000000000000000000000011716246445007200 5ustar debian/dirs0000644000000000000000000000001011716245432010046 0ustar usr/bin debian/patches/0000755000000000000000000000000011716245704010624 5ustar debian/patches/fix_mdns_use.dpatch0000644000000000000000000000300211716245432014465 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## fix_mdns_use.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Switches from gethostbyaddr() to getnameinfo() to fix performance ## DP: issues when using nss_mdns ## DP: See http://bugs.debian.org/508148 @DPATCH@ diff -urNad simpleproxy-3.4~/simpleproxy.c simpleproxy-3.4/simpleproxy.c --- simpleproxy-3.4~/simpleproxy.c 2005-08-25 21:45:46.000000000 -0700 +++ simpleproxy-3.4/simpleproxy.c 2008-12-08 23:30:27.000000000 -0800 @@ -78,6 +78,9 @@ #include #include +#include +#include + #include "cfg.h" #ifndef nil @@ -166,6 +169,9 @@ int rsp = 1; char *http_auth = nil; char *HTTPAuthHash = nil; + struct sockaddr *sa; + int len; + char hbuf[NI_MAXHOST]; /* Check for the arguments, and overwrite values from cfg file */ while((c = getopt(ac, av, "iVv7dhL:R:H:f:p:P:D:S:s:a:t:")) != -1) @@ -394,8 +400,11 @@ break; case 0: /* Child */ - hp = gethostbyaddr((char *)&cli_addr, clien, AF_INET); - client_name = strdup(hp?(hp->h_name): inet_ntoa(cli_addr.sin_addr)); + if (getnameinfo((const struct sockaddr *) &cli_addr, len, + hbuf, sizeof(hbuf), NULL, 0, 0) == 0) + client_name = strdup(hbuf); + else + client_name = inet_ntoa(cli_addr.sin_addr); /* * I don't know is that a bug, but on Irix 6.2 parent debian/patches/series0000644000000000000000000000004711716245670012044 0ustar fix_mdns_use.dpatch fix_manpage.dpatch debian/patches/fix_manpage.dpatch0000644000000000000000000000104711716245432014267 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## fix_manpage.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: New and improved patch to remove man error @DPATCH@ diff -urNad simpleproxy-3.4~/simpleproxy.man simpleproxy-3.4/simpleproxy.man --- simpleproxy-3.4~/simpleproxy.man 2005-08-22 18:31:20.000000000 -0700 +++ simpleproxy-3.4/simpleproxy.man 2008-12-08 23:53:47.000000000 -0800 @@ -68,7 +68,6 @@ .SH BUGS\ \ \ \ Only \fItcp\fP ports are supported. -.TP8 .PP .SH SEE ALSO debian/rules0000755000000000000000000000432111716246411010251 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure dh_testdir # Add here commands to configure the package. ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #/usr/bin/docbook-to-man debian/simpleproxy.sgml > simpleproxy.1 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.status rm -rf debian/simpleproxy || true dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/simpleproxy. $(MAKE) install prefix=$(CURDIR)/debian/simpleproxy/usr # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot # dh_installdebconf dh_installdocs dh_installexamples dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit dh_installcron dh_installman dh_installinfo # dh_undocumented dh_installchangelogs ChangeLog dh_link dh_strip dh_compress dh_fixperms # dh_makeshlibs dh_installdeb # dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/README.Debian0000644000000000000000000000040211716245432011230 0ustar An example is worth a thousand words, so here is how I use simpleproxy to get around Earthlink's port 25 block: In /etc/inetd.conf (on my smtp host at work): 2525 stream tcp nowait nobody /usr/bin/simpleproxy simpleproxy -i -R localhost:25 -David debian/watch0000644000000000000000000000043611716245432010227 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # Site Directory Pattern Version Script version=2 http://sf.net/simpleproxy /simpleproxy/simpleproxy-(.*)\.tar\.gz debian uupdate debian/docs0000644000000000000000000000003211716245432010041 0ustar README TODO pop3users.txt debian/control0000644000000000000000000000100411716246243010572 0ustar Source: simpleproxy Section: net Priority: optional Maintainer: Andrew Pollock Build-Depends: debhelper (>> 3.0.0) Standards-Version: 3.9.2 Homepage: http://www.sourceforge.net/projects/simpleproxy Package: simpleproxy Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Simple TCP proxy simpleproxy acts as a simple TCP proxy. It opens a listening socket on the local machine and forwards any connection to a remote host. It can be run as a daemon or through inetd. debian/changelog0000644000000000000000000000710411716246445011054 0ustar simpleproxy (3.4-5) unstable; urgency=low * Convert to 3.0 (quilt) format: - debian/control: remove build dependency on dpatch - debian/rules: remove dpatch bits and pieces - convert patches from dpatch to quilt * debian/control: added ${misc:Depends} to depends * debian/rules: added build-{indep,arch} targets * debian/control: bumped Standards-Version (no changes) -- Andrew Pollock Mon, 13 Feb 2012 09:49:01 -0800 simpleproxy (3.4-4) unstable; urgency=low * Add patch from Joey Hess to fix slowness when using nss_mdns (switches from gethostbyaddr() to getnameinfo()) (closes: #508148) * Removed obsolete patches * debian/control: bumped Standards-Version (no changes) * Redid the man page patch so that it still passes Lintian, and produces the correct output -- Andrew Pollock Mon, 08 Dec 2008 23:49:44 -0800 simpleproxy (3.4-3) unstable; urgency=low * debian/watch: fixed URL (closes: #450112) * debian/control: bumped Standards-Version (no changes) * Removed a bunch of cruft from the diff.gz * debian/rules: stopped copying in /usr/share/misc/config.{sub,guess} as it seems to be unnecessary -- Andrew Pollock Fri, 21 Mar 2008 23:11:22 -0700 simpleproxy (3.4-2) unstable; urgency=low * debian/control: Moved Homepage: from binary to source * debian/rules: removed DH_COMPAT in favour of debian/compat * Bumped debhelper compatibility to 5 * debian/control: bumped Standards-Version to 3.7.2.2 (no changes) * debian/rules: rejigger how "make distclean" is called in the clean target -- Andrew Pollock Sat, 27 Oct 2007 16:08:28 -0700 simpleproxy (3.4-1) unstable; urgency=low * New upstream release * Removed application of patch for CAN-2005-1857 as it is now included * Removed application of patch to fix #199285 as it is now included * debian/control: bumped Standards-Version (no changes) * debian/copyright: updated upstream authors -- Andrew Pollock Wed, 31 Aug 2005 12:11:11 +1000 simpleproxy (3.2-4) unstable; urgency=low * Include patch to fix CAN-2005-1857 * Patch manpage code typo -- Andrew Pollock Tue, 23 Aug 2005 10:59:26 +1000 simpleproxy (3.2-3) unstable; urgency=low * debian/control: pre-depend on dpatch * debian/rules: use dpatch * upstream dragging the chain applying patch, so I have (closes: #199285) -- Andrew Pollock Sun, 9 Nov 2003 09:14:14 +1100 simpleproxy (3.2-2) unstable; urgency=low * debian/control: cosmetic changes to package descriptions * debian/rules: made compliant with section 10.1 of policy * debian/control: bumped Standards-Version to 3.6.1 * debian/watch: switched to version 2 file format -- Andrew Pollock Sat, 25 Oct 2003 19:27:18 +1000 simpleproxy (3.2-1) unstable; urgency=low * New upstream release (closes: #203799) * debian/copyright: fixed Lintian uncleanliness -- Andrew Pollock Wed, 15 Oct 2003 13:58:45 +1000 simpleproxy (3.1-3) unstable; urgency=low * New maintainer (closes: #215381) -- Andrew Pollock Wed, 15 Oct 2003 09:01:19 +1000 simpleproxy (3.1-2) unstable; urgency=low * Fixed Build-Depends. (Closes: #149486) * Changed capitalization of TCP in control file. (Closes: #149868) -- David Caldwell Thu, 13 Jun 2002 11:13:30 -0700 simpleproxy (3.1-1) unstable; urgency=low * Initial Release. (Closes: #144795) -- David Caldwell Wed, 24 Apr 2002 20:59:40 -0700 debian/compat0000644000000000000000000000000211716245432010371 0ustar 5 debian/source/0000755000000000000000000000000011716245471010476 5ustar debian/source/format0000644000000000000000000000001411716245471011704 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000062411716245432011130 0ustar This package was debianized by David Caldwell on Wed, 24 Apr 2002 20:59:40 -0700. It was downloaded from sourceforge. Upstream Authors: Vadim Zaliva Vlad Karpinsky Copyright: Copyright (C) 1999 Vadim Zaliva License: GPL (/usr/share/common-licenses/GPL)