wok-6.x rev 3694
Update: bzip2 (handle BusyBox symlinks)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Jul 16 09:41:09 2009 +0000 (2009-07-16) |
parents | 5b0b131c3480 |
children | f7311b2e6694 |
files | bzip2/receipt |
line diff
1.1 --- a/bzip2/receipt Thu Jul 16 09:06:54 2009 +0000 1.2 +++ b/bzip2/receipt Thu Jul 16 09:41:09 2009 +0000 1.3 @@ -31,12 +31,21 @@ 1.4 ln -s bzip2 bzcat 1.5 } 1.6 1.7 -# Pre install commands for Tazpkg. 1.8 -# Force remove of an eventual bzcat link to Busybox. 1.9 +# Remove Busybox symlinks before installing 1.10 pre_install() 1.11 { 1.12 local root 1.13 root=$1 1.14 echo "Processing post-install commands..." 1.15 + rm -f $root/usr/bin/bunzip2 1.16 rm -f $root/usr/bin/bzcat 1.17 +# rm -f $root/usr/bin/bzip2 1.18 } 1.19 + 1.20 +# Restore Busybox symlinks upon removal 1.21 +post_remove() 1.22 +{ 1.23 + ln -s /bin/busybox /usr/bin/bunzip2 1.24 + ln -s /bin/busybox /usr/bin/bzcat 1.25 +# ln -s /bin/busybox /usr/bin/bzip2 1.26 +}