The Samba uninstall utility appears to be dependent on inetd, not xinetd, and
does not function properly with just xinetd installed. By looking at the
code, I think it will leave around swat in /etc/services. I haven't tested
this, since I can't afford to uninstall samba on this system.
[ewilts@linux1 ewilts]$ rpm -q samba
samba-2.0.7-25mdk
[ewilts@linux1 ewilts]$ rpm -q samba --queryformat 'name:
%{NAME}\n%{POSTUN}\n\n'
name: samba
if [ $1 = 0 -a -f /etc/inetd.conf ] ; then
# Remove swat entries from /etc/inetd.conf and /etc/services
# tmpfile="`/bin/mktemp /etc/tmp.XXXXXX`"
# sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
# cp $tmpfile /etc/inetd.conf
# sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
# cp $tmpfile /etc/services
# rm -f $tmpfile
perl -ni -e 'print unless (/^swat\W+/ || /^#swat\W+/)' /etc/inetd.conf
perl -ni -e 'print unless /^swat\W+/' /etc/services
service xinetd reload &>/dev/null || :
fi
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus ||
true ; fi
--
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]