Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
c9c2b864
Unverified
Commit
c9c2b864
authored
7 years ago
by
Ian Douglas Scott
Browse files
Options
Downloads
Patches
Plain Diff
ca-certificates package; needed by cargo
parent
0bbc25db
No related branches found
No related tags found
1 merge request
!31
ca-certificates package; needed by cargo
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cook.sh
+30
-22
30 additions, 22 deletions
cook.sh
recipes/ca-certificates/recipe.sh
+39
-0
39 additions, 0 deletions
recipes/ca-certificates/recipe.sh
with
69 additions
and
22 deletions
cook.sh
+
30
−
22
View file @
c9c2b864
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
recipes/ca-certificates/recipe.sh
0 → 100644
+
39
−
0
View file @
c9c2b864
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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment