From 55a41c27ebb475fc27d894f114369294e2aab4e4 Mon Sep 17 00:00:00 2001 From: alek Date: Sat, 30 Apr 2005 13:27:17 +0000 Subject: [PATCH] Import socat 1.4.0.3 "netcat++" (extended design, new implementation) socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these. These modes include generation of "listening" sockets, mamed pipes, and pseudo terminals. Submitted by Jon Trembley --- net/socat/Makefile | 42 +++++++++++++++++++++++++++++++++ net/socat/distinfo | 4 ++++ net/socat/patches/patch-socat_1 | 18 ++++++++++++++ net/socat/pkg/DESCR | 9 +++++++ net/socat/pkg/PLIST | 25 ++++++++++++++++++++ 5 files changed, 98 insertions(+) create mode 100644 net/socat/Makefile create mode 100644 net/socat/distinfo create mode 100644 net/socat/patches/patch-socat_1 create mode 100644 net/socat/pkg/DESCR create mode 100644 net/socat/pkg/PLIST diff --git a/net/socat/Makefile b/net/socat/Makefile new file mode 100644 index 00000000000..d6812d1a227 --- /dev/null +++ b/net/socat/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/04/30 13:27:17 alek Exp $ + +COMMENT= "socat is a relay for bidirectional data transfer" + +DISTNAME= socat-1.4.0.3 +CATEGORIES= net + +HOMEPAGE= http://www.dest-unreach.org/socat/ + +MAINTAINER= Jon Trembley + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE}/download/ + +WANTLIB= curses c readline crypto util ssl + +NO_REGRESS= Yes + +CONFIGURE_STYLE=gnu + +WRKDIST= ${WRKDIR}/socat-1.4 + +pre-build: + perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE},g" ${WRKSRC}/socat.1 + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/socat +.for file in FAQ README SECURITY xio.help socat.html + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/socat +.endfor + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/socat +.for file in EXAMPLES testcert.conf *.sh + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/examples/socat +.endfor + + +.include diff --git a/net/socat/distinfo b/net/socat/distinfo new file mode 100644 index 00000000000..106c22c95db --- /dev/null +++ b/net/socat/distinfo @@ -0,0 +1,4 @@ +MD5 (socat-1.4.0.3.tar.gz) = 845b94598726fdc6721bf3e155572293 +RMD160 (socat-1.4.0.3.tar.gz) = 57e74eb9c9660c7f771c7381a0d1ab1ee1230007 +SHA1 (socat-1.4.0.3.tar.gz) = b080fba3c1e532743e8e5ffb6b116139cd634bc2 +SIZE (socat-1.4.0.3.tar.gz) = 319081 diff --git a/net/socat/patches/patch-socat_1 b/net/socat/patches/patch-socat_1 new file mode 100644 index 00000000000..94c21f13812 --- /dev/null +++ b/net/socat/patches/patch-socat_1 @@ -0,0 +1,18 @@ +$OpenBSD: patch-socat_1,v 1.1.1.1 2005/04/30 13:27:17 alek Exp $ +--- socat.1.orig Sat Apr 30 15:18:52 2005 ++++ socat.1 Sat Apr 30 15:19:25 2005 +@@ -2013,11 +2013,11 @@ error\&. + .PP + .SH "FILES" + .PP +-/usr/bin/socat ++!!LOCALBASE!!/bin/socat + .br +-/usr/bin/filan ++!!LOCALBASE!!/bin/filan + .br +-/usr/bin/procan ++!!LOCALBASE!!/bin/procan + .PP + .SH "CREDITS" + .PP diff --git a/net/socat/pkg/DESCR b/net/socat/pkg/DESCR new file mode 100644 index 00000000000..3a4dc2d2b3b --- /dev/null +++ b/net/socat/pkg/DESCR @@ -0,0 +1,9 @@ +"netcat++" (extended design, new implementation) + +socat is a relay for bidirectional data transfer between two independent +data channels. Each of these data channels may be a file, pipe, device +(serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, +UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor +(stdin etc.), the GNU line editor (readline), a program, or a +combination of two of these. These modes include generation of +"listening" sockets, mamed pipes, and pseudo terminals. diff --git a/net/socat/pkg/PLIST b/net/socat/pkg/PLIST new file mode 100644 index 00000000000..9a11285b43d --- /dev/null +++ b/net/socat/pkg/PLIST @@ -0,0 +1,25 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/04/30 13:27:17 alek Exp $ +bin/filan +bin/procan +bin/socat +@man man/man1/socat.1 +share/doc/socat/ +share/doc/socat/FAQ +share/doc/socat/README +share/doc/socat/SECURITY +share/doc/socat/socat.html +share/doc/socat/xio.help +share/examples/socat/ +share/examples/socat/EXAMPLES +share/examples/socat/daemon.sh +share/examples/socat/ftp.sh +share/examples/socat/gatherinfo.sh +share/examples/socat/mail.sh +share/examples/socat/proxy.sh +share/examples/socat/proxyecho.sh +share/examples/socat/readline-test.sh +share/examples/socat/readline.sh +share/examples/socat/socks4a-echo.sh +share/examples/socat/socks4echo.sh +share/examples/socat/test.sh +share/examples/socat/testcert.conf