wok rev 7632

*-pam: reinstall core package in pre_remove()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 13 12:44:48 2010 +0100 (2010-12-13)
parents ec11cf47daef
children 5d88dc6fd350
files busybox-pam/receipt dropbear-pam/receipt freeradius-pam/receipt openvpn-pam/receipt ppp-pam/receipt slim-pam/receipt sudo-pam/receipt
line diff
     1.1 --- a/busybox-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     1.2 +++ b/busybox-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     1.3 @@ -18,3 +18,8 @@
     1.4      cp -a $src/busybox-pam $fs/bin/busybox
     1.5      cp -a stuff/* $fs
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +    tazpkg get-install  ${PACKAGE%-pam}
    1.11 +}
     2.1 --- a/dropbear-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     2.2 +++ b/dropbear-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     2.3 @@ -74,3 +74,8 @@
     2.4  	echo "/etc/init.d/$SOURCE start"
     2.5  	echo -e "Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf\n"
     2.6  }
     2.7 +
     2.8 +pre_remove()
     2.9 +{
    2.10 +    tazpkg get-install  ${PACKAGE%-pam}
    2.11 +}
     3.1 --- a/freeradius-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     3.2 +++ b/freeradius-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     3.3 @@ -9,6 +9,7 @@
     3.4  WEB_SITE="http://www.freeradius.org/"
     3.5  WANTED="freeradius"
     3.6  SOURCE="freeradius-server"
     3.7 +PROVIDE="freeradius:pam"
     3.8  
     3.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.10  genpkg_rules()
     4.1 --- a/openvpn-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     4.2 +++ b/openvpn-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     4.3 @@ -9,6 +9,7 @@
     4.4  DEPENDS="openvpn pam"
     4.5  WANTED="openvpn"
     4.6  TAGS="vpn tunnel"
     4.7 +PROVIDE="openvpn:pam"
     4.8  
     4.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.10  genpkg_rules()
     5.1 --- a/ppp-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     5.2 +++ b/ppp-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     5.3 @@ -51,3 +51,8 @@
     5.4  	# insert #!/bin/sh  on top line in ip* scripts
     5.5  	sed -i '1i\#!/bin/sh' $fs/etc/ppp/scripts/ip*
     5.6  }
     5.7 +
     5.8 +pre_remove()
     5.9 +{
    5.10 +    tazpkg get-install  ${PACKAGE%-pam}
    5.11 +}
     6.1 --- a/slim-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     6.2 +++ b/slim-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     6.3 @@ -59,3 +59,8 @@
     6.4  	[ -n "$USER" ] &&
     6.5  	sed -i s/"default_user .*"/"default_user        $USER"/ $1/etc/slim.conf
     6.6  }
     6.7 +
     6.8 +pre_remove()
     6.9 +{
    6.10 +	tazpkg get-install  ${PACKAGE%-pam}
    6.11 +}
     7.1 --- a/sudo-pam/receipt	Sun Dec 12 19:58:05 2010 +0000
     7.2 +++ b/sudo-pam/receipt	Mon Dec 13 12:44:48 2010 +0100
     7.3 @@ -65,3 +65,8 @@
     7.4  		chmod 0440 $root/etc/sudoers
     7.5  	fi
     7.6  }                        
     7.7 +
     7.8 +pre_remove()
     7.9 +{
    7.10 +	tazpkg get-install  ${PACKAGE%-pam}
    7.11 +}