freebsd-ports/net/xbone/pkg-deinstall
Kris Kennaway a2d26cafb1 X-Bone dynamically deploys and manages Internet overlays to reduce
their configuration effort and increase network component sharing.
X-Bone discovers, configures, and monitors network resources to
create overlays over existing IP networks.

X-Bone uses two-layer IP in IP tunneled overlays and supports existing
applications and unmodified routing, multicast, and DNS services in
unmodified operating systems. X-Bone also support IPSec within overlays.

Submitted by:   Yu-Shun Wang <yushunwa@isi.edu>
2001-01-20 08:04:22 +00:00

28 lines
872 B
Bash

#!/bin/sh
if [ -z $2 ]; then
exit 0
fi
if [ $2 != "POST-DEINSTALL" ]; then
echo "!!! This script is for post-deinstallation only."; \
exit 0
fi
echo "==> Post-deinstallation cleanup:"
if [ -d /etc/xbone ]; then
/usr/bin/dialog --yesno "/etc/xbone found. Do you want to DELETE it?\
Warning: <YES> would DELETE ALL XBONE CONFIG/STATE\
files and ALL CERTIFICATES." 8 50 &&
rm -rf /etc/xbone || echo " - /etc/xbone is not deleted."
fi
/usr/bin/dialog --yesno "Do you want to DELETE all remaining XBone files\
under /usr/local/xbone, /usr/local/www & /usr/local/etc/apache?" 8 50 &&
for f in /usr/local/xbone /usr/local/www /usr/local/etc/apache; do
if [ -d $f ]; then
rm -rf $f
fi
if [ -d "$f-OLD" ]; then
mv -f $f-OLD $f
fi
done ||
echo "Check /usr/local/[xbone|www|etc/apache] for possible remaining files."