aboutsummaryrefslogtreecommitdiff
path: root/release/scripts
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-09-22 08:43:10 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-09-22 08:43:10 +0000
commitb0d5cda0b140045d6027beb8f610e9053c60f9eb (patch)
tree4f941407d6b2b16acaa8459dcbe3e4efe45eb4d4 /release/scripts
parent6d21c6f37326b6a4ec796d047d4a7b870e0b896d (diff)
downloadsrc-b0d5cda0b140045d6027beb8f610e9053c60f9eb.tar.gz
src-b0d5cda0b140045d6027beb8f610e9053c60f9eb.zip
Allow the use of ${DESTDIR} in the enviroment to optionally get
these various collections to install someplace else.
Notes
Notes: svn path=/head/; revision=39556
Diffstat (limited to 'release/scripts')
-rwxr-xr-xrelease/scripts/base-install.sh5
-rwxr-xr-xrelease/scripts/bin-install.sh5
-rwxr-xr-xrelease/scripts/catpages-install.sh2
-rwxr-xr-xrelease/scripts/commerce-install.sh3
-rwxr-xr-xrelease/scripts/compat1x-install.sh2
-rwxr-xr-xrelease/scripts/compat20-install.sh2
-rwxr-xr-xrelease/scripts/compat21-install.sh2
-rwxr-xr-xrelease/scripts/des-install.sh16
-rwxr-xr-xrelease/scripts/dict-install.sh2
-rwxr-xr-xrelease/scripts/doc-install.sh4
-rwxr-xr-xrelease/scripts/games-install.sh2
-rwxr-xr-xrelease/scripts/info-install.sh2
-rwxr-xr-xrelease/scripts/manpages-install.sh2
-rwxr-xr-xrelease/scripts/ports-install.sh3
-rwxr-xr-xrelease/scripts/proflibs-install.sh2
-rwxr-xr-xrelease/scripts/src-install.sh6
-rwxr-xr-xrelease/scripts/xperimnt-install.sh3
17 files changed, 36 insertions, 27 deletions
diff --git a/release/scripts/base-install.sh b/release/scripts/base-install.sh
index 8fab5c2bad19..6b32b033a842 100755
--- a/release/scripts/base-install.sh
+++ b/release/scripts/base-install.sh
@@ -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
diff --git a/release/scripts/bin-install.sh b/release/scripts/bin-install.sh
index 8fab5c2bad19..6b32b033a842 100755
--- a/release/scripts/bin-install.sh
+++ b/release/scripts/bin-install.sh
@@ -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
diff --git a/release/scripts/catpages-install.sh b/release/scripts/catpages-install.sh
index ce408fedc6cd..e2806d4192f3 100755
--- a/release/scripts/catpages-install.sh
+++ b/release/scripts/catpages-install.sh
@@ -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
diff --git a/release/scripts/commerce-install.sh b/release/scripts/commerce-install.sh
index e8a8ca71a8a5..37912e3ae740 100755
--- a/release/scripts/commerce-install.sh
+++ b/release/scripts/commerce-install.sh
@@ -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
diff --git a/release/scripts/compat1x-install.sh b/release/scripts/compat1x-install.sh
index e0df742efda8..18dbcabbec31 100755
--- a/release/scripts/compat1x-install.sh
+++ b/release/scripts/compat1x-install.sh
@@ -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
diff --git a/release/scripts/compat20-install.sh b/release/scripts/compat20-install.sh
index 0ad5ea663a43..ba85baa2a620 100755
--- a/release/scripts/compat20-install.sh
+++ b/release/scripts/compat20-install.sh
@@ -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
diff --git a/release/scripts/compat21-install.sh b/release/scripts/compat21-install.sh
index abf9bc2a3669..8fcd15df0460 100755
--- a/release/scripts/compat21-install.sh
+++ b/release/scripts/compat21-install.sh
@@ -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
diff --git a/release/scripts/des-install.sh b/release/scripts/des-install.sh
index c1fdedc09f78..13d7fdcf2eaa 100755
--- a/release/scripts/des-install.sh
+++ b/release/scripts/des-install.sh
@@ -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
diff --git a/release/scripts/dict-install.sh b/release/scripts/dict-install.sh
index e86c744cc264..eeb6c9930b78 100755
--- a/release/scripts/dict-install.sh
+++ b/release/scripts/dict-install.sh
@@ -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
diff --git a/release/scripts/doc-install.sh b/release/scripts/doc-install.sh
index 371312cdc6c2..aae982f67c0a 100755
--- a/release/scripts/doc-install.sh
+++ b/release/scripts/doc-install.sh
@@ -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
diff --git a/release/scripts/games-install.sh b/release/scripts/games-install.sh
index 1b907b2af2f0..6602d1c0bbf4 100755
--- a/release/scripts/games-install.sh
+++ b/release/scripts/games-install.sh
@@ -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
diff --git a/release/scripts/info-install.sh b/release/scripts/info-install.sh
index 7248df6a01e2..2ae15dfdd4e2 100755
--- a/release/scripts/info-install.sh
+++ b/release/scripts/info-install.sh
@@ -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
diff --git a/release/scripts/manpages-install.sh b/release/scripts/manpages-install.sh
index 6ba009240784..d4293151ea89 100755
--- a/release/scripts/manpages-install.sh
+++ b/release/scripts/manpages-install.sh
@@ -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
diff --git a/release/scripts/ports-install.sh b/release/scripts/ports-install.sh
index 22d2246ba214..810bab0ee251 100755
--- a/release/scripts/ports-install.sh
+++ b/release/scripts/ports-install.sh
@@ -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
diff --git a/release/scripts/proflibs-install.sh b/release/scripts/proflibs-install.sh
index afcd5c506824..ce410e388805 100755
--- a/release/scripts/proflibs-install.sh
+++ b/release/scripts/proflibs-install.sh
@@ -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
diff --git a/release/scripts/src-install.sh b/release/scripts/src-install.sh
index a7b593b13772..f31b68cc1424 100755
--- a/release/scripts/src-install.sh
+++ b/release/scripts/src-install.sh
@@ -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
diff --git a/release/scripts/xperimnt-install.sh b/release/scripts/xperimnt-install.sh
index e998c0f5ce60..2c55654ea280 100755
--- a/release/scripts/xperimnt-install.sh
+++ b/release/scripts/xperimnt-install.sh
@@ -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