mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-03 18:18:44 +08:00
49 lines
835 B
Bash
49 lines
835 B
Bash
function recipe_version {
|
|
date "+%Y%m%d"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_fetch {
|
|
if [ ! -d source ]
|
|
then
|
|
mkdir source
|
|
fi
|
|
pushd source
|
|
cp ../make-ca.sh make-ca.sh
|
|
curl \
|
|
-o certdata.txt \
|
|
--time-cond certdata.txt \
|
|
https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
|
|
popd
|
|
skip=1
|
|
}
|
|
|
|
function recipe_update {
|
|
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
|
|
}
|