1996-01-08 06:19:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2001-04-08 23:09:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
1996-01-08 06:19:45 +00:00
|
|
|
if [ "`id -u`" != "0" ]; then
|
|
|
|
echo "Sorry, this must be done as root."
|
|
|
|
exit 1
|
|
|
|
fi
|
1998-09-22 08:43:10 +00:00
|
|
|
_DEST=${DESTDIR:-/}
|
1999-10-10 07:13:33 +00:00
|
|
|
echo "You are about to extract the CRYPTO distribution into ${_DEST} - are you SURE"
|
1998-09-22 08:43:10 +00:00
|
|
|
echo "you want to do this over your installed system? If not, hit ^C now,"
|
|
|
|
echo -n "otherwise hit return to continue. "
|
1996-01-08 06:19:45 +00:00
|
|
|
read junk
|
2000-03-21 19:13:31 +00:00
|
|
|
cat crypto.?? | tar --unlink -xpzf - -C ${_DEST}
|
|
|
|
echo -n "Do you want to install the CRYPTO sources (y/n)? "
|
1996-01-08 06:19:45 +00:00
|
|
|
read ans
|
|
|
|
if [ "$ans" = "y" ]; then
|
1998-09-22 08:43:10 +00:00
|
|
|
cat scrypto.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
|
|
|
|
cat ssecure.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
|
2000-03-21 19:13:31 +00:00
|
|
|
cat skrb5.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
|
1996-01-08 06:19:45 +00:00
|
|
|
fi
|
|
|
|
exit 0
|