Subject: pkg/5584: ssh: make package dose not preserve symbolic links
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 06/14/1998 12:46:10
>Number:         5584
>Category:       pkg
>Synopsis:       ssh: make package dose not preserve symbolic links
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 13 20:50:01 1998
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
>Release:        ssh 1.2.25
>Environment:
	
System: NetBSD edge.sky.yamashina.kyoto.jp 1.3E NetBSD 1.3E (ALN4.IPv4) #1: Fri Jun 5 11:40:44 JST 1998 taca@edge.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/ALN4.IPv4 i386


>Description:
	ssh 1.2.25's make package dose not preserve symbolic links.
	Instead, it create each binaries into the package.
>How-To-Repeat:
	Do make package with in /usr/pkgsrc/security/ssh-1.2.25.
>Fix:
	Apply tha patch bellow.

*** pkg/PLIST.ORIG	Sat Jun 13 20:28:59 1998
--- pkg/PLIST	Sun Jun 14 11:07:12 1998
***************
*** 1,36 ****
  @comment $NetBSD: PLIST,v 1.5 1998/06/12 20:39:26 tv Exp $
! bin/scp
! bin/slogin
! bin/ssh
! bin/ssh-add
! bin/ssh-agent
! bin/ssh-keygen
  bin/ssh1
  bin/ssh-keygen1
  bin/ssh-agent1
  bin/ssh-add1
! bin/scp1
  bin/make-ssh-known-hosts1
! bin/make-ssh-known-hosts
  etc/rc.d/sshd.sh
  man/man1/make-ssh-known-hosts1.1
! man/man1/make-ssh-known-hosts.1
! man/man1/scp.1
  man/man1/scp1.1
! man/man1/ssh-add.1
  man/man1/ssh-add1.1
! man/man1/ssh-agent.1
  man/man1/ssh-agent1.1
! man/man1/ssh-keygen.1
  man/man1/ssh-keygen1.1
! man/man1/ssh.1
  man/man1/ssh1.1
! man/man1/slogin.1
! man/man1/slogin1.1
! man/man8/sshd.8
  man/man8/sshd1.8
! sbin/sshd
  sbin/sshd1
  share/examples/ssh/ssh_config
  share/examples/ssh/sshd_config
  @exec if [ ! -d @SSH_CONF_DIR@ ]; then echo "Creating directory @SSH_CONF_DIR@ for ssh config files.." ; mkdir -p @SSH_CONF_DIR@; fi
--- 1,56 ----
  @comment $NetBSD: PLIST,v 1.5 1998/06/12 20:39:26 tv Exp $
! bin/scp1
! @exec ln -fs %f %B/scp
! @unexec rm -f %B/scp
  bin/ssh1
+ @exec ln -fs %f %B/ssh
+ @unexec rm -f %B/ssh
+ @exec ln -fs ssh %B/slogin
+ @unexec rm -f %B/slogin
  bin/ssh-keygen1
+ @exec ln -fs %f %B/ssh-keygen
+ @unexec rm -f %B/ssh-keygen
  bin/ssh-agent1
+ @exec ln -fs %f %B/ssh-agent
+ @unexec rm -f %B/ssh-agent
  bin/ssh-add1
! @exec ln -fs %f %B/ssh-add
! @unexec rm -f %B/ssh-add
  bin/make-ssh-known-hosts1
! @exec ln -fs %f %B/ssh-known-hosts
! @unexec rm -f %B/ssh-known-hosts
! bin/ssh-askpass1
! @exec ln -fs %f %B/ssh-askpass
! @unexec rm -f %B/ssh-askpass
  etc/rc.d/sshd.sh
  man/man1/make-ssh-known-hosts1.1
! @exec ln -fs %f %B/make-ssh-known-hosts.1
! @unexec rm -f %B/make-ssh-known-hosts.1
  man/man1/scp1.1
! @exec ln -fs %f %B/scp.1
! @unexec rm -f %B/scp.1
  man/man1/ssh-add1.1
! @exec ln -fs %f %B/ssh-add.1
! @unexec rm -f %B/ssh-add.1
  man/man1/ssh-agent1.1
! @exec ln -fs %f %B/ssh-agent.1
! @unexec rm -f %B/ssh-agent.1
  man/man1/ssh-keygen1.1
! @exec ln -fs %f %B/ssh-keygen.1
! @unexec rm -f %B/ssh-keygen.1
  man/man1/ssh1.1
! @exec ln -fs %f %B/ssh.1
! @exec ln -fs %f %B/slogin1.1
! @exec ln -fs ssh %B/slogin.1
! @unexec rm -f %B/ssh.1
! @unexec rm -f %B/slogin1.1
! @unexec rm -f %B/slogin.1
  man/man8/sshd1.8
! @exec ln -fs %f %B/sshd.8
! @unexec rm -f %B/sshd.8
  sbin/sshd1
+ @exec ln -fs %f %B/sshd
+ @unexec rm -f %B/sshd
  share/examples/ssh/ssh_config
  share/examples/ssh/sshd_config
  @exec if [ ! -d @SSH_CONF_DIR@ ]; then echo "Creating directory @SSH_CONF_DIR@ for ssh config files.." ; mkdir -p @SSH_CONF_DIR@; fi
>Audit-Trail:
>Unformatted: