Allow the use of ${DESTDIR} in the enviroment to optionally get

these various collections to install someplace else.
This commit is contained in:
Jordan K. Hubbard 1998-09-22 08:43:10 +00:00
parent 6d21c6f373
commit b0d5cda0b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39556
17 changed files with 36 additions and 27 deletions

View File

@ -4,9 +4,10 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
echo "You are about to extract the base distribution into / - are you SURE"
echo "You are about to extract the base distribution into ${DESTDIR:-/} - are you SURE"
echo -n "you want to do this over your installed system (y/n)? "
read ans
if [ "$ans" = "y" ]; then
cat bin.?? | tar --unlink -xpzf - -C /
cat bin.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
fi

View File

@ -4,9 +4,10 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
echo "You are about to extract the base distribution into / - are you SURE"
echo "You are about to extract the base distribution into ${DESTDIR:-/} - are you SURE"
echo -n "you want to do this over your installed system (y/n)? "
read ans
if [ "$ans" = "y" ]; then
cat bin.?? | tar --unlink -xpzf - -C /
cat bin.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
fi

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat catpages.?? | tar --unlink -xpzf - -C /
cat catpages.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,5 +4,6 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
tar --unlink -xpzf commerce.tgz -C /usr/local
echo "Extracting commerce tarball into ${DESTDIR}/usr/local"
tar --unlink -xpzf commerce.tgz -C ${DESTDIR}/usr/local
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat compat1x.?? | tar --unlink -xpzf - -C /
cat compat1x.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat compat20.?? | tar --unlink -xpzf - -C /
cat compat20.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat compat21.?? | tar --unlink -xpzf - -C /
cat compat21.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,16 +4,18 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
echo "You are about to extract the DES distribution into / - are you SURE"
echo "you want to do this over your installed system? If not, hit ^C now!"
_DEST=${DESTDIR:-/}
echo "You are about to extract the DES distribution into ${_DEST} - are you SURE"
echo "you want to do this over your installed system? If not, hit ^C now,"
echo -n "otherwise hit return to continue. "
read junk
cat des.?? | tar --unlink -xpzf - -C /
cat krb.?? | tar --unlink -xpzf - -C /
cat des.?? | tar --unlink -xpzf - -C ${_DEST}
cat krb.?? | tar --unlink -xpzf - -C ${_DEST}
echo -n "Do you want to install the DES sources (y/n)? "
read ans
if [ "$ans" = "y" ]; then
cat scrypto.?? | tar --unlink -xpzf - -C /usr/src
cat skerbero.?? | tar --unlink -xpzf - -C /usr/src
cat ssecure.?? | tar --unlink -xpzf - -C /usr/src
cat scrypto.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
cat skerbero.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
cat ssecure.?? | tar --unlink -xpzf - -C ${_DEST}/usr/src
fi
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat dict.?? | tar --unlink -xpzf - -C /
cat dict.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,9 +4,9 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
echo "You are about to extract the doc distribution into / - are you SURE"
echo "You are about to extract the doc distribution into ${DESTDIR:-/} - are you SURE"
echo -n "you want to do this over your installed system (y/n)? "
read ans
if [ "$ans" = "y" ]; then
cat doc.?? | tar --unlink -xpzf - -C /
cat doc.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
fi

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat games.?? | tar --unlink -xpzf - -C /
cat games.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat info.?? | tar --unlink -xpzf - -C /
cat info.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat manpages.?? | tar --unlink -xpzf - -C /
cat manpages.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -4,5 +4,6 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat ports.tgz | tar --unlink -xpzf - -C /usr
echo "Extracting ports tarball into ${DESTDIR}/usr"
cat ports.tgz | tar --unlink -xpzf - -C ${DESTDIR}/usr
exit 0

View File

@ -4,5 +4,5 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
cat proflibs.?? | tar --unlink -xpzf - -C /
cat proflibs.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
exit 0

View File

@ -21,8 +21,10 @@ else
dists="$*"
fi
echo "Extracting sources into ${DESTDIR}/usr/src..."
for i in $dists; do
echo "Extracting source component: $i"
cat s${i}.?? | tar --unlink -xpzf - -C /usr/src
echo " Extracting source component: $i"
cat s${i}.?? | tar --unlink -xpzf - -C ${DESTDIR}/usr/src
done
echo "Done extracting sources."
exit 0

View File

@ -4,5 +4,6 @@ if [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
exit 1
fi
tar --unlink -xpzf xperimnt.tgz -C /usr/local
echo "Extracting xperimnt tarball into ${DESTDIR}/usr/local"
tar --unlink -xpzf xperimnt.tgz -C ${DESTDIR}/usr/local
exit 0