#!/bin/sh
echo "This script compiles and installs GNUNet into $HOME (mostly bin/)."
echo "It also downloads a list of GNUNet hosts to establish an initial"
echo "contact with the network. A default configuration file is created"
echo "in $HOME/.gnunet"
echo " "
echo "Please press CTRL-C now to abort or RETURN to continue."
read
mkdir -p $HOME/.gnunet/data/hosts
cp contrib/gnunet.conf $HOME/.gnunet/
aclocal
autoconf
autoheader
automake -a
./configure --prefix=$HOME
cd $HOME/.gnunet/data/hosts
wget http://gecko.cs.purdue.edu/gnunet/hosts.tar.gz
tar xvfz hosts.tar.gz
rm -f hosts.tar.gz
chmod 644 $HOME/.gnunet/data/hosts/*
echo " "
echo "Please type make && make install to build and install the GNUnet"
echo "software. When this finishes, if there were no errors you will be"
echo "able to start the GNUnet server with"
echo " "
echo "# nohup $HOME/bin/gnunetd &"
echo " "
echo "and the GNUnet text-user interfaces with "
echo " "
echo "# $HOME/bin/gnunet-search"
echo "# $HOME/bin/gnunet-download"
echo "# $HOME/bin/gnunet-insert"
echo " "
echo "Visit http://gecko.cs.purdue.edu/gnunet/ for further information."
