summaryrefslogtreecommitdiff
path: root/net/rinetd
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>1999-06-12 04:45:53 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>1999-06-12 04:45:53 +0000
commita5f8d579c04186e5729f3063e9525be08ce63f7d (patch)
treee2f0f4c76804b5ff1575f9a358e2d4ee25a0c08b /net/rinetd
parentmark as BROKEN, not yet ready for latest p5-libwww (diff)
rinetd - simple TCP-only port redirector program.
Submitted by: Alex Perel <veers@disturbed.net> aka Storm-
Notes
Notes: svn path=/head/; revision=19434
Diffstat (limited to 'net/rinetd')
-rw-r--r--net/rinetd/Makefile25
-rw-r--r--net/rinetd/distinfo1
-rw-r--r--net/rinetd/files/patch-aa22
-rw-r--r--net/rinetd/files/patch-ab12
-rw-r--r--net/rinetd/pkg-comment1
-rw-r--r--net/rinetd/pkg-descr12
-rw-r--r--net/rinetd/pkg-plist4
7 files changed, 77 insertions, 0 deletions
diff --git a/net/rinetd/Makefile b/net/rinetd/Makefile
new file mode 100644
index 000000000000..0d5a856a4431
--- /dev/null
+++ b/net/rinetd/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: rinetd
+# Version required: 0.61
+# Date created: 23 Dec 1997
+# Whom: alexp
+#
+# $Id$
+#
+
+DISTNAME= rinetd
+PKGNAME= rinetd-0.61
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.boutell.com/pub/boutell/rinetd/
+
+MAINTAINER= veers@disturbed.net
+
+WRKSRC= ${WRKDIR}/rinetd/
+
+MAN8= rinetd.8
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/rinetd
+ ${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/index.html ${PREFIX}/share/doc/rinetd/
+ ${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/README ${PREFIX}/share/doc/rinetd/
+
+.include <bsd.port.mk>
diff --git a/net/rinetd/distinfo b/net/rinetd/distinfo
new file mode 100644
index 000000000000..2516e5cccc21
--- /dev/null
+++ b/net/rinetd/distinfo
@@ -0,0 +1 @@
+MD5 (rinetd.tar.gz) = 850d5b32cd53339e200e978b5cd06c7d
diff --git a/net/rinetd/files/patch-aa b/net/rinetd/files/patch-aa
new file mode 100644
index 000000000000..a0a827845b63
--- /dev/null
+++ b/net/rinetd/files/patch-aa
@@ -0,0 +1,22 @@
+--- ../rinetd.orig/Makefile Mon Mar 1 13:41:50 1999
++++ Makefile Fri Jun 11 19:56:19 1999
+@@ -1,9 +1,14 @@
+-CFLAGS=-DLINUX -g
++CFLAGS+=-I.
+
+-rinetd: rinetd.o match.o
+- gcc rinetd.o match.o -o rinetd
++all: rinetd
++
++rinetd: rinetd.o match.o getopt.o
++ cc ${CFLAGS} rinetd.o match.o getopt.o -o rinetd
++
++getopt.o:
++ cc ${CFLAGS} -c getopt.c
+
+ install: rinetd
+- install -m 700 rinetd /usr/sbin
+- install -m 644 rinetd.8 /usr/man/man8
++ install -C -o root -g wheel -m 700 rinetd /usr/local/sbin
++ install -C -o root -g wheel -m 644 rinetd.8 /usr/local/man/man8
+
diff --git a/net/rinetd/files/patch-ab b/net/rinetd/files/patch-ab
new file mode 100644
index 000000000000..084433fff3a2
--- /dev/null
+++ b/net/rinetd/files/patch-ab
@@ -0,0 +1,12 @@
+diff -u ../rinetd.orig/rinetd.c ./rinetd.c
+--- ../rinetd.orig/rinetd.c Mon Mar 1 13:43:35 1999
++++ rinetd.c Fri Jun 11 19:40:05 1999
+@@ -214,7 +214,7 @@
+ };
+
+ RinetdOptions options = {
+- "/etc/rinetd.conf"
++ "/usr/local/etc/rinetd.conf"
+ };
+
+ int readArgs (int argc,
diff --git a/net/rinetd/pkg-comment b/net/rinetd/pkg-comment
new file mode 100644
index 000000000000..9d4868f78791
--- /dev/null
+++ b/net/rinetd/pkg-comment
@@ -0,0 +1 @@
+A simple TCP port redirector
diff --git a/net/rinetd/pkg-descr b/net/rinetd/pkg-descr
new file mode 100644
index 000000000000..d83bf4d67379
--- /dev/null
+++ b/net/rinetd/pkg-descr
@@ -0,0 +1,12 @@
+rinetd redirects TCP connections from one IP address and port to another.
+rinetd is a single-process server which handles any number of connections to
+the address/port pairs specified in the file /etc/rinetd.conf. Since rinetd
+runs as a single process using nonblocking I/O, it is able to redirect a
+large number of connections without a severe impact on the machine. This
+makes it practical to run TCP services on machines inside an IP masquerading
+firewall. rinetd does not redirect FTP, because FTP requires more than one
+socket.
+
+rinetd also supports basic allow/deny access control and logging.
+
+-- Alex Perel <veers@disturbed.net>
diff --git a/net/rinetd/pkg-plist b/net/rinetd/pkg-plist
new file mode 100644
index 000000000000..02016b277986
--- /dev/null
+++ b/net/rinetd/pkg-plist
@@ -0,0 +1,4 @@
+sbin/rinetd
+share/doc/rinetd/index.html
+share/doc/rinetd/README
+@dirrm share/doc/rinetd