.
[corvix.git] / opt / cluster / lib / install / gnucluster / head / install-40queue
blob4ab280bac7038a1cdfb44a1c7905eead2c829251
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 wget http://www.clusterresources.com/downloads/torque/torque-$ver_torque.tar.gz
10 wget http://www.clusterresources.com/downloads/maui/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-server --enable-monitor --enable-clients --enable-syslog
19 make -j 2
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
26 make -j 2
27 make install
30 _make_mirror() {
31 cp /usr/src/cluster/torque-$ver_torque.tar.gz /opt/cluster/lib/www/corvix/
32 cp /usr/src/cluster/maui-$ver_maui.tar.gz /opt/cluster/lib/www/corvix/
35 _postinstall() {
36 chmod aog+rwx /var/spool/torque/spool
39 _prepare
40 _compile_torque
41 _compile_maui
42 _postinstall
43 _make_mirror