Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
f2429555
Commit
f2429555
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying cryptopp utils
parent
4e655ae8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-utils-cryptopp
+20
-22
20 additions, 22 deletions
src/freedombone-utils-cryptopp
with
20 additions
and
22 deletions
src/freedombone-utils-cryptopp
+
20
−
22
View file @
f2429555
...
...
@@ -32,22 +32,22 @@ CRYPTOPP_REPO="https://github.com/weidai11/cryptopp"
CRYPTOPP_COMMIT
=
'65e91a8caa8c1846cb311bc83d8507e12699d6d3'
function
mesh_install_cryptopp
{
if
[
!
-d
$rootdir$INSTALL_DIR
]
;
then
chroot
"
$rootdir
"
mkdir
-p
$INSTALL_DIR
# shellcheck disable=SC2154
if
[
!
-d
"
$rootdir$INSTALL_DIR
"
]
;
then
chroot
"
$rootdir
"
mkdir
-p
"
$INSTALL_DIR
"
fi
chroot
"
$rootdir
"
apt-get
-yq
install
build-essential
git clone
$CRYPTOPP_REPO
$rootdir$INSTALL_DIR
/cryptopp
cd
$rootdir$INSTALL_DIR
/cryptopp
git clone
"
$CRYPTOPP_REPO
"
"
$rootdir$INSTALL_DIR
/cryptopp
"
cd
"
$rootdir$INSTALL_DIR
/cryptopp
"
||
exit
346873625
git checkout
$CRYPTOPP_COMMIT
-b
$CRYPTOPP_COMMIT
mkdir
$rootdir$INSTALL_DIR
/cryptopp/build
mkdir
"
$rootdir$INSTALL_DIR
/cryptopp/build
"
cat
<<
EOF
>
$rootdir
/root/install_cryptopp
cat
<<
EOF
>
"
$rootdir
/root/install_cryptopp
"
cd
$INSTALL_DIR
/cryptopp/build
cmake ..
make
if [ ! "
$?
" = "0" ]; then
if ! make; then
exit 62825
fi
make install
...
...
@@ -58,18 +58,17 @@ EOF
}
function
install_cryptopp
{
if
[
$INSTALLING_MESH
]
;
then
if
[
"
$INSTALLING_MESH
"
]
;
then
mesh_install_cryptopp
return
fi
if
[
-d
$INSTALL_DIR
/cryptopp
]
;
then
if
!
grep
-q
"Crypto++ commit:
$CRYPTOPP_COMMIT
"
$COMPLETION_FILE
;
then
set_repo_commit
$INSTALL_DIR
/cryptopp
"Crypto++ commit"
"
$CRYPTOPP_COMMIT
"
$CRYPTOPP_REPO
if
[
-d
"
$INSTALL_DIR
/cryptopp
"
]
;
then
if
!
grep
-q
"Crypto++ commit:
$CRYPTOPP_COMMIT
"
"
$COMPLETION_FILE
"
;
then
set_repo_commit
"
$INSTALL_DIR
/cryptopp
"
"Crypto++ commit"
"
$CRYPTOPP_COMMIT
"
"
$CRYPTOPP_REPO
"
cd
$INSTALL_DIR
/cryptopp/build
cmake ..
make
if
[
!
"
$?
"
=
"0"
]
;
then
if
!
make
;
then
exit
72581
fi
make
install
...
...
@@ -80,20 +79,19 @@ function install_cryptopp {
return
fi
if
[
!
-d
$INSTALL_DIR
]
;
then
mkdir
-p
$INSTALL_DIR
if
[
!
-d
"
$INSTALL_DIR
"
]
;
then
mkdir
-p
"
$INSTALL_DIR
"
fi
apt-get
-yq
install
build-essential
git_clone
$CRYPTOPP_REPO
$INSTALL_DIR
/cryptopp
cd
$INSTALL_DIR
/cryptopp
git_clone
"
$CRYPTOPP_REPO
"
"
$INSTALL_DIR
/cryptopp
"
cd
"
$INSTALL_DIR
/cryptopp
"
||
exit
257478246
git checkout
$CRYPTOPP_COMMIT
-b
$CRYPTOPP_COMMIT
mkdir
-p
$INSTALL_DIR
/cryptopp/build
cd
$INSTALL_DIR
/cryptopp/build
mkdir
-p
"
$INSTALL_DIR
/cryptopp/build
"
cd
"
$INSTALL_DIR
/cryptopp/build
"
||
exit
6275425427
cmake ..
make
if
[
!
"
$?
"
=
"0"
]
;
then
if
!
make
;
then
exit
62826
fi
make
install
...
...
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