Initial import from FreeBSD RELENG_4:
[dragonfly.git] / release / scripts / crypto-install.sh
1 #!/bin/sh
2 #
3 # $FreeBSD: src/release/scripts/crypto-install.sh,v 1.1.2.2 2002/08/08 08:23:53 ru Exp $
4 #
5
6 if [ "`id -u`" != "0" ]; then
7         echo "Sorry, this must be done as root."
8         exit 1
9 fi
10 _DEST=${DESTDIR:-/}
11 echo "You are about to extract the CRYPTO distribution into ${_DEST} - are you SURE"
12 echo "you want to do this over your installed system?  If not, hit ^C now,"
13 echo -n "otherwise hit return to continue. "
14 read junk
15 cat crypto.?? | tar --unlink -xpzf - -C ${_DEST}
16 cat krb4.?? | tar --unlink -xpzf - -C ${_DEST}
17 cat krb5.?? | tar --unlink -xpzf - -C ${_DEST}
18 echo -n "Do you want to install the CRYPTO sources (y/n)? "
19 read ans
20 if [ "$ans" = "y" ]; then
21         cat scrypto.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
22         cat ssecure.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
23         cat skrb4.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
24         cat skrb5.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
25 fi
26 exit 0