Merge from vendor branch LIBPCAP:
[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 # $DragonFly: src/release/scripts/Attic/crypto-install.sh,v 1.2 2003/06/17 04:27:21 dillon Exp $
5 #
6
7 if [ "`id -u`" != "0" ]; then
8         echo "Sorry, this must be done as root."
9         exit 1
10 fi
11 _DEST=${DESTDIR:-/}
12 echo "You are about to extract the CRYPTO distribution into ${_DEST} - are you SURE"
13 echo "you want to do this over your installed system?  If not, hit ^C now,"
14 echo -n "otherwise hit return to continue. "
15 read junk
16 cat crypto.?? | tar --unlink -xpzf - -C ${_DEST}
17 cat krb4.?? | tar --unlink -xpzf - -C ${_DEST}
18 cat krb5.?? | tar --unlink -xpzf - -C ${_DEST}
19 echo -n "Do you want to install the CRYPTO sources (y/n)? "
20 read ans
21 if [ "$ans" = "y" ]; then
22         cat scrypto.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
23         cat ssecure.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
24         cat skrb4.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
25         cat skrb5.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
26 fi
27 exit 0