About

Supporting the site

App Repository‎ > ‎Archives‎ > ‎

curl-7.21.6

Warning: This version of cURL is deprecated and has been replaced by cURL 7.21.7. 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. This is a different compilation method as the previous version, since it tries to statically compile all the dependencies and, therefore, make deployment easier by not having to deal with LD_LIBRARY_PATH. It also has been updated to use the latest versions of all dependencies.

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
./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
OPENSSL=`pwd`
cd ..

wget http://www.libssh2.org/download/libssh2-1.2.8.tar.gz
tar zxf libssh2-1.2.8.tar.gz 
cd libssh2-1.2.8/
CFLAGS="$CFLAGS -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.6.tar.gz
tar zxf curl-7.21.6.tar.gz
cd curl-7.21.6/
CFLAGS="$CFLAGS -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.6 (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 May 26, 2011, 2:46 AM Ricardo Padilha
ċ
curl.tgz
Download
DroboApp for DroboFS  1479k v. 2 May 26, 2011, 2:49 AM Ricardo Padilha
Comments