mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 12:27:50 -04:00
90 lines
4.0 KiB
Plaintext
90 lines
4.0 KiB
Plaintext
$NetBSD: patch-bd,v 1.6 2014/01/14 10:21:39 markd Exp $
|
|
|
|
Exclude Java files.
|
|
DESTDIR support.
|
|
|
|
--- source/scripts/distinst.orig 2013-10-28 16:22:54.000000000 +0000
|
|
+++ source/scripts/distinst
|
|
@@ -85,13 +85,13 @@ 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/jdrmaa/drmaa"
|
|
+#DRMAAJ_FILES="CLASSES/jdrmaa/drmaa"
|
|
|
|
JNI_SHARED_LIBRARIES="libdrmaa libjuti libjgdi"
|
|
|
|
-JUTIJ_FILES="CLASSES/juti/juti"
|
|
-JGDIJ_FILES="libs/jgdi/build/jgdi"
|
|
-JJSV_FILES="CLASSES/jjsv/JSV"
|
|
+#JUTIJ_FILES="CLASSES/juti/juti"
|
|
+#JGDIJ_FILES="libs/jgdi/build/jgdi"
|
|
+#JJSV_FILES="CLASSES/jjsv/JSV"
|
|
JAVA_LIBRARIES="${DRMAAJ_FILES} ${JUTIJ_FILES} ${JGDIJ_FILES} ${JJSV_FILES}"
|
|
|
|
PVMSOURCES="start_pvm.c stop_pvm.c slave.c master.c spmd.c Makefile"
|
|
@@ -550,11 +550,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)
|
|
@@ -934,7 +934,6 @@ if [ $instcommon = true ]; then
|
|
$DEST_SGE_ROOT/util/sgeCA/*.cnf \
|
|
$DEST_SGE_ROOT/util/sgeSMF/*.xml \
|
|
$DEST_SGE_ROOT/util/sgeSMF/sge_smf_support.sh \
|
|
- $DEST_SGE_ROOT/util/DetectJvmLibrary.jar \
|
|
$DEST_SGE_ROOT/util/resources/calendars/* \
|
|
$DEST_SGE_ROOT/util/resources/centry/* \
|
|
$DEST_SGE_ROOT/util/resources/pe/* \
|
|
@@ -942,6 +941,10 @@ if [ $instcommon = true ]; then
|
|
$DEST_SGE_ROOT/util/resources/usersets/* \
|
|
$DEST_SGE_ROOT/util/resources/jsv/jsv_include*
|
|
fi
|
|
+
|
|
+ if test -f $DEST_SGE_ROOT/util/DetectJvmLibrary.jar; then
|
|
+ Execute chmod 644 $DEST_SGE_ROOT/util/DetectJvmLibrary.jar;
|
|
+ fi
|
|
|
|
if [ $instexamples = true ]; then
|
|
echo Installing \"examples\"
|
|
@@ -954,8 +957,7 @@ if [ $instcommon = true ]; then
|
|
Execute cp libs/japi/example.c $DEST_SGE_ROOT/examples/drmaa
|
|
Execute cp libs/japi/howto/*.c $DEST_SGE_ROOT/examples/drmaa
|
|
MakeDir examples/drmaa/ruby
|
|
- Execute mv $DEST_SGE_ROOT/util/resources/drmaa4ruby/samples/* $DEST_SGE_ROOT/examples/drmaa/ruby
|
|
- Execute rmdir $DEST_SGE_ROOT/util/resources/drmaa4ruby/samples
|
|
+ Execute cp -r dist/util/resources/drmaa4ruby/samples/* $DEST_SGE_ROOT/examples/drmaa/ruby
|
|
Execute chmod 755 $DEST_SGE_ROOT/examples/drmaa/ruby/*.rb \
|
|
$DEST_SGE_ROOT/examples/drmaa/ruby/flow/*.rb
|
|
Cleanup examples
|
|
@@ -1123,9 +1125,6 @@ if [ $instcommon = true ]; then
|
|
|
|
if [ -f CLASSES/herd/herd.jar ]; then
|
|
Execute cp CLASSES/herd/herd.jar $DEST_SGE_ROOT/lib/herd.jar
|
|
- elif [ $exit_on_error = true ]; then
|
|
- echo "\"CLASSES/herd/herd.jar\" not found. Installation failed."
|
|
- exit 1
|
|
fi
|
|
fi
|
|
|
|
@@ -1318,7 +1317,9 @@ if [ $instguiinst = true ]; then
|
|
echo "Installing \"start_gui_installer\" and \"/util/gui-installer\""
|
|
Execute mkdir -p $DEST_SGE_ROOT/util/gui-installer/html/en/help
|
|
Execute mkdir -p $DEST_SGE_ROOT/util/gui-installer/templates
|
|
+ if [ -f "$GUI_DIR/dist/installer.jar" ]; then
|
|
Execute cp $GUI_DIR/dist/installer.jar $DEST_SGE_ROOT/util/gui-installer
|
|
+ fi
|
|
Execute cp $GUI_DIR/templates/start_gui_installer.sh $DEST_SGE_ROOT/start_gui_installer
|
|
Execute cp -r $GUI_DIR/html $DEST_SGE_ROOT/util/gui-installer
|
|
Execute cp $GUI_DIR/templates/install_component $GUI_DIR/templates/gui_inst_template.conf $GUI_DIR/templates/readme_template.html $GUI_DIR/templates/check_host $DEST_SGE_ROOT/util/gui-installer/templates
|