Skip to content
Snippets Groups Projects
Unverified Commit c9c2b864 authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

ca-certificates package; needed by cargo

parent 0bbc25db
No related branches found
No related tags found
1 merge request!31ca-certificates package; needed by cargo
......@@ -48,35 +48,43 @@ function op {
op $1 unprepare
;;
fetch)
if [ -n "$TAR" ]
skip=0
if [ "$(type -t recipe_fetch)" = "function" ]
then
recipe_fetch
fi
if [ "$skip" -eq "0" ]
then
if [ ! -f source.tar ]
if [ -n "$TAR" ]
then
wget "$TAR" -O source.tar
fi
if [ ! -f source.tar ]
then
wget "$TAR" -O source.tar
fi
if [ ! -d source ]
then
mkdir source
tar xvf source.tar -C source --strip-components 1
fi
elif [ -n "$GIT" ]
then
if [ ! -d source ]
if [ ! -d source ]
then
mkdir source
tar xvf source.tar -C source --strip-components 1
fi
elif [ -n "$GIT" ]
then
if [ -n "$BRANCH" ]
if [ ! -d source ]
then
git clone --recursive "$GIT" -b "$BRANCH" source
else
git clone --recursive "$GIT" source
if [ -n "$BRANCH" ]
then
git clone --recursive "$GIT" -b "$BRANCH" source
else
git clone --recursive "$GIT" source
fi
fi
fi
pushd source > /dev/null
git pull
git submodule sync
git submodule update --init --recursive
popd > /dev/null
pushd source > /dev/null
git pull
git submodule sync
git submodule update --init --recursive
popd > /dev/null
fi
fi
;;
unfetch)
......
function recipe_fetch {
mkdir source
pushd source
curl -o make-ca.sh http://anduin.linuxfromscratch.org/BLFS/other/make-ca.sh-20170514
curl -o certdata.txt http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt
popd
skip=1
}
function recipe_update {
curl -o make-ca.sh --time-cond make-ca.sh http://anduin.linuxfromscratch.org/BLFS/other/make-ca.sh-20170514
curl -o certdata.txt --time-cond certdata.txt http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt
skip=1
}
function recipe_build {
rm -rf build
mkdir build
chmod +x ./make-ca.sh
./make-ca.sh -D "$PWD/build"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
rm -rf build
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -p "$1/ssl"
cp -rL build/etc/ssl/certs "$1/ssl"
skip=1
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment