From owner-freebsd-ports Sun Jan 27 10:40:20 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7CF2D37B404 for ; Sun, 27 Jan 2002 10:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0RIe2q87140; Sun, 27 Jan 2002 10:40:02 -0800 (PST) (envelope-from gnats) Received: from www.partner.de (www.partner.de [195.254.3.1]) by hub.freebsd.org (Postfix) with ESMTP id 97E6237B402 for ; Sun, 27 Jan 2002 10:38:31 -0800 (PST) Received: (from ob@localhost) by www.partner.de (8.11.3/8.11.3) id g0RIcJx02276; Sun, 27 Jan 2002 19:38:19 +0100 (CET) Message-Id: <200201271838.g0RIcJx02276@www.partner.de> Date: Sun, 27 Jan 2002 19:38:19 +0100 (CET) From: Oliver Breuninger Reply-To: Oliver Breuninger To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34346: Port for cotty 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: 34346 >Category: ports >Synopsis: Port for cotty >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: Sun Jan 27 10:40:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Oliver Breuninger >Release: FreeBSD 4.4-RELEASE i386 >Organization: >Environment: >Description: # 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: # # cotty # cotty/Makefile # cotty/distinfo # cotty/pkg-comment # cotty/pkg-descr # cotty/pkg-plist # echo c - cotty mkdir -p cotty > /dev/null 2>&1 echo x - cotty/Makefile sed 's/^X//' >cotty/Makefile << 'END-of-cotty/Makefile' X# New ports collection makefile for: cotty X# Date created: 26 January 2001 X# Whom: Oliver Breuninger X# X XPORTNAME= cotty XPORTVERSION= 0.4c XCATEGORIES= sysutils XMASTER_SITES= http://fare.tunes.org/files/fwprc/ X XDISTFILES= cotty-0.4c.c.gz X XMAINTAINER= ob@breuninger.org X Xextract: X ${MKDIR} ${WRKSRC} X ${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC} X gzip -d ${WRKSRC}/${DISTFILES} X Xdo-build: X gcc -Os -fomit-frame-pointer -Wall -W -o ${WRKSRC}/cotty -s ${WRKSRC}/${PORTNAME}-${PORTVERSION}.c X Xdo-install: X install -s -m 755 -o root -g daemon ${WRKSRC}/cotty /usr/local/bin/ X X.include END-of-cotty/Makefile echo x - cotty/distinfo sed 's/^X//' >cotty/distinfo << 'END-of-cotty/distinfo' XMD5 (cotty-0.4c.c.gz) = a0603589857faeeb7d102b678233641e END-of-cotty/distinfo echo x - cotty/pkg-comment sed 's/^X//' >cotty/pkg-comment << 'END-of-cotty/pkg-comment' XSimple command-line pseudo terminal manager END-of-cotty/pkg-comment echo x - cotty/pkg-descr sed 's/^X//' >cotty/pkg-descr << 'END-of-cotty/pkg-descr' X Xcotty 0.4c X XSimple command-line pseudo terminal manager: Xallows to run coprocesses talking to each other thru their tty and/or pty. X XMost useful to drive from scripts programs that want a tty, as in X cotty -d -- pppd silent 192.168.0.1:192.168.0.2 \ X -- ssh -t root@remote pppd XThis particular use has been obsoleted under Linux X(but probably not under the various free BSDs and proprietary Unices), Xas it can be done without cotty with X pppd pty 'ssh -t root@remote pppd' silent 192.168.0.1:192.168.0.2 XOther uses of cotty remain, as called by fwprc, or by my lispm script. XSee the Firewall-Piercing mini-HOWTO. X XCopyright (c) 1998-2001 François-René Rideau DDa(.ng-Vu~ Ba^n X XMany thanks to master hacker Robert Ehrlich Xfor his kind and insightful advice and code snippet. XThanks to Vladimir Geogjaev for his codeful suggestions. X XThis program is free software; you can redistribute it and/or modify Xit under the terms of the GNU General Public License as published by Xthe Free Software Foundation, either version 2, or (at your option) Xany later version. X XActually, you may also redistribute it under the bugroff license X(at your option). X XRelevant URLs: Xhttp://fare.tunes.org/files/fwprc/ Xhttp://www.linuxdoc.org/HOWTO/mini/Firewall-Piercing.html Xhttp://www.geocities.com/SoHo/Cafe/5947/bugroff.html X END-of-cotty/pkg-descr echo x - cotty/pkg-plist sed 's/^X//' >cotty/pkg-plist << 'END-of-cotty/pkg-plist' Xbin/cotty END-of-cotty/pkg-plist exit >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message