mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Add --unlink flag to all tar commands, but each for different reasons.
1. Add to secr and bindists to possibly save the occasional fool who doesn't RTFM and uses the wrong command to extract this (or even someone who's legitimately using this to extract on top of a bindist somewhere *else*). 2. Do the right thing with any symlinks in the src tree. Right now, we're free of the buggers, but just in case.
This commit is contained in:
parent
c95719bae6
commit
4f351f3ff4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1779
@ -14,5 +14,5 @@ if [ X"${EXTRACT_TARGET}" = X"" ]; then
|
||||
fi
|
||||
|
||||
cd $SOURCEDIR
|
||||
cat bin_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat bin_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
#NO_EXPORT#cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
|
@ -10,5 +10,5 @@ fi
|
||||
|
||||
cd $SOURCEDIR
|
||||
|
||||
cat des_tgz.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat libcrypt.aa | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat des_tgz.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat libcrypt.aa | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
|
@ -20,22 +20,22 @@ cd $SOURCEDIR
|
||||
# Note that base.aa is REQUIRED to be able to use the source tree for
|
||||
# building in.
|
||||
#
|
||||
cat base.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat base.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
|
||||
#
|
||||
# The following are optional
|
||||
#
|
||||
cat bin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat contrib.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat etc.aa | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat games.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat gnu.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat include.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat lib.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
#NO_EXPORT#cat libcrypt.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat libexec.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat sbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat share.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat sys.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat usrbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat usrsbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat bin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat contrib.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat etc.aa | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat games.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat gnu.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat include.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat lib.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
#NO_EXPORT#cat libcrypt.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat libexec.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat sbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat share.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat sys.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat usrbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
cat usrsbin.* | gunzip | tar --unlink --directory ${EXTRACT_TARGET} -xpf -
|
||||
|
Loading…
Reference in New Issue
Block a user