Hi Snarf,
pkg_unpack.sh is generated from the distributor so you have to modify wb/lib/wb/src/wb_pkg.cpp and rebuild the development environment to change /tmp.
Another alternative is to write a script that modifies the pkg_unpack.sh file in the tgz-file. The tgz-file is a zipped tar-file so it would look something like this. /tmp is here changed to /tmp2.
file="pwrp_pkg_mynode_0001"
cd $pwrp_load
gunzip $file.tgz
tar -xf $file.tar pkg_unpack.sh
sed 's/\/tmp\//\/tmp2\//;s/cd \/tmp/cd \/tmp2/' pkg_unpack.sh > tmp.sh
mv tmp.sh pkg_unpack.sh
tar -f $file.tar --delete pkg_unpack.sh
tar -rf $file.tar pkg_unpack.sh
gzip $file.tar
mv $file.tar.gz $file.tgz
/Claes