diff options
author | will <will@FreeBSD.org> | 2001-04-11 03:47:52 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-11 03:47:52 +0800 |
commit | fd49e1156d445ce51cdb3ce43665f82f7f93e1ad (patch) | |
tree | 53112b2aff4cbbb98ee928de954b58d211807f35 /net | |
parent | 44ed55502184c1707921a360ce4e1162bf4399b9 (diff) | |
download | freebsd-ports-gnome-fd49e1156d445ce51cdb3ce43665f82f7f93e1ad.tar.gz freebsd-ports-gnome-fd49e1156d445ce51cdb3ce43665f82f7f93e1ad.tar.zst freebsd-ports-gnome-fd49e1156d445ce51cdb3ce43665f82f7f93e1ad.zip |
Add redir 2.2.1, a tcp connection redirection utility.
PR: 26481
Submitted by: Mark Pulford <mark@kyne.com.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/redir/Makefile | 21 | ||||
-rw-r--r-- | net/redir/distinfo | 1 | ||||
-rw-r--r-- | net/redir/files/patch-Makefile | 45 | ||||
-rw-r--r-- | net/redir/pkg-comment | 1 | ||||
-rw-r--r-- | net/redir/pkg-descr | 4 | ||||
-rw-r--r-- | net/redir/pkg-plist | 1 |
7 files changed, 74 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index c8b06c529db2..489225b4f374 100644 --- a/net/Makefile +++ b/net/Makefile @@ -273,6 +273,7 @@ SUBDIR += ratoolset SUBDIR += rboot SUBDIR += rdist6 + SUBDIR += redir SUBDIR += relay SUBDIR += rinetd SUBDIR += ripetools diff --git a/net/redir/Makefile b/net/redir/Makefile new file mode 100644 index 000000000000..a3b9d83832e1 --- /dev/null +++ b/net/redir/Makefile @@ -0,0 +1,21 @@ +# New ports collection makefile for: redir +# Date created: Apr 10, 2001 +# Whom: Mark Pulford <mark@kyne.com.au> +# +# $FreeBSD$ +# + +PORTNAME= redir +PORTVERSION= 2.2.1 +CATEGORIES= net +MASTER_SITES= http://sammy.net/~sammy/hacks/ + +MAINTAINER= mark@kyne.com.au + +MAN1= redir.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/redir ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/redir.man ${PREFIX}/man/man1/redir.1 + +.include <bsd.port.mk> diff --git a/net/redir/distinfo b/net/redir/distinfo new file mode 100644 index 000000000000..cf217656673b --- /dev/null +++ b/net/redir/distinfo @@ -0,0 +1 @@ +MD5 (redir-2.2.1.tar.gz) = 4342fadac30504c86c8db7beefe01995 diff --git a/net/redir/files/patch-Makefile b/net/redir/files/patch-Makefile new file mode 100644 index 000000000000..6fbdb0c39a64 --- /dev/null +++ b/net/redir/files/patch-Makefile @@ -0,0 +1,45 @@ +--- Makefile.orig Mon Dec 27 07:21:55 1999 ++++ Makefile Tue Apr 10 17:56:11 2001 +@@ -1,7 +1,7 @@ + ### user configuration section + + # if your system lacks getopt_long(), remove the comment from this line +-GETOPT_OBJS = # getopt/getopt.o getopt/getopt1.o ++GETOPT_OBJS = getopt/getopt.o getopt/getopt1.o + + # if your system lacks strrchr() or strdup(), edit this line + STR_CFLAGS = # -DNEED_STRRCHR -DNEED_STRDUP +@@ -9,8 +9,8 @@ + # if you would like support for TCP wrappers (and have libwrap.a + # installed), remove these comments. + +-WRAP_CFLAGS = # -DUSE_TCP_WRAPPERS +-WRAP_LIBS = # -lwrap ++WRAP_CFLAGS = -DUSE_TCP_WRAPPERS ++WRAP_LIBS = -lwrap + + # if your system needs any additional libraries (solaris, for example, + # needs the ones commented out below), edit this line. +@@ -27,12 +27,11 @@ + ### end of user configuration section + + # redir requires gcc. if you're lucky, another compiler might work. +-CC = gcc + + # if your system lacks getopt_long, remove the comment from this line + OBJS = redir.o $(GETOPT_OBJS) + +-CFLAGS = -O2 -Wall $(STR_CFLAGS) $(WRAP_CFLAGS) $(EXTRA_CFLAGS) ++CFLAGS += -Wall -Igetopt $(STR_CFLAGS) $(WRAP_CFLAGS) $(EXTRA_CFLAGS) + LDFLAGS = -s + + # solaris, and others, may also need these libraries to link +@@ -49,7 +48,7 @@ + rm -f $(OBJS) redir core + + redir: ${OBJS} +- ${CC} ${LDFLAGS} -o redir ${OBJS} ${LIBS} ++ ${CC} ${LDFLAGS} -o redir redir.o getopt.o getopt1.o ${LIBS} + + + diff --git a/net/redir/pkg-comment b/net/redir/pkg-comment new file mode 100644 index 000000000000..4d9fd1e3dcb7 --- /dev/null +++ b/net/redir/pkg-comment @@ -0,0 +1 @@ +A tcp connection redirection utility diff --git a/net/redir/pkg-descr b/net/redir/pkg-descr new file mode 100644 index 000000000000..4f08cabd2209 --- /dev/null +++ b/net/redir/pkg-descr @@ -0,0 +1,4 @@ +Redir is a port redirector. It can run under inetd or standalone. Redir +also supports tcp wrappers. + +WWW: http://sammy.net/~sammy/hacks/ diff --git a/net/redir/pkg-plist b/net/redir/pkg-plist new file mode 100644 index 000000000000..7ed92e6cfbbf --- /dev/null +++ b/net/redir/pkg-plist @@ -0,0 +1 @@ +bin/redir |