About

Supporting the site

App Repository‎ > ‎Archives‎ > ‎

git-1.7.5

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

Overview

Git requires requires zlib, openssl, cURL, and expat to compile. All dependencies are compiled statically for easier deployment.

This is a bare-bones version of git. It may be missing things to be a full-fledged server for the DroboFS. For instance, it may require Perl and PGP. Proceed with caution.

Preparation

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

Compilation

export DEST=/mnt/DroboFS/Shares/DroboApps/git
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://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" LDFLAGS="$LDFLAGS -L$ZLIB -L$OPENSSL" LIBS="-ldl" ./configure --host=arm-none-linux-gnueabi --prefix=$DEST --with-ssl --with-zlib --with-random --with-ca-bundle=$DEST/etc/ssl/certs/ca-certificates.crt --disable-shared
make clean && make
chmod a+x curl-config
CURL=`pwd`
cd ..

wget http://sourceforge.net/projects/expat/files/expat/2.0.1/expat-2.0.1.tar.gz
tar zxf expat-2.0.1.tar.gz 
cd expat-2.0.1/
./configure --host=arm-none-linux-gnueabi --prefix=$DEST --disable-shared
make clean && make
EXPAT=`pwd`
cd ..

wget http://kernel.org/pub/software/scm/git/git-1.7.5.tar.bz2
tar jxf git-1.7.5.tar.bz2
cd git-1.7.5/
make distclean
PATH=$PATH:$CURL make configure
CFLAGS="$CFLAGS -I$ZLIB -I$OPENSSL/include -I$CURL/include -I$EXPAT/lib" LDFLAGS="$LDFLAGS -L$ZLIB -L$OPENSSL -L$CURL/lib/.libs -L$EXPAT/.libs" ac_cv_fread_reads_directories=no ac_cv_snprintf_returns_bogus=no ac_cv_lib_curl_curl_global_init=yes ./configure --host=arm-none-linux-gnueabi --prefix=$DEST --with-zlib --with-openssl --with-curl --with-expat
PATH=$PATH:$CURL make EXTLIBS="-lexpat -lcurl -lssl -lcrypto -lz -ldl -pthread -lrt" && PATH=$PATH:$CURL make install

Packaging

cd $DEST
~/bin/package.sh

Installing

DroboAdmin link: Install git-1.7.5 (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 git binaries 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.

ą
git-logo.png
View Download
  2k v. 2 May 2, 2011, 6:55 AM Ricardo Padilha
ċ
git.tgz
Download
DroboApp for DroboFS   7340k v. 3 Jun 1, 2011, 1:19 AM Ricardo Padilha
Comments