Skip to content
Snippets Groups Projects
Commit d4bf2d09 authored by Vinicius Ruoso's avatar Vinicius Ruoso
Browse files

Added support to include wget(1) generated by build-wget on the package


We need to ensure that wget(1) has been compiled with static libraries.
Also, on the end of the package creation process we are copying the binary.

Acked-by: default avatarDiego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Acked-by: default avatarRicardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 2d166e2b
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,22 @@ printf "====================\n"
printf "\n"
# Check if wget have been build
if ! test -f "${PREFIX}/wget-"*"/src/wget"; then
printf "PLEASE USE build-wget BEFORE RUNNNING THIS SCRIPT!!\n"
printf "ABORTING !!!!!!!!!!!!!!!!!!!!!!!!\n"
exit 1
fi
# Sanity check, we do not want dynamic linked binaries on the package
ldd "${PREFIX}/wget-"*"/src/wget" &>/dev/null
if ! test $? -eq 1; then
printf "THE wget BINARY HAVE NOT BEEN COMPILED WITH STATIC LIBRARY!!\n"
printf "PLEASE, BUILD wget USIGN build-wget!!\n"
printf "ABORTING !!!!!!!!!!!!!!!!!!!!!!!!\n"
exit 1
fi
# Make sure all repositories are ok
printf "Updating git repositories...\n"
for repo in "${GITBASEDIR}/client:client" "${GITBASEDIR}/coleta:coleta"; do
......@@ -172,6 +188,10 @@ printf "Copying bootstrap..."
cp -a "${BOOTSTRAP}" "${AGENTDIR}"/
printf " done\n\n"
printf "Copying wget binary..."
cp -a "${PREFIX}/wget-"*"/src/wget" "${OUTDIR}/bin/"
printf " done\n\n"
rm -f "${EXCLUDEFILE}"
printf "All done.\n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment