wok-current rev 14532

openssh: privsep-path fixs no start
author Richard Dunbar <mojo@slitaz.org>
date Sun May 19 00:48:28 2013 +0000 (2013-05-19)
parents 16a37101eab9
children 863d6fa1c6fa
files openssh/receipt
line diff
     1.1 --- a/openssh/receipt	Sun May 19 00:26:53 2013 +0000
     1.2 +++ b/openssh/receipt	Sun May 19 00:48:28 2013 +0000
     1.3 @@ -28,7 +28,7 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh $fs/var/run/sshd
     1.8 +	mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh 
     1.9  	cp -a $_pkg/usr/sbin $_pkg/usr/bin $fs/usr
    1.10  	rm -f $fs/usr/sbin/sftp-server
    1.11  	cp -a $_pkg/etc $fs
    1.12 @@ -38,15 +38,27 @@
    1.13  }
    1.14  
    1.15  # Pre and post install commands for Tazpkg.
    1.16 +pre_install()
    1.17 +{
    1.18 +       mkdir -p /var/run/sshd
    1.19 +}
    1.20 +
    1.21  post_install()
    1.22  {
    1.23 -	while read dropbear openssh ; do
    1.24 +       while read dropbear openssh ; do
    1.25  		[ -s $dropbear ] || continue
    1.26  		dropbearconvert dropbear openssh $1$dropbear $1$openssh
    1.27  		dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub
    1.28  		dropbearkey -y -f $1$dropbear | grep Fingerprint
    1.29 -	done <<EOT
    1.30 +       done <<EOT
    1.31  /etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
    1.32  /etc/dropbear/dropbear_dss_host_key	/etc/ssh/ssh_host_dsa_key
    1.33  EOT
    1.34  }
    1.35 +
    1.36 +# Pre and post remove commands for Tazpkg.
    1.37 +post_remove()
    1.38 +{
    1.39 +       rm -fr /var/run/sshd
    1.40 +}       
    1.41 +