# SHORT DESC: Abstracted peer-to-peer network framework. # LONG DESC: giFT is a framework for bridging multiple backend peer-to-peer protocols and the user interface associated with them. It is implemented as a modular daemon able to handle multiple simultaneous client connections using a simple text-based interface protocol. GIFTGNUTELLAVER=0.0.11 GIFTOPENFTVER=0.2.1.6 GIFTFTVER=0.8.9 # Pass 1: Get gift installed so we can update the plugins. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" && \ make && \ make install || exit 1 mkdir TMPDIR cd TMPDIR || exit 1 wget http://osdn.dl.sourceforge.net/sourceforge/gift/gift-gnutella-${GIFTGNUTELLAVER}.tar.bz2 || exit 1 wget http://osdn.dl.sourceforge.net/sourceforge/gift/gift-openft-${GIFTOPENFTVER}.tar.bz2 wget http://download.berlios.de/gift-fasttrack/giFT-FastTrack-${GIFTFTVER}.tar.gz || exit 1 tar -jxf gift-gnutella-${GIFTGNUTELLAVER}.tar.bz2 || exit 1 rm -f gift-gnutella-${GIFTGNUTELLAVER}.tar.bz2 ( cd gift-gnutella-*/ || exit 1 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" && \ make || exit 1 ) || exit 1 tar -jxf gift-openft-${GIFTOPENFTVER}.tar.bz2 rm -f gift-openft-${GIFTOPENFTVER}.tar.bz2 ( cd gift-openft-*/ || exit 1 sed 's@plugindir=${prefix}/lib/giFT@plugindir=`pkg-config libgift --variable=libdir`/giFT@' configure > configure.new cat configure.new > configure rm -f configure.new ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" && \ make || exit 1 ) tar -zxf giFT-FastTrack-${GIFTFTVER}.tar.gz rm -f giFT-FastTrack-${GIFTFTVER}.tar.gz ( cd giFT-FastTrack-*/ || exit 1 sed 's@plugindir=${prefix}/lib/giFT@plugindir=`pkg-config libgift --variable=libdir`/giFT@' configure > configure.new cat configure.new > configure rm -f configure.new ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-debug --libdir="$libdir" && \ make || exit 1 ) || exit 1 cd .. make install || exit 1 ( cd TMPDIR/gift-openft-*/ && make install ) ( cd TMPDIR/gift-gnutella-*/ && make install ) || exit 1 ( cd TMPDIR/giFT-FastTrack-*/ && make install ) || exit 1 if [ "$libdir" != "/usr/lib" ]; then rm -rf /usr/lib/giFT ln -s ../lib64/giFT /usr/lib/giFT fi exit 0 |