1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Added a real ugle hack so that cat, tar and gzip tools used to do the

extract can be over writen.  This is done by coping them to /tmp
before the extract begins, running them from /tmp, then removing them
after the extract has completed.

Removed all section about setting up sendmail.cf, since this was for the
old sendmail stuff and should not be required by the new sendmail.cf file
that is shipped with the system.
This commit is contained in:
Rodney W. Grimes 1993-08-26 03:23:20 +00:00
parent 95a36318cc
commit 2b881de69a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332

View File

@ -106,8 +106,11 @@ extract()
tarverbose=
;;
esac
cat "$@"* | gunzip | (cd / ; tar --extract --file - --unlink --preserve-permissions ${tarverbose} )
#XXX ugly hack to eliminate busy files, copy them to /tmp and use them
#from there...
cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp
/tmp/cat "$@"* | /tmp/gunzip | (cd / ; /tmp/tar --extract --file - --unlink --preserve-permissions ${tarverbose} )
rm -f /bin/cat /tmp/gunzip /tmp/tar
sync
}
configure()
@ -135,38 +138,6 @@ configure()
dname=$proto_domain
fi
# echo -n "Setting up domain name in sendmail.cf..."
# sed -e "s/YOUR_DOMAIN_GOES_HERE/$dname/" \
# < /etc/sendmail.cf_proto > /etc/sendmail.cf
# echo " done."
#
# echo -n "Freezing sendmail.cf..."
# /usr/sbin/sendmail -bz
# echo " done."
#
# echo ""
# echo "WARNING: you should look over the /etc/sendmail.cf file,"
# echo "make sure things are set up properly, then re-freeze"
# echo "it with the command '/usr/sbin/sendmail -bz'."
#
# echo ""
# echo "Building aliases database..."
# newaliases
# echo ""
# echo "WARNING: you should look over the /etc/aliases file,"
# echo "make sure things are set up properly, then re-build"
# echo "it with the command 'newaliases'."
# cp /etc/sendmail.cf_proto /etc/sendmail.cf
# echo ""
# echo "WARNING: sendmail will puke on your carpet when the machine"
# echo "starts up. If you don't want it to keep doing this, either"
# echo "turn it off in /etc/rc, or give it a reasonable"
# echo "/etc/sendmail.cf file."
# echo "127.0.0.1 localhost" > /etc/hosts
echo ""
echo -n "Does this machine have an ethernet interface? [y] "
read resp