Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 14:11:37 +0100 (CET)
From:      "Michael L.Hostbaek" <mich@freebsdcluster.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44751: New port: net/tcpsg
Message-ID:  <20021030131137.02D6614A24@icommerce-france.com>

next in thread | raw e-mail | index | archive | help

>Number:         44751
>Category:       ports
>Synopsis:       New port: net/tcpsg
>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:   Wed Oct 30 05:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michael L. Hostbaek
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
FreeBSDCluster.org
>Environment:
System: FreeBSD extranet.itxmarket.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Oct 11 17:00:45 CEST 2002 root@extranet.itxmarket.com:/usr/obj/usr/src/sys/EXTRANET1 i386

>Description:
	New port:
	TCPSG is just a simple TCP port forwarder designed to distribute a service 
	like a virtual server. It can be used to protect servers using the port 
	forwarder to receive requests.
>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:
#
#	tcpsg
#	tcpsg/Makefile
#	tcpsg/distinfo
#	tcpsg/pkg-comment
#	tcpsg/pkg-descr
#	tcpsg/pkg-plist
#	tcpsg/files
#	tcpsg/files/patch-aa
#
echo c - tcpsg
mkdir -p tcpsg > /dev/null 2>&1
echo x - tcpsg/Makefile
sed 's/^X//' >tcpsg/Makefile << 'END-of-tcpsg/Makefile'
X# ex:ts=8
X# Ports collection makefile for:  tcpsg
X# Date created:                          Tue Oct 30, 2002
X# Whom:                                  Michael L. Hostbaek (mich@freebsdcluster.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tcpsg
XPORTVERSION=	0.0.2
XCATEGORIES=	net
XMASTER_SITES=	http://belnet.dl.sourceforge.net/sourceforge/tcpsg/ \
X		${MASTER_SITE_SOURCEFORGE}
X
XMAINTAINER=	mich@freebsdcluster.org
X
XUSE_GCC=        yes
X
XDOCSDIR=        ${PREFIX}/share/doc/${PORTNAME}
X
Xdo-build:
X	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} tcpsg.c)
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/tcpsg.conf ${PREFIX}/etc/
X.if !defined(BATCH)
X	@${ECHO} ""
X	@${ECHO} "###############################################################################"
X	@${ECHO} "# Please edit ${PREFIX}/etc/tcpsg.conf to your needs.                         #"
X	@${ECHO} "###############################################################################"
X.endif
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
X	${INSTALL_DATA} ${WRKSRC}/tcpsg.ctl ${DOCSDIR}/tcpsg.ctl
X.endif
X.include <bsd.port.mk>
END-of-tcpsg/Makefile
echo x - tcpsg/distinfo
sed 's/^X//' >tcpsg/distinfo << 'END-of-tcpsg/distinfo'
XMD5 (tcpsg-0.0.2.tar.gz) = 796c4abceb14b7fc1447bad7397aa630
END-of-tcpsg/distinfo
echo x - tcpsg/pkg-comment
sed 's/^X//' >tcpsg/pkg-comment << 'END-of-tcpsg/pkg-comment'
XA simple TCP port forwarder
END-of-tcpsg/pkg-comment
echo x - tcpsg/pkg-descr
sed 's/^X//' >tcpsg/pkg-descr << 'END-of-tcpsg/pkg-descr'
XTCPSG is just a simple TCP port forwarder designed to distribute a service 
Xlike a virtual server. It can be used to protect servers using the port 
Xforwarder to receive requests.
X
XAUTHOR:		Juan Fajardo <jfajardo@unillanos.edu.co>
XWWW:		http://tcpsg.sourceforge.net/
X
X	- Michael L. Hostbaek
X	mich@freebsdcluster.org
END-of-tcpsg/pkg-descr
echo x - tcpsg/pkg-plist
sed 's/^X//' >tcpsg/pkg-plist << 'END-of-tcpsg/pkg-plist'
Xsbin/tcpsg
Xetc/tcpsg.conf
Xshare/doc/tcpsg/README
Xshare/doc/tcpsg/tcpsg.ctl
X@dirrm share/doc/tcpsg
END-of-tcpsg/pkg-plist
echo c - tcpsg/files
mkdir -p tcpsg/files > /dev/null 2>&1
echo x - tcpsg/files/patch-aa
sed 's/^X//' >tcpsg/files/patch-aa << 'END-of-tcpsg/files/patch-aa'
X--- tcpsg.c.orig	Wed Oct 30 13:14:39 2002
X+++ tcpsg.c	Wed Oct 30 13:41:13 2002
X@@ -39,8 +39,8 @@
X 
X /* Network Headers */
X #include <sys/socket.h>
X-#include <arpa/inet.h>
X #include <netinet/in.h>
X+#include <arpa/inet.h>
X #include <netdb.h>
X 
X /* 
X@@ -77,7 +77,7 @@
X  * *****************************************************************
X  */
X 
X-/* Errors when getting configuration from file /etc/tcpsg.conf */
X+/* Errors when getting configuration from file /usr/local/etc/tcpsg.conf */
X 
X char *errors[]={"No error","Unable to open file","undefined localport",
X                 "undefined serverport","undefined maxclients","undefined servers"};
X@@ -150,7 +150,7 @@
X }
X 
X 
X-/* Get configuration from file /etc/tcpsg.conf */
X+/* Get configuration from file /usr/local/etc/tcpsg.conf */
X int read_config(char *configFileName)
X {
X  FILE *configFileHandle;
X@@ -229,7 +229,7 @@
X int set_config()
X {
X   int i,j;
X-  i=read_config("/etc/tcpsg.conf");
X+  i=read_config("/usr/local/etc/tcpsg.conf");
X   if (i==0)
X   {
X     for (i=0;i<main_opt.num_servers;i++)
END-of-tcpsg/files/patch-aa
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?20021030131137.02D6614A24>