wok-4.x diff busybox-pam/receipt @ rev 11876
up thunar-dev 1.3.0
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Mon Feb 27 15:44:08 2012 -0800 (2012-02-27) |
parents | 31974934cb2a |
children | 6898646adcef |
line diff
1.1 --- a/busybox-pam/receipt Fri May 06 21:20:20 2011 +0000 1.2 +++ b/busybox-pam/receipt Mon Feb 27 15:44:08 2012 -0800 1.3 @@ -14,17 +14,24 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/bin 1.8 - cp -a $src/busybox-pam $fs/bin/busybox 1.9 - cp -a $stuff/* $fs 1.10 + mkdir -p $fs/bin 1.11 + cp -a $src/busybox-pam $fs/bin/busybox 1.12 + cp -a $stuff/* $fs 1.13 } 1.14 1.15 pre_remove() 1.16 { 1.17 - tazpkg get-install ${PACKAGE%-pam} 1.18 + # We install non-pam busybox to replace busybox-pam. 1.19 + tazpkg get-install ${PACKAGE%-pam} --forced 1.20 + 1.21 + # We remove /bin/busybox from the file.list of busybox-pam. 1.22 + # This way, the non-pam busybox we just installed will not be 1.23 + # removed. 1.24 + sed '/\/bin\/busybox/d' \ 1.25 + -i /var/lib/tazpkg/installed/busybox-pam/files.list 1.26 } 1.27 1.28 post_install() 1.29 { 1.30 - chmod 4755 $1/bin/busybox 1.31 + chmod 4755 $1/bin/busybox 1.32 }