From owner-freebsd-ports Sun Aug 15 14:20:59 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 AFE5215155 for ; Sun, 15 Aug 1999 14:20:57 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA78187; Sun, 15 Aug 1999 14:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from megaweapon.zigg.com (megaweapon.zigg.com [206.114.60.8]) by hub.freebsd.org (Postfix) with ESMTP id C0AD414BDE for ; Sun, 15 Aug 1999 14:16:25 -0700 (PDT) (envelope-from matt@zigg.com) Received: from torgo.zigg.local (torgo.zigg.local [192.168.1.18]) by megaweapon.zigg.com (8.9.3/8.9.3) with ESMTP id RAA13199 for ; Sun, 15 Aug 1999 17:14:23 -0400 (EDT) (envelope-from matt@torgo.zigg.local) Received: (from matt@localhost) by torgo.zigg.local (8.9.3/8.9.3) id RAA41600; Sun, 15 Aug 1999 17:14:17 -0400 (EDT) (envelope-from matt) Message-Id: <199908152114.RAA41600@torgo.zigg.local> Date: Sun, 15 Aug 1999 17:14:17 -0400 (EDT) From: Matt Behrens Reply-To: matt@zigg.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13167: [PATCH] security/ssh package keygen fails when added with ssh2 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13167 >Category: ports >Synopsis: [PATCH] security/ssh package keygen fails when added with ssh2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 15 14:20:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Matt Behrens >Release: FreeBSD 3.2-STABLE i386 >Organization: zigg.com >Environment: FreeBSD torgo.zigg.local 3.2-STABLE FreeBSD 3.2-STABLE #2: Tue Aug 10 13:15:41 EDT 1999 matt@torgo.zigg.local:/usr/src/sys/compile/TORGO i386 >Description: When packages are made of security/ssh and security/ssh2, the key generation that is part of the installation of the ssh-1.2.27 package will fail because it tries to call ssh-keygen, which is a symlink to ssh-keygen2. >How-To-Repeat: On system A: a# cd /usr/ports/security/ssh2 a# make package (ssh pulled in as dependency) a# cd ../ssh a# make package FTP packages over to system B: b# pkg_add ssh-2.0.13.tgz (ssh pulled in as dependency) >Fix: This patch changes the PLIST to call ssh-keygen1 instead of ssh-keygen. It does not fix everything, however -- ssh-1.2.27.tgz will be packaged with symlinks that point to programs from the ssh2 suite, which is not the desired behavior on a system that does not have ssh2. *** pkg/PLIST.broken Sun Jul 18 14:46:37 1999 --- pkg/PLIST Sun Aug 15 17:05:18 1999 *************** *** 18,21 **** etc/sshd_config sbin/sshd1 sbin/sshd ! @exec if [ ! -f %D/etc/ssh_host_key ]; then echo "Generating a secret host key.." ; %D/bin/ssh-keygen -N "" -f %D/etc/ssh_host_key; fi --- 18,21 ---- etc/sshd_config sbin/sshd1 sbin/sshd ! @exec if [ ! -f %D/etc/ssh_host_key ]; then echo "Generating a secret host key.." ; %D/bin/ssh-keygen1 -N "" -f %D/etc/ssh_host_key; fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message