echo Installing mailpak 1.3 -- please wait
setterm -reverse on -blink on
echo Phase 1: setting permissions, misc. setup
setterm -reverse off -blink off
if [ ! -d /usr/lib/uucp ] ; then
	echo creating /usr/lib/uucp stuff
	(cp uucpjunk.tar /tmp;cd /;tar xvf /tmp/uucpjunk.tar;rm /tmp/uucpjunk.tar)
fi
chmod 600 /usr/lib/uucp/*
chown uucp /usr/lib/uucp/*
setterm -reverse on -blink on
echo Phase 2: building uucp
setterm -reverse off -blink off
cd uucp
make;make install
setterm -reverse on -blink on
echo Phase 3: building elm
setterm -reverse off -blink off
mv /usr/include/unistd.h /usr/include/unistd.h.old
cp ../headers/unistd.h /usr/include
chmod 644 /usr/include/unistd.h
cd ../elm2.3
make all
chmod 2755 bin/elm
chgrp mail bin/elm
mv bin/* /usr/local/bin
setterm -reverse on -blink on
echo Phase 4: building uustatus
setterm -reverse off -blink off
cd ../uustatus
make uustatus
chmod 755 uustatus
mv uustatus /usr/local/bin
# if you want to use my mailer...
setterm -reverse on -blink on
echo Phase 5: building /bin/*mail
setterm -reverse off -blink off
cd ../mail
make install
setterm -reverse on -blink on
echo Phase 6: making misc. directories
setterm -reverse off -blink off
mkdir /usr/spool /usr/spool/mail /usr/spool/uucp /usr/spool/uucppublic /var /var/spool
chown root /usr/spool/mail
chgrp mail /usr/spool/mail
chmod 775 /usr/spool/mail
ln -s /usr/spool/mail /var/spool/mail
find /usr/spool/uucp -exec chown uucp {} \;
chown uucp /usr/spool/uucp
chmod 755 /usr/spool/uucp
cd /usr/spool/uucp
mkdir .Log .Status .Admin .Preserve .Sequence .Xqtdir
chown uucp .Log .Status .Admin .Preserve .Sequence .Xqtdir
chmod 755 .Log .Status .Admin .Preserve .Sequence .Xqtdir
cd .Log
mkdir uucico uucp uux uuxqt
chown uucico uucp uux uuxqt
chmod 755 uucico uucp uux uuxqt
chown uucp /usr/spool/uucppublic
chgrp uucp /usr/spool/uucppublic
chmod 777 /usr/spool/uucppublic
setterm -reverse on -blink on
echo Phase 7: changing permissions, etc.
setterm -reverse off -blink off
# Some of this stuff is redundent, but I want to make *sure* it gets set right...
cd /usr/lib/uucp
chmod 600 [A-Z]*
chown uucp uu*
chmod 4755 uu*
chmod 644 paths
chmod 755 .

setterm -reverse on
echo Edit Devices, Permissions, and Systems in /usr/lib/uucp to suit.
echo Edit \(or build\) /usr/lib/uucp/paths.  I don\'t include pathalias
echo in this package - you can get it from ftp.uu.net.  If enough people
echo complain, I\'ll include it in the next release.
echo 
echo IMPORTANT!!!  If you use my mailer, read the last paragraph in
echo /src/mail/Doc on how to set up your paths file to automatically forward
echo mail to your \"smart host\".
setterm -reverse off
