pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/fd-proxy Add fd-proxy, glue for making a TCP proxy...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/250c23243beb
branches:  trunk
changeset: 770106:250c23243beb
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Nov 25 08:18:18 2021 +0000

description:
Add fd-proxy, glue for making a TCP proxy using ucspi-tcp tools.

fd-proxy is a very small program, written in C. Its purpose is to
connect the I/Os of a tcpserver and tcpclient pair (from the ucspi-tcp
suite) in order to implement a TCP proxy. Setting up such a proxy can be
done in a single line.

diffstat:

 net/fd-proxy/DESCR                  |   4 ++++
 net/fd-proxy/Makefile               |  26 ++++++++++++++++++++++++++
 net/fd-proxy/PLIST                  |   3 +++
 net/fd-proxy/distinfo               |   6 ++++++
 net/fd-proxy/patches/patch-Makefile |  15 +++++++++++++++
 5 files changed, 54 insertions(+), 0 deletions(-)

diffs (74 lines):

diff -r 86aa44c094e2 -r 250c23243beb net/fd-proxy/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fd-proxy/DESCR        Thu Nov 25 08:18:18 2021 +0000
@@ -0,0 +1,4 @@
+fd-proxy is a very small program, written in C. Its purpose is to
+connect the I/Os of a tcpserver and tcpclient pair (from the ucspi-tcp
+suite) in order to implement a TCP proxy. Setting up such a proxy can be
+done in a single line.
diff -r 86aa44c094e2 -r 250c23243beb net/fd-proxy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fd-proxy/Makefile     Thu Nov 25 08:18:18 2021 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2021/11/25 08:18:18 schmonz Exp $
+
+GITHUB_PROJECT=        fd-proxy
+GITHUB_TAG=    33b844d998c32c82dcc825ab316f97a0adc2b92f
+PKGVERSION=    20141025
+DISTNAME=      ${GITHUB_TAG}
+PKGNAME=       ${GITHUB_PROJECT}-${PKGVERSION}
+CATEGORIES=    net
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=wingunder/}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+
+MAINTAINER=    schmonz%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/wingunder/fd-proxy/
+COMMENT=       Glue for making a TCP proxy using ucspi-tcp tools
+LICENSE=       gnu-gpl-v2
+
+WRKSRC=                ${WRKDIR}/${PKGBASE}-${GITHUB_TAG}
+
+INSTALLATION_DIRS=     bin share/doc/${PKGBASE}
+
+do-install:
+       cd ${WRKSRC} && \
+       ${INSTALL_PROGRAM} ${PKGBASE} ${DESTDIR}${PREFIX}/bin && \
+       ${INSTALL_DATA} README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../mk/bsd.pkg.mk"
diff -r 86aa44c094e2 -r 250c23243beb net/fd-proxy/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fd-proxy/PLIST        Thu Nov 25 08:18:18 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/11/25 08:18:18 schmonz Exp $
+bin/fd-proxy
+share/doc/fd-proxy/README.md
diff -r 86aa44c094e2 -r 250c23243beb net/fd-proxy/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fd-proxy/distinfo     Thu Nov 25 08:18:18 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/11/25 08:18:18 schmonz Exp $
+
+BLAKE2s (fd-proxy/33b844d998c32c82dcc825ab316f97a0adc2b92f-33b844d998c32c82dcc825ab316f97a0adc2b92f.tar.gz) = 560adc859c721165de9587fada12176d1a3b4dfb63a272f1d93567c4bc9194b4
+SHA512 (fd-proxy/33b844d998c32c82dcc825ab316f97a0adc2b92f-33b844d998c32c82dcc825ab316f97a0adc2b92f.tar.gz) = 
c0b96aa30124f02f95dea16750bd15e15ca6f25d18b249ab7807c71ea53a4f8a8f9568d1eb5b39124d17c83fd15706c2a06ab6137c6b12e4eef5b1e631a6c7ff
+Size (fd-proxy/33b844d998c32c82dcc825ab316f97a0adc2b92f-33b844d998c32c82dcc825ab316f97a0adc2b92f.tar.gz) = 9318 bytes
+SHA1 (patch-Makefile) = c223ad3b6b6cb0c7778b794cf1d3416bc39396d0
diff -r 86aa44c094e2 -r 250c23243beb net/fd-proxy/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fd-proxy/patches/patch-Makefile       Thu Nov 25 08:18:18 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2021/11/25 08:18:18 schmonz Exp $
+
+Respect CFLAGS and LDFLAGS.
+
+--- Makefile.orig      2014-10-25 15:50:14.000000000 +0000
++++ Makefile
+@@ -7,7 +7,7 @@ fd-proxy.html: README.md
+       pandoc -f markdown -t html $< >$@
+ 
+ fd-proxy: fd-proxy.c
+-      gcc -Wall -O3 -o $@ $<
++      cc ${CFLAGS} ${LDFLAGS} -o $@ $<
+ 
+ rules.cdb: rules.txt
+       cat $< |tcprules $@ tmp



Home | Main Index | Thread Index | Old Index