diff options
author | edwin <edwin@FreeBSD.org> | 2003-02-12 17:31:06 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-02-12 17:31:06 +0800 |
commit | bad47b3f9c9c36ab3faa5f2317635c2cebcbb46a (patch) | |
tree | 32b278eeceb698f52637fb42ee61c50952ecc254 /net | |
parent | f55f3d2b443a514ddbfe824eddb8eec46a97a339 (diff) | |
download | freebsd-ports-gnome-bad47b3f9c9c36ab3faa5f2317635c2cebcbb46a.tar.gz freebsd-ports-gnome-bad47b3f9c9c36ab3faa5f2317635c2cebcbb46a.tar.zst freebsd-ports-gnome-bad47b3f9c9c36ab3faa5f2317635c2cebcbb46a.zip |
New port: net/unix2tcp
A connection forwarder that converts Unix sockets into TCP
sockets. Compiles on both 4.x and -CURRENT
PR: ports/47667
Submitted by: Michael L. Hostbaek <mich@freebsdcluster.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/unix2tcp/Makefile | 31 | ||||
-rw-r--r-- | net/unix2tcp/distinfo | 1 | ||||
-rw-r--r-- | net/unix2tcp/pkg-comment | 1 | ||||
-rw-r--r-- | net/unix2tcp/pkg-descr | 17 | ||||
-rw-r--r-- | net/unix2tcp/pkg-plist | 3 |
6 files changed, 54 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 3ab088719caa..64e2807b6ede 100644 --- a/net/Makefile +++ b/net/Makefile @@ -621,6 +621,7 @@ SUBDIR += tvark SUBDIR += udptunnel SUBDIR += unison + SUBDIR += unix2tcp SUBDIR += urlendec SUBDIR += utftpd SUBDIR += v6eval diff --git a/net/unix2tcp/Makefile b/net/unix2tcp/Makefile new file mode 100644 index 000000000000..0b70cba17702 --- /dev/null +++ b/net/unix2tcp/Makefile @@ -0,0 +1,31 @@ +# ex:ts=8 +# Ports collection makefile for: unix2tcp +# Date created: Thu Jan 30, 2003 +# Whom: Michael L. Hostbaek (mich@freebsdcluster.org) +# +# $FreeBSD$ +# + +PORTNAME= unix2tcp +PORTVERSION= 0.7.2 +CATEGORIES= net +MASTER_SITES= http://ahriman.bucharest.roedu.net/unix2tcp/ + +MAINTAINER= mich@freebsdcluster.org +COMMENT= A connection forwarder that converts Unix sockets into TCP sockets + +do-build: + cd ${WRKSRC} && \ + ${CC} -I. ${PORTNAME}.c -c &&\ + ${CC} -I. list.c -c && \ + ${CC} ${PORTNAME}.o list.o -o ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README +.endif + +.include <bsd.port.mk> diff --git a/net/unix2tcp/distinfo b/net/unix2tcp/distinfo new file mode 100644 index 000000000000..a8714d4054a0 --- /dev/null +++ b/net/unix2tcp/distinfo @@ -0,0 +1 @@ +MD5 (unix2tcp-0.7.2.tar.gz) = d0d08bdb9e6059866e6886c8588640e6 diff --git a/net/unix2tcp/pkg-comment b/net/unix2tcp/pkg-comment new file mode 100644 index 000000000000..7bae4a5ecd31 --- /dev/null +++ b/net/unix2tcp/pkg-comment @@ -0,0 +1 @@ +A connection forwarder that converts Unix sockets into TCP sockets diff --git a/net/unix2tcp/pkg-descr b/net/unix2tcp/pkg-descr new file mode 100644 index 000000000000..feb34097400f --- /dev/null +++ b/net/unix2tcp/pkg-descr @@ -0,0 +1,17 @@ +Aims: +- To listen on a local UNIX socket and tunnel any incoming connections and + traffic to a (remote) IP address/port + +What it does: +- Tunnels all traffic betweeb a (remote) address/port and a local UNIX socket +- Does NOT use fork() (single process model) +- Does use O_NONBLOCK , should be no case of blocking + +What it doesnt do (yet): +- Doesnt limit number of concurent connections + +WWW: http://ahriman.bucharest.roedu.net/unix2tcp/ +AUTHOR: <dizzy@roedu.net> + + - Michael L. Hostbaek + mich@freebsdcluster.org diff --git a/net/unix2tcp/pkg-plist b/net/unix2tcp/pkg-plist new file mode 100644 index 000000000000..5dd82a106dcc --- /dev/null +++ b/net/unix2tcp/pkg-plist @@ -0,0 +1,3 @@ +sbin/unix2tcp +%%PORTDOCS%%share/doc/unix2tcp/README +%%PORTDOCS%%@dirrm /share/doc/unix2tcp |