afdfd70124
- Replace the non-standard knobs DRMAA and QMON with JAVA and X11 respectivly so system wide setting have the desired effect. - Fix installation in the !X11 case. - Add a comment the dependency on wget indicating why we need to use it (the download site requires cookies). [1] Requested by: des [1]
120 lines
4 KiB
Text
120 lines
4 KiB
Text
|
|
$FreeBSD$
|
|
|
|
--- scripts/distinst.orig
|
|
+++ scripts/distinst
|
|
@@ -35,7 +35,7 @@
|
|
|
|
umask 022
|
|
|
|
-TOPFILES="3rd_party bin catman ckpt doc examples include inst_sge \
|
|
+TOPFILES="3rd_party bin ckpt doc examples include inst_sge \
|
|
install_execd install_qmaster lib man mpi pvm qmon util utilbin"
|
|
|
|
HASARCHDIR="bin lib examples/jobsbin utilbin"
|
|
@@ -64,8 +64,7 @@
|
|
libsgeobj libsgeobjd \
|
|
libevc libevm libmir"
|
|
|
|
-QMON_SHARED_LIBRARIES="libXbae libXicon libXmt libXspin libXtab"
|
|
-QMON_NEED_SHARED_LIBRARIES="libXltree"
|
|
+QMON_SHARED_LIBRARIES="libXbae libXicon libXmt libXspin libXtab libXltree"
|
|
OPENSSL_SHARED_LIBRARIES="libcrypto libssl"
|
|
|
|
BERKELEYDB_SHARED_LIBRARIES="libdb-4.2"
|
|
@@ -735,17 +734,6 @@
|
|
echo " Installing:" $PROG
|
|
echo " Architectures:" $ARCH
|
|
echo "Base directory:" $DEST_SGE_ROOT
|
|
-printf " OK [Y/N][Y]: "
|
|
-
|
|
-read ans
|
|
-if [ "$ans" = y -o "$ans" = Y -o "$ans" = "" ]; then
|
|
- :
|
|
-else
|
|
- echo
|
|
- echo Ciao
|
|
- echo
|
|
- exit 1
|
|
-fi
|
|
|
|
echo
|
|
|
|
@@ -807,6 +795,9 @@
|
|
instmpi=true
|
|
instcommon=true
|
|
;;
|
|
+ noqmon)
|
|
+ instqmon=false
|
|
+ ;;
|
|
qmontree)
|
|
instqmon=true
|
|
instcommon=true
|
|
@@ -1010,19 +1001,6 @@
|
|
Execute chmod 755 $DEST_SGE_ROOT/$MYRINETBASE/$f
|
|
done
|
|
|
|
- HPCBASE=mpi/SunHPCT5
|
|
- Execute mkdir -p $DEST_SGE_ROOT/$HPCBASE
|
|
-
|
|
- for f in $SUNHPCTIGHT_FILES; do
|
|
- Execute cp dist/$HPCBASE/$f $DEST_SGE_ROOT/$HPCBASE
|
|
- Execute chmod 644 $DEST_SGE_ROOT/$HPCBASE/$f
|
|
- done
|
|
-
|
|
- for f in $SUNHPCTIGHT_SCRIPTS; do
|
|
- Execute cp dist/$HPCBASE/$f $DEST_SGE_ROOT/$HPCBASE
|
|
- Execute chmod 755 $DEST_SGE_ROOT/$HPCBASE/$f
|
|
- done
|
|
-
|
|
Cleanup mpi
|
|
fi
|
|
|
|
@@ -1171,7 +1149,7 @@
|
|
|
|
for prog in $PROG; do
|
|
case $prog in
|
|
- jobs|ckpt|doc|inst_sge|utiltree|examples|man|mpi|pvm|qmontree|common|distcommon|utilbin|arco)
|
|
+ jobs|ckpt|doc|inst_sge|utiltree|examples|man|mpi|noqmon|pvm|qmontree|common|distcommon|utilbin|arco)
|
|
:
|
|
;;
|
|
qmake)
|
|
@@ -1280,6 +1258,8 @@
|
|
InstallProg $BERKELEYDBBASE/$DSTARCH/bin/$prog
|
|
elif [ -f $BERKELEYDBBASE/bin/$prog ]; then
|
|
InstallProg $BERKELEYDBBASE/bin/$prog
|
|
+ elif [ -f $BERKELEYDBBASE/bin/$prog${BDB_LIB_SUFFIX} ]; then
|
|
+ InstallProgAs $BERKELEYDBBASE/bin/$prog${BDB_LIB_SUFFIX} $prog
|
|
fi
|
|
fi
|
|
elif [ $prog = spoolinit -o $prog = spooldefaults ]; then
|
|
@@ -1394,13 +1374,15 @@
|
|
libname="$OPENSSLBASE/$DSTARCH/lib/$lib.$shlibext"
|
|
elif [ $DSTARCH = darwin -o $DSTARCH = darwin-x86 ]; then
|
|
libname="$OPENSSLBASE/$DSTARCH/lib/libssl.bundle"
|
|
+ elif [ ${DSTARCH%%-*} = fbsd ]; then
|
|
+ libname="$OPENSSLBASE/lib/$lib.$shlibext"
|
|
else
|
|
libname="$OPENSSLBASE/$DSTARCH/lib/$lib.$shlibext.0.9.7"
|
|
fi
|
|
|
|
if [ -f $libname ]; then
|
|
InstallProg $libname
|
|
- if [ $DSTARCH = tru64 -o $DSTARCH = darwin -o $DSTARCH = darwin-x86 ]; then
|
|
+ if [ $DSTARCH = tru64 -o $DSTARCH = darwin -o $DSTARCH = darwin-x86 -o ${DSTARCH%%-*} = fbsd ]; then
|
|
:
|
|
else
|
|
(cd $DEST_SGE_ROOT/${UTILPREFIX}/$DSTARCH; ln -s $lib.${shlibext}.0.9.7 $lib.$shlibext)
|
|
@@ -1415,7 +1397,11 @@
|
|
if [ $DSTARCH != win32-x86 ]; then
|
|
if [ $instbdb = true ]; then
|
|
for lib in $BERKELEYDB_SHARED_LIBRARIES; do
|
|
- libname="$BERKELEYDBBASE/$DSTARCH/lib/$lib.$shlibext"
|
|
+ if [ ${DSTARCH%%-*} = fbsd ]; then
|
|
+ libname="$BERKELEYDBBASE/lib/$lib.$shlibext"
|
|
+ else
|
|
+ libname="$BERKELEYDBBASE/$DSTARCH/lib/$lib.$shlibext"
|
|
+ fi
|
|
if [ -f $libname ]; then
|
|
InstallProg $libname
|
|
else
|