From owner-freebsd-ports Wed Oct 30 5:20:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B86E637B401 for ; Wed, 30 Oct 2002 05:20:07 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC44D43E7B for ; Wed, 30 Oct 2002 05:20:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9UDK6x3020542 for ; Wed, 30 Oct 2002 05:20:06 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9UDK6h5020541; Wed, 30 Oct 2002 05:20:06 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0285D37B401 for ; Wed, 30 Oct 2002 05:11:46 -0800 (PST) Received: from mail2.itxmarket.com (fw.itxmarket.com [213.11.40.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id E964943E8A for ; Wed, 30 Oct 2002 05:11:44 -0800 (PST) (envelope-from root@icommerce-france.com) Received: from icommerce-france.com (extranet.itxmarket.com [192.168.2.24]) by mail2.itxmarket.com (Postfix) with ESMTP id 1EEBD37C85 for ; Wed, 30 Oct 2002 14:11:38 +0100 (CET) Received: by icommerce-france.com (Postfix, from userid 0) id 02D6614A24; Wed, 30 Oct 2002 14:11:37 +0100 (CET) Message-Id: <20021030131137.02D6614A24@icommerce-france.com> Date: Wed, 30 Oct 2002 14:11:37 +0100 (CET) From: "Michael L.Hostbaek" Reply-To: "Michael L.Hostbaek" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/44751: New port: net/tcpsg Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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 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 X-#include X #include X+#include X #include 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;iRelease-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message