Index: /trunk/deploy.sh.in
===================================================================
--- /trunk/deploy.sh.in	(revision 307)
+++ /trunk/deploy.sh.in	(revision 308)
@@ -168,4 +168,9 @@
 yule_data="@mydataroot@"
 
+# The temporary directory to use. Default is '/tmp', but some
+# sites may mount this 'noexec'.
+#
+temp_dir="/tmp"
+
 #__END_CUT__
 
@@ -219,4 +224,5 @@
 export yule_conf
 export yule_data
+export temp_dir
 
 # dialog
@@ -642,4 +648,11 @@
     ;;
 
+  --tmpdir | -tmpdir)
+    opt_prev=temp_dir
+    ;;
+  --tmpdir=* | -tmpdir=*)
+    temp_dir="$optarg"; export temp_dir
+    ;;
+
   -o | --logfile | -logfile)
     opt_prev=logfile
Index: /trunk/dsys/comBUILD
===================================================================
--- /trunk/dsys/comBUILD	(revision 307)
+++ /trunk/dsys/comBUILD	(revision 308)
@@ -70,5 +70,5 @@
     fi
 
-    tmpdir=`eval echo "/tmp/sh_${src_version}_${arch}_${format}_$$"`
+    tmpdir=`eval echo "${temp_dir}/sh_${src_version}_${arch}_${format}_$$"`
 
     #---------------------------------------------------------------------
Index: /trunk/dsys/comINSTALL
===================================================================
--- /trunk/dsys/comINSTALL	(revision 307)
+++ /trunk/dsys/comINSTALL	(revision 308)
@@ -169,5 +169,5 @@
     #---------------------------------------------------------------------
 
-    tmpdir=`eval echo "/tmp/sh_${src_version}_${arch}_${format}_$$"`
+    tmpdir=`eval echo "${temp_dir}/sh_${src_version}_${arch}_${format}_$$"`
 
     if test x"$simulate" = x0
Index: /trunk/dsys/comUNINSTALL
===================================================================
--- /trunk/dsys/comUNINSTALL	(revision 307)
+++ /trunk/dsys/comUNINSTALL	(revision 308)
@@ -79,5 +79,5 @@
     #---------------------------------------------------------------------
 
-    tmpdir=`eval echo "/tmp/sh_${src_version}_${arch}_${format}_$$"`
+    tmpdir=`eval echo "${temp_dir}/sh_${src_version}_${arch}_${format}_$$"`
 
     if test x"$simulate" = x0
