changeset 870:c99df9f8f1d1 draft

./contrib/peer2anonet/peer2anonet --install-nacl
author d3v11 <d3v11@d3v11.ano>
date Thu, 12 Jan 2012 06:35:03 +0000
parents 326111ff75e2
children 2d5ebcdf3303 250365c060b6
files contrib/peer2anonet/peer2anonet
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/peer2anonet/peer2anonet	Thu Jan 12 06:08:50 2012 +0000
+++ b/contrib/peer2anonet/peer2anonet	Thu Jan 12 06:35:03 2012 +0000
@@ -21,6 +21,7 @@
     echo -e '\n    ./contrib/peer2anonet/peer2anonet --install-daemontools   installs daemontools'
     echo -e '\n    ./contrib/peer2anonet/peer2anonet --install-ucspi-tcp     installs ucspi-tcp'
     echo -e '\n    ./contrib/peer2anonet/peer2anonet --install-djbdns        installs djbdns'
+    echo -e '\n    ./contrib/peer2anonet/peer2anonet --install-nacl          installs nacl'
     echo -e '\n    ./contrib/peer2anonet/peer2anonet --configure-dns         configures dnscache and tinydns zones'
     echo -e '\n    ./contrib/peer2anonet/peer2anonet --update-dns            updates tinydns-ano zone\n'
     exit 0
@@ -531,6 +532,13 @@
     )
     }
 
+INSTALL_NACL(){
+    wget http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2
+    bunzip2 < nacl-20110221.tar.bz2 | tar -xf -
+    cd nacl-20110221
+    ./do
+    }
+
 
 if [ "$1" == '--configure' ]; then
     CONFIGURE
@@ -548,6 +556,8 @@
     INSTALL_UCSPI_TCP
 elif [ "$1" == '--install-djbdns' ]; then
     INSTALL_DJBDNS
+elif [ "$1" == '--install-nacl' ]; then
+    INSTALL_NACL
 elif [ "$1" == '--configure-dns' ]; then
     CONFIGURE_DNS
 elif [ "$1" == '--update-dns' ]; then