From ac72e9a00cc4aab67962020d3952903b40914f87 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Sat, 9 Apr 2011 15:54:22 +0200 Subject: added arch build/fixed install script,added no_omo i also added a README file which contains some useful informations about the scripts --- retiolum/hosts/README | 13 +++++++++++++ retiolum/hosts/build_arch.sh | 14 ++++++++++++++ retiolum/hosts/hosts.tar | Bin 20480 -> 20480 bytes retiolum/hosts/install.sh | 5 +++-- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 retiolum/hosts/README create mode 100755 retiolum/hosts/build_arch.sh diff --git a/retiolum/hosts/README b/retiolum/hosts/README new file mode 100644 index 00000000..e6ae9454 --- /dev/null +++ b/retiolum/hosts/README @@ -0,0 +1,13 @@ +This directory contains the build and install scripts for shack-retiolum + +1. build_arch + arch linux build script +2. build_debian + debian build script +3. build_ec2 + Amazon ec2 base instance build script +4. install.sh + configures the tinc daemon + $1 is the nickname + $2 is the ip-address +hosts.tar contains the currently available hosts diff --git a/retiolum/hosts/build_arch.sh b/retiolum/hosts/build_arch.sh new file mode 100755 index 00000000..5ef5d765 --- /dev/null +++ b/retiolum/hosts/build_arch.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e +sudo pacman -S openssl gcc lzo +curl http://www.tinc-vpn.org/packages/tinc-1.0.13.tar.gz | tar xz +cd tinc-1.0.13 +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +sudo make install +cd .. + +echo "overwriting python to python2" +sed 's/\/usr\/bin\/python/\/usr\/bin\/python2/g' install.sh >install2.sh +mv install2.sh install.sh + diff --git a/retiolum/hosts/hosts.tar b/retiolum/hosts/hosts.tar index 20966c1a..8fea5d47 100644 Binary files a/retiolum/hosts/hosts.tar and b/retiolum/hosts/hosts.tar differ diff --git a/retiolum/hosts/install.sh b/retiolum/hosts/install.sh index ebff669d..c74df03a 100755 --- a/retiolum/hosts/install.sh +++ b/retiolum/hosts/install.sh @@ -3,11 +3,12 @@ set -e myname="${1:-dummy}" -hostsfile=`dirname $0`/hosts.tar +rel_hostsfile=`dirname $0`/hosts.tar +hostsfile=`readlink -f $rel_hostsfile` netname=retiolum myipv4="${2:-10.7.7.56}" mynet4=10.7.7.0 - +CURR=`pwd` # create configuration directory for $netname mkdir -p /etc/tinc/$netname cd /etc/tinc/$netname -- cgit v1.2.3