starting with
cd ./SW-BUILD
ls -1d *
shorewall-core-4.6.7/
shorewall-init-4.6.7/
shorewall-lite-4.6.7/
defining
export PKGS="\
shorewall-core \
shorewall-lite \
shorewall-init \
"
installing
THIS="/work/SW-PKG"
for P in ${PKGS}
do
pushd .
cd ./${P}-4.6.7
DESTDIR=${THIS} ./install.sh shorewallrc.debian
popd
done
populates the DESTDIR tree
find ${THIS} -type d | wc
23 23 904
find ${THIS} -type f | wc
34 34 1988
testing uninstall
for P in ${PKGS}
do
pushd .
cd ./${P}-4.6.7
DESTDIR=${THIS} make uninstall
DESTDIR=${THIS} ./uninstall shorewallrc.debian
popd
done
where
grep usage shorewall-core-4.6.7/uninstall
usage() # $1 = exit status
echo "usage: $ME [ <shorewallrc file> ]"
usage 1
returns
/work/SW-BUILD /work/SW-BUILD
cat uninstall.sh >uninstall
chmod a+x uninstall
WARNING: Shorewall Core Version 4.6.7 is not installed
Uninstalling Shorewall Core
Shorewall Core Uninstalled
/work/SW-BUILD
/work/SW-BUILD /work/SW-BUILD
make: /sbin/shorewall-lite: Command not found
make: /sbin/shorewall-lite: Command not found
make: /sbin/shorewall-lite: Command not found
cat uninstall.sh >uninstall
chmod a+x uninstall
WARNING: Shorewall Lite Version 4.6.7 is not installed
Uninstalling Shorewall Lite
Shorewall Lite Uninstalled
/work/SW-BUILD
/work/SW-BUILD /work/SW-BUILD
cat uninstall.sh >uninstall
chmod a+x uninstall
WARNING: Shorewall Init Version 4.6.7 is not installed
Uninstalling Shorewall Init
grep: /etc/ppp/: Is a directory
grep: /etc/ppp/: Is a directory
Shorewall Init Uninstalled
/work/SW-BUILD
and doesn't UN populate the tree,
find ${THIS} -type d | wc
23 23 904
find ${THIS} -type f | wc
34 34 1988
it's identical.
what's the correct usage for uninstall, particularly from a SANDBOX'd DESTDIR=?
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users