wok diff dropbear/receipt @ rev 25791

Up dropbear (2024.86), libssh2 (1.11.1), xz (5.6.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 23 13:27:53 2024 +0000 (3 months ago)
parents c7c7d41a7d82
children ead3990dd3f7
line diff
     1.1 --- a/dropbear/receipt	Sun Apr 21 14:12:01 2024 +0000
     1.2 +++ b/dropbear/receipt	Wed Oct 23 13:27:53 2024 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="dropbear"
     1.7 -VERSION="2024.84"
     1.8 +VERSION="2024.86"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="Lightweight SSH2 server and client"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -100,10 +100,18 @@
    1.13  	chown -R root.root $fs
    1.14  }
    1.15  
    1.16 -# Post message when installing.
    1.17 +# Pre and post install commands for Tazpkg.
    1.18 +pre_install()
    1.19 +{
    1.20 +	for key in dropbear_rsa_host_key dropbear_ecdsa_host_key dropbear_ed25519_host_key ; do
    1.21 +		[ -s "$1/etc/dropbear/$key" ] && mv "$1/etc/dropbear/$key" "$1/etc/dropbear/$key.saved"
    1.22 +	done
    1.23 +}
    1.24 +
    1.25  post_install()
    1.26  {
    1.27  	while read dropbear openssh ; do
    1.28 +		[ -s "$1/$dropbear.saved" ] && mv "$1/$dropbear.saved" "$1/$dropbear"  
    1.29  		[ -s "$1/$openssh" ] || continue
    1.30  		[ -s "$1/$dropbear" ] && continue
    1.31  		chroot "$1/" dropbearconvert openssh dropbear $openssh $dropbear