curl.sh 784 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. . `dirname "$0"`/common || exit 1
  3. PKG="curl"
  4. MARKER="$BASEDIR/.${PKG}_is_built"
  5. if [ -e "$MARKER" ]; then
  6. echo "$PKG seems to be already build, remove $MARKER to rebuild"
  7. exit 0
  8. fi
  9. CURL_VERSION="7.18.1"
  10. CURL_FILE="$DOWNLOAD_DIR/curl-$CURL_VERSION.tar.bz2"
  11. URL="http://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2"
  12. CONFIGURE_FLAGS="--prefix=$PREFIX --without-ssl --without-libssh2 --disable-crypto-auth --disable-cookies --disable-ldap --disable-ldaps --disable-dict --disable-telnet --disable-tftp --disable-manual --disable-ipv6 --disable-ares --disable-sspi"
  13. download "$URL" "$CURL_FILE"
  14. execute tar -xf "$CURL_FILE"
  15. execute pushd curl-"$CURL_VERSION"
  16. execute "$BASEDIR/configure2x" $CONFIGURE_FLAGS
  17. execute make
  18. execute make install
  19. execute popd
  20. touch $MARKER