mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
Installation of a static binary for curl
This commit is contained in:
parent
dbe5d038d7
commit
0bd44eb5cc
@ -1,11 +0,0 @@
|
|||||||
--- src/tool_getparam.c 2015-01-12 17:18:15.149251979 +0100
|
|
||||||
+++ src/tool_getparam.c 2015-01-12 17:18:39.397148081 +0100
|
|
||||||
@@ -227,7 +227,7 @@
|
|
||||||
{"I", "head", FALSE},
|
|
||||||
{"j", "junk-session-cookies", FALSE},
|
|
||||||
{"J", "remote-header-name", FALSE},
|
|
||||||
- {"k", "insecure", FALSE},
|
|
||||||
+ {"k", "insecure", TRUE},
|
|
||||||
{"K", "config", TRUE},
|
|
||||||
{"l", "list-only", FALSE},
|
|
||||||
{"L", "location", FALSE},
|
|
@ -3,19 +3,21 @@
|
|||||||
# Installs curl for ocaml
|
# Installs curl for ocaml
|
||||||
# Thu Oct 23 22:02:08 CEST 2014
|
# Thu Oct 23 22:02:08 CEST 2014
|
||||||
|
|
||||||
CURL_URL="http://curl.haxx.se/download/curl-7.38.0.tar.gz"
|
CURL="curl-7.30.0.ermine"
|
||||||
|
CURL_URL="http://qmcchem.ups-tlse.fr/files/scemama/${CURL}.tar.bz2"
|
||||||
|
|
||||||
CURL=$(which curl)
|
curl -kL "https://github.com/LCPQ/quantum_package" &> /dev/null
|
||||||
if [[ -z ${CURL} ]]
|
if [[ $? -eq 0 ]]
|
||||||
then
|
then
|
||||||
rm -f -- bin/curl
|
exit 0
|
||||||
${QPACKAGE_ROOT}/scripts/fetch_from_web.py ${CURL_URL} CURL.tar.gz
|
|
||||||
tar -zxf CURL.tar.gz && rm CURL.tar.gz ||exit 1
|
|
||||||
cd curl* || exit 1
|
|
||||||
patch -p0 -f < ../data/curl_insecure_patch.txt
|
|
||||||
./configure && make || exit 1
|
|
||||||
ln -s ${PWD}/src/curl ${QPACKAGE_ROOT}/bin
|
|
||||||
else
|
|
||||||
ln -s ${CURL} ${QPACKAGE_ROOT}/bin/curl
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd ${QPACKAGE_ROOT}
|
||||||
|
rm -f -- ${QPACKAGE_ROOT}/bin/curl
|
||||||
|
${QPACKAGE_ROOT}/scripts/fetch_from_web.py ${CURL_URL} CURL.tar.bz2
|
||||||
|
tar -jxf CURL.tar.bz2 && rm CURL.tar.bz2 ||exit 1
|
||||||
|
cd ${CURL} || exit 1
|
||||||
|
mv curl.ermine ${QPACKAGE_ROOT}/bin/curl
|
||||||
|
cd ${QPACKAGE_ROOT}
|
||||||
|
rm -rf -- ${CURL}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user