About

Supporting the site

App Repository‎ > ‎Archives‎ > ‎

curl-7.21.7

Warning: This version of cURL is deprecated and has been replaced by cURL 7.23.1. This page and attached files are being kept for reference, but should not be deployed on any systems.

Overview

cURL requires zlib, openssl and libssh2 to compile.

This version supports the following protocols (from configure output): DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SCP SFTP SMTP SMTPS TELNET TFTP. These instructions generate a statically compiled version of cURL. All dependencies have been updated to their latest versions since the previous cURL version.

Preparation

Make sure you have a cross-compiling virtual machine properly setup.

Compilation

export DEST=/mnt/DroboFS/Shares/DroboApps/curl
cd ~/code

wget http://zlib.net/zlib-1.2.5.tar.gz
tar zxf zlib-1.2.5.tar.gz
cd zlib-1.2.5
CFLAGS="$CFLAGS -O3" ./configure --prefix=$DEST --static
make clean && make
ZLIB=`pwd`
cd ..

wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz
tar zxf openssl-1.0.0d.tar.gz
cd openssl-1.0.0d
./Configure linux-generic32 -DL_ENDIAN --prefix=$DEST --openssldir=$DEST/etc/ssl no-shared no-zlib-dynamic --with-zlib-include=$ZLIB --with-zlib-lib=$ZLIB
sed -i -e "s/CFLAG= /CFLAG=${CFLAGS} /g" Makefile
make clean && make && make install_sw
rm -fr $DEST/include
rm -fr $DEST/lib
OPENSSL=`pwd`
cd ..

wget http://www.libssh2.org/download/libssh2-1.2.9.tar.gz
tar zxf libssh2-1.2.9.tar.gz 
cd libssh2-1.2.9/
CFLAGS="$CFLAGS -O3 -I$ZLIB -I$OPENSSL/include" LDFLAGS="$LDFLAGS -L$ZLIB -L$OPENSSL" LIBS="-ldl" ./configure --host=arm-none-linux-gnueabi --prefix=$DEST --with-openssl --with-libz --disable-shared
make clean && make
LIBSSH=`pwd`
cd ..

wget http://curl.haxx.se/download/curl-7.21.7.tar.gz
tar zxf curl-7.21.7.tar.gz
cd curl-7.21.7/
CFLAGS="$CFLAGS -O3 -I$ZLIB -I$OPENSSL/include -I$LIBSSH/include" LDFLAGS="$LDFLAGS -L$ZLIB -L$OPENSSL -L$LIBSSH/src/.libs" LIBS="-ldl" ./configure --host=arm-none-linux-gnueabi --prefix=$DEST --with-ssl --with-zlib --with-libssh2 --with-random --with-ca-bundle=$DEST/etc/ssl/certs/ca-certificates.crt
make clean && make && make install

Packaging

cd $DEST
~/bin/package.sh

Installing

DroboAdmin link: Install curl-7.21.7 (this link only works if you have not changed the DroboFS name). Otherwise, download below and place it in you DroboApps share.

Final remarks

This is not a conventional DroboApp in the sense that once installed, it is ready for use. This one just makes the cURL binary and libraries available for further use, and does not attempt to change the DroboFS configuration in any way.

Please visit the DroboSpace forums to leave your comments, suggestions and feedback.

ą
curl.jpg
View Download
  15k v. 2 Aug 30, 2011, 5:38 AM Ricardo Padilha
ċ
curl.tgz
Download
DroboApp for DroboFS  2478k v. 2 Aug 30, 2011, 5:47 AM Ricardo Padilha
Comments