diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-04-03 21:12:03 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-04-03 21:12:03 +0000 |
commit | b59e0b0c7b840dbfcf137cab70d745601f6b4526 (patch) | |
tree | 128d3d11ec0447ea0920764dccb136fd1b20208b | |
parent | - Update to 1.3 (diff) |
Add pbnc 1.0, simple userspace TCP port bouncer.
PR: ports/ports/65125
Submitted by: hrs
Notes
Notes:
svn path=/head/; revision=106064
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/pbnc/Makefile | 45 | ||||
-rw-r--r-- | net/pbnc/distinfo | 2 | ||||
-rw-r--r-- | net/pbnc/pkg-descr | 12 |
4 files changed, 60 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index ac6e563fbe48..693eb5e1dd19 100644 --- a/net/Makefile +++ b/net/Makefile @@ -473,6 +473,7 @@ SUBDIR += partysip SUBDIR += passlogd SUBDIR += pathchar + SUBDIR += pbnc SUBDIR += pchar SUBDIR += pcnfsd SUBDIR += pear-Net_NNTP diff --git a/net/pbnc/Makefile b/net/pbnc/Makefile new file mode 100644 index 000000000000..6db78f2b98ec --- /dev/null +++ b/net/pbnc/Makefile @@ -0,0 +1,45 @@ +# Ports collection makefile for: pbnc +# Date created: 03 Apr 2004 +# Whom: hrs +# +# $FreeBSD$ + +PORTNAME= pbnc +PORTVERSION= 1.0 +CATEGORIES= net +MASTER_SITES= http://duncanthrax.net/pbnc/ +DISTNAME= pbnc + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Simple userspace TCP port bouncer + +RUN_DEPENDS= ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask + +NO_BUILD= yes +PLIST= ${WRKSRC}/pkg-plist + +CONFIGDIR= etc +CONFIG_FILES= pbnc.cfg +SCRIPTDIR= bin +SCRIPT_FILES= pbnc.pl +DOC_FILES= pbnc.readme + +pre-install: + (${ECHO_CMD} "${CONFIGDIR}/${CONFIG_FILES}"; \ + ${ECHO_CMD} "${SCRIPTDIR}/${SCRIPT_FILES}"; ) > ${PLIST} +.if !defined(NOPORTDOCS) + (for F in ${DOC_FILES}; do \ + ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \ + done;\ + ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST} +.endif + +do-install: + ${INSTALL_SCRIPT} ${SCRIPT_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${SCRIPTDIR} + ${INSTALL_DATA} ${CONFIG_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${CONFIGDIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/net/pbnc/distinfo b/net/pbnc/distinfo new file mode 100644 index 000000000000..48ff27074dd5 --- /dev/null +++ b/net/pbnc/distinfo @@ -0,0 +1,2 @@ +MD5 (pbnc.tar.gz) = 13b419ee101f2c45155818cc78326f42 +SIZE (pbnc.tar.gz) = 6018 diff --git a/net/pbnc/pkg-descr b/net/pbnc/pkg-descr new file mode 100644 index 000000000000..3ebfa065949a --- /dev/null +++ b/net/pbnc/pkg-descr @@ -0,0 +1,12 @@ +pbnc runs in userland and acts as a simple TCP port forwarder. +It has a single-threaded design (uses select(), does not +fork). It can handle multiple targets with an unlimited number +of clients (at least in theory), and supports simple IP-based +access control. Since pbnc works on network level, it does not +care about the application protocol. It can tunnel FTP +(control connection), SSH, HTTP and all other protocols using +TCP communication. Application-level SSL/TLS encryption is +also no problem. + +WWW: http://duncanthrax.net/pbnc/ +WWW: http://freshmeat.net/projects/pbnc/ |