wok-next diff busybox-pam/receipt @ rev 12042
postfixadmin: Fis depends:wq!
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Mar 07 17:41:19 2012 +0100 (2012-03-07) |
parents | 31974934cb2a |
children | 2a66c0430085 |
line diff
1.1 --- a/busybox-pam/receipt Fri May 06 21:20:20 2011 +0000 1.2 +++ b/busybox-pam/receipt Wed Mar 07 17:41:19 2012 +0100 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 }