# HG changeset patch # User Christopher Rogers # Date 1301739798 0 # Node ID 9f32ab185bac78782679c5fa8800679ee0118328 # Parent 4cce8b7db8cf582cefaccc96827a672d56958d8f Fixed gnu-netcat. Make sure to remake nc softlink for busybox on post remove. diff -r 4cce8b7db8cf -r 9f32ab185bac gnu-netcat/receipt --- a/gnu-netcat/receipt Sat Apr 02 07:10:20 2011 +0000 +++ b/gnu-netcat/receipt Sat Apr 02 10:23:18 2011 +0000 @@ -27,3 +27,20 @@ cp -a $_pkg/usr/bin $fs/usr } +# Pre and post install commands for Tazpkg. +# We must remove all Busybox symlink before installing. +# +pre_install() +{ + local root + root=$1 + echo "Processing pre-install commands..." + echo -n "Removing all Busybox replaced utils... " + rm -f $root/usr/bin/nc + status +} + +post_remove() +{ + ln -s /bin/busybox /usr/bin/nc +} \ No newline at end of file