forked from iShift/twister-webkit
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
#!/bin/bash -x | ||
echo "Twister - p2p microbloging system - daemon installer" | ||
|
||
echo "Installing dependencies" | ||
sudo apt-get install autoconf build-essential git libboost-all-dev libdb++-dev libminiupnpc-dev libssl-dev libtool | ||
|
||
echo "Cloning twister-core repository" | ||
git clone https://github.com/miguelfreitas/twister-core.git | ||
cd twister-core | ||
|
||
echo "Configuring twister-daemon" | ||
./autotool.sh | ||
./configure | ||
./configure --enable-logging | ||
|
||
echo "Building twister daemon" | ||
make | ||
|
||
echo "Copying twisterd to /usr/local/bin" | ||
sudo cp -i twisterd /usr/local/bin | ||
|
||
echo "OK, twisterd has been built successfully" | ||
echo "-------------" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
echo "Twister - p2p microbloging system - daemon installer" | ||
|
||
which -s brew | ||
if [[ $? != 0 ]] ; then | ||
# Install Homebrew | ||
# https://github.com/mxcl/homebrew/wiki/installation | ||
echo "Instaling brew" | ||
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | ||
else | ||
echo "Updating brew" | ||
brew update | ||
fi | ||
|
||
echo "Installing dependencies" | ||
which -s git || brew install git | ||
which -s boost || brew install boost | ||
which -s miniupnpc || brew install miniupnpc | ||
which -s openssl || brew install openssl | ||
which -s berkeley-db4 || brew install berkeley-db4 | ||
which -s autoconf || brew install autoconf | ||
which -s automake || brew install automake | ||
which -s libtool || brew install libtool | ||
|
||
echo "Cloning twister-core repository" | ||
git clone https://github.com/miguelfreitas/twister-core.git | ||
cd twister-core | ||
|
||
echo "Configuring twister-daemon" | ||
./autotool.sh | ||
./configure --enable-logging --with-openssl=/usr/local/opt/openssl --with-libdb=/usr/local/opt/berkeley-db4 | ||
|
||
echo "Building twister daemon" | ||
CPUCORES=$(sysctl hw.ncpu | awk '{print $2}') | ||
echo "You have $CPUCORES cores in your CPU" | ||
make -j $CPUCORES | ||
|
||
echo "Copying twisterd to /usr/local/bin" | ||
sudo cp -i twisterd /usr/local/bin | ||
|
||
echo "OK, twisterd has been built successfully" | ||
echo "-------------" |