Date: Wed, 11 Apr 2001 00:43:36 +0930 (CST) From: mark@kyne.com.au To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26481: New port: net/redir: A tcp connection redirection utility Message-ID: <200104101513.f3AFDZ359379@aeris.kyne.com.au>
next in thread | raw e-mail | index | archive | help
>Number: 26481 >Category: ports >Synopsis: New port: net/redir: A tcp connection redirection utility >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Apr 10 08:10:06 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Mark Pulford >Release: FreeBSD 4.2-STABLE i386 >Organization: none >Environment: >Description: Redir is a port redirector. It can run under inetd or standalone. Redir also supports tcp wrappers. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # redir # redir/Makefile # redir/distinfo # redir/files # redir/files/patch-Makefile # redir/pkg-descr # redir/pkg-comment # redir/pkg-plist # echo c - redir mkdir -p redir > /dev/null 2>&1 echo x - redir/Makefile sed 's/^X//' >redir/Makefile << 'END-of-redir/Makefile' X# New ports collection makefile for: redir X# Date created: Apr 10, 2001 X# Whom: Mark Pulford <mark@kyne.com.au> X# X# $FreeBSD$ X# X XPORTNAME= redir XPORTVERSION= 2.2.1 XCATEGORIES= net XMASTER_SITES= http://sammy.net/~sammy/hacks/ X XMAINTAINER= mark@kyne.com.au X XMAN1= redir.1 X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/redir ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/redir.man ${PREFIX}/man/man1/redir.1 X X.include <bsd.port.mk> END-of-redir/Makefile echo x - redir/distinfo sed 's/^X//' >redir/distinfo << 'END-of-redir/distinfo' XMD5 (redir-2.2.1.tar.gz) = 4342fadac30504c86c8db7beefe01995 END-of-redir/distinfo echo c - redir/files mkdir -p redir/files > /dev/null 2>&1 echo x - redir/files/patch-Makefile sed 's/^X//' >redir/files/patch-Makefile << 'END-of-redir/files/patch-Makefile' X--- Makefile.orig Mon Dec 27 07:21:55 1999 X+++ Makefile Tue Apr 10 17:56:11 2001 X@@ -1,7 +1,7 @@ X ### user configuration section X X # if your system lacks getopt_long(), remove the comment from this line X-GETOPT_OBJS = # getopt/getopt.o getopt/getopt1.o X+GETOPT_OBJS = getopt/getopt.o getopt/getopt1.o X X # if your system lacks strrchr() or strdup(), edit this line X STR_CFLAGS = # -DNEED_STRRCHR -DNEED_STRDUP X@@ -9,8 +9,8 @@ X # if you would like support for TCP wrappers (and have libwrap.a X # installed), remove these comments. X X-WRAP_CFLAGS = # -DUSE_TCP_WRAPPERS X-WRAP_LIBS = # -lwrap X+WRAP_CFLAGS = -DUSE_TCP_WRAPPERS X+WRAP_LIBS = -lwrap X X # if your system needs any additional libraries (solaris, for example, X # needs the ones commented out below), edit this line. X@@ -27,12 +27,11 @@ X ### end of user configuration section X X # redir requires gcc. if you're lucky, another compiler might work. X-CC = gcc X X # if your system lacks getopt_long, remove the comment from this line X OBJS = redir.o $(GETOPT_OBJS) X X-CFLAGS = -O2 -Wall $(STR_CFLAGS) $(WRAP_CFLAGS) $(EXTRA_CFLAGS) X+CFLAGS += -Wall -Igetopt $(STR_CFLAGS) $(WRAP_CFLAGS) $(EXTRA_CFLAGS) X LDFLAGS = -s X X # solaris, and others, may also need these libraries to link X@@ -49,7 +48,7 @@ X rm -f $(OBJS) redir core X X redir: ${OBJS} X- ${CC} ${LDFLAGS} -o redir ${OBJS} ${LIBS} X+ ${CC} ${LDFLAGS} -o redir redir.o getopt.o getopt1.o ${LIBS} X X X END-of-redir/files/patch-Makefile echo x - redir/pkg-descr sed 's/^X//' >redir/pkg-descr << 'END-of-redir/pkg-descr' XRedir is a port redirector. It can run under inetd or standalone. Redir Xalso supports tcp wrappers. X XWWW: http://sammy.net/~sammy/hacks/ END-of-redir/pkg-descr echo x - redir/pkg-comment sed 's/^X//' >redir/pkg-comment << 'END-of-redir/pkg-comment' XA tcp connection redirection utility END-of-redir/pkg-comment echo x - redir/pkg-plist sed 's/^X//' >redir/pkg-plist << 'END-of-redir/pkg-plist' Xbin/redir END-of-redir/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104101513.f3AFDZ359379>