summaryrefslogtreecommitdiff
path: root/parallel/sge/patches/patch-bd
blob: 1b36344d674962874dc656126166e5330f446d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-bd,v 1.4 2009/05/13 21:00:25 markd Exp $

Exclude Java files.
DESTDIR support.

--- source/scripts/distinst.orig	2009-01-31 05:04:08.000000000 +1300
+++ source/scripts/distinst
@@ -75,12 +75,12 @@ DRMAA_SHARED_LIBRARIES="libdrmaa"
 # The last number listed here will be the verson linked from libdrmaa.so
 DRMAA_SHARED_LIB_VERSIONS="1.0"
 DRMAA_HEADER_FILES="libs/japi/drmaa.h"
-DRMAAJ_FILES="CLASSES/drmaa"
+#DRMAAJ_FILES="CLASSES/drmaa"
 
 JNI_SHARED_LIBRARIES="libdrmaa libjuti libjgdi"
 
-JUTIJ_FILES="CLASSES/juti/juti"
-JGDIJ_FILES="libs/jgdi/build/jgdi"
+#JUTIJ_FILES="CLASSES/juti/juti"
+#JGDIJ_FILES="libs/jgdi/build/jgdi"
 
 PVMSOURCES="start_pvm.c stop_pvm.c slave.c master.c spmd.c Makefile"
 PVMSRCSCRIPTS="install.sh aimk"
@@ -420,7 +420,7 @@ instclassictargets=false
 instopenssl=true
 instbdb=true
 instarco=false
-instguiinst=true
+instguiinst=false
 enforce_shlibpath=false
 
 cmdname=`basename $0`
@@ -518,11 +518,11 @@ while [ $# -ge 1 ]; do
          echo Please set variable SGE_ROOT. Installation failed.
          exit 1
       fi
-      if [ ! -d $SGE_ROOT ]; then
-         echo Please create directory \"$SGE_ROOT\" first. Installation failed.
+      if [ ! -d "$DESTDIR$SGE_ROOT" ]; then
+         echo Please create directory \"$DESTDIR$SGE_ROOT\" first. Installation failed.
          exit 1
       fi
-      DEST_SGE_ROOT=$SGE_ROOT
+      DEST_SGE_ROOT=$DESTDIR$SGE_ROOT
       localinst=true
       ;;
    -mansrc)