2 # Install strongSwan from mounted strongswan-shared tree
4 # Copyright (C) 2006 Martin Willi
5 # Hochschule fuer Technik Rapperswil
6 # Copyright (C) 2004 Eric Marchionni, Patrik Rayo
7 # Zuercher Hochschule Winterthur
9 # This program is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the
11 # Free Software Foundation; either version 2 of the License, or (at your
12 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 . $PWD/scripts/function.sh
22 cecho "installing strongSwan from shared tree"
25 for host in $STRONGSWANHOSTS
27 eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
29 ssh $HOSTLOGIN 'cd ~/strongswan-shared && make install' > /dev/null