.
[corvix.git] / var / deb-package / meta / corvix-cluster / nodes / install-40queue
blobd3ed64b07d371138f325bd09cfcdace155c5b4d1
1 #!/bin/zsh
2 ver_maui=3.2.6p19
3 ver_torque=2.1.6
5 _prepare() {
6 [[ -d /usr/src/cluster ]] || mkdir -p /usr/src/cluster
7 cd /usr/src/cluster
9 [[ -e /usr/src/cluster/torque-$ver_torque.tar.gz ]] || wget http://head/corvix/torque-$ver_torque.tar.gz
10 [[ -e /usr/src/cluster/maui-$ver_maui.tar.gz ]] || wget http://head/corvix/maui-$ver_maui.tar.gz
12 tar xzf torque-$ver_torque.tar.gz
13 tar xzf maui-$ver_maui.tar.gz
16 _compile_torque() {
17 cd /usr/src/cluster/torque-$ver_torque
18 ./configure --enable-monitor --enable-clients --enable-syslog
19 make -j 4
20 make install
22 _compile_maui() {
23 cd /usr/src/cluster/maui-$ver_maui
24 export MAUIADMIN=root
25 ./configure --with-spooldir=/var/spool/torque --with-pbs=/usr/local --with-key=666
26 make -j 4
27 make install
30 _postinstall() {
31 chmod aog+rwx /var/spool/torque/spool
34 _prepare
35 _compile_torque
36 _compile_maui #FIXME: check if key=666 really solves the problem, or if we have to copy the stuff to /opt/cluster
37 # maui provides secrit keys...
38 _postinstall