wok-4.x rev 9449
Fixed gnu-netcat. Make sure to remake nc softlink for busybox on post remove.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Apr 02 10:23:18 2011 +0000 (2011-04-02) |
parents | 4cce8b7db8cf |
children | 56ba45d3afea |
files | gnu-netcat/receipt |
line diff
1.1 --- a/gnu-netcat/receipt Sat Apr 02 07:10:20 2011 +0000 1.2 +++ b/gnu-netcat/receipt Sat Apr 02 10:23:18 2011 +0000 1.3 @@ -27,3 +27,20 @@ 1.4 cp -a $_pkg/usr/bin $fs/usr 1.5 } 1.6 1.7 +# Pre and post install commands for Tazpkg. 1.8 +# We must remove all Busybox symlink before installing. 1.9 +# 1.10 +pre_install() 1.11 +{ 1.12 + local root 1.13 + root=$1 1.14 + echo "Processing pre-install commands..." 1.15 + echo -n "Removing all Busybox replaced utils... " 1.16 + rm -f $root/usr/bin/nc 1.17 + status 1.18 +} 1.19 + 1.20 +post_remove() 1.21 +{ 1.22 + ln -s /bin/busybox /usr/bin/nc 1.23 +} 1.24 \ No newline at end of file