Navigation

Project: wok

Clone project: hg clone http://hg.slitaz.org/wok

  • Download tarball:
  • bz2
  • gz

Search

wok changeset 14531:16a37101eab9

openssh-pam: privsep-path fixs no start
author Richard Dunbar <mojo@slitaz.org>
date Sun May 19 00:26:53 2013 +0000 (16 months ago ago)
parents e7b91865d675
children ad75caa9d2b8
files openssh-pam/receipt
line diff
     1.1 --- a/openssh-pam/receipt	Sat May 18 14:33:02 2013 +0000
     1.2 +++ b/openssh-pam/receipt	Sun May 19 00:26:53 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 @@ -37,15 +37,26 @@
    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 +}