From owner-freebsd-ports Wed Dec 29 18:30: 7 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 838F1150C3 for ; Wed, 29 Dec 1999 18:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA13709; Wed, 29 Dec 1999 18:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 8D34414E50 for ; Wed, 29 Dec 1999 18:26:41 -0800 (PST) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id SAA19750 for ; Wed, 29 Dec 1999 18:26:40 -0800 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda19748; Wed Dec 29 18:26:31 1999 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.9.3/8.9.1) id SAA66959 for ; Wed, 29 Dec 1999 18:26:30 -0800 (PST) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdZ66957; Wed Dec 29 18:25:38 1999 Received: (from cy@localhost) by cwsys.cwsent.com (8.9.3/8.9.1) id SAA06389; Wed, 29 Dec 1999 18:24:45 -0800 (PST) Message-Id: <199912300224.SAA06389@cwsys.cwsent.com> Date: Wed, 29 Dec 1999 18:24:45 -0800 (PST) From: Cy.Schubert@uumail.gov.bc.ca Reply-To: Cy.Schubert@uumail.gov.bc.ca To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15777: New Sftp Port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15777 >Category: ports >Synopsis: New Sftp Port >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 Dec 29 18:30:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Cy Schubert >Release: FreeBSD 3.4-RELEASE i386 >Organization: ITSD Province of BC >Environment: FreeBSD cwsys 3.4-RELEASE FreeBSD 3.4-RELEASE #0: Tue Dec 21 04:39:50 PST 1999 root@:/opt2/cvs-340/src/sys/compile/CWSYS i386 >Description: Please add sftp-0.5 to the ports collection. Sftp is an ftp application that uses SSH or RSH for transport. >How-To-Repeat: N/A >Fix: Shell archive of the new port. # 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: # # sftp-991229 # sftp-991229/files # sftp-991229/files/md5 # sftp-991229/pkg # sftp-991229/pkg/COMMENT # sftp-991229/pkg/DESCR # sftp-991229/pkg/PLIST # sftp-991229/Makefile # echo c - sftp-991229 mkdir -p sftp-991229 > /dev/null 2>&1 echo c - sftp-991229/files mkdir -p sftp-991229/files > /dev/null 2>&1 echo x - sftp-991229/files/md5 sed 's/^X//' >sftp-991229/files/md5 << 'END-of-sftp-991229/files/md5' XMD5 (sftp-0.5.tar.gz) = 8070983234f1a872b969f8eebe24b84d END-of-sftp-991229/files/md5 echo c - sftp-991229/pkg mkdir -p sftp-991229/pkg > /dev/null 2>&1 echo x - sftp-991229/pkg/COMMENT sed 's/^X//' >sftp-991229/pkg/COMMENT << 'END-of-sftp-991229/pkg/COMMENT' Xsftp is an ftp replacement that runs over an ssh tunnel. END-of-sftp-991229/pkg/COMMENT echo x - sftp-991229/pkg/DESCR sed 's/^X//' >sftp-991229/pkg/DESCR << 'END-of-sftp-991229/pkg/DESCR' Xsftp v0.5 X Xhttp://www.xbill.org/sftp X XAuthor: X XBrian Wellington (bwelling@xbill.org) XDecember 26, 1999 X Xsftp is an ftp replacement that runs over an ssh tunnel. Two programs are Xincluded - sftp and sftpserv. When sftp is run and a host is connected to X(either by running 'sftp remotehost' or 'open remotehost' from the sftp Xprompt), an ssh connection is initiated to the remote host, and sftpserv is Xrun. So, sftpserv must be in your path on the remote host. Note that since Xsftpserv is run from ssh, no root privileges are necessary. By default, Xsftpserv is expected to be in $PATH on the remote host. This can be overriden Xby passing '--enable-remotepath=' to configure or using the X'-P remotepath' option to sftp. To run as a different user, use the X'-l remoteuser' option. To connect to an alternate port with ssh, Xuse the '-p remoteport' option. To enable ssh compression, use '-C'. X XFrom within sftp, all of the normal ftp commands are present: open, close, get, Xput, mget, mput, cd, ls, dir, lcd, delete, rm, pwd, quit. There's also exec, Xwhich runs a program on the remote end. This program must not accept input X('exec ls' is ok, but 'exec vi' is not). To run local commands, precede them Xwith a '!'. X XWhen building sftp, a link is made to rsftp, which uses rsh instead of ssh. Xsftp has been tested with rsh (with and without .rhosts) and ssh1 (with Xssh-agent, password, and RSA authentication). I haven't tested ssh2, but it Xshould work. The login process is a bit of a hack, so if logging in doesn't Xwork, it's a bug and should be fixed. X Xsftp uses a fairly simple multiplexed protocol over an SSH channel. The server Xis a state machine, and is far more capable than the client. As an example, Xthe server theoretically could handle multiple concurrent file transfers, but Xthe client will only send one. X XThis was mostly written during the summer of 1998, and resurrected in October, X1999. I don't know how much time I want to spend adding new features, but Xbugs will be fixed. X Xsftp is distributed under the GNU General Public License (GPL), Version 2. END-of-sftp-991229/pkg/DESCR echo x - sftp-991229/pkg/PLIST sed 's/^X//' >sftp-991229/pkg/PLIST << 'END-of-sftp-991229/pkg/PLIST' Xbin/sftp Xbin/rsftp Xlibexec/sftpserv END-of-sftp-991229/pkg/PLIST echo x - sftp-991229/Makefile sed 's/^X//' >sftp-991229/Makefile << 'END-of-sftp-991229/Makefile' X# New ports collection makefile for: OpenSSH X# Version required: 1.2 X# Date created: 7 October 1999 X# Whom: green X# X# $FreeBSD: ports/security/openssh/Makefile,v 1.31 1999/12/23 06:37:20 green Exp $ X# X XDISTNAME= sftp-0.5 XPKGNAME= sftp-0.5 XCATEGORIES= security net XMASTER_SITES= ftp://ftp.xbill.org/pub/sftp/ X XMAINTAINER= Cy.Schubert@uumail.gov.bc.ca X XRESTRICTED= "Calls external cryptographic routines." X XRUN_DEPENDS= ssh:${PORTSDIR}/security/openssh X XGNU_CONFIGURE= yes X XCONFIGURE_ARGS+= --prefix=${PREFIX} XCONFIGURE_ARGS+= --enable-remotepath=${PREFIX}/libexec X XMAN1= sftp.1 X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/sftp ${PREFIX}/bin/sftp X ${LN} -s ${PREFIX}/bin/sftp ${PREFIX}/bin/rsftp X ${INSTALL_PROGRAM} ${WRKSRC}/sftpserv ${PREFIX}/libexec/sftpserv X ${CP} ${WRKSRC}/sftp.1 ${PREFIX}/man/man1 X X.include END-of-sftp-991229/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message