--- gridengine-6.2u5.orig/Changelog
+++ gridengine-6.2u5/Changelog
@@ -8,6 +8,14 @@
           1         2         3         4         5         6         7
 01234567890123456789012345678901234567890123456789012345678901234567890123456789
 
+ZG-2009-12-17-0: Enhancem.:   Update html man pages
+
+LP-2009-12-16-0: Bugfix:      keystore password should be asked for twice to
+                              avoid typos
+                 Bugster:     6831553
+                 Issue:       3002
+                 Review:      MD
+
 MD-2009-12-11-0: CVS:		Created V62u5_TAG
 -------------------------------------------------------
 
--- gridengine-6.2u5.orig/debian/NEWS
+++ gridengine-6.2u5/debian/NEWS
@@ -0,0 +1,7 @@
+gridengine (6.2u5-3) unstable; urgency=low
+
+  * As of libdb5.1, RPC is no longer supported.  This means that RPC support
+    for the spooling database has had to be removed from gridengine.  See
+    patch 002-bdbnorpc.diff in the source package for details.
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 03 Jul 2011 20:34:09 +0000
--- gridengine-6.2u5.orig/debian/README.Debian
+++ gridengine-6.2u5/debian/README.Debian
@@ -0,0 +1,42 @@
+Once you've installed SGE, you'll need to do at least some minimal
+cluster configuration.
+
+Quickstart
+==========
+
+ * Install gridengine-master, gridengine-exec and gridengine-client
+   on the appropriate hosts.
+
+ * Initially, only the sgeadmin user has admin privileges
+
+ * It is suggested that you add yourself as a manager and
+   perform the rest of these tasks as your own user:
+   + sudo -u sgeadmin qconf -am myuser
+
+ * and to a userlist:
+   + qconf -au myuser users
+
+ * Add a submission host:
+   + qconf -as myhost.mydomain
+
+ * Add an execution host:
+   + qconf -ae
+   You will now be prompted for information about the execution host.
+
+ * Add a new host group:
+   + qconf -ahgrp @allhosts
+
+ * Add the exec host to the @allhosts list:
+   + qconf -aattr hostgroup hostlist myhost.mydomain @allhosts
+
+ * Add a queue:
+   + qconf -aq main.q
+
+ * Add the host group to the queue:
+   + qconf -aattr queue hostlist @allhosts main.q
+
+ * Make sure there is a slot allocated to the execd:
+   + qconf -aattr queue slots "[myhost.mydomain=1]" main.q
+
+ * Running qstat -f should then show you the execd waiting for jobs
+
--- gridengine-6.2u5.orig/debian/TODO
+++ gridengine-6.2u5/debian/TODO
@@ -0,0 +1,16 @@
+ * make sure things actually work
+ * decide on spooling, configuration and logging directories
+   + move /var/spool/gridengine/messages to /var/log/gridengine/qmaster.log?
+   + move /var/spool/gridengine/execd/<hostname> to /var/spool/gridengine/<hostname>?
+   + move /var/spool/gridengine/execd/<hostname>/messages to /var/log/gridengine/execd.log?
+ * decide on useful default configuration
+ * install gridengine.mo locale at the right place and teach binaries to find it
+ * what do we want to do with the following:
+   + qmake
+   + qtcsh
+   + java classes
+   + sgepasswd
+ * lintian says:
+   W: gridengine-exec: binary-without-manpage usr/sbin/sge_coshepherd
+ * build shared libraries (aimk -shared-libs) -- currently broken upstream
+
--- gridengine-6.2u5.orig/debian/bootstrap
+++ gridengine-6.2u5/debian/bootstrap
@@ -0,0 +1,14 @@
+Version: 6.2
+admin_user              sgeadmin
+default_domain          none
+ignore_fqdn             false
+spooling_method         berkeleydb
+spooling_lib            libspoolb
+spooling_params         /var/spool/gridengine/spooldb
+binary_path             /usr/sbin
+qmaster_spool_dir       /var/spool/gridengine/qmaster
+security_mode           none
+listener_threads        2
+worker_threads          2
+scheduler_threads       1
+
--- gridengine-6.2u5.orig/debian/changelog
+++ gridengine-6.2u5/debian/changelog
@@ -0,0 +1,226 @@
+gridengine (6.2u5-7.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Migrate motif build dependency from lesstif2-dev to libmotif-dev
+    (Closes: #714661)
+  * Add explicite build dependency on libxft-dev (Closes: #707937)
+  * Remove libxp-dev as requirement (Closes: #623642)
+  * Specify freetype2 include directory
+  * Fix FTBFS on newer eglibc and/or GCC (Closes: #701446)
+
+ -- Paul Gevers <elbrus@debian.org>  Mon, 02 Dec 2013 21:03:10 +0100
+
+gridengine (6.2u5-7.1) unstable; urgency=high
+
+  * Non-maintainer upload by the Security Team.
+  * Fix code injection and buffer overflow (CVE-2012-0523).
+
+ -- Luk Claes <luk@debian.org>  Sat, 23 Jun 2012 09:24:47 +0200
+
+gridengine (6.2u5-7) unstable; urgency=low
+
+  * gridengine-common: Add Replaces gridengine-client << 6.2u5-2 to avoid
+    issues with qlogin-wrapper.  Closes: #657413.
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 13 May 2012 17:21:27 +0100
+
+gridengine (6.2u5-6) unstable; urgency=high
+
+  * Fix remote root exploit due to trusted user environment (CVE-2012-0208)
+    (same patch as 6.2u5-1squeeze1)
+
+ -- Mark Hymers <mhy@debian.org>  Tue, 07 Feb 2012 09:55:05 +0000
+
+gridengine (6.2u5-5.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * remove alternatives after purge. Closes: #671338
+  * use (<< 6.2u5-5) for Brakes & Replaces fields Closes: #671298
+
+ -- Dominique Belhachemi <domibel@debian.org>  Thu, 10 May 2012 22:48:44 -0400
+
+gridengine (6.2u5-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix pending l10n issues. Debconf translations:
+    - Dutch; (Jeroen Schot).  Closes: #659257
+    - Polish (Michał Kułach).  Closes: #670364
+    - Italian (Beatrice Torracca).  Closes: #670895
+
+ -- Christian Perrier <bubulle@debian.org>  Thu, 03 May 2012 08:05:31 +0200
+
+gridengine (6.2u5-5) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * update patch 110-kernel.diff to fix FTBFS with kernel >3 (Closes: #669284)
+  * use Debian's alternative system for libdrmaa.so (Closes: #645193)
+  * replace package libdrmaa1.0 with gridengine-drmaa1.0
+  * replace package libdrmaa-dev with gridengine-drmaa-dev
+
+ -- Dominique Belhachemi <domibel@debian.org>  Sun, 22 Apr 2012 19:38:39 -0400
+
+gridengine (6.2u5-4) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/control: changed java dependency to default-jdk
+  * set JAVA_HOME=/usr/lib/jvm/default-java (Closes: #640316)
+  * added Conflicts with pbs-drmaa
+  * added patch 100-as-needed.diff (Closes: #638886)
+  * added patch (hack) 110-kernel.diff to build with 3.0 and 3.1 kernel
+
+ -- Dominique Belhachemi <domibel@debian.org>  Tue, 10 Jan 2012 16:15:52 -0500
+
+gridengine (6.2u5-3) unstable; urgency=low
+
+  * Build against libdb5.1.  This involves (hackishly) removing support
+    for RPC connections to the spooling database as it's no longer supported
+    by BDB.  Noted in NEWS.Debian.gz.  Closes: #621419.
+  * Fix to build against libssl1.0.0.  Many thanks to Kurt Roeckx for
+    providing the fix.  Closes: #622849.
+  * Don't use -Werror; it's just a recipe for a world of future pain.
+    Closes: #625344.
+  * Fix up spool commands with wrappers to find the spooling libraries in
+    /usr/lib/gridengine.
+  * Only ucf --purge in postrm/purge if it's installed.  Closes: #620238.
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 03 Jul 2011 20:37:07 +0000
+
+gridengine (6.2u5-2) unstable; urgency=low
+
+  * Install qlogin-wrapper to the correct package. Closes: #608595.
+  * Fix pidfile handling.  Closes: #560735.
+  * Make sure we use libdb4.8.
+  * Fix FTBFS.  Closes: #589952, #564997.
+  * Add Danish translation of Debconf templates.  Thanks to Joe Dalton.
+    Closes: #591227.
+  * Add Depends on xfonts-75dpi | xfonts-100dpi to gridengine-qmon.
+    Closes: #609914.
+  * Fix up memset calls.  Closes: #609076.
+  * Use dynamic spooling build so that people can choose between berkeley and
+    classic spooling methods.  Closes: #597895.
+
+ -- Mark Hymers <mhy@debian.org>  Fri, 18 Mar 2011 22:16:51 +0000
+
+gridengine (6.2u5-1) unstable; urgency=low
+
+  * New upstream release.  Closes: #570411.
+  * Add Spanish translation of Debconf templates.  Thanks to Francisco Javier
+    Cuadrado.  Closes: #581490. 
+  * Make the wrapper script do what it should do in terms of environment
+    variable handling.  Closes: #579382.
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 06 Jun 2010 17:35:47 +0100
+
+gridengine (6.2u4-2) unstable; urgency=low
+
+  * Build java library bindings.  Closes: #544295.
+  * Fix SPARC FTBFS due to COMPILE_DC not being set.
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 06 Dec 2009 18:27:28 +0000
+
+gridengine (6.2u4-1) unstable; urgency=low
+
+  * New upstream release.
+  * Bump to Standards version 3.8.3.  No changes needed.
+  * Change to using quilt for patching.
+    + Don't set RPATH
+    + Move manpage patches into quilt.
+    + Move qmon patches into quilt.
+    + Move pidfile patches into quilt.
+    + Move editor patch into quilt.
+    + Move build system fixes into quilt.
+  * Bump to debhelper compat 5.
+  * Fix up bad qconf -ae example in README.Debian.  Closes: #540041.
+  * Fix reference to gridengine-exec in README.Debian.  Closes: #540032.
+  * Ship PE examples.  Closes: #543643.
+  * Depends on mailx | bsd-mailx.  Closes: #514224.
+  * Rename internal getline function to sge_getline.  Closes: #552833.
+  * Patch from Mario Lang <mlang@tugraz.at> to use ssh for qlogin.
+    Closes: #521307.
+  * Patch from Michael Hanke <michael.hanke@gmail.com> to prevent the init
+    script from trying to run multiple execds due to a test failure.
+    Closes: #553407.
+  * Add Japanese Debconf translation from Hideki Yamane.  Closes: #553030.
+  * Fix typo in gridengine.default.  Thanks to Michael Hanke. Closes: #553190.
+  * Add HPPA support.  Closes: #506680.
+  * Add S390 support.  Closes: #488813.
+
+ -- Mark Hymers <mhy@debian.org>  Tue, 01 Dec 2009 20:15:59 +0000
+
+gridengine (6.2-4) unstable; urgency=medium
+
+  * Add missing qhold symlink.
+
+ -- Mark Hymers <mhy@debian.org>  Sat, 13 Dec 2008 13:02:12 +0000
+
+gridengine (6.2-3) unstable; urgency=low
+
+  * Fix the default configuration file to use full path names.
+    Closes: #501972, #497855.
+  * Make gridengine-exec Depend: on c-shell | tcsh.  Closes: #497839.
+  * Add symlink farm to /var/lib/gridengine to allow for programs
+    which rely on $SGE_ROOT/bin and $SGE_ROOT/utilbin.  Closes: #502000.
+  * Apply JG-2008-11-10-0 from upstream in order to fix a qmaster
+    deadlock.
+  * Move qrsh_starter to gridengine-exec instead of gridengine-master.
+    Closes: #501976.
+  * Remove linux32 from Build-Depends as it's now in util-linux.
+  * Ensure we don't fail in gridengine-common postinst when the sgeadmin user
+    already exists.
+
+ -- Mark Hymers <mhy@debian.org>  Thu, 27 Nov 2008 23:17:37 +0000
+
+gridengine (6.2-2) unstable; urgency=medium
+
+  * Use chmod instead of chown in postinst.
+  * Fix man-pages to have sge_* instead of ge_* in paths and variable
+    names.  Closes: #497103.
+
+ -- Mark Hymers <mhy@debian.org>  Sat, 30 Aug 2008 23:08:59 +0100
+
+gridengine (6.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Mark Hymers <mhy@debian.org>  Fri, 08 Aug 2008 18:30:44 +0100
+
+gridengine (6.2~beta2-3) unstable; urgency=low
+
+  * Update debconf templates.  Thanks to Christian Perrier.  Closes: #488216,
+    #488477.
+  * Add french translation from Christian.  Closes: #488215.
+  * Add Vcs-Browser and Vcs-Git fields to control.
+  * Add Czech translation from Miroslav Kure.  Closes: #488373.
+  * Add Swedish translation from Martin Bagge.  Closes: #488379.
+  * Add Galician translation from Jacobo Tarrio.  Closes: #488381.
+  * Add Portuguese translation from Américo Monteiro.  Closes: #488401.
+  * Add German translation from Tobias Toedter.  Closes: #488838.
+  * Add Finnish translation from Esko Arajärvi.  Closes: #489125.
+  * Add Vietnamese translation from Clytie Siddall.  Closes: #489395.
+  * Add Russian translation from Yuri Kozlov.  Closes: #489433.
+  * Start the execd after the master daemon.
+
+ -- Mark Hymers <mhy@debian.org>  Sat, 19 Jul 2008 16:50:06 +0100
+
+gridengine (6.2~beta2-2) unstable; urgency=low
+
+  * Make sure that when building for a 32-bit userland but on a machine with a
+    64-bit kernel, we get the internal SGE arch string right.
+  * Upload to unstable.
+
+ -- Mark Hymers <mhy@debian.org>  Wed, 25 Jun 2008 22:36:13 +0100
+
+gridengine (6.2~beta2-1) experimental; urgency=low
+
+  * New upstream release.
+  * Depend on bsd-mailx instead of mailx.
+  * Bump Standards-Version to 3.8.0 and add Homepage field.
+  * Make sure init_cluster script is executable.
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 15 Jun 2008 16:39:03 +0100
+
+gridengine (6.2~beta-1) experimental; urgency=low
+
+  * Initial Release. (Closes: #150124)
+
+ -- Mark Hymers <mhy@debian.org>  Sun, 18 May 2008 12:11:23 +0100
--- gridengine-6.2u5.orig/debian/compat
+++ gridengine-6.2u5/debian/compat
@@ -0,0 +1 @@
+5
--- gridengine-6.2u5.orig/debian/configuration
+++ gridengine-6.2u5/debian/configuration
@@ -0,0 +1,51 @@
+# Version: 6.2
+#
+# DO NOT MODIFY THIS FILE MANUALLY!
+#
+conf_version           0
+execd_spool_dir        /var/spool/gridengine/execd
+mailer                 /usr/bin/mail
+xterm                  /usr/bin/xterm
+load_sensor            none
+prolog                 none
+epilog                 none
+shell_start_mode       posix_compliant
+login_shells           bash,sh,ksh,csh,tcsh
+min_uid                0
+min_gid                0
+user_lists             none
+xuser_lists            none
+projects               none
+xprojects              none
+enforce_project        false
+enforce_user           auto
+load_report_time       00:00:40
+max_unheard            00:05:00
+reschedule_unknown     00:00:00
+loglevel               log_warning
+administrator_mail     root
+set_token_cmd          none
+pag_cmd                none
+token_extend_time      none
+shepherd_cmd           none
+qmaster_params         none
+execd_params           none
+reporting_params       accounting=true reporting=false flush_time=00:00:15 joblog=false sharelog=00:00:00
+finished_jobs          100
+gid_range              65400-65500
+max_aj_instances       2000
+max_aj_tasks           75000
+max_u_jobs             0
+max_jobs               0
+auto_user_oticket      0
+auto_user_fshare       0
+auto_user_default_project none
+auto_user_delete_time  86400
+delegated_file_staging false
+reprioritize           0
+rlogin_daemon          /usr/sbin/sshd -i
+rlogin_command         /usr/bin/ssh
+qlogin_daemon          /usr/sbin/sshd -i
+qlogin_command         /usr/share/gridengine/qlogin-wrapper
+rsh_daemon             /usr/sbin/sshd -i
+rsh_command            /usr/bin/ssh
--- gridengine-6.2u5.orig/debian/control
+++ gridengine-6.2u5/debian/control
@@ -0,0 +1,175 @@
+Source: gridengine
+Section: utils
+Priority: optional
+Maintainer: Debian Grid Engine Maintainers <pkg-gridengine-devel@lists.alioth.debian.org>
+Uploaders: Michael Banck <mbanck@debian.org>, Mark Hymers <mhy@debian.org>
+Build-Depends: debhelper (>= 4.0.0), csh, groff, libdb5.1-dev, libssl-dev,
+ libncurses5-dev, libpam0g-dev, libxt-dev, libmotif-dev, libxpm-dev, libxmu-dev,
+ po-debconf, quilt, default-jdk, ant, ant-optional, junit, javacc, libxft-dev
+Standards-Version: 3.8.3
+Homepage: http://gridengine.sunsource.net
+Vcs-Browser: http://git.debian.org/git/users/mhy/gridengine-debian.git
+Vcs-Git: git://git.debian.org/git/users/mhy/gridengine-debian.git
+
+Package: gridengine-common
+Architecture: all
+Depends: ${misc:Depends}, adduser, bsd-mailx | mailx, ucf
+Replaces: gridengine-client (<< 6.2u5-2)
+Description: Distributed resource management - common files
+ Grid Engine is software that facilitates "distributed resource
+ management" (DRM).  Far more than just simple load-balancing tools or
+ batch scheduling mechanisms, DRM software typically provides the
+ following key features across large sets of distributed resources:
+ .
+   * Policy based allocation of distributed resources (CPU time,
+     software licenses, etc.)
+   * Batch queuing & scheduling
+   * Support diverse server hardware, OS and architectures
+   * Load balancing & remote job execution
+   * Detailed job accounting statistics
+   * Fine-grained user specifiable resources
+   * Suspend/resume/migrate jobs
+   * Tools for reporting Job/Host/Cluster status
+   * Job Arrays
+   * Integration & control of parallel jobs
+ .
+ This package contains required shared files and the basic configuration.
+
+Package: gridengine-client
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common
+Recommends: openssh-client
+Suggests: gridengine-qmon
+Description: Utilities for Grid Engine queue management
+ Grid Engine is software that facilitates "distributed resource
+ management" (DRM).  Far more than just simple load-balancing tools or
+ batch scheduling mechanisms, DRM software typically provides the
+ following key features across large sets of distributed resources:
+ .
+   * Policy based allocation of distributed resources (CPU time,
+     software licenses, etc.)
+   * Batch queuing & scheduling
+   * Support diverse server hardware, OS and architectures
+   * Load balancing & remote job execution
+   * Detailed job accounting statistics
+   * Fine-grained user specifiable resources
+   * Suspend/resume/migrate jobs
+   * Tools for reporting Job/Host/Cluster status
+   * Job Arrays
+   * Integration & control of parallel jobs 
+ .
+ This package contains the Grid Engine user utilities.
+
+Package: gridengine-qmon
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common, xfonts-75dpi | xfonts-100dpi
+Description: Graphical utilities for Grid Engine queue management
+ Grid Engine is software that facilitates "distributed resource
+ management" (DRM).  Far more than just simple load-balancing tools or
+ batch scheduling mechanisms, DRM software typically provides the
+ following key features across large sets of distributed resources:
+ .
+   * Policy based allocation of distributed resources (CPU time,
+     software licenses, etc.)
+   * Batch queuing & scheduling
+   * Support diverse server hardware, OS and architectures
+   * Load balancing & remote job execution
+   * Detailed job accounting statistics
+   * Fine-grained user specifiable resources
+   * Suspend/resume/migrate jobs
+   * Tools for reporting Job/Host/Cluster status
+   * Job Arrays
+   * Integration & control of parallel jobs 
+ .
+ This package contains the graphical Grid Engine administration frontend.
+
+Package: gridengine-master
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common
+Description: Distributed resource management - Master Server
+ Grid Engine is software that facilitates "distributed resource
+ management" (DRM).  Far more than just simple load-balancing tools or
+ batch scheduling mechanisms, DRM software typically provides the
+ following key features across large sets of distributed resources:
+ .
+   * Policy based allocation of distributed resources (CPU time,
+     software licenses, etc.)
+   * Batch queuing & scheduling
+   * Support diverse server hardware, OS and architectures
+   * Load balancing & remote job execution
+   * Detailed job accounting statistics
+   * Fine-grained user specifiable resources
+   * Suspend/resume/migrate jobs
+   * Tools for reporting Job/Host/Cluster status
+   * Job Arrays
+   * Integration & control of parallel jobs 
+ .
+ This package contains the Grid Engine master server.
+
+Package: gridengine-exec
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Replaces: gridengine-master (<< 6.2-3)
+Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common, tcsh | c-shell
+Recommends: openssh-server
+Description: Distributed resource management - Execution Server
+ Grid Engine is software that facilitates "distributed resource
+ management" (DRM).  Far more than just simple load-balancing tools or
+ batch scheduling mechanisms, DRM software typically provides the
+ following key features across large sets of distributed resources:
+ .
+   * Policy based allocation of distributed resources (CPU time,
+     software licenses, etc.)
+   * Batch queuing & scheduling
+   * Support diverse server hardware, OS and architectures
+   * Load balancing & remote job execution
+   * Detailed job accounting statistics
+   * Fine-grained user specifiable resources
+   * Suspend/resume/migrate jobs
+   * Tools for reporting Job/Host/Cluster status
+   * Job Arrays
+   * Integration & control of parallel jobs 
+ .
+ This package contains the Grid Engine execution server.
+
+Package: gridengine-drmaa1.0
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Section: libs
+Breaks: libdrmaa1.0 (<< 6.2u5-4)
+Replaces: libdrmaa1.0 (<< 6.2u5-4)
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Distributed resource management Application API library
+ DRMAA (Distributed Resource Management Application API) is a specification
+ developed by a working group in the Global Grid Forum (GGF).  The intention
+ is to provide an API specification for the submission and control of jobs
+ to one or more Distributed Resource Management (DRM) systems.
+ .
+ This package contains the library which provides the Grid Engine
+ implementation of the DRMAA specification.
+
+Package: libdrmaa-java
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Section: java
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Distributed resource management Application API library - Java bindings
+ DRMAA (Distributed Resource Management Application API) is a specification
+ developed by a working group in the Global Grid Forum (GGF).  The intention
+ is to provide an API specification for the submission and control of jobs
+ to one or more Distributed Resource Management (DRM) systems.
+ .
+ This package contains the java bindings for the Grid Engine implementation of
+ the DRMAA specification.
+
+Package: gridengine-drmaa-dev
+Architecture: i386 amd64 sparc powerpc ia64 hppa s390
+Section: libdevel
+Breaks: libdrmaa-dev (<< 6.2u5-5)
+Replaces: libdrmaa-dev (<< 6.2u5-5)
+Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-drmaa1.0 (= ${binary:Version})
+Description: Distributed resource management Application API library
+ DRMAA (Distributed Resource Management Application API) is a specification
+ developed by a working group in the Global Grid Forum (GGF).  The intention
+ is to provide an API specification for the submission and control of jobs
+ to one or more Distributed Resource Management (DRM) systems.
+ .
+ This package contains the development files for the library which provides
+ the Grid Engine implementation of the DRMAA specification.
--- gridengine-6.2u5.orig/debian/copyright
+++ gridengine-6.2u5/debian/copyright
@@ -0,0 +1,463 @@
+This package was debianized by Mark Hymers <mhy@debian.org> on
+Sun, 18 May 2008 10:00:00 +0100.
+
+It was downloaded from http://gridengine.sunsource.net/servlets/ProjectDocumentList
+
+The main license used within this work is the SISSL, which is included at the
+bottom of the file.
+
+Copyright: (c) 2001-2008 Sun Microsystems, Inc.
+
+Upstream Authors: Sun Microsystems, Inc.
+
+Please note the following clarification from upstream:
+===========================================================================
+Delivery-date: Thu, 21 Jun 2007 13:33:04 +0100
+Mailing-List: contact dev-help@gridengine.sunsource.net; run by ezmlm
+Reply-To: dev@gridengine.sunsource.net
+From: Fritz Ferstl <ferstl@sun.com>
+To: dev@gridengine.sunsource.net
+Cc: mbanck@debian.org
+Subject: Re: [GE dev] License clarification
+
+Hi Michael,
+
+terrific news about integrating Grid Engine into Debian! Are you
+building binaries yourself or are you using the bits we provide?
+
+Per your licensing question: Yes, you can assume that everything not
+explicitly licensed is copyrighted by Sun and is under the SISSL.
+
+Thanks for pointing out that some files did not contain proper copyright
+notices. We did a quick check and found only XPM files and JavaDocs
+missing them. Did you come across any other files without copyright notices?
+
+Cheers,
+
+Fritz
+===========================================================================
+
+Other licenses which are used and copyright holders are:
+
+source/3rdparty/qtcsh: Based on tcsh-6.08
+                       Copyright (c) 1980, 1991 The Regents of the University
+                       of California,
+                       Copyright (c) 1990 Carnegie Mellon University
+
+ * Copyright (c) 1980, 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *  This product includes software developed by the University of
+ *  California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+
+source/3rdparty/qmake: Based on GNU Make 3.78.1
+                       Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994,
+                       1995, 1996, 1997 Free Software Foundation, Inc.
+ * GNU GPLv2 or later (see /usr/share/common-licenses/GPL-2)
+
+source/3rdparty/qmon/iconlist: Copyright 1996 John L. Cwikla.
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without fee,
+ * provided that the above copyright notice appears in all copies and that
+ * both that copyright notice and this permission notice appear in
+ * supporting documentation, and that the name of John L. Cwikla or
+ * Wolfram Research, Inc not be used in advertising or publicity
+ * pertaining to distribution of the software without specific, written
+ * prior permission.    John L. Cwikla and Wolfram Research, Inc make no
+ * representations about the suitability of this software for any
+ * purpose. It is provided "as is" without express or implied warranty.
+ *
+ * John L. Cwikla and Wolfram Research, Inc disclaim all warranties with
+ * regard to this software, including all implied warranties of
+ * merchantability and fitness, in no event shall John L. Cwikla or
+ * Wolfram Research, Inc be liable for any special, indirect or
+ * consequential damages or any damages whatsoever resulting from loss of
+ * use, data or profits, whether in an action of contract, negligence or
+ * other tortious action, arising out of or in connection with the use or
+ * performance of this software.
+
+source/3rdparty/qmon/tab: Copyright (c) 1997 Pralay Dakua (pkanti@hotmail.com)
+ * This is a free software and permission to use, modify, distribute,
+ * selling and using for commercial purpose is hereby granted provided
+ * that THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE
+ * INCLUDED IN ALL COPIES AND THEIR SUPPORTING DOCUMENTATIONS.
+ *
+ * There is no warranty for this software. In no event Pralay Dakua
+ * will be liable for merchantability and fitness of the software and
+ * damages due to this software.
+
+source/3rdparty/qmon/Xbae:
+ * Copyright(c) 1992 Bell Communications Research, Inc. (Bellcore)
+ * Copyright(c) 1995-99 Andrew Lister
+ *                        All rights reserved
+ * Permission to use, copy, modify and distribute this material for
+ * any purpose and without fee is hereby granted, provided that the
+ * above copyright notice and this permission notice appear in all
+ * copies, and that the name of Bellcore not be used in advertising
+ * or publicity pertaining to this material without the specific,
+ * prior written permission of an authorized representative of
+ * Bellcore.
+ *
+ * BELLCORE MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EX-
+ * PRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT
+ * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST IN-
+ * FRINGEMENT OF PATENTS OR OTHER INTELLECTUAL PROPERTY RIGHTS.  THE
+ * SOFTWARE IS PROVIDED "AS IS", AND IN NO EVENT SHALL BELLCORE OR
+ * ANY OF ITS AFFILIATES BE LIABLE FOR ANY DAMAGES, INCLUDING ANY
+ * LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES RELAT-
+ * ING TO THE SOFTWARE.
+
+source/3rdpart/Xmt310:
+===============================================================================
+       Copyright (c) 1992-2001, David Flanagan
+       All rights reserved.
+
+       Redistribution and use in source and binary forms, with or
+       without modification, are permitted provided that the following
+       conditions are met:
+
+            Redistributions of source code must retain the above
+            copyright notice, this list of conditions and the
+            following disclaimer.
+
+            Redistributions in binary form must reproduce the above
+            copyright notice, this list of conditions and the
+            following disclaimer in the documentation and/or other
+            materials provided with the distribution.
+
+            None of the names David Flanagan, davidflanagan.com, or
+            motiftools.org, nor the names of its contributors may be
+            used to endorse or promote products derived from this
+            software without specific prior written permission.
+
+       THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+       CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+       INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+       MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+       DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR THE
+       CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+       SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+       NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+       LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+       HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+       CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+       OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+       EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+===============================================================================
+
+source/3rdparty/qmon/spinbox:
+ * Copyright 1994 Alastair Gourlay
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation.
+
+source/3rdparty/qmon/ltree:
+ * Copyright (c) 1996 Robert W. McMullen
+ Under the GNU GPL v2 or later (see /usr/share/common-licenses/GPL-2)
+
+source/3rdparty/adoc:
+ *  (c)Copyright 1995 by Tobias Ferber,  All Rights Reserved
+ Under the GNU GPL v1 or later (see /usr/share/common-licenses/)
+
+
+===============================================================================
+Sun Industry Standards Source License (SISSL):
+
+1.0 DEFINITIONS
+
+1.1 "Commercial Use" means distribution or otherwise making the
+Original Code available to a third party.
+
+1.2 "Contributor Version" means the combination of the Original
+Code, and the Modifications made by that particular Contributor.
+
+1.3 "Electronic Distribution Mechanism" means a mechanism generally
+accepted in the software development community for the electronic transfer
+of data.
+
+1.4 "Executable" means Original Code in any form other than Source
+Code.
+
+1.5 "Initial Developer" means the individual or entity identified
+as the Initial Developer in the Source Code notice required by Exhibit
+A.
+
+1.6 "Larger Work" means a work which combines Original Code or
+portions thereof with code not governed by the terms of this License.
+
+1.7 "License" means this document.
+
+1.8 "Licensable" means having the right to grant, to the maximum
+extent possible, whether at the time of the initial grant or subsequently
+acquired, any and all of the rights conveyed herein.
+
+1.9 "Modifications" means any addition to or deletion from the
+substance or structure of either the Original Code or any previous
+Modifications.
+A Modification is:
+
+      A. Any addition to or deletion from the contents of a file containing
+      Original Code or previous Modifications.
+
+      B. Any new file that contains any part of the Original
+      Code or previous Modifications.
+
+1.10 "Original Code" means Source Code of computer software code
+which is described in the Source Code notice required by Exhibit A as Original
+Code.
+
+1.11 "Patent Claims" means any patent claim(s), now owned or
+hereafter acquired, including without limitation, method, process, and
+apparatus claims, in any patent Licensable by grantor.
+
+1.12 "Source Code" means the preferred form of the Original Code
+for making modifications to it, including all modules it contains, plus
+any associated interface definition files, or scripts used to control
+compilation
+and installation of an Executable.
+
+1.13 "Standards" means the standards identified in Exhibit B.
+
+1.14 "You" (or "Your") means an individual or a legal entity
+exercising rights under, and complying with all of the terms of, this License
+or a future version of this License issued under Section 6.1. For legal
+entities, "You'' includes any entity which controls, is controlled by,
+or is under common control with You. For purposes of this definition, "control''
+
+means (a) the power, direct or indirect, to cause the direction or management
+of such entity, whether by contract or otherwise, or (b) ownership of more
+than fifty percent (50%) of the outstanding shares or beneficial ownership
+of such entity.
+
+2.0 SOURCE CODE LICENSE
+
+2.1 The Initial Developer Grant
+
+The Initial Developer hereby grants You a world-wide, royalty-free,
+non-exclusive license, subject to third party intellectual property
+claims: 
+
+      (a) under intellectual property rights (other than patent or
+      trademark) Licensable by Initial Developer to use, reproduce, modify, display,
+      perform, sublicense and distribute the Original Code (or portions thereof)
+      with or without Modifications, and/or as part of a Larger Work; and
+
+      (b) under Patents Claims infringed by the making, using or selling
+      of Original Code, to make, have made, use, practice, sell, and offer for
+      sale, and/or otherwise dispose of the Original Code (or portions thereof).
+
+      (c) the licenses granted in this Section 2.1(a) and (b) are effective
+      on the date Initial Developer first distributes Original Code under the
+      terms of this License.
+
+      (d) Notwithstanding Section
+      2.1(b) above, no patent license is granted: 1) for code that You delete from
+      the Original Code; 2) separate from the Original Code; or 3) for infringements
+      caused by: i) the modification of the Original Code or ii) the combination of
+      the Original Code with other software or devices, including but not limited to
+      Modifications. 
+
+3.0 DISTRIBUTION OBLIGATIONS
+
+3.1 Application of License.
+
+The Source Code version of Original Code may be distributed only under
+the terms of this License or a future version of this License released
+under Section 6.1, and You must include a copy of this License with every
+copy of the Source Code You distribute. You may not offer or impose any
+terms on any Source Code version that alters or restricts the applicable
+version of this License or the recipients' rights hereunder. Your license
+for shipment of the Contributor Version is conditioned upon Your full compliance
+with this Section. The Modifications which You create must comply with
+all requirements set out by the Standards body in effect one hundred twenty
+(120) days before You ship the Contributor Version. In the event that the
+Modifications do not meet such requirements, You agree to publish either
+(i) any deviation from the Standards protocol resulting from implementation
+of Your Modifications and a reference implementation of Your Modifications
+or (ii) Your Modifications in Source Code form, and to make any such deviation
+and reference implementation or Modifications available to all third parties
+under the same terms as this license on a royalty free basis within thirty
+(30) days of Your first customer shipment of Your Modifications.
+
+3.2 Required Notices.
+
+
+You must duplicate the notice in Exhibit A in each file of the
+Source Code. If it is not possible to put such notice in a particular Source
+Code file due to its structure, then You must include such notice in a
+location (such as a relevant directory) where a user would be likely to
+look for such a notice. If You created one or more Modification(s) You
+may add Your name as a Contributor to the notice described in Exhibit
+A. You must also duplicate this License in any documentation for the
+Source Code where You describe recipients' rights or ownership rights relating
+to Initial Code. You may choose to offer, and to charge a fee for, warranty,
+support, indemnity or liability obligations to one or more recipients of
+Your version of the Code. However, You may do so only on Your own behalf,
+and not on behalf of the Initial Developer. You must make it absolutely
+clear than any such warranty, support, indemnity or liability obligation
+is offered by You alone, and You hereby agree to indemnify the Initial
+Developer for any liability incurred by the Initial Developer as a result
+of warranty, support, indemnity or liability terms You offer.
+
+3.3 Distribution of Executable Versions.
+
+
+You may distribute Original Code in Executable and Source form only
+if the requirements of Sections 3.1 and 3.2 have been met for that Original
+Code, and if You include a notice stating that the Source Code version
+of the Original Code is available under the terms of this License. The
+notice must be conspicuously included in any notice in an Executable or
+Source versions, related documentation or collateral in which You describe
+recipients' rights relating to the Original Code. You may distribute the
+Executable and Source versions of Your version of the Code or ownership
+rights under a license of Your choice, which may contain terms different
+from this License, provided that You are in compliance with the terms of
+this License. If You distribute the Executable and Source versions under
+a different license You must make it absolutely clear that any terms which
+differ from this License are offered by You alone, not by the Initial Developer.
+
+You hereby agree to indemnify the Initial Developer for any liability incurred
+by the Initial Developer as a result of any such terms You offer.
+
+3.4 Larger Works.
+
+
+You may create a Larger Work by combining Original Code with other
+code not governed by the terms of this License and distribute the Larger
+Work as a single product. In such a case, You must make sure the requirements
+of this License are fulfilled for the Original Code.
+
+4.0 INABILITY TO COMPLY DUE TO STATUTE OR REGULATION
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Original Code due to statute,
+judicial order, or regulation then You must: (a) comply with the terms
+of this License to the maximum extent possible; and (b) describe the limitations
+and the code they affect. Such description must be included in the LEGAL
+file described in Section 3.2 and must be included with all distributions
+of the Source Code. Except to the extent prohibited by statute or regulation,
+such description must be sufficiently detailed for a recipient of ordinary
+skill to be able to understand it.
+
+5.0 APPLICATION OF THIS LICENSE
+
+This License applies to code to which the Initial Developer has attached
+the notice in Exhibit A and to related Modifications as set out in Section
+3.1.
+
+6.0 VERSIONS OF THE LICENSE
+
+6.1 New Versions.
+
+Sun may publish revised and/or new versions of the License from time
+to time. Each version will be given a distinguishing version number.
+
+6.2 Effect of New Versions.
+
+Once Original Code has been published under a particular version of
+the License, You may always continue to use it under the terms of that
+version. You may also choose to use such Original Code under the terms
+of any subsequent version of the License published by Sun. No one other
+than Sun has the right to modify the terms applicable to Original Code.
+
+7.0 DISCLAIMER OF WARRANTY
+
+ORIGINAL CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT
+WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
+LIMITATION,
+WARRANTIES THAT THE ORIGINAL CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT
+FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY
+AND PERFORMANCE OF THE ORIGINAL CODE IS WITH YOU. SHOULD ANY ORIGINAL CODE
+PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER) ASSUME
+THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
+OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY
+ORIGINAL CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+8.0 TERMINATION
+
+8.1 This License and the rights granted hereunder will terminate
+automatically if You fail to comply with terms herein and fail to cure
+such breach within 30 days of becoming aware of the breach. All sublicenses
+to the Original Code which are properly granted shall survive any termination
+of this License. Provisions which, by their nature, must remain in effect
+beyond the termination of this License shall survive.
+
+8.2 In the event of termination under Section 8.1 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or any distributor hereunder prior to
+termination shall survive termination.
+
+9.0 LIMIT OF LIABILITY
+
+UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING
+NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER,
+ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF ORIGINAL CODE, OR ANY SUPPLIER
+OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL,
+INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
+LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE
+OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN
+IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.
+THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR
+PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE
+LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION
+OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION
+AND LIMITATION MAY NOT APPLY TO YOU.
+
+10.0 U.S. GOVERNMENT END USERS
+
+U.S. Government: If this Software is being acquired by or on behalf
+of the U.S. Government or by a U.S. Government prime contractor or subcontractor
+
+(at any tier), then the Government's rights in the Software and accompanying
+documentation shall be only as set forth in this license; this is in accordance
+with 48 C.F.R. 227.7201 through 227.7202-4 (for Department of Defense (DoD)
+acquisitions) and with 48 C.F.R. 2.101 and 12.212 (for non-DoD acquisitions).
+
+11.0 MISCELLANEOUS
+
+This License represents the complete agreement concerning subject matter
+hereof. If any provision of this License is held to be unenforceable, such
+provision shall be reformed only to the extent necessary to make it enforceable.
+
+This License shall be governed by California law provisions (except to
+the extent applicable law, if any, provides otherwise), excluding its
+conflict-of-law
+provisions. With respect to disputes in which at least one party is a citizen
+of, or an entity chartered or registered to do business in the United States
+of America, any litigation relating to this License shall be subject to
+the jurisdiction of the Federal Courts of the Northern District of California,
+with venue lying in Santa Clara County, California, with the losing party
+responsible for costs, including without limitation, court costs and reasonable
+attorneys' fees and expenses. The application of the United Nations Convention
+on Contracts for the International Sale of Goods is expressly excluded.
+Any law or regulation which provides that the language of a contract shall
+be construed against the drafter shall not apply to this License.
--- gridengine-6.2u5.orig/debian/file_structure
+++ gridengine-6.2u5/debian/file_structure
@@ -0,0 +1,48 @@
+Directory and file structure
+============================
+
+gridengine-common:
+
+/etc/gridengine/bootstrap
+/etc/gridengine/configuration
+/var/lib/gridengine/default/common
+/var/lib/gridengine/default/common/bootstrap -> /etc/gridengine/bootstrap
+/usr/share/gridengine/*
+/usr/share/man/man5/*
+/usr/share/man/man1/sge_*
+/usr/share/doc/gridengine-common/examples/
+/etc/default/gridengine
+
+gridengine-master:
+
+/usr/sbin/sge_qmaster
+/usr/sbin/sge_shadowd(?)
+/usr/lib/gridengine/spoolinit
+/usr/lib/gridengine/spooldefaults
+/usr/lib/gridengine/spooledit
+/var/spool/gridengine/qmaster/job_scripts
+/var/spool/gridengine/schedd(*)
+/usr/share/man/man8/sge_qmaster.8.gz
+/usr/share/man/man8/sge_schedd.8.gz
+/usr/share/man/man8/sge_shadowd.8.gz
+/etc/init.d/gridengine-qmaster (+)
+
+gridengine-exec:
+
+/usr/sbin/sge_execd
+/usr/sbin/sge_sheperd
+/usr/sbin/sge_coshepherd
+/var/spool/gridengine/execd(*)
+/usr/share/man/man8/sge_execd.8.gz
+/usr/share/man/man8/sge_shepherd.8.gz
+/etc/init.d/gridengine-execd (+)
+
+gridengine-client:
+
+/usr/bin/q*
+/usr/share/man/man1/q*
+/usr/share/doc/gridengine-client/examples -> /usr/share/doc/gridengine-common/examples
+
+(*) Not yet there.
+(?) Maybe do not ship at all?
+(+) Needs to be written
--- gridengine-6.2u5.orig/debian/gridengine-client.config
+++ gridengine-6.2u5/debian/gridengine-client.config
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+db_input high shared/gridengineconfig || true
+
+db_go || true
+
+db_get shared/gridengineconfig || true
+
+# Check that we're using debconf
+if [ "${RET}" = "true" ]; then
+   db_input high shared/gridenginemaster || true
+   db_go || true
+fi
+
+db_stop || true
--- gridengine-6.2u5.orig/debian/gridengine-client.dirs
+++ gridengine-6.2u5/debian/gridengine-client.dirs
@@ -0,0 +1,2 @@
+/usr/bin
+/usr/share/gridengine
--- gridengine-6.2u5.orig/debian/gridengine-client.install
+++ gridengine-6.2u5/debian/gridengine-client.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/bin/q[a-ln-su-z]*	/usr/lib/gridengine/
+debian/tmp/usr/bin/qmod			/usr/lib/gridengine/
--- gridengine-6.2u5.orig/debian/gridengine-client.links
+++ gridengine-6.2u5/debian/gridengine-client.links
@@ -0,0 +1,28 @@
+usr/share/doc/gridengine-common/examples usr/share/doc/gridengine-client/examples
+usr/share/man/man1/sge_submit.1 usr/share/man/man1/qresub.1
+usr/share/man/man1/sge_submit.1 usr/share/man/man1/qrsh.1
+usr/share/man/man1/sge_submit.1 usr/share/man/man1/qsh.1
+usr/share/man/man1/sge_submit.1 usr/share/man/man1/qalter.1
+usr/share/man/man1/sge_submit.1 usr/share/man/man1/qlogin.1
+usr/share/man/man1/sge_submit.1 usr/share/man/man1/qsub.1
+usr/share/gridengine/gridengine-wrapper usr/bin/qping
+usr/share/gridengine/gridengine-wrapper usr/bin/qconf
+usr/share/gridengine/gridengine-wrapper usr/bin/qselect
+usr/share/gridengine/gridengine-wrapper usr/bin/qrdel
+usr/share/gridengine/gridengine-wrapper usr/bin/qalter
+usr/share/gridengine/gridengine-wrapper usr/bin/qquota
+usr/share/gridengine/gridengine-wrapper usr/bin/qresub
+usr/share/gridengine/gridengine-wrapper usr/bin/qrsh
+usr/share/gridengine/gridengine-wrapper usr/bin/qconf
+usr/share/gridengine/gridengine-wrapper usr/bin/qrsub
+usr/share/gridengine/gridengine-wrapper usr/bin/qacct
+usr/share/gridengine/gridengine-wrapper usr/bin/qrstat
+usr/share/gridengine/gridengine-wrapper usr/bin/qsh
+usr/share/gridengine/gridengine-wrapper usr/bin/qmod
+usr/share/gridengine/gridengine-wrapper usr/bin/qrls
+usr/share/gridengine/gridengine-wrapper usr/bin/qhost
+usr/share/gridengine/gridengine-wrapper usr/bin/qdel
+usr/share/gridengine/gridengine-wrapper usr/bin/qlogin
+usr/share/gridengine/gridengine-wrapper usr/bin/qstat
+usr/share/gridengine/gridengine-wrapper usr/bin/qsub
+usr/share/gridengine/gridengine-wrapper usr/bin/qhold
--- gridengine-6.2u5.orig/debian/gridengine-client.manpages
+++ gridengine-6.2u5/debian/gridengine-client.manpages
@@ -0,0 +1,3 @@
+debian/tmp/usr/share/man/man1/q[a-ln-su-z]*
+debian/tmp/usr/share/man/man1/qmod*
+debian/tmp/usr/share/man/man1/sge_submit.1
--- gridengine-6.2u5.orig/debian/gridengine-client.postinst
+++ gridengine-6.2u5/debian/gridengine-client.postinst
@@ -0,0 +1,51 @@
+#!/bin/sh
+# postinst script for gridengine-client
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+user=sgeadmin
+
+case "$1" in
+  configure)
+    db_get shared/gridengineconfig || true
+    if [ "${RET}" = "true" ]; then
+      # Get cell name
+      db_get shared/gridenginecell || true
+      SGE_CELL="${RET}"
+      if [ -z "${SGE_CELL}" ]; then
+        SGE_CELL=default
+      fi
+      # Create the directories
+      mkdir -p /var/lib/gridengine/${SGE_CELL}/common
+      # Only create act_qmaster if someone hasn't beaten us to it
+      if [ ! -e /var/lib/gridengine/${SGE_CELL}/common/act_qmaster ]; then
+        # Get master name
+        db_get shared/gridenginemaster || true
+        SGE_MASTER="${RET}"
+        # Chuck the master name into the act_qmaster file
+        echo "${SGE_MASTER}" > /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+        chmod 644 /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+        chown sgeadmin:sgeadmin /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+      fi
+    fi
+
+  ;;
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+db_stop || true
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-client.templates
+++ gridengine-6.2u5/debian/gridengine-client.templates
@@ -0,0 +1,23 @@
+Template: shared/gridengineconfig
+Type: boolean
+Default: true
+_Description: Configure SGE automatically?
+ Please choose whether you wish to configure SGE automatically (with
+ debconf). If you do not configure it automatically, the daemons or client
+ programs will not work until a manual configuration is performed.
+
+Template: shared/gridenginecell
+Type: string
+Default: default
+_Description: SGE cell name:
+ Please provide the SGE cell name for use by client programs and the
+ execution daemon.
+
+Template: shared/gridenginemaster
+Type: string
+_Description: SGE master hostname:
+ The execution daemon and the client programs need to know where the cluster
+ master is in order to run.
+ .
+ Please enter the fully qualified domain name of the grid master.
+
--- gridengine-6.2u5.orig/debian/gridengine-client.wrapper
+++ gridengine-6.2u5/debian/gridengine-client.wrapper
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+# SGE Wrapper script to ensure correct environment variables are set
+
+set -e
+
+# For each of SGE_ROOT, SGE_CELL:
+# 1) If the environment variable is set; use it
+# 2) If not, look in /etc/default/gridengine
+# 3) If still nothing, fall back to Debian defaults
+
+DEFAULT_SGE_ROOT=/var/lib/gridengine
+DEFAULT_SGE_CELL=default
+CONFIG_PATH=/etc/default/gridengine
+PROG=`basename $0`
+
+# Save environment variables if we have been given them
+# so we can restore them at the end
+if [ ! -z "${SGE_ROOT}" ]; then
+    _SAVED_SGE_ROOT="${SGE_ROOT}"
+fi
+
+if [ ! -z "${SGE_CELL}" ]; then
+    _SAVED_SGE_CELL="${SGE_CELL}"
+fi
+
+# Read from our config file, this will set SGE_ROOT and/or SGE_CELL if
+# appropriate
+
+if [ -r "${CONFIG_PATH}" ]; then
+    . "${CONFIG_PATH}"
+fi
+
+# If we still don't have anything set, fall back to the Debian defaults
+if [ -z "${SGE_ROOT}" ]; then
+    SGE_ROOT="${DEFAULT_SGE_ROOT}"
+fi
+
+if [ -z "${SGE_CELL}" ]; then
+    SGE_CELL="${DEFAULT_SGE_CELL}"
+fi
+
+# If we had some environment variables, these should override
+# anything else we were given so clobber it all again
+
+if [ ! -z "${_SAVED_SGE_ROOT}" ]; then
+    SGE_ROOT="${_SAVED_SGE_ROOT}"
+fi
+
+if [ ! -z "${_SAVED_SGE_CELL}" ]; then
+    SGE_CELL="${_SAVED_SGE_CELL}"
+fi
+
+unset _SAVED_SGE_ROOT _SAVED_SGE_CELL
+
+# Make sure we've exported the variables we need to
+export SGE_ROOT SGE_CELL
+
+exec /usr/lib/gridengine/${PROG} "$@"
--- gridengine-6.2u5.orig/debian/gridengine-common.config
+++ gridengine-6.2u5/debian/gridengine-common.config
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+CONFFILE=/etc/default/gridengine
+
+# Read the information in from the /etc/default/gridengine
+# file if possible
+if [ -e ${CONFFILE} ]; then
+    . ${CONFFILE} || true
+fi
+
+db_input high shared/gridengineconfig || true
+
+db_go || true
+
+db_get shared/gridengineconfig || true
+
+if [ "${RET}" = "true" ]; then
+    if [ -n "${SGE_CELL}" ] && [ -n "${2}" ]; then
+        db_set shared/gridenginecell ${SGE_CELL}
+    else
+        db_input high shared/gridenginecell || true
+    fi
+
+    db_go || true
+fi
+
--- gridengine-6.2u5.orig/debian/gridengine-common.dirs
+++ gridengine-6.2u5/debian/gridengine-common.dirs
@@ -0,0 +1,4 @@
+/etc/default
+/usr/share/gridengine
+/usr/share/gridengine/scripts
+/var/lib/gridengine
--- gridengine-6.2u5.orig/debian/gridengine-common.examples
+++ gridengine-6.2u5/debian/gridengine-common.examples
@@ -0,0 +1,4 @@
+debian/tmp/usr/examples/jobs/*
+debian/gridengine.default
+source/dist/mpi
+source/dist/pvm
--- gridengine-6.2u5.orig/debian/gridengine-common.install
+++ gridengine-6.2u5/debian/gridengine-common.install
@@ -0,0 +1,6 @@
+debian/bootstrap /etc/gridengine
+debian/configuration /etc/gridengine
+source/dist/util/resources/calendars /usr/share/gridengine/
+source/dist/util/resources/centry /usr/share/gridengine/
+source/dist/util/resources/schemas /usr/share/gridengine/
+source/dist/util/resources/usersets /usr/share/gridengine/
--- gridengine-6.2u5.orig/debian/gridengine-common.links
+++ gridengine-6.2u5/debian/gridengine-common.links
@@ -0,0 +1,30 @@
+usr/share/man/man1/sge_hostnameutils.1 usr/share/man/man1/sge_gethostbyaddr.1
+usr/share/man/man1/sge_hostnameutils.1 usr/share/man/man1/sge_gethostbyname.1
+usr/share/man/man1/sge_hostnameutils.1 usr/share/man/man1/sge_gethostname.1
+usr/share/man/man1/sge_hostnameutils.1 usr/share/man/man1/sge_getservbyname.1
+usr/bin	var/lib/gridengine/bin/lx24-alpha
+usr/bin	var/lib/gridengine/bin/lx26-alpha
+usr/bin	var/lib/gridengine/bin/lx24-amd64
+usr/bin	var/lib/gridengine/bin/lx26-amd64
+usr/bin	var/lib/gridengine/bin/lx24-ia64
+usr/bin	var/lib/gridengine/bin/lx26-ia64
+usr/bin	var/lib/gridengine/bin/lx26-ppc
+usr/bin	var/lib/gridengine/bin/lx24-sparc
+usr/bin	var/lib/gridengine/bin/lx26-sparc
+usr/bin	var/lib/gridengine/bin/lx24-sparc64
+usr/bin	var/lib/gridengine/bin/lx26-sparc64
+usr/bin	var/lib/gridengine/bin/lx24-x86
+usr/bin	var/lib/gridengine/bin/lx26-x86
+usr/lib/gridengine var/lib/gridengine/utilbin/lx24-alpha
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-alpha
+usr/lib/gridengine var/lib/gridengine/utilbin/lx24-amd64
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-amd64
+usr/lib/gridengine var/lib/gridengine/utilbin/lx24-ia64
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-ia64
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-ppc
+usr/lib/gridengine var/lib/gridengine/utilbin/lx24-sparc
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-sparc
+usr/lib/gridengine var/lib/gridengine/utilbin/lx24-sparc64
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-sparc64
+usr/lib/gridengine var/lib/gridengine/utilbin/lx24-x86
+usr/lib/gridengine var/lib/gridengine/utilbin/lx26-x86
--- gridengine-6.2u5.orig/debian/gridengine-common.manpages
+++ gridengine-6.2u5/debian/gridengine-common.manpages
@@ -0,0 +1,6 @@
+debian/tmp/usr/share/man/man1/sge_ckpt.1
+debian/tmp/usr/share/man/man1/sge_hostnameutils.1
+debian/tmp/usr/share/man/man1/sge_intro.1
+debian/tmp/usr/share/man/man1/sgepasswd.1
+debian/tmp/usr/share/man/man1/sge_types.1
+debian/tmp/usr/share/man/man5/*
--- gridengine-6.2u5.orig/debian/gridengine-common.postinst
+++ gridengine-6.2u5/debian/gridengine-common.postinst
@@ -0,0 +1,84 @@
+#!/bin/sh
+# postinst script for gridengine-common
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+user=sgeadmin
+
+case "$1" in
+  configure)
+
+    # Only create the user if it doesn't exist
+    # We can't rely on adduser to do it as a lot of sites stick the
+    # sgeadmin user in LDAP or something like that...
+    if ! id ${user} >/dev/null 2>&1; then
+      adduser --system --no-create-home --quiet \
+              --disabled-password --disabled-login \
+              --shell /bin/false --group --home /var/lib/gridengine ${user}
+    fi
+
+    # Set up the sgeadmin user and basic config on new install
+    if [ -z "$2" ]; then
+      mkdir -p /var/lib/gridengine
+
+      # Get our debconf answers
+      SGE_CELL=default
+      db_get shared/gridengineconfig || true
+      if [ "${RET}" = "true" ]; then
+          # Get Cell name
+          db_get shared/gridenginecell || true
+          SGE_CELL="${RET}"
+          if [ -z "${SGE_CELL}" ]; then
+              SGE_CELL=default
+          fi
+      fi
+
+      for d in /var/lib/gridengine \
+               /var/lib/gridengine/${SGE_CELL} \
+               /var/lib/gridengine/${SGE_CELL}/common
+      do
+        mkdir -p ${d}
+        chmod 755 ${d}
+        chown ${user}:${user} ${d}
+      done
+
+      # Copy the default bootstrap file
+      install -m0644 -o sgeadmin -g sgeadmin /usr/share/gridengine/default-bootstrap /var/lib/gridengine/${SGE_CELL}/common/bootstrap
+
+      # Copy in the default file having set SGE_CELL and use ucf to install it
+      TMPFILE=$(mktemp)
+      chown root:root ${TMPFILE}
+      chmod 644 ${TMPFILE}
+      sed "s@^SGE_CELL=.*@SGE_CELL=${SGE_CELL}@" /usr/share/doc/gridengine-common/examples/gridengine.default >> ${TMPFILE}
+      ucf --debconf-ok ${TMPFILE} /etc/default/gridengine
+      rm -f ${TMPFILE}
+    else
+      # On upgrades, only certain things need to happen
+
+      # From before 6.2-2, we need to fix the stupid chown/chmod bug on /etc/default/gridengine
+      if dpkg --compare-versions "$2" lt 6.2-2; then
+        chown root:root /etc/default/gridengine
+        chmod 644 /etc/default/gridengine
+      fi
+    fi
+  ;;
+
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+db_stop || true
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-common.postrm
+++ gridengine-6.2u5/debian/gridengine-common.postrm
@@ -0,0 +1,52 @@
+#!/bin/sh
+# postrm script for gridengine-common
+#
+# see: dh_installdeb(1)
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+        db_get shared/gridenginecell || true
+        SGE_CELL="${RET}"
+        if [ -z "${SGE_CELL}" ]; then
+            SGE_CELL=default
+        fi
+        [ -x /usr/bin/ucf ] && ucf --purge /etc/default/gridengine
+        rm -f /etc/default/gridengine
+        rm -f /var/lib/gridengine/${SGE_CELL}/common/bootstrap
+        db_purge
+        rm -rf /var/spool/gridengine /var/lib/gridengine
+    ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- gridengine-6.2u5.orig/debian/gridengine-common.templates
+++ gridengine-6.2u5/debian/gridengine-common.templates
@@ -0,0 +1,23 @@
+Template: shared/gridengineconfig
+Type: boolean
+Default: true
+_Description: Configure SGE automatically?
+ Please choose whether you wish to configure SGE automatically (with
+ debconf). If you do not configure it automatically, the daemons or client
+ programs will not work until a manual configuration is performed.
+
+Template: shared/gridenginecell
+Type: string
+Default: default
+_Description: SGE cell name:
+ Please provide the SGE cell name for use by client programs and the
+ execution daemon.
+
+Template: shared/gridenginemaster
+Type: string
+_Description: SGE master hostname:
+ The execution daemon and the client programs need to know where the cluster
+ master is in order to run.
+ .
+ Please enter the fully qualified domain name of the grid master.
+
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.examples
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.examples
@@ -0,0 +1 @@
+debian/tmp/usr/examples/drmaa/*
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.install
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/include/drmaa.h usr/lib/gridengine-drmaa/include
+debian/tmp/usr/lib/libdrmaa.so usr/lib/gridengine-drmaa/lib
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.links
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.links
@@ -0,0 +1,35 @@
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_allocate_job_template.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_delete_job_template.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_get_attribute.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_get_next_attr_value.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_get_num_attr_values.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_get_vector_attribute.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_release_attr_values.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_set_attribute.3
+usr/share/man/man3/drmaa_jobtemplate.3 usr/share/man/man3/drmaa_set_vector_attribute.3
+usr/share/man/man3/drmaa_jobcontrol.3 usr/share/man/man3/drmaa_control.3
+usr/share/man/man3/drmaa_jobcontrol.3 usr/share/man/man3/drmaa_job_ps.3
+usr/share/man/man3/drmaa_session.3 usr/share/man/man3/drmaa_exit.3
+usr/share/man/man3/drmaa_session.3 usr/share/man/man3/drmaa_init.3
+usr/share/man/man3/drmaa_attributes.3 usr/share/man/man3/drmaa_get_attribute_names.3
+usr/share/man/man3/drmaa_attributes.3 usr/share/man/man3/drmaa_get_next_attr_name.3
+usr/share/man/man3/drmaa_attributes.3 usr/share/man/man3/drmaa_get_num_attr_names.3
+usr/share/man/man3/drmaa_attributes.3 usr/share/man/man3/drmaa_get_vector_attribute_names.3
+usr/share/man/man3/drmaa_attributes.3 usr/share/man/man3/drmaa_release_attr_names.3
+usr/share/man/man3/drmaa_misc.3 usr/share/man/man3/drmaa_get_contact.3
+usr/share/man/man3/drmaa_misc.3 usr/share/man/man3/drmaa_get_DRMAA_implementation.3
+usr/share/man/man3/drmaa_misc.3 usr/share/man/man3/drmaa_get_DRM_system.3
+usr/share/man/man3/drmaa_misc.3 usr/share/man/man3/drmaa_strerror.3
+usr/share/man/man3/drmaa_misc.3 usr/share/man/man3/drmaa_version.3
+usr/share/man/man3/drmaa_submit.3 usr/share/man/man3/drmaa_get_next_job_id.3
+usr/share/man/man3/drmaa_submit.3 usr/share/man/man3/drmaa_get_num_job_ids.3
+usr/share/man/man3/drmaa_submit.3 usr/share/man/man3/drmaa_release_job_ids.3
+usr/share/man/man3/drmaa_submit.3 usr/share/man/man3/drmaa_run_bulk_jobs.3
+usr/share/man/man3/drmaa_submit.3 usr/share/man/man3/drmaa_run_job.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_synchronize.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_wcoredump.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_wexitstatus.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_wifaborted.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_wifexited.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_wifsignaled.3
+usr/share/man/man3/drmaa_wait.3 usr/share/man/man3/drmaa_wtermsig.3
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.manpages
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.manpages
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man3/*
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.postinst
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+update-alternatives \
+        --install /usr/lib/libdrmaa.so libdrmaa.so /usr/lib/gridengine-drmaa/lib/libdrmaa.so 20 \
+	--slave /usr/include/drmaa.h drmaa.h /usr/lib/gridengine-drmaa/include/drmaa.h
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.preinst
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+	update-alternatives --remove libdrmaa.so /usr/lib/gridengine-drmaa/lib/libdrmaa.so
+fi
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-drmaa-dev.prerm
+++ gridengine-6.2u5/debian/gridengine-drmaa-dev.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+	update-alternatives --remove libdrmaa.so /usr/lib/gridengine-drmaa/lib/libdrmaa.so
+fi
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-drmaa1.0.install
+++ gridengine-6.2u5/debian/gridengine-drmaa1.0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libdrmaa.so.1.0 usr/lib/gridengine-drmaa/lib
--- gridengine-6.2u5.orig/debian/gridengine-exec.config
+++ gridengine-6.2u5/debian/gridengine-exec.config
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+db_input high shared/gridengineconfig || true
+
+db_go || true
+
+db_get shared/gridengineconfig || true
+
+# Check that we're using debconf
+if [ "${RET}" = "true" ]; then
+   db_input high shared/gridenginemaster || true
+   db_go || true
+fi
+
+db_stop || true
--- gridengine-6.2u5.orig/debian/gridengine-exec.dirs
+++ gridengine-6.2u5/debian/gridengine-exec.dirs
@@ -0,0 +1,2 @@
+/usr/lib/gridengine
+/usr/sbin
--- gridengine-6.2u5.orig/debian/gridengine-exec.init
+++ gridengine-6.2u5/debian/gridengine-exec.init
@@ -0,0 +1,120 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          sge_execd
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: SGE Execution Daemon init script
+### END INIT INFO
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Sun Grid Engine Execution Daemon"
+NAME=sge_execd
+DAEMON=/usr/sbin/sge_execd
+PIDFILE=/var/run/gridengine/execd.pid
+export SGE_EXECD_PIDFILE=$PIDFILE
+SCRIPTNAME="/etc/init.d/gridengine-exec"
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/gridengine ] && . /etc/default/gridengine
+
+# Check that SGE_START_EXECD is yes
+[ -z "$SGE_START_EXECD" ] || [ "xyes" != "x${SGE_START_EXECD}" ] && exit 0
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+# Check that our run directory is present
+if [ ! -d /var/run/gridengine ]; then
+    mkdir -m 0755 -p /var/run/gridengine
+    chown sgeadmin:sgeadmin /var/run/gridengine
+fi
+
+do_start() {
+    # Return
+    #   0 if daemon has been started
+    #   1 if daemon was already running
+    #   2 if daemon could not be started
+    start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /usr/lib/gridengine/$NAME --test > /dev/null \
+        || return 1
+    start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+        $DAEMON_ARGS \
+        || return 2
+}
+
+do_stop() {
+    # Return
+    #   0 if daemon has been stopped
+    #   1 if daemon was already stopped
+    #   2 if daemon could not be stopped
+    #   other if a failure occurred
+    start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+    RETVAL="$?"
+    [ "$RETVAL" = 2 ] && return 2
+    # Wait for children to finish too if this is a daemon that forks
+    # and if the daemon is only ever run from this initscript.
+    # If the above conditions are not satisfied then add some other code
+    # that waits for the process to drop all resources that could be
+    # needed by services started subsequently.  A last resort is to
+    # sleep for some time.
+    start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+    [ "$?" = 2 ] && return 2
+    # Many daemons don't delete their pidfiles when they exit.
+    rm -f $PIDFILE
+    return "$RETVAL"
+}
+
+case "$1" in
+  start)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+    do_start
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  stop)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+	do_stop
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  restart|force-reload)
+	#
+	# If the "reload" option is implemented then remove the
+	# 'force-reload' alias
+	#
+	log_daemon_msg "Restarting $DESC" "$NAME"
+	do_stop
+	case "$?" in
+	  0|1)
+		do_start
+		case "$?" in
+			0) log_end_msg 0 ;;
+			1) log_end_msg 1 ;; # Old process is still running
+			*) log_end_msg 1 ;; # Failed to start
+		esac
+		;;
+	  *)
+	  	# Failed to stop
+		log_end_msg 1
+		;;
+	esac
+	;;
+  *)
+	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	exit 3
+	;;
+esac
+
+:
--- gridengine-6.2u5.orig/debian/gridengine-exec.install
+++ gridengine-6.2u5/debian/gridengine-exec.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/bin/sge_execd		/usr/lib/gridengine
+debian/tmp/usr/bin/sge_shepherd		/usr/lib/gridengine
+debian/tmp/usr/bin/sge_coshepherd	/usr/lib/gridengine
+debian/tmp/usr/utilbin/qrsh_starter	/usr/lib/gridengine
--- gridengine-6.2u5.orig/debian/gridengine-exec.links
+++ gridengine-6.2u5/debian/gridengine-exec.links
@@ -0,0 +1,3 @@
+usr/share/gridengine/gridengine-wrapper usr/sbin/sge_execd
+usr/share/gridengine/gridengine-wrapper usr/sbin/sge_shepherd
+usr/share/gridengine/gridengine-wrapper usr/sbin/sge_coshepherd
--- gridengine-6.2u5.orig/debian/gridengine-exec.manpages
+++ gridengine-6.2u5/debian/gridengine-exec.manpages
@@ -0,0 +1,2 @@
+debian/tmp/usr/share/man/man8/sge_execd*
+debian/tmp/usr/share/man/man8/sge_shepherd*
--- gridengine-6.2u5.orig/debian/gridengine-exec.postinst
+++ gridengine-6.2u5/debian/gridengine-exec.postinst
@@ -0,0 +1,59 @@
+#!/bin/sh
+# postinst script for gridengine-exec
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+user=sgeadmin
+
+case "$1" in
+  configure)
+
+    # Setup directories on a new install
+    if [ -z "$2" ]; then
+      mkdir -p /var/spool/gridengine/execd
+      chown ${user}:${user} /var/spool/gridengine/execd
+      chmod 755 /var/spool/gridengine/execd
+    fi
+
+    db_get shared/gridengineconfig || true
+    if [ "${RET}" = "true" ]; then
+      # Get cell name
+      db_get shared/gridenginecell || true
+      SGE_CELL="${RET}"
+      if [ -z "${SGE_CELL}" ]; then
+        SGE_CELL=default
+      fi
+      # Create the directories
+      mkdir -p /var/lib/gridengine/${SGE_CELL}/common
+      # Only create act_qmaster if someone hasn't beaten us to it
+      if [ ! -e /var/lib/gridengine/${SGE_CELL}/common/act_qmaster ]; then
+        # Get master name
+        db_get shared/gridenginemaster || true
+        SGE_MASTER="${RET}"
+        # Chuck the master name into the act_qmaster file
+        echo "${SGE_MASTER}" > /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+        chmod 644 /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+        chown sgeadmin:sgeadmin /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+      fi
+    fi
+
+  ;;
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+db_stop || true
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-exec.postrm
+++ gridengine-6.2u5/debian/gridengine-exec.postrm
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postrm script for gridengine-exec
+#
+# see: dh_installdeb(1)
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+        db_purge
+    ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
--- gridengine-6.2u5.orig/debian/gridengine-exec.templates
+++ gridengine-6.2u5/debian/gridengine-exec.templates
@@ -0,0 +1,23 @@
+Template: shared/gridengineconfig
+Type: boolean
+Default: true
+_Description: Configure SGE automatically?
+ Please choose whether you wish to configure SGE automatically (with
+ debconf). If you do not configure it automatically, the daemons or client
+ programs will not work until a manual configuration is performed.
+
+Template: shared/gridenginecell
+Type: string
+Default: default
+_Description: SGE cell name:
+ Please provide the SGE cell name for use by client programs and the
+ execution daemon.
+
+Template: shared/gridenginemaster
+Type: string
+_Description: SGE master hostname:
+ The execution daemon and the client programs need to know where the cluster
+ master is in order to run.
+ .
+ Please enter the fully qualified domain name of the grid master.
+
--- gridengine-6.2u5.orig/debian/gridengine-master.config
+++ gridengine-6.2u5/debian/gridengine-master.config
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+db_input high shared/gridengineconfig || true
+
+db_go || true
+
+db_get shared/gridengineconfig || true
+
+# Check that we're using debconf
+if [ "${RET}" = "true" ]; then
+   db_input high shared/gridenginemaster || true
+   db_go || true
+fi
+
+db_stop || true
+
--- gridengine-6.2u5.orig/debian/gridengine-master.dirs
+++ gridengine-6.2u5/debian/gridengine-master.dirs
@@ -0,0 +1,2 @@
+/usr/lib/gridengine
+/usr/sbin
--- gridengine-6.2u5.orig/debian/gridengine-master.init
+++ gridengine-6.2u5/debian/gridengine-master.init
@@ -0,0 +1,120 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          sge_master
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: SGE Master daemon init script
+### END INIT INFO
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Sun Grid Engine Master Scheduler"
+NAME=sge_qmaster
+DAEMON=/usr/sbin/sge_qmaster
+PIDFILE=/var/run/gridengine/qmaster.pid
+export SGE_MASTER_PIDFILE=$PIDFILE
+SCRIPTNAME=/etc/init.d/gridengine-master
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/gridengine ] && . /etc/default/gridengine
+
+# Check that SGE_START_MASTERD is yes
+[ -z "$SGE_START_MASTERD" ] || [ "xyes" != "x${SGE_START_MASTERD}" ] && exit 0
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+# Check that our run directory is present
+if [ ! -d /var/run/gridengine ]; then
+    mkdir -m 0755 -p /var/run/gridengine
+    chown sgeadmin:sgeadmin /var/run/gridengine
+fi
+
+do_start() {
+    # Return
+    #   0 if daemon has been started
+    #   1 if daemon was already running
+    #   2 if daemon could not be started
+    start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+        || return 1
+    start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+        $DAEMON_ARGS \
+        || return 2
+}
+
+do_stop() {
+    # Return
+    #   0 if daemon has been stopped
+    #   1 if daemon was already stopped
+    #   2 if daemon could not be stopped
+    #   other if a failure occurred
+    start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+    RETVAL="$?"
+    [ "$RETVAL" = 2 ] && return 2
+    # Wait for children to finish too if this is a daemon that forks
+    # and if the daemon is only ever run from this initscript.
+    # If the above conditions are not satisfied then add some other code
+    # that waits for the process to drop all resources that could be
+    # needed by services started subsequently.  A last resort is to
+    # sleep for some time.
+    start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+    [ "$?" = 2 ] && return 2
+    # Many daemons don't delete their pidfiles when they exit.
+    rm -f $PIDFILE
+    return "$RETVAL"
+}
+
+case "$1" in
+  start)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+    do_start
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  stop)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+	do_stop
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  restart|force-reload)
+	#
+	# If the "reload" option is implemented then remove the
+	# 'force-reload' alias
+	#
+	log_daemon_msg "Restarting $DESC" "$NAME"
+	do_stop
+	case "$?" in
+	  0|1)
+		do_start
+		case "$?" in
+			0) log_end_msg 0 ;;
+			1) log_end_msg 1 ;; # Old process is still running
+			*) log_end_msg 1 ;; # Failed to start
+		esac
+		;;
+	  *)
+	  	# Failed to stop
+		log_end_msg 1
+		;;
+	esac
+	;;
+  *)
+	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	exit 3
+	;;
+esac
+
+:
--- gridengine-6.2u5.orig/debian/gridengine-master.install
+++ gridengine-6.2u5/debian/gridengine-master.install
@@ -0,0 +1,24 @@
+debian/tmp/usr/bin/sge_qmaster		/usr/lib/gridengine
+debian/tmp/usr/bin/sge_shadowd		/usr/lib/gridengine
+debian/tmp/usr/utilbin/adminrun		/usr/lib/gridengine
+debian/tmp/usr/utilbin/authuser		/usr/lib/gridengine
+debian/tmp/usr/utilbin/checkprog	/usr/lib/gridengine
+debian/tmp/usr/utilbin/checkuser	/usr/lib/gridengine
+debian/tmp/usr/utilbin/filestat		/usr/lib/gridengine
+debian/tmp/usr/utilbin/fstype		/usr/lib/gridengine
+debian/tmp/usr/utilbin/gethostbyaddr	/usr/lib/gridengine
+debian/tmp/usr/utilbin/gethostbyname	/usr/lib/gridengine
+debian/tmp/usr/utilbin/gethostname	/usr/lib/gridengine
+debian/tmp/usr/utilbin/getservbyname	/usr/lib/gridengine
+debian/tmp/usr/utilbin/infotext		/usr/lib/gridengine
+debian/tmp/usr/utilbin/loadcheck	/usr/lib/gridengine
+debian/tmp/usr/utilbin/now		/usr/lib/gridengine
+debian/tmp/usr/utilbin/sge_share_mon	/usr/lib/gridengine
+debian/tmp/usr/utilbin/spooldefaults	/usr/lib/gridengine
+debian/tmp/usr/utilbin/spooldefaults.bin	/usr/lib/gridengine
+debian/tmp/usr/utilbin/spooledit	/usr/lib/gridengine
+debian/tmp/usr/utilbin/spooledit.bin	/usr/lib/gridengine
+debian/tmp/usr/utilbin/spoolinit	/usr/lib/gridengine
+debian/tmp/usr/utilbin/testsuidroot	/usr/lib/gridengine
+debian/tmp/usr/utilbin/uidgid		/usr/lib/gridengine
+debian/tmp/usr/lib/libspool*        /usr/lib/gridengine
--- gridengine-6.2u5.orig/debian/gridengine-master.links
+++ gridengine-6.2u5/debian/gridengine-master.links
@@ -0,0 +1,2 @@
+usr/share/gridengine/gridengine-wrapper usr/sbin/sge_qmaster
+usr/share/gridengine/gridengine-wrapper usr/sbin/sge_shadowd
--- gridengine-6.2u5.orig/debian/gridengine-master.manpages
+++ gridengine-6.2u5/debian/gridengine-master.manpages
@@ -0,0 +1,3 @@
+debian/tmp/usr/share/man/man8/sge_qmaster*
+debian/tmp/usr/share/man/man8/sge_shadowd*
+debian/tmp/usr/share/man/man8/sge_schedd*
--- gridengine-6.2u5.orig/debian/gridengine-master.postinst
+++ gridengine-6.2u5/debian/gridengine-master.postinst
@@ -0,0 +1,58 @@
+#!/bin/sh
+# postinst script for gridengine-master
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+sgeroot=/var/lib/gridengine
+sgespool=/var/spool/gridengine
+user=sgeadmin
+
+case "$1" in
+  configure)
+
+    # Setup directories on a new install
+    if [ -z "$2" ]; then
+      for d in ${sgespool}/qmaster \
+               ${sgespool}/qmaster/job_scripts \
+               ${sgespool}/spooldb
+      do
+          mkdir -p ${d}
+          chown ${user}:${user} ${d}
+          chmod 755 ${d}
+      done
+
+      # Check that we're meant to install a cluster
+      db_get shared/gridengineconfig || true
+
+      if [ "${RET}" = "true" ]; then
+          db_get shared/gridenginecell || true
+          SGE_CELL="${RET}"
+          if [ -z "${SGE_CELL}" ]; then
+              SGE_CELL=default
+          fi
+
+          # Initialize a default cluster
+          su -s /bin/sh -c "/usr/share/gridengine/scripts/init_cluster ${sgeroot} ${SGE_CELL} ${sgespool}/spooldb ${user}" ${user}
+      fi
+    fi
+
+  ;;
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+db_stop || true
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-master.templates
+++ gridengine-6.2u5/debian/gridengine-master.templates
@@ -0,0 +1,23 @@
+Template: shared/gridengineconfig
+Type: boolean
+Default: true
+_Description: Configure SGE automatically?
+ Please choose whether you wish to configure SGE automatically (with
+ debconf). If you do not configure it automatically, the daemons or client
+ programs will not work until a manual configuration is performed.
+
+Template: shared/gridenginecell
+Type: string
+Default: default
+_Description: SGE cell name:
+ Please provide the SGE cell name for use by client programs and the
+ execution daemon.
+
+Template: shared/gridenginemaster
+Type: string
+_Description: SGE master hostname:
+ The execution daemon and the client programs need to know where the cluster
+ master is in order to run.
+ .
+ Please enter the fully qualified domain name of the grid master.
+
--- gridengine-6.2u5.orig/debian/gridengine-qmon.config
+++ gridengine-6.2u5/debian/gridengine-qmon.config
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+db_input high shared/gridengineconfig || true
+
+db_go || true
+
+db_get shared/gridengineconfig || true
+
+# Check that we're using debconf
+if [ "${RET}" = "true" ]; then
+   db_input high shared/gridenginemaster || true
+   db_go || true
+fi
+
+db_stop || true
--- gridengine-6.2u5.orig/debian/gridengine-qmon.dirs
+++ gridengine-6.2u5/debian/gridengine-qmon.dirs
@@ -0,0 +1 @@
+/usr/bin
--- gridengine-6.2u5.orig/debian/gridengine-qmon.install
+++ gridengine-6.2u5/debian/gridengine-qmon.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/bin/qmon /usr/lib/gridengine/
+debian/tmp/usr/qmon/PIXMAPS/* /usr/share/gridengine/pixmaps/
--- gridengine-6.2u5.orig/debian/gridengine-qmon.links
+++ gridengine-6.2u5/debian/gridengine-qmon.links
@@ -0,0 +1 @@
+usr/share/gridengine/gridengine-wrapper usr/bin/qmon
--- gridengine-6.2u5.orig/debian/gridengine-qmon.manpages
+++ gridengine-6.2u5/debian/gridengine-qmon.manpages
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/qmon*
--- gridengine-6.2u5.orig/debian/gridengine-qmon.postinst
+++ gridengine-6.2u5/debian/gridengine-qmon.postinst
@@ -0,0 +1,51 @@
+#!/bin/sh
+# postinst script for gridengine-qmon
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+user=sgeadmin
+
+case "$1" in
+  configure)
+    db_get shared/gridengineconfig || true
+    if [ "${RET}" = "true" ]; then
+      # Get cell name
+      db_get shared/gridenginecell || true
+      SGE_CELL="${RET}"
+      if [ -z "${SGE_CELL}" ]; then
+        SGE_CELL=default
+      fi
+      # Create the directories
+      mkdir -p /var/lib/gridengine/${SGE_CELL}/common
+      # Only create act_qmaster if someone hasn't beaten us to it
+      if [ ! -e /var/lib/gridengine/${SGE_CELL}/common/act_qmaster ]; then
+        # Get master name
+        db_get shared/gridenginemaster || true
+        SGE_MASTER="${RET}"
+        # Chuck the master name into the act_qmaster file
+        echo "${SGE_MASTER}" > /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+        chmod 644 /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+        chown sgeadmin:sgeadmin /var/lib/gridengine/${SGE_CELL}/common/act_qmaster
+      fi
+    fi
+
+  ;;
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+db_stop || true
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- gridengine-6.2u5.orig/debian/gridengine-qmon.templates
+++ gridengine-6.2u5/debian/gridengine-qmon.templates
@@ -0,0 +1,23 @@
+Template: shared/gridengineconfig
+Type: boolean
+Default: true
+_Description: Configure SGE automatically?
+ Please choose whether you wish to configure SGE automatically (with
+ debconf). If you do not configure it automatically, the daemons or client
+ programs will not work until a manual configuration is performed.
+
+Template: shared/gridenginecell
+Type: string
+Default: default
+_Description: SGE cell name:
+ Please provide the SGE cell name for use by client programs and the
+ execution daemon.
+
+Template: shared/gridenginemaster
+Type: string
+_Description: SGE master hostname:
+ The execution daemon and the client programs need to know where the cluster
+ master is in order to run.
+ .
+ Please enter the fully qualified domain name of the grid master.
+
--- gridengine-6.2u5.orig/debian/gridengine.default
+++ gridengine-6.2u5/debian/gridengine.default
@@ -0,0 +1,16 @@
+# Sun Grid Engine configuration
+
+# Boolean options in this file must be set to yes or no
+
+# Start the queue master daemon? (if installed)
+SGE_START_MASTERD=yes
+
+# Start the execution daemon? (if installed)
+SGE_START_EXECD=yes
+
+# SGE_ROOT will default to /var/lib/gridengine
+SGE_ROOT=/var/lib/gridengine
+
+# SGE_CELL will default to default
+SGE_CELL=default
+
--- gridengine-6.2u5.orig/debian/gridengine.templates
+++ gridengine-6.2u5/debian/gridengine.templates
@@ -0,0 +1,23 @@
+Template: shared/gridengineconfig
+Type: boolean
+Default: true
+_Description: Configure SGE automatically?
+ Please choose whether you wish to configure SGE automatically (with
+ debconf). If you do not configure it automatically, the daemons or client
+ programs will not work until a manual configuration is performed.
+
+Template: shared/gridenginecell
+Type: string
+Default: default
+_Description: SGE cell name:
+ Please provide the SGE cell name for use by client programs and the
+ execution daemon.
+
+Template: shared/gridenginemaster
+Type: string
+_Description: SGE master hostname:
+ The execution daemon and the client programs need to know where the cluster
+ master is in order to run.
+ .
+ Please enter the fully qualified domain name of the grid master.
+
--- gridengine-6.2u5.orig/debian/libdrmaa-java.install
+++ gridengine-6.2u5/debian/libdrmaa-java.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/share/java
+debian/tmp/usr/lib/jni/libjgdi.so
+debian/tmp/usr/lib/jni/libjuti.so
--- gridengine-6.2u5.orig/debian/libdrmaa-jni.install
+++ gridengine-6.2u5/debian/libdrmaa-jni.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/jni/libjgdi.so
+debian/tmp/usr/lib/jni/libjuti.so
+
--- gridengine-6.2u5.orig/debian/linux32-wrapper
+++ gridengine-6.2u5/debian/linux32-wrapper
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# On architectures where we sometimes have 64-bit kernels on buildds when we
+# want to build for 32-bit userland (seen especially on the experimental
+# buildds), make sure we invoke the commands using linux32 otherwise the
+# binaries end up with the wrong arch name hardcoded in them
+
+# TODO: Probably changing how the arch name is detected in the build
+#       scripts would be a more clever idea
+
+DEB_BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)
+
+if [ ${DEB_BUILD_ARCH} = "powerpc" -o ${DEB_BUILD_ARCH} = "i386" -o ${DEB_BUILD_ARCH} = "sparc" -o ${DEB_BUILD_ARCH} = "s390" -o ${DEB_BUILD_ARCH} = "hppa" ]; then
+    exec /usr/bin/linux32 "$@"
+else
+    exec "$@"
+fi
+
--- gridengine-6.2u5.orig/debian/patches/001-nowerror.diff
+++ gridengine-6.2u5/debian/patches/001-nowerror.diff
@@ -0,0 +1,11 @@
+--- a/source/aimk
++++ b/source/aimk
+@@ -1446,7 +1446,7 @@
+       set CFLAGS = "$CFLAGS -Wno-strict-aliasing"
+    endif
+ 
+-   set CFLAGS = "$OFLAG -Wall -Werror -Wstrict-prototypes -DUSE_POLL -DLINUX -D$BUILDARCH -D$COMPILE_ARCH -D_GNU_SOURCE -DGETHOSTBYNAME_R6 -DGETHOSTBYADDR_R8 $DEBUG_FLAG $CFLAGS"
++   set CFLAGS = "$OFLAG -Wall -Wstrict-prototypes -DUSE_POLL -DLINUX -D$BUILDARCH -D$COMPILE_ARCH -D_GNU_SOURCE -DGETHOSTBYNAME_R6 -DGETHOSTBYADDR_R8 $DEBUG_FLAG $CFLAGS"
+ 
+    if ("$ADOC" == 1) then
+       set CFLAGS = "$CFLAGS -Wno-error"
--- gridengine-6.2u5.orig/debian/patches/002-bdbnorpc.diff
+++ gridengine-6.2u5/debian/patches/002-bdbnorpc.diff
@@ -0,0 +1,81 @@
+--- a/source/libs/spool/berkeleydb/sge_bdb.c
++++ b/source/libs/spool/berkeleydb/sge_bdb.c
+@@ -182,6 +182,13 @@
+    server = bdb_get_server(info);
+    path   = bdb_get_path(info);
+ 
++   /* bdb5.1 no longer supports RPC */
++   if (server)
++   {
++      fprintf(stderr, "bdb5.1 no longer supports RPC access\n");
++      ret = false;
++   }
++
+    /* check database directory (only in case of local spooling) */
+    if (server == NULL && !sge_is_directory(path)) {
+       answer_list_add_sprintf(answer_list, STATUS_EUNKNOWN, 
+@@ -205,10 +212,6 @@
+    if (ret && env == NULL) {
+       int flags = 0;
+ 
+-      if (server != NULL) {
+-         flags |= DB_RPCCLIENT;
+-      }
+-
+       PROF_START_MEASUREMENT(SGE_PROF_SPOOLINGIO);
+       dbret = db_env_create(&env, flags);
+       PROF_STOP_MEASUREMENT(SGE_PROF_SPOOLINGIO);
+@@ -269,20 +272,6 @@
+          }
+       }
+ 
+-      /* if we use a RPC server, set it in the DB_ENV */
+-      if (ret && server != NULL) {
+-         PROF_START_MEASUREMENT(SGE_PROF_SPOOLINGIO);
+-         dbret = env->set_rpc_server(env, NULL, server, 0, 0, 0);
+-         PROF_STOP_MEASUREMENT(SGE_PROF_SPOOLINGIO);
+-         if (dbret != 0) {
+-            answer_list_add_sprintf(answer_list, STATUS_EUNKNOWN, 
+-                                    ANSWER_QUALITY_ERROR, 
+-                                    MSG_BERKELEY_COULDNTESETRPCSERVER_IS,
+-                                    dbret, db_strerror(dbret));
+-            ret = false;
+-         } 
+-      }
+-
+       /* the lock parameters only can be set, if we have local spooling.
+        * RPC server: use DB_CONFIG file.
+        */
+@@ -636,7 +625,8 @@
+           * obtained, exit immediately
+           */
+          if (bdb_get_server(info) != NULL) {
+-            flags |= DB_TXN_NOWAIT;
++             /* libbdb5.1 no longer supports RPC */
++             ret = false;
+          }
+ 
+          PROF_START_MEASUREMENT(SGE_PROF_SPOOLINGIO);
+@@ -744,7 +734,8 @@
+       if (bdb_get_server(info) == NULL) {
+          ret = spool_berkeleydb_clear_log(answer_list, info);
+       } else {
+-         ret = spool_berkeleydb_trigger_rpc(answer_list, info);
++         /* bdb5.1 no longer supports RPC */
++         ret = false;
+       }
+       bdb_set_next_clear(info, trigger + BERKELEYDB_CLEAR_INTERVAL);
+    }
+--- a/source/libs/spool/berkeleydb/sge_bdb_types.c
++++ b/source/libs/spool/berkeleydb/sge_bdb_types.c
+@@ -119,6 +119,10 @@
+    if (ret != 0) {
+       fprintf(stderr, "can't initialize key for thread local storage: %s\n", strerror(ret));
+    }
++   if (server) {
++      fprintf(stderr, "bdb5.1 no longer supports RPC access\n");
++      abort();
++   }
+    info->server = server;
+    info->path   = path;
+    info->env    = NULL;
--- gridengine-6.2u5.orig/debian/patches/010-ssl1.0.0.diff
+++ gridengine-6.2u5/debian/patches/010-ssl1.0.0.diff
@@ -0,0 +1,94 @@
+--- a/source/libs/comm/cl_ssl_framework.c
++++ b/source/libs/comm/cl_ssl_framework.c
+@@ -160,8 +160,8 @@
+ static void                 (*cl_com_ssl_func__SSL_set_bio)                         (SSL *s, BIO *rbio,BIO *wbio);
+ static int                  (*cl_com_ssl_func__SSL_accept)                          (SSL *ssl);
+ static void                 (*cl_com_ssl_func__SSL_CTX_free)                        (SSL_CTX *);
+-static SSL_CTX*             (*cl_com_ssl_func__SSL_CTX_new)                         (SSL_METHOD *meth);
+-static SSL_METHOD*          (*cl_com_ssl_func__SSLv23_method)                       (void);
++static SSL_CTX*             (*cl_com_ssl_func__SSL_CTX_new)                         (const SSL_METHOD *meth);
++static const SSL_METHOD*    (*cl_com_ssl_func__SSLv23_method)                       (void);
+ static int                  (*cl_com_ssl_func__SSL_CTX_use_certificate_chain_file)  (SSL_CTX *ctx, const char *file);
+ static int                  (*cl_com_ssl_func__SSL_CTX_use_certificate)             (SSL_CTX *ctx, X509 *cert);
+ static int                  (*cl_com_ssl_func__SSL_CTX_use_PrivateKey_file)         (SSL_CTX *ctx, const char *file, int type);
+@@ -235,16 +235,16 @@
+ static int                  (*cl_com_ssl_func__SSL_get_ex_data_X509_STORE_CTX_idx)  (void);
+ static void*                (*cl_com_ssl_func__SSL_CTX_get_ex_data)                 (SSL_CTX *ssl,int idx);
+ static int                  (*cl_com_ssl_func__SSL_CTX_set_ex_data)                 (SSL_CTX *ssl,int idx,void *data);
+-static int                  (*cl_com_ssl_func__sk_num)                              (const STACK *);
+-static char*                (*cl_com_ssl_func__sk_value)                            (const STACK *, int);
++static int                  (*cl_com_ssl_func__sk_num)                              (const _STACK *);
++static void*                (*cl_com_ssl_func__sk_value)                            (const _STACK *, int);
+ static int                  (*cl_com_ssl_func__X509_STORE_get_by_subject)           (X509_STORE_CTX *vs,int type,X509_NAME *name, X509_OBJECT *ret);
+ static void                 (*cl_com_ssl_func__EVP_PKEY_free)                       (EVP_PKEY *pkey);
+ static void                 (*cl_com_ssl_func__X509_STORE_CTX_set_error)            (X509_STORE_CTX *ctx,int s);
+ static void                 (*cl_com_ssl_func__X509_OBJECT_free_contents)           (X509_OBJECT *a);
+ static ASN1_INTEGER*        (*cl_com_ssl_func__X509_get_serialNumber)               (X509 *x);
+-static int                  (*cl_com_ssl_func__X509_cmp_current_time)               (ASN1_TIME *s);
+-static int                  (*cl_com_ssl_func__ASN1_INTEGER_cmp)                    (ASN1_INTEGER *x, ASN1_INTEGER *y);
+-static long                 (*cl_com_ssl_func__ASN1_INTEGER_get)                    (ASN1_INTEGER *a);
++static int                  (*cl_com_ssl_func__X509_cmp_current_time)               (const ASN1_TIME *s);
++static int                  (*cl_com_ssl_func__ASN1_INTEGER_cmp)                    (const ASN1_INTEGER *x, const ASN1_INTEGER *y);
++static long                 (*cl_com_ssl_func__ASN1_INTEGER_get)                    (const ASN1_INTEGER *a);
+ static int                  (*cl_com_ssl_func__X509_CRL_verify)                     (X509_CRL *a, EVP_PKEY *r);
+ static EVP_PKEY*            (*cl_com_ssl_func__X509_get_pubkey)                     (X509 *x);
+ static int                  (*cl_com_ssl_func__X509_STORE_set_default_paths)        (X509_STORE *ctx);
+@@ -1203,14 +1203,14 @@
+       }
+ 
+       func_name = "SSL_CTX_new";
+-      cl_com_ssl_func__SSL_CTX_new = (SSL_CTX* (*)(SSL_METHOD *meth))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__SSL_CTX_new = (SSL_CTX* (*)(const SSL_METHOD *meth))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__SSL_CTX_new == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
+       }
+ 
+       func_name = "SSLv23_method";
+-      cl_com_ssl_func__SSLv23_method = (SSL_METHOD* (*)(void))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__SSLv23_method = (const SSL_METHOD* (*)(void))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__SSLv23_method == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
+@@ -1700,14 +1700,14 @@
+       }
+ 
+       func_name = "sk_num";
+-      cl_com_ssl_func__sk_num = (int (*)(const STACK *))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__sk_num = (int (*)(const _STACK *))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__sk_num == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
+       }
+ 
+       func_name = "sk_value";
+-      cl_com_ssl_func__sk_value = (char* (*)(const STACK *, int))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__sk_value = (void* (*)(const _STACK *, int))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__sk_value == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
+@@ -1749,21 +1749,21 @@
+       }
+ 
+       func_name = "X509_cmp_current_time";
+-      cl_com_ssl_func__X509_cmp_current_time = (int (*)(ASN1_TIME *s))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__X509_cmp_current_time = (int (*)(const ASN1_TIME *s))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__X509_cmp_current_time == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
+       }
+ 
+       func_name = "ASN1_INTEGER_cmp";
+-      cl_com_ssl_func__ASN1_INTEGER_cmp = (int (*)(ASN1_INTEGER *x, ASN1_INTEGER *y))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__ASN1_INTEGER_cmp = (int (*)(const ASN1_INTEGER *x, const ASN1_INTEGER *y))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__ASN1_INTEGER_cmp == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
+       }
+ 
+       func_name = "ASN1_INTEGER_get";
+-      cl_com_ssl_func__ASN1_INTEGER_get = (long (*)(ASN1_INTEGER *a))dlsym(cl_com_ssl_crypto_handle, func_name);
++      cl_com_ssl_func__ASN1_INTEGER_get = (long (*)(const ASN1_INTEGER *a))dlsym(cl_com_ssl_crypto_handle, func_name);
+       if (cl_com_ssl_func__ASN1_INTEGER_get == NULL) {
+          CL_LOG_STR(CL_LOG_ERROR,"dlsym error: can't get function address:", func_name);
+          had_errors++;
--- gridengine-6.2u5.orig/debian/patches/020-manpages.diff
+++ gridengine-6.2u5/debian/patches/020-manpages.diff
@@ -0,0 +1,103 @@
+--- a/doc/man/man1/hostnameutils.1
++++ b/doc/man/man1/hostnameutils.1
+@@ -32,6 +32,7 @@
+ ..
+ .TH HOSTNAMEUTILS 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
+ .SH NAME
++sge_hostnameutils.1 \- SGE Host name utilities
+ .IP "gethostname   \-" 1i
+ get local hostname.
+ .IP "gethostbyname \-" 1i
+--- a/doc/man/man1/qrsub.1
++++ b/doc/man/man1/qrsub.1
+@@ -31,6 +31,7 @@
+ ..
+ .TH QRSUB 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
+ .SH NAME
++qrsub.1 \- Submit an Advance Reservation (AR) to xxQS_NAMExx.
+ .IP "qrsub   \-" 1i
+ Submit an Advance Reservation (AR) to xxQS_NAMExx.
+ .\"
+--- a/doc/man/man1/sge_ckpt.1
++++ b/doc/man/man1/sge_ckpt.1
+@@ -30,10 +30,10 @@
+ .de M		\" man page reference
+ \\fI\\$1\\$2\\fR\\|(\\$3)\\$4
+ ..
+-.TH xxQS_NAMExx_CKPT 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
++.TH xxQS_NAME_Sxx_CKPT 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
+ .\"
+ .SH NAME
+-xxQS_NAMExx Checkpointing \- the xxQS_NAMExx checkpointing mechanism and checkpointing
++sge_ckpt.1 \- the xxQS_NAMExx checkpointing mechanism and checkpointing
+ support
+ .\"
+ .SH DESCRIPTION
+--- a/doc/man/man1/sge_intro.1
++++ b/doc/man/man1/sge_intro.1
+@@ -33,7 +33,7 @@
+ .TH xxQS_NAME_Sxx_INTRO 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
+ .\"
+ .SH NAME
+-xxQS_NAMExx \- a facility for executing UNIX jobs on remote machines
++sge_intro.1 \- a facility for executing UNIX jobs on remote machines
+ .\"
+ .SH DESCRIPTION
+ .\"
+--- a/doc/man/man1/submit.1
++++ b/doc/man/man1/submit.1
+@@ -32,6 +32,7 @@
+ ..
+ .TH SUBMIT 1 "$Date$" "xxRELxx" "xxQS_NAMExx User Commands"
+ .SH NAME
++sge_submit.1 \- Job submission commands for SGE
+ .IP "qsub   \-" 1i
+ submit a batch job to xxQS_NAMExx.
+ .IP "qsh    \-" 1i
+--- a/doc/man/man3/drmaa_attributes.3
++++ b/doc/man/man3/drmaa_attributes.3
+@@ -460,7 +460,7 @@
+ .SS "drmaa_block_email - ""{0|1}"""
+ Specifies whether e-mail sending shall blocked or not.  By default email is not
+ sent.  If, however, a setting in a cluster or user settings file or the
+-'drmaa_native_specification' or 'drmaa_job_category' attribute enables sending
++\&'drmaa_native_specification' or 'drmaa_job_category' attribute enables sending
+ email in association with job events, the 'drmaa_block_email' attribute will
+ override that setting, causing no email to be sent.
+ .PP
+--- a/doc/man/man5/checkpoint.5
++++ b/doc/man/man5/checkpoint.5
+@@ -78,7 +78,7 @@
+ .SS "\fBckpt_name\fP"
+ The name of the checkpointing environment as defined for \fIckpt_name\fP in
+ .M sge_types 1 .
+-. To be used in the
++To be used in the
+ .M qsub 1
+ \fB\-ckpt\fP switch or for the
+ .M qconf 1
+--- a/doc/man/man5/sched_conf.5
++++ b/doc/man/man5/sched_conf.5
+@@ -345,8 +345,8 @@
+ , \fBstart_proc_args\fP in
+ .M sge_pe 5
+ and \fBstarter_method\fP in
+-.M queue_conf 5 
+-. The delays after job finish include delays due to a forced job termination 
++.M queue_conf 5
++\&. The delays after job finish include delays due to a forced job termination
+ (\fBnotify\fP, \fBterminate_method\fP or \fBcheckpointing\fP), procedures run 
+ after actual job 
+ finish, such as \fBstop_proc_args\fP in
+--- a/doc/man/man5/sge_resource_quota.5
++++ b/doc/man/man5/sge_resource_quota.5
+@@ -133,8 +133,7 @@
+ This parameter filters for jobs that may be scheduled in a host in the list or a
+ host contained in a hostgroup in the list. Any host not in the list will not be considered
+ for the resource quota rule. The default value is '*', which means any hosts. To
+-exclude a host or hostgroup from the rule, the name can be prefixed with the
+-'!' sign.
++exclude a host or hostgroup from the rule, the name can be prefixed with the '!' sign.
+ .IP "to"
+ This mandatory field defines the quota for resource attributes for this rule. The quota
+ is expressed by one or more limit definitions separated by commas. The
--- gridengine-6.2u5.orig/debian/patches/030-qmon-lesstif.diff
+++ gridengine-6.2u5/debian/patches/030-qmon-lesstif.diff
@@ -0,0 +1,128 @@
+--- a/source/3rdparty/qmon/Xmt310/Xmt/Layout.c
++++ b/source/3rdparty/qmon/Xmt310/Xmt/Layout.c
+@@ -492,6 +492,12 @@
+     if (!lw->layout.font)
+         XmeRenderTableGetDefaultFont(lw->layout.render_table,
+                                      &lw->layout.font);
++    /*
++     * The previous fails with lesstif, try again...
++     */
++    if (!lw->layout.font)
++        _XmFontListGetDefaultFont(lw->layout.font_list,
++                                     &lw->layout.font);
+ #endif
+     
+     /* figure out resolution independence values */
+--- a/source/3rdparty/qmon/Xmt310/Xmt/PixmapCvt.c
++++ b/source/3rdparty/qmon/Xmt310/Xmt/PixmapCvt.c
+@@ -72,13 +72,6 @@
+     XmRPrimForegroundPixmap,
+     XmRManForegroundPixmap,
+     XmRGadgetPixmap
+-#if XmVersion >= 2000
+-    ,
+-    XmRLargeIconPixmap ,
+-    XmRSmallIconPixmap,
+-    XmRDynamicPixmap
+-#endif
+-    
+ };
+ 
+ #if NeedFunctionPrototypes
+--- a/source/3rdparty/qmon/iconlist/IconList.c
++++ b/source/3rdparty/qmon/iconlist/IconList.c
+@@ -54,50 +54,6 @@
+ #undef NeedWidePrototypes
+ #endif
+ 
+-#ifndef SOLARIS
+-#if XmVersion >= 2000
+-extern void _XmResizeObject(
+-                        Widget g,
+-#ifdef NeedWidePrototypes
+-                        int width,
+-                        int height,
+-                        int border_width) ;
+-#else
+-                        Dimension width,
+-                        Dimension height,
+-                        Dimension border_width) ;
+-#endif /* NeedWidePrototypes */
+-extern void _XmMoveObject(
+-                        Widget g,
+-#ifdef NeedWidePrototypes
+-                        int x,
+-                        int y) ;
+-#else
+-                        Position x,
+-                        Position y) ;
+-#endif /* NeedWidePrototypes */
+-extern void _XmDrawHighlight(
+-                        Display *display,
+-                        Drawable d,
+-                        GC gc,
+-#ifdef NeedWidePrototypes
+-                        int x,
+-                        int y,
+-                        int width,
+-                        int height,
+-                        int highlight_thick,
+-#else
+-                        Position x,
+-                        Position y,
+-                        Dimension width,
+-                        Dimension height,
+-                        Dimension highlight_thick,
+-#endif /* NeedWidePrototypes */
+-                        int line_style) ;
+-
+-#endif
+-#endif
+-
+ #include "DumbClip.h"
+ #include "IconListP.h"
+ 
+--- a/source/3rdparty/qmon/ltree/Makefile.aimk
++++ b/source/3rdparty/qmon/ltree/Makefile.aimk
+@@ -18,7 +18,7 @@
+ 
+ XLTREE_OBJS = ListTree.o DND.o
+ 
+-XLTREELIB   = libXltree$(SHAREDEXT)
++XLTREELIB   = libXltree$(LIBEXT)
+ 
+ all: $(XLTREELIB)
+    
+--- a/source/clients/qmon/Makefile
++++ b/source/clients/qmon/Makefile
+@@ -45,7 +45,7 @@
+ XSPINLIB    = $(QMON_3RD)/libXspin$(LIBEXT)
+ XMTLIB      = $(QMON_3RD)/libXmt$(LIBEXT)
+ XICONLIB    = $(QMON_3RD)/libXicon$(LIBEXT)
+-XLTREELIB   = $(QMON_3RD)/libXltree$(SHAREDEXT)
++XLTREELIB   = $(QMON_3RD)/libXltree$(LIBEXT)
+ XTABLIB     = $(QMON_3RD)/libXtab$(LIBEXT)
+ 
+ include $(SDIR)/common/Makefile   
+--- a/source/clients/qmon/Q
++++ b/source/clients/qmon/Q
+@@ -305,7 +305,7 @@
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! remove comments for big toolbar icons and comment the following line
+ !! Qmon*pixmapFilePath:  %R/qmon/PIXMAPS/big/%N.xpm:%R/qmon/PIXMAPS/%N.xpm
+-Qmon*pixmapFilePath:   %R/qmon/PIXMAPS/%N.xpm
++Qmon*pixmapFilePath:   /usr/share/gridengine/pixmaps/%N.xpm
+ Qmon*contextHelpFile:  qmon_help
+ 
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+--- a/source/clients/qmon/qmon_init.c
++++ b/source/clients/qmon/qmon_init.c
+@@ -182,7 +182,7 @@
+                                  pixmapFilePath,
+                                  XmtSearchPathOnly );
+       if (!pixmap_file) {
+-         fprintf(stderr, "Can't load icon %s. Pixmaps should reside in $SGE_ROOT/qmon/PIXMAPS.\n",
++         fprintf(stderr, "Can't load icon %s. Pixmaps should reside in /usr/share/gridengine/pixmaps.\n",
+                icon_names[i]);
+          DEXIT;
+          qmonExitFunc(1);
--- gridengine-6.2u5.orig/debian/patches/030-qmon-memset.diff
+++ gridengine-6.2u5/debian/patches/030-qmon-memset.diff
@@ -0,0 +1,33 @@
+--- a/source/clients/qmon/qmon_cluster.c
++++ b/source/clients/qmon/qmon_cluster.c
+@@ -2336,7 +2336,7 @@
+ ) {
+    DENTER(GUI_LAYER, "qmonInitCClEntry");
+ 
+-   memset((void*)clen, sizeof(tCClEntry), 0);
++   memset((void*)clen, 0, sizeof(tCClEntry));
+ 
+    DEXIT; 
+ }
+--- a/source/clients/qmon/qmon_qaction.c
++++ b/source/clients/qmon/qmon_qaction.c
+@@ -1600,7 +1600,7 @@
+ ) {
+    DENTER(GUI_LAYER, "qmonInitQCEntry");
+ 
+-   memset((void*)data, sizeof(tQCEntry), 0);
++   memset((void*)data, 0, sizeof(tQCEntry));
+ 
+    DEXIT;
+ 
+--- a/source/daemons/common/admin_mail.c
++++ b/source/daemons/common/admin_mail.c
+@@ -134,7 +134,7 @@
+ 
+    DPRINTF(("sizeof(admail_times) : %d\n", sizeof(admail_times)));
+    if (first) {
+-      memset(admail_times, sizeof(admail_times), 0);
++      memset(admail_times, 0, sizeof(admail_times));
+       first = 0;
+    }
+ 
--- gridengine-6.2u5.orig/debian/patches/040-pidfile-handling.diff
+++ gridengine-6.2u5/debian/patches/040-pidfile-handling.diff
@@ -0,0 +1,110 @@
+--- a/source/daemons/execd/execd.c
++++ b/source/daemons/execd/execd.c
+@@ -33,6 +33,7 @@
+ #include <sys/stat.h>
+ #include <errno.h>
+ #include <stdlib.h>
++#include <unistd.h>
+ 
+ #include "sge_unistd.h"
+ #include "sge.h"
+@@ -159,6 +160,7 @@
+    lList **master_job_list = NULL;
+    sge_gdi_ctx_class_t *ctx = NULL;
+    lList *alp = NULL;
++   const char *pidfile = NULL;
+ 
+    DENTER_MAIN(TOP_LAYER, "execd");
+ 
+@@ -170,6 +172,10 @@
+ 
+    set_thread_name(pthread_self(),"Execd Thread");
+ 
++   pidfile = getenv("SGE_EXECD_PIDFILE");
++   if (!pidfile)
++       pidfile = EXECD_PID_FILE;
++
+    prof_set_level_name(SGE_PROF_CUSTOM1, "Execd Thread", NULL); 
+    prof_set_level_name(SGE_PROF_CUSTOM2, "Execd Dispatch", NULL); 
+ 
+@@ -326,7 +332,7 @@
+     * We write pid file when we are connected to qmaster. Otherwise an old
+     * execd might overwrite our pidfile.
+     */
+-   sge_write_pid(EXECD_PID_FILE);
++   sge_write_pid(pidfile);
+ 
+    /*
+     * At this point we are sure we are the only sge_execd and we are connected
+@@ -406,8 +412,10 @@
+       }
+    }
+    sge_prof_cleanup();
+-
+    sge_shutdown((void**)&ctx, execd_exit_state);
++
++   unlink(pidfile);
++
+    DRETURN(execd_exit_state);
+ }
+ 
+--- a/source/daemons/qmaster/sge_qmaster_main.c
++++ b/source/daemons/qmaster/sge_qmaster_main.c
+@@ -444,6 +444,13 @@
+    sge_prof_cleanup();
+ 
+    DEXIT;
++
++   const char *pidfile;
++   int ret;
++   if ((pidfile = getenv("SGE_MASTER_PIDFILE")) != NULL) {
++       ret = unlink(pidfile);
++   }
++
+    return 0;
+ } /* main() */
+ 
+--- a/source/daemons/qmaster/sge_qmaster_threads.c
++++ b/source/daemons/qmaster/sge_qmaster_threads.c
+@@ -32,6 +32,8 @@
+ 
+ #include "sge_thread_jvm.h"
+ 
++#include <stdlib.h>
++#include <stdio.h>
+ #include <signal.h>
+ #include <pthread.h>
+ #include <string.h>
+@@ -215,6 +217,15 @@
+       SGE_EXIT(NULL, 0);
+    }
+ 
++   const char *pidfile;
++   FILE *fd;
++   if ((pidfile = getenv("SGE_MASTER_PIDFILE")) != NULL) {
++      if ((fd = fopen(pidfile, "w")) != NULL) {
++          fprintf(fd, "%d\n", (int)getpid());
++          fclose(fd);
++      }
++   }
++
+    DEXIT;
+    return true;
+ } /* sge_daemonize_qmaster() */
+--- a/source/common/sge.h
++++ b/source/common/sge.h
+@@ -167,10 +167,10 @@
+ #define QMASTER_DIR              "qmaster"
+ #define QSI_DIR                  "qsi"
+ 
+-#define QMASTER_PID_FILE          "qmaster.pid"
+-#define EXECD_PID_FILE            "execd.pid"
+-#define SCHEDD_PID_FILE           "schedd.pid"
+-#define SHADOWD_PID_FILE          "shadowd_%s.pid"
++#define QMASTER_PID_FILE          "/var/run/gridengine/qmaster.pid"
++#define EXECD_PID_FILE            "/var/run/gridengine/execd.pid"
++#define SCHEDD_PID_FILE           "/var/run/gridengine/schedd.pid"
++#define SHADOWD_PID_FILE          "/var/run/gridengine/shadowd_%s.pid"
+ 
+ #define DEFAULT_ACCOUNT           "sge"
+ #define DEFAULT_CELL              "default"
--- gridengine-6.2u5.orig/debian/patches/050-debian-editor.diff
+++ gridengine-6.2u5/debian/patches/050-debian-editor.diff
@@ -0,0 +1,11 @@
+--- a/source/common/sge.h
++++ b/source/common/sge.h
+@@ -35,7 +35,7 @@
+ #ifdef WIN32
+ #   define DEFAULT_EDITOR     "notepad.exe"
+ #else
+-#   define DEFAULT_EDITOR     "vi"
++#   define DEFAULT_EDITOR     "sensible-editor"
+ #endif
+ 
+ #define MAX_SEQNUM        9999999
--- gridengine-6.2u5.orig/debian/patches/060-buildsetup.diff
+++ gridengine-6.2u5/debian/patches/060-buildsetup.diff
@@ -0,0 +1,142 @@
+Index: gridengine-6.2u5/source/aimk.private
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gridengine-6.2u5/source/aimk.private	2012-01-10 16:01:44.000000000 -0500
+@@ -0,0 +1,15 @@
++# set default arguments for aimk
++set argv = ( -no-gui-inst -no-dump -debug $* )
++
++set OPENSSL_HOME = /usr
++set POSTGRES_HOME = /usr
++set BERKELEYDB_HOME = /usr
++set KRB_HOME = /usr
++set INSURE4_LIBDIR = /usr/lib
++set MAN2HTMLPATH = /usr/bin
++set GROFFPATH = /usr/bin
++set SWIG = /usr/bin/swig
++set PERL = /usr/bin/perl
++set JAVA_HOME = /usr/lib/jvm/default-java
++set JUNIT_JAR = '/usr/share/java/junit.jar'
++
+Index: gridengine-6.2u5/source/distinst.private
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ gridengine-6.2u5/source/distinst.private	2012-01-10 15:55:45.000000000 -0500
+@@ -0,0 +1,20 @@
++DEFAULTPROG="sge_qmaster sge_execd sge_shadowd \
++             sge_shepherd sge_coshepherd qstat qsub qalter qconf qdel \
++             qacct qmod qsh utilbin jobs qmon qhost qping \
++             qloadsensor.exe sgepasswd qquota qrsub qrstat qrdel"
++# qmake qtcsh
++
++REMOTEBINARIES=""
++# rsh rshd rlogin
++
++JOBBINARIES=""
++# work
++
++QMON_NEED_SHARED_LIBRARIES=""
++
++instopenssl=false
++instqmon=true
++instcommon=true
++instsharedlibs=true
++instdrmaa=true
++instguiinst=false
+Index: gridengine-6.2u5/source/scripts/distinst
+===================================================================
+--- gridengine-6.2u5.orig/source/scripts/distinst	2012-01-10 15:55:40.000000000 -0500
++++ gridengine-6.2u5/source/scripts/distinst	2012-01-10 15:55:45.000000000 -0500
+@@ -1094,8 +1094,8 @@
+ 
+    if [ $instman = true ]; then
+       echo Installing \"man/\" and \"catman/\"
+-      Execute rm -rf $DEST_SGE_ROOT/man $DEST_SGE_ROOT/catman
+-      Execute cp -r MANSBUILD_$MANSRCDIR/SEDMAN/man $DEST_SGE_ROOT
++      Execute rm -rf $DEST_SGE_ROOT/share/man $DEST_SGE_ROOT/catman
++      Execute cp -r MANSBUILD_$MANSRCDIR/SEDMAN/man $DEST_SGE_ROOT/share/man
+ 
+       if [ -d MANSBUILD_$MANSRCDIR/ASCMAN/catman ]; then
+          Execute mkdir -p $DEST_SGE_ROOT/catman
+@@ -1116,13 +1116,13 @@
+          done
+       fi
+ 
+-      Execute find $DEST_SGE_ROOT/man -type d | xargs chmod 755
+-      Execute find $DEST_SGE_ROOT/man -type f | xargs chmod 644
++      Execute find $DEST_SGE_ROOT/share/man -type d | xargs chmod 755
++      Execute find $DEST_SGE_ROOT/share/man -type f | xargs chmod 644
+ 
+       Execute find $DEST_SGE_ROOT/catman -type d | xargs chmod 755
+       Execute find $DEST_SGE_ROOT/catman -type f | xargs chmod 644
+       
+-      Cleanup man catman
++      Cleanup share/man catman
+    fi
+ 
+    if [ $instdoc = true ]; then
+@@ -1272,7 +1272,7 @@
+ fi
+ 
+ for i in $ARCH; do
+-   DSTARCH=$i
++   DSTARCH=''
+    SetArchBin $i
+ 
+    if [ $ARCHBIN != undefined ]; then
+@@ -1569,7 +1569,7 @@
+             done
+          fi
+ 
+-         if [ $DSTARCH != win32-x86 ]; then
++         if [ "$DSTARCH" != win32-x86 ]; then
+             if [ $instbdb = true ]; then
+                for lib in $BERKELEYDB_SHARED_LIBRARIES; do
+                   libname="$lib.$shlibext"
+Index: gridengine-6.2u5/source/aimk
+===================================================================
+--- gridengine-6.2u5.orig/source/aimk	2012-01-10 15:55:44.000000000 -0500
++++ gridengine-6.2u5/source/aimk	2012-01-10 16:00:53.000000000 -0500
+@@ -355,7 +355,7 @@
+ set SEC               = 1
+ set SECFLAGS          = "-DSECURE -I$OPENSSL_HOME/include"
+ set SECLIB            = ""
+-set SECLIBS_STATIC    = "$OPENSSL_HOME/lib/libssl.a $OPENSSL_HOME/lib/libcrypto.a"
++set SECLIBS_STATIC    = "-lssl -lcrypto"
+ set KLFLAGS           = "-L$OPENSSL_HOME/lib"
+ 
+ set CORELIB           = ""
+@@ -1520,7 +1520,7 @@
+    set JAVA_ARCH = "linux"
+ 
+    # due to -rpath relative_path the LD_LIBRARY_PATH not needed anymore
+-   set RUNPATH       = -Wl,-rpath,'\$$ORIGIN'/../../lib/$buildarch
++   set RUNPATH       = ""
+    set LFLAGS        = "$LFLAGS $RUNPATH"
+    set SHARED_LFLAGS = "$SHARED_LFLAGS $RUNPATH"
+ 
+Index: gridengine-6.2u5/source/build.properties
+===================================================================
+--- gridengine-6.2u5.orig/source/build.properties	2012-01-10 15:55:40.000000000 -0500
++++ gridengine-6.2u5/source/build.properties	2012-01-10 15:55:45.000000000 -0500
+@@ -97,17 +97,17 @@
+ #rmiproxy.port=54321
+ #rmiproxy.name=jgdi
+ 
+-jgdi_libs.dir=/vol2/tools/SW/java
++jgdi_libs.dir=/usr/share/java
+ 
+ # needed for libs/jgdi/cullconv (mandatory)
+ # https://javacc.dev.java.net
+-javacc.home=${jgdi_libs.dir}/javacc-4.0
++javacc.home=/usr/share/java
+ 
+ # needed for Todo.html generation (optional)
+ tododoclet.jar=${jgdi_libs.dir}/tododoclet/TodoDoclet.jar
+ 
+ # junit jar file classpath
+-libs.junit.classpath=/vol2/tools/SW/java/junit3.8.1/junit.jar
++libs.junit.classpath=/usr/share/java/junit.jar
+ 
+ juti.jar=${sge.srcdir}/CLASSES/juti/juti.jar
+ jgdi.jar=${sge.srcdir}/lib/jgdi/build/jgdi.jar
--- gridengine-6.2u5.orig/debian/patches/060-dynamic-spooling-path.diff
+++ gridengine-6.2u5/debian/patches/060-dynamic-spooling-path.diff
@@ -0,0 +1,11 @@
+--- a/source/libs/spool/dynamic/sge_spooling_dynamic.c
++++ b/source/libs/spool/dynamic/sge_spooling_dynamic.c
+@@ -85,7 +85,7 @@
+    /* build the full name of the shared lib - append architecture dependent
+     * shlib postfix 
+     */
+-   shlib_fullname = sge_dstring_sprintf(&shlib_dstring, "%s.%s", shlib_name, 
++   shlib_fullname = sge_dstring_sprintf(&shlib_dstring, "/usr/lib/gridengine/%s.%s", shlib_name,
+ #if defined(HP11) || defined(HP1164)
+                                         "sl"
+ #elif defined(DARWIN)
--- gridengine-6.2u5.orig/debian/patches/070-getline.diff
+++ gridengine-6.2u5/debian/patches/070-getline.diff
@@ -0,0 +1,51 @@
+--- a/source/3rdparty/sge_depend/def.h
++++ b/source/3rdparty/sge_depend/def.h
+@@ -136,7 +136,7 @@
+ #if NeedFunctionPrototypes
+ char *copy( char *str);
+ char *base_name(char *file, int strip);
+-char *getline(struct filepointer *filep);
++char *sge_getline(struct filepointer *filep);
+ struct filepointer *getfile(char *file);
+ struct inclist *newinclude(char *newfile, char *incstring);
+ struct inclist *inc_path(char	*file, char *include, boolean	dot);
+@@ -155,7 +155,7 @@
+ #else
+ char *copy();
+ char *base_name();
+-char *getline();
++char *sge_getline();
+ struct filepointer *getfile();
+ struct inclist *newinclude();
+ struct inclist *inc_path();
+--- a/source/3rdparty/sge_depend/main.c
++++ b/source/3rdparty/sge_depend/main.c
+@@ -510,7 +510,7 @@
+  * Get the next line.  We only return lines beginning with '#' since that
+  * is all this program is ever interested in.
+  */
+-char *getline(filep)
++char *sge_getline(filep)
+    register struct filepointer   *filep;
+ {
+    register char   *p,   /* walking pointer */
+--- a/source/3rdparty/sge_depend/parse.c
++++ b/source/3rdparty/sge_depend/parse.c
+@@ -80,7 +80,7 @@
+    register char   *line;
+    register int   type;
+ 
+-   while ((line = getline(filep))) {
++   while ((line = sge_getline(filep))) {
+       switch(type = deftype(line, filep, file_red, file, FALSE)) {
+       case IF:
+       case IFFALSE:
+@@ -571,7 +571,7 @@
+    register int   type;
+    boolean recfailOK;
+ 
+-   while ((line = getline(filep))) {
++   while ((line = sge_getline(filep))) {
+       switch(type = deftype(line, filep, file_red, file, TRUE)) {
+       case IF:
+       doif:
--- gridengine-6.2u5.orig/debian/patches/080-arch_hppa.diff
+++ gridengine-6.2u5/debian/patches/080-arch_hppa.diff
@@ -0,0 +1,56 @@
+--- a/source/aimk
++++ b/source/aimk
+@@ -1380,6 +1380,7 @@
+ case LINUXIA64:
+ case LINUXMIPS:
+ case LINUXMIPS64:
++case LINUXPARISC:
+ case LINUXPPC:
+ case LINUXPPC64:
+ case LINUXSPARC:
+@@ -2120,7 +2121,7 @@
+       set LFLAGS = "-L $MYILIB"
+       echo "Using $MYILIB path for i18n support"
+    else
+-      if ( $BUILDARCH == "SOLARIS" || $BUILDARCH == "SOLARIS64" || $BUILDARCH == "SOLARIS86" || $BUILDARCH == "SOLARISAMD64" || $BUILDARCH == "LINUX86" || $BUILDARCH == LINUXIA64 || $BUILDARCH == LINUXAMD64 || $BUILDARCH == "LINUXPPC" || $BUILDARCH == "LINUXPPC64" || $BUILDARCH == "LINUXMIPS" || $BUILDARCH == "LINUXMIPS64" || $BUILDARCH == "LINUXSPARC" || $BUILDARCH == "LINUXSPARC64" ) then
++      if ( $BUILDARCH == "SOLARIS" || $BUILDARCH == "SOLARIS64" || $BUILDARCH == "SOLARIS86" || $BUILDARCH == "SOLARISAMD64" || $BUILDARCH == "LINUX86" || $BUILDARCH == LINUXIA64 || $BUILDARCH == LINUXAMD64 || $BUILDARCH == "LINUXPPC" || $BUILDARCH == "LINUXPPC64" || $BUILDARCH == "LINUXMIPS" || $BUILDARCH == "LINUXMIPS64" || $BUILDARCH == "LINUXSPARC" || $BUILDARCH == "LINUXSPARC64" || $BUILDARCH == "LINUXPARISC" ) then
+          set LIBINTL = ""
+          set HFLAGS = ""
+       else
+--- a/source/daemons/shepherd/builtin_starter.c
++++ b/source/daemons/shepherd/builtin_starter.c
+@@ -1992,7 +1992,7 @@
+    }
+ 
+ 
+-#if defined(LINUX86) || defined(LINUXAMD64) || defined(LINUXIA64) || defined(LINUXPPC) || defined (LINUXSPARC) || defined(LINUXSPARC64) || defined(ALINUX) || defined(DARWIN_PPC) || defined(DARWIN_X86)
++#if defined(LINUX86) || defined(LINUXAMD64) || defined(LINUXIA64) || defined(LINUXPPC) || defined (LINUXSPARC) || defined(LINUXSPARC64) || defined(ALINUX) || defined(DARWIN_PPC) || defined(DARWIN_X86) || defined(LINUXPARISC)
+    my_env[i++] = strcat(path, "/bin:/usr/bin");
+ #else
+    my_env[i++] = strcat(path, "/usr/bin");
+--- a/source/scripts/compilearch
++++ b/source/scripts/compilearch
+@@ -214,6 +214,11 @@
+       COMPILE_ARCH=LINUXIA64_26
+       TARGET_BITS=TARGET_64BIT
+       ;;
++   lx26-parisc)
++      BUILDARCH=LINUXPARISC
++      COMPILE_ARCH=LINUXPARISC_26
++      TARGET_BITS=TARGET_32BIT
++      ;;
+    lx24-sparc)
+       BUILDARCH=LINUXSPARC
+       COMPILE_ARCH=LINUXSPARC_24
+--- a/source/dist/util/arch
++++ b/source/dist/util/arch
+@@ -194,6 +194,9 @@
+    x86_64)
+       lxmachine=amd64
+       ;;
++   parisc)
++      lxmachine=parisc
++      ;;
+    ia64)
+       lxmachine=ia64
+       ;;
--- gridengine-6.2u5.orig/debian/patches/080-arch_s390.diff
+++ gridengine-6.2u5/debian/patches/080-arch_s390.diff
@@ -0,0 +1,56 @@
+--- a/source/aimk
++++ b/source/aimk
+@@ -1385,6 +1385,7 @@
+ case LINUXPPC64:
+ case LINUXSPARC:
+ case LINUXSPARC64:
++case LINUXS390:
+    set MAKEWINGRIDLIB   = 0
+    set MAKEWINGRIDAPP   = 0
+    set AUTHLIBS = "-lcrypt -lpam"
+@@ -2121,7 +2122,7 @@
+       set LFLAGS = "-L $MYILIB"
+       echo "Using $MYILIB path for i18n support"
+    else
+-      if ( $BUILDARCH == "SOLARIS" || $BUILDARCH == "SOLARIS64" || $BUILDARCH == "SOLARIS86" || $BUILDARCH == "SOLARISAMD64" || $BUILDARCH == "LINUX86" || $BUILDARCH == LINUXIA64 || $BUILDARCH == LINUXAMD64 || $BUILDARCH == "LINUXPPC" || $BUILDARCH == "LINUXPPC64" || $BUILDARCH == "LINUXMIPS" || $BUILDARCH == "LINUXMIPS64" || $BUILDARCH == "LINUXSPARC" || $BUILDARCH == "LINUXSPARC64" || $BUILDARCH == "LINUXPARISC" ) then
++      if ( $BUILDARCH == "SOLARIS" || $BUILDARCH == "SOLARIS64" || $BUILDARCH == "SOLARIS86" || $BUILDARCH == "SOLARISAMD64" || $BUILDARCH == "LINUX86" || $BUILDARCH == LINUXIA64 || $BUILDARCH == LINUXAMD64 || $BUILDARCH == "LINUXPPC" || $BUILDARCH == "LINUXPPC64" || $BUILDARCH == "LINUXMIPS" || $BUILDARCH == "LINUXMIPS64" || $BUILDARCH == "LINUXSPARC" || $BUILDARCH == "LINUXSPARC64" || $BUILDARCH == "LINUXPARISC" || $BUILDARCH == "LINUXS390" ) then
+          set LIBINTL = ""
+          set HFLAGS = ""
+       else
+--- a/source/daemons/shepherd/builtin_starter.c
++++ b/source/daemons/shepherd/builtin_starter.c
+@@ -1992,7 +1992,7 @@
+    }
+ 
+ 
+-#if defined(LINUX86) || defined(LINUXAMD64) || defined(LINUXIA64) || defined(LINUXPPC) || defined (LINUXSPARC) || defined(LINUXSPARC64) || defined(ALINUX) || defined(DARWIN_PPC) || defined(DARWIN_X86) || defined(LINUXPARISC)
++#if defined(LINUX86) || defined(LINUXAMD64) || defined(LINUXIA64) || defined(LINUXPPC) || defined (LINUXSPARC) || defined(LINUXSPARC64) || defined(ALINUX) || defined(DARWIN_PPC) || defined(DARWIN_X86) || defined(LINUXPARISC) || defined(LINUXS390)
+    my_env[i++] = strcat(path, "/bin:/usr/bin");
+ #else
+    my_env[i++] = strcat(path, "/usr/bin");
+--- a/source/dist/util/arch
++++ b/source/dist/util/arch
+@@ -212,6 +212,9 @@
+    mips64)
+       lxmachine=mips64
+       ;;
++   s390)
++      lxmachine=s390
++      ;;
+    *)
+       unsupported="UNSUPPORTED-"
+       lxmachine=$osmachine
+--- a/source/scripts/compilearch
++++ b/source/scripts/compilearch
+@@ -239,6 +239,11 @@
+       COMPILE_ARCH=LINUXSPARC64_26
+       TARGET_BITS=TARGET_64BIT
+       ;;
++   lx26-s390)
++      BUILDARCH=LINUXS390
++      COMPILE_ARCH=LINUXS390_26
++      TARGET_BITS=TARGET_32BIT
++      ;;
+    lx24-x86)
+       BUILDARCH=LINUX86
+       COMPILE_ARCH=LINUX86_24
--- gridengine-6.2u5.orig/debian/patches/080-arch_sparc.diff
+++ gridengine-6.2u5/debian/patches/080-arch_sparc.diff
@@ -0,0 +1,15 @@
+--- a/source/aimk
++++ b/source/aimk
+@@ -1392,11 +1392,7 @@
+ 
+    set CFLAGS = "$CFLAGS"
+ 
+-   if ( $BUILDARCH == LINUXSPARC ) then
+-      set COMPILE_DC = 0
+-   else
+-      set COMPILE_DC = 1
+-   endif
++   set COMPILE_DC = 1
+ 
+    # Optimization on LINUXIA64 is broken, qmon dumps
+    if ($OPTIMIZATION == 1 && $BUILDARCH != LINUXIA64) then
--- gridengine-6.2u5.orig/debian/patches/090-CVE-2012-0208.diff
+++ gridengine-6.2u5/debian/patches/090-CVE-2012-0208.diff
@@ -0,0 +1,471 @@
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/3rdparty/remote/Makefile gridengine-debian/source/3rdparty/remote/Makefile
+--- gridengine-debian-orig/source/3rdparty/remote/Makefile	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/3rdparty/remote/Makefile	2012-02-07 09:50:55.000000000 +0000
+@@ -26,7 +26,7 @@
+             $(SGE_ARCH_DIR)/sge_parse_num_par.o
+ 
+ 
+-RSHD_ADD_LIBS = -L$(SGE_ARCH_DIR) -luti $(WINGRIDLIB) -lcommlists -llck -lrmon
++RSHD_ADD_LIBS = -L$(SGE_ARCH_DIR) -luti -luti2 $(WINGRIDLIB) -lcommlists -llck -lrmon
+ 
+ RSHD_LIB_DEPENDS = $(SGE_ARCH_DIR)/libuti$(LIBEXT) $(SGE_ARCH_DIR)/liblck$(LIBEXT) $(SGE_ARCH_DIR)/librmon$(LIBEXT) $(SGE_ARCH_DIR)/$(WINGRIDLIB_DEP)
+ 
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/daemons/common/qlogin_starter.c gridengine-debian/source/daemons/common/qlogin_starter.c
+--- gridengine-debian-orig/source/daemons/common/qlogin_starter.c	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/daemons/common/qlogin_starter.c	2012-02-07 09:50:06.000000000 +0000
+@@ -50,6 +50,7 @@
+ 
+ #include "uti/sge_stdio.h"
+ #include "uti/sge_uidgid.h"
++#include "uti2/sge_execvlp.h"
+ 
+ #include "basis_types.h"
+ #include "sge_prog.h"
+@@ -390,7 +391,7 @@
+ /****** shepherd/qrsh/qlogin_starter() ****************************************
+ *
+ *  NAME
+-*     qlogin_starter -- short description
++*     qlogin_starter -- start protocol daemon like rshd
+ *
+ *  SYNOPSIS
+ *     #include "qlogin_starter.h"
+@@ -408,7 +409,7 @@
+ *        - the daemon process is started
+ *     Additionally to the inetd mechanism, the port number and some 
+ *     other information is sent to the qrsh process that initiated
+-*     (over qmaster, schedd, execd, shepherd) the qlogin_starter call.
++*     (over qmaster, execd, shepherd) the qlogin_starter call.
+ *
+ *  INPUTS
+ *     cwd    - the current working directory (the active_jobs directory)
+@@ -606,7 +607,11 @@
+    }
+ #endif
+ 
+-   /* that it. */
++   /* Sanitize the environment to remove user-set variables which can
++      affect what's executed via dynamic linking.  */
++   sanitize_environment(env);
++
++   /* that's it. */
+    execve(args[0], args, env);
+ 
+    /* oh oh, exec failed */
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/daemons/shepherd/builtin_starter.c gridengine-debian/source/daemons/shepherd/builtin_starter.c
+--- gridengine-debian-orig/source/daemons/shepherd/builtin_starter.c	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/daemons/shepherd/builtin_starter.c	2012-02-07 09:50:06.000000000 +0000
+@@ -46,6 +46,7 @@
+ #include "uti/sge_signal.h"
+ #include "uti/sge_unistd.h"
+ #include "uti/sge_arch.h"
++#include "uti2/sge_execvlp.h"
+ #include "setosjobid.h"
+ #include "sge_fileio.h"
+ 
+@@ -1531,7 +1532,7 @@
+ 
+       /* build trace string */
+       pc = err_str;
+-      sprintf(pc, "execvp(%s,", filename);
++      sprintf(pc, "execvlp(%s,", filename);
+       pc += strlen(pc);
+       for (pstr = args; pstr && *pstr; pstr++) {
+       
+@@ -1640,19 +1641,14 @@
+ #if defined(INTERIX)
+          shepherd_trace("not a GUI job, starting directly");
+ #endif
++         /* Sanitize the environment in case we're executing prolog
++            etc. as as different user.  */
+          if (!inherit_env()) {
+-            /* The closest thing to execvp that takes an environment pointer is
+-             * execve.  The problem is that execve does not resolve the path.
+-             * As there is no reasonable way to resolve the path ourselves, we
+-             * have to resort to this ugly hack.  Don't try this at home. */
+-            char **tmp = environ;
+-
+-            environ = sge_get_environment();
+-            execvp(filename, args);
+-            environ = tmp;
++            sge_execvlp(filename, args,
++                        sge_copy_sanitize_env(sge_get_environment()));
+          }
+          else {
+-            execvp(filename, args);
++            sge_execvlp(filename, args, sge_copy_sanitize_env(environ));
+          }
+ 
+          /* Aaaah - execvp() failed */
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/daemons/shepherd/Makefile gridengine-debian/source/daemons/shepherd/Makefile
+--- gridengine-debian-orig/source/daemons/shepherd/Makefile	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/daemons/shepherd/Makefile	2012-02-07 09:50:18.000000000 +0000
+@@ -64,7 +64,7 @@
+ 
+ SHEPHERD_ADD_OBJS = $(SHEPHERD_ADD_SRC:.c=.o) 
+ 
+-SHEPHERD_ADD_LIBS = -lgdi -lsgeobj -lsgeobjd $(KRBLIB) -lcull -lcomm_static -lcommlists -luti $(WINGRIDLIB_STATIC) -llck -lrmon $(DLLIB)
++SHEPHERD_ADD_LIBS = -lgdi -lsgeobj -lsgeobjd $(KRBLIB) -lcull -lcomm_static -lcommlists -luti -luti2 $(WINGRIDLIB_STATIC) -llck -lrmon $(DLLIB)
+ 
+ SHEPHERD_LIB_DEPENDS = $(GDILIB) $(SGEOBJDLIB) $(SGEOBJLIB) $(KRBLIBS) $(CULLLIB) $(COMMLIB) $(COMMLISTSLIB) $(COMMLIB_STATIC) $(UTILIB) $(WINGRIDLIB_DEP) $(LCKLIB) $(RMONLIB)
+ 
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/libs/Makefile gridengine-debian/source/libs/Makefile
+--- gridengine-debian-orig/source/libs/Makefile	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/libs/Makefile	2012-02-07 09:52:56.000000000 +0000
+@@ -48,6 +48,7 @@
+ include $(SDIR)/libs/japi/Makefile
+ include $(SDIR)/libs/juti/Makefile
+ include $(SDIR)/libs/jgdi/Makefile
++include $(SDIR)/libs/uti2/Makefile
+ 
+ ###############################################################################
+ # Variable definitions for targets to build
+@@ -57,16 +58,16 @@
+ ###############################################################################
+ # global rules: all, clean, depend, messages
+ ###############################################################################
+-libs: sgeobjlib gdilib evclib evmlib mirlib spoollib culllib_all rmonlib schedlib_all utilib lcklib drmaa_all comm_all $(JUTI_ALL) $(SGELIB)
++libs: sgeobjlib gdilib evclib evmlib mirlib spoollib culllib_all rmonlib schedlib_all utilib lcklib drmaa_all comm_all $(JUTI_ALL) $(SGELIB) uti2lib
+ 
+-libs_clean: gdilib_clean sgeobjlib_clean evclib_clean evmlib_clean mirlib_clean spoollib_clean commlib_clean commlistslib_clean culllib_clean rmonlib_clean schedlib_clean utilib_clean lcklib_clean drmaa_clean $(JUTI_CLEAN) $(SGELIB)_clean
++libs_clean: gdilib_clean sgeobjlib_clean evclib_clean evmlib_clean mirlib_clean spoollib_clean commlib_clean commlistslib_clean culllib_clean rmonlib_clean schedlib_clean utilib_clean lcklib_clean drmaa_clean $(JUTI_CLEAN) $(SGELIB)_clean uti2lib_clean
+ 
+ $(SGELIB)_clean: 
+ 	$(RM) libsge.a libsge$(SHAREDEXT)
+ 
+-libs_depend: gdilib_depend sgeobjlib_depend evclib_depend evmlib_depend mirlib_depend spoollib_depend culllib_depend rmonlib_depend schedlib_depend utilib_depend lcklib_depend drmaa_depend commlib_depend commlistslib_depend $(JUTI_DEPEND)
++libs_depend: gdilib_depend sgeobjlib_depend evclib_depend evmlib_depend mirlib_depend spoollib_depend culllib_depend rmonlib_depend schedlib_depend utilib_depend lcklib_depend drmaa_depend commlib_depend commlistslib_depend $(JUTI_DEPEND) uti2lib_depend
+ 
+-libs_messages: gdilib_messages sgeobjlib_messages evclib_messages evmlib_messages mirlib_messages spoollib_messages commlib_messages cull_messages schedlib_messages utilib_messages rmonlib_messages lcklib_messages drmaa_messages $(JUTI_MESSAGES)
++libs_messages: gdilib_messages sgeobjlib_messages evclib_messages evmlib_messages mirlib_messages spoollib_messages commlib_messages cull_messages schedlib_messages utilib_messages rmonlib_messages lcklib_messages drmaa_messages $(JUTI_MESSAGES) uti2lib_messages
+ 
+ 
+ ###############################################################################
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/libs/sgeobj/sge_var.c gridengine-debian/source/libs/sgeobj/sge_var.c
+--- gridengine-debian-orig/source/libs/sgeobj/sge_var.c	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/libs/sgeobj/sge_var.c	2012-02-07 09:50:06.000000000 +0000
+@@ -112,6 +112,7 @@
+ #elif defined(HP11)
+    return "SHLIB_PATH";
+ #elif defined(ALPHA) || defined(IRIX) || defined(LINUX) || defined(SOLARIS) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) || defined(INTERIX) || defined(HP1164)
++   /* Fixme:  LD_LIBRARY_PATH_64 etc.?  */
+    return "LD_LIBRARY_PATH";
+ #elif defined(DARWIN)
+    return "DYLD_LIBRARY_PATH";
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/libs/uti2/Makefile gridengine-debian/source/libs/uti2/Makefile
+--- gridengine-debian-orig/source/libs/uti2/Makefile	1970-01-01 01:00:00.000000000 +0100
++++ gridengine-debian/source/libs/uti2/Makefile	2012-02-07 09:50:06.000000000 +0000
+@@ -0,0 +1,50 @@
++# Copyright Dave Love,  2011
++
++# Copyright (C) 2011 Dave Love, University of Liverpool <d.love@liv.ac.uk>
++#
++# This file is free software: you can redistribute it and/or
++# modify it under the terms of the GNU Lesser General Public License
++# as published by the Free Software Foundation; either version 3 of
++# the License, or (at your option) any later version.
++#
++# This file is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU Lesser General Public
++# License along with this file.  If not, a copy can be downloaded
++# from http://www.gnu.org/licenses/lgpl.html.
++
++UTI2LIB_DIR  = $(SDIR)/libs/uti2
++
++UTI2LIB  = libuti2$(LIBEXT)
++
++UTI2LIB_SRC = sge_execvlp.c
++UTI2LIB_OBJS = $(UTI2LIB_SRC:.c=.o)
++
++uti2lib: $(UTI2LIB)
++
++uti2lib_clean: 
++	$(RM) $(UTI2LIB_OBJS) libuti2.a libuti2$(SHAREDEXT)
++
++uti2lib_depend:
++	$(DEPEND) -f$(UTI2LIB_DIR)/uti2_dependencies $(UTI2LIB_DIR)/*.c
++
++uti2lib_messages:
++	@echo Creating $@
++	@for i in `ls $(UTI2LIB_DIR)/*.c`; do \
++	   $(CC) $(CFLAGS) -DEXTRACT_MESSAGES -E $$i | $(XGETTEXT) - ;\
++	done
++
++libuti2.a: $(UTI2LIB_OBJS)
++	$(AR) $(ARFLAGS) libuti2.a $(UTI2LIB_OBJS)
++	$(RANLIB) libuti2.a
++
++libuti2$(SHAREDEXT):  $(UTI2LIB_OBJS)
++	$(SHAREDLD) $(SHARED_LFLAGS) -o libuti2$(SHAREDEXT) $(UTI2LIB_OBJS) $(LOADAVGLIBS) $(LIBS) -lc
++
++include $(UTI2LIB_DIR)/uti2_dependencies
++
++sge_execvlp.o: $(UTI2LIB_DIR)/sge_execvlp.c
++	$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(UTI2LIB_DIR)/sge_execvlp.c
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/libs/uti2/sge_execvlp.c gridengine-debian/source/libs/uti2/sge_execvlp.c
+--- gridengine-debian-orig/source/libs/uti2/sge_execvlp.c	1970-01-01 01:00:00.000000000 +0100
++++ gridengine-debian/source/libs/uti2/sge_execvlp.c	2012-02-07 09:50:06.000000000 +0000
+@@ -0,0 +1,237 @@
++/* sge_execvlp.c -- execvp cum execlp and routines to sanitize environment
++   Copyright (C) 2011 Dave Love, University of Liverpool <d.love@liv.ac.uk>
++
++   This file is free software: you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public License
++   as published by the Free Software Foundation; either version 3 of
++   the License, or (at your option) any later version.
++
++   This file is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++   GNU General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with this file.  If not, a copy can be downloaded
++   from http://www.gnu.org/licenses/lgpl.html.
++*/
++
++#include <stdlib.h>
++#include <unistd.h>
++#include <string.h>
++#include <errno.h>
++#include <limits.h>
++#include <sys/types.h>
++#include <regex.h>
++#include "uti2/sge_execvlp.h"
++#include "sgeobj/sge_var.h"
++
++static regex_t regex;
++
++/****** uti/sge_execvlp() ****************************************
++*
++*  NAME
++*     sge_execvlp -- like execve, but search path
++*
++*  SYNOPSIS
++*     #include "uti/execvlp.h"
++*     int sge_execvlp (const char *file, char *const argv[], char *const envp[])
++*
++*  FUNCTION
++*     A version of execve that does a path search for the executable
++*     like execlp/execvp.
++*
++*  INPUTS
++*     file - name of executable
++*     argv - null-terminated list of arguments
++*     envp - null-terminated list of evironment elements
++*
++*  RESULT
++*     on success, the function will not return (it exec's)
++*     -1 if the exec fails
++******************************************************************************/
++int
++sge_execvlp (const char *file, char *const argv[], char *const envp[])
++{
++   char *path;
++   char execpath[PATH_MAX+1];
++   char *component;
++   int first = 1;
++
++   path = getenv ("PATH");
++   if (!path)                    /* use file directly if no path */
++      return execve (file, argv, envp);
++
++   if (strchr (file, '/'))       /* directory path -- don't search */
++      return execve (file, argv, envp);
++
++   /* Else try path components */
++   path = strdup (path);
++   while ((component = strtok ((first ? path : NULL), ":"))) {
++      first = 0;
++      execpath[0] = 0;
++      if (strlen (component) != 0) { /* else current directory */
++         strncat (execpath, component, PATH_MAX);
++         if (strlen (execpath) < PATH_MAX)
++            strcat (execpath, "/");
++      }
++      strncat (execpath, file, PATH_MAX - strlen (execpath));
++      errno = 0;
++      if (execve (execpath, argv, envp) == -1 && errno != ENOENT)
++         return -1;
++   }
++   return -1;
++}
++
++/* Fixme:  Instead of semi-hardwiring (parts of) environment variables
++   below, we should make them execd parameters, but that requires (a)
++   infrastructure to allow list-valued execd parameters, (b) ensuring
++   it gets set up.  */
++
++/* Check whether an environment string (foo=bar) sets a variable in
++   the unsafe list or with a bad value.  */
++static bool 
++var_unsafe(char *var)
++{
++   char *unsafe[] = {
++      /* These variables are regarded as unsafe in suid programs by
++         GNU libc (2.11.1).
++         Fixme:  Try to extend this for other systems.  */
++      "GCONV_PATH", "GETCONF_DIR", "HOSTALIASES",
++      /* We get everything with an LD_ prefix anyhow. */
++      /*
++        "LD_AUDIT", "LD_DEBUG", "LD_DEBUG_OUTPUT",
++        "LD_DYNAMIC_WEAK", "LD_LIBRARY_PATH", "LD_ORIGIN_PATH",
++        "LD_PRELOAD", "LD_PROFILE", "LD_SHOW_AUXV", "LD_USE_LOAD_BIAS",
++      */
++      "LOCALDOMAIN", "LOCPATH", "MALLOC_TRACE", "NIS_PATH",
++      "NLSPATH", "RESOLV_HOST_CONF", "RES_OPTIONS", "TMPDIR", "TZDIR",
++      /* Others not from glibc */
++#ifdef __osf__
++      "_RLD_ROOT", /* Tru64 linker */
++#endif
++      /* Fixme:  Check if IFS needs to be set on relevant systems
++         <http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/environment-variables.html#ENV-VAR-SOLUTION>.  */
++      "IFS",   /* for shell scripts */
++      ""};
++   int i;
++
++   for (i=0; strlen (unsafe[i]) > 0; i++)
++      if (strncmp (var, unsafe[i], strlen (unsafe[i])) == 0)
++         return true;
++
++   /* Check locale variable values per
++      <http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/locale.html>? */
++   {
++      char *locale[] = {"LANGUAGE", "LANG", "LINGUAS", ""};
++      for (i=0; strlen (locale[i]) > 0; i++)
++         if (strncmp (var, locale[i], strlen (locale[i])) == 0
++             || strncmp (var, "LC_", 3) == 0)
++            if (regexec (&regex, var, 0, NULL, 0) != 0) /* invalid locale */
++               return true;
++   }
++   return false;
++}
++
++/****** uti/sanitize_environment() *****************************************
++*  NAME
++*     sanitize_environment() -- remove sensitive variables from the environment before calling programs
++*
++*  SYNOPSIS
++*     #include "uti/execvlp.h"
++*     void sanitize_environment(char *env[])
++*
++*  FUNCTION
++*     Remove variables from the environment which represent a security
++*     risk when a program is called under a privileged id with an
++*     environment supplied by the user, such as remote
++*     communication daemons.  (For instance, if the user can get a
++*     dynamically-linked privileged program run in an ELF environment
++*     with arbitrary LD_LIBRARY_PATH or LD_PRELOAD, all bets are off.)
++*
++*  SEE ALSO
++*  qrsh_starter
++*******************************************************************************/
++void
++sanitize_environment (char *env[])
++{
++   int i = 0, j;
++   const char *sharedlib = var_get_sharedlib_path_name ();
++   const char *pattern = "^[A-Za-z_]+=[A-Za-z][-A-Za-z0-9_,+@.=]*$";
++
++   if (!env) return;
++   /* We only need to bother if we're privileged in some way.  */
++   if ((geteuid () != SGE_SUPERUSER_UID)
++       && (getegid () != SGE_SUPERUSER_GID)
++       && (geteuid () == getuid ())
++       && (getegid () == getgid ()))
++      return;
++
++   i = regcomp (&regex, pattern, REG_NOSUB | REG_EXTENDED);
++
++   while (env[i]) {
++      /* In an ELF system, sensitive variables include
++         LD_LIBRARY_PATH, plus variations like LD_LIBRARY_PATH64, and
++         LD_PRELOAD.  For safety, we'll zap anything with an LD_
++         prefix.  (We could test the __ELF__ of the system, but this
++         is safer.)  Similarly check var_get_sharedlib_path_name as a
++         prefix.  */
++      if ((strncmp (env[i], "LD_", 3) == 0)
++#ifdef __APPLE__
++	  /* DYLD_{FALLBACK_,}FRAMEWORK_PATH,
++	     {FALLBACK_,}DYLD_LIBRARY_PATH seem to be relevant.  */
++	  || (strncmp (env[i], "DYLD_", 5) == 0)
++#endif
++          || (strncmp (env[i], sharedlib, strlen (sharedlib)) == 0)
++          || var_unsafe (env[i])) {
++         /* Shuffle env elements down over the unsafe one.  */
++         for (j=i; env[j]; j++)
++            env[j] = env[j+1];
++      } else {
++         i++;
++      }
++   }
++   regfree (&regex);
++   return;
++}
++
++/****** uti/sge_copy_sanitize_env() *****************************************
++*  NAME
++*     sge_copy_sanitize_environment() -- make a copy of enironment with sensitive variables removed
++*
++*  SYNOPSIS
++*     #include "uti/execvlp.h"
++*     char **sge_copy_sanitize_env(char *env[])
++*
++*  FUNCTION
++*     Remove variables from the environment which represent a security
++*     risk if when a program is called under a privileged id with an
++*     environment supplied by the user, for example, remote
++*     communication daemons.  (If the user can get a
++*     dynamically-linked privileged program run in an ELF environment,
++*     say, with arbitrary LD_LIBRARY_PATH or LD_PRELOAD, all bets are
++*     off.)  Also try to protect shell scripts from IFS, at least.
++*******************************************************************************/
++char **sge_copy_sanitize_env (char *const env[])
++{
++   int l=0;
++   size_t bytes;
++   char **newenv;
++
++   while (env[l] != 0)
++      l++;
++   bytes = (l+1)*sizeof (char *);
++   newenv = malloc (bytes);
++   memcpy (newenv, env, bytes);
++   sanitize_environment (newenv);
++   return newenv;
++}
++
++#if TEST
++int main(int argc, char* argv[], char *envp[])
++{
++   char *args[] = {""};
++   sge_execvlp ("env", args, sge_copy_sanitize_env(envp));
++   exit (0);
++}
++#endif
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/libs/uti2/sge_execvlp.h gridengine-debian/source/libs/uti2/sge_execvlp.h
+--- gridengine-debian-orig/source/libs/uti2/sge_execvlp.h	1970-01-01 01:00:00.000000000 +0100
++++ gridengine-debian/source/libs/uti2/sge_execvlp.h	2012-02-07 09:50:06.000000000 +0000
+@@ -0,0 +1,7 @@
++#ifndef __SGE_EXECVLP_H
++#define __SGE_EXECVLP_H
++#include "uti/sge_uidgid.h"
++int sge_execvlp (const char *file, char *const argv[], char *const envp[]);
++char **sge_copy_sanitize_env (char *const env[]);
++void sanitize_environment (char *env[]);
++#endif  /* __SGE_EXECVLP_H */
+diff -Naur '--exclude=.git' gridengine-debian-orig/source/scripts/zerodepend gridengine-debian/source/scripts/zerodepend
+--- gridengine-debian-orig/source/scripts/zerodepend	2012-02-07 09:49:57.000000000 +0000
++++ gridengine-debian/source/scripts/zerodepend	2012-02-07 09:53:38.000000000 +0000
+@@ -71,6 +71,7 @@
+        libs/cull/cull_dependencies  \
+        libs/sched/sched_dependencies  \
+        libs/uti/uti_dependencies  \
++       libs/uti2/uti2_dependencies  \
+        libs/juti/juti_dependencies  \
+        libs/rmon/rmon_dependencies  \
+        libs/comm/commlib_dependencies  \
--- gridengine-6.2u5.orig/debian/patches/090-fix_ftbfs_gcc45.diff
+++ gridengine-6.2u5/debian/patches/090-fix_ftbfs_gcc45.diff
@@ -0,0 +1,13 @@
+--- a/source/daemons/common/procfs.c
++++ b/source/daemons/common/procfs.c
+@@ -214,8 +214,8 @@
+ #elif defined(LINUX)
+    FILE *fp;
+    char buffer[1024];
+-   uid_t uids[4];
+-   gid_t gids[4];
++   uid_t uids[4] = {0, 0, 0, 0};
++   gid_t gids[4] = {0, 0, 0, 0};
+ #endif
+ 
+    DENTER(TOP_LAYER, "procfs_kill_addgrpid");
--- gridengine-6.2u5.orig/debian/patches/100-as-needed.diff
+++ gridengine-6.2u5/debian/patches/100-as-needed.diff
@@ -0,0 +1,15 @@
+Description: correct order of libraries passed to ld to fix FTBFS with
+ --as-needed option.
+Author: Ilya Barygin <barygin@gmail.com>
+Bug-Ubuntu: https://launchpad.net/bugs/770777
+--- gridengine-6.2u5.orig/source/libs/sched/Makefile
++++ gridengine-6.2u5/source/libs/sched/Makefile
+@@ -196,7 +196,7 @@
+ 	$(LD_WRAPPER) $(CC) $(CFLAGS) -o simple_scheduler $(LFLAGS) simple_scheduler.o sig_handlers.o $(SCHEDLIB) $(GDILIB) $(CULLLIB) $(COMMLIB) $(COMMLISTSLIB) $(UTILIB) $(RMONLIB) $(LIBS)
+ 
+ test_resource_utilization: test_resource_utilization.o sge_mt_init.o $(SCHEDLIB) $(SGEOBJDLIB) $(SGEOBJLIB) $(GDILIB) $(CULLLIB) $(UTILIB) $(WINGRIDLIB_DEP) $(COMMLIB) $(COMMLISTSLIB) $(LCKLIB) $(RMONLIB)
+-	$(LD_WRAPPER) $(CC) $(CFLAGS) -o test_resource_utilization $(LFLAGS) test_resource_utilization.o sge_mt_init.o $(SCHEDLIB) $(GDILIB) $(SGEOBJLIB) $(SGEOBJDLIB) $(CULLLIB) $(DLLIB) $(COMMLIB) $(COMMLISTSLIB) $(UTILIB) $(WINGRIDLIB) $(LCKLIB) $(RMONLIB) $(LIBS) $(SECLIB)
++	$(LD_WRAPPER) $(CC) $(CFLAGS) -o test_resource_utilization $(LFLAGS) test_resource_utilization.o sge_mt_init.o $(SCHEDLIB) $(GDILIB) $(SGEOBJLIB) $(SGEOBJDLIB) $(CULLLIB) $(COMMLIB) $(DLLIB) $(COMMLISTSLIB) $(UTILIB) $(WINGRIDLIB) $(LCKLIB) $(RMONLIB) $(LIBS) $(SECLIB)
+ 
+ test_eval_performance: test_eval_performance.o $(SCHEDLIB) $(SGEOBJLIB) $(SGEOBJDLIB) $(CULLLIB) $(UTILIB) $(WINGRIDLIB_DEP) $(RMONLIB) $(COMMLIB) $(COMMLISTSLIB) $(LCKLIB)
+ 	$(LD_WRAPPER) $(CC) $(CFLAGS) -o test_eval_performance $(LFLAGS) test_eval_performance.o $(SCHEDLIB) $(SGEOBJLIB) $(SGEOBJDLIB) $(CULLLIB) $(COMMLIB) $(COMMLISTSLIB) $(UTILIB) $(WINGRIDLIB) $(RMONLIB) $(DLLIB) $(LCKLIB) $(SECLIB) $(LIBS)
--- gridengine-6.2u5.orig/debian/patches/110-kernel.diff
+++ gridengine-6.2u5/debian/patches/110-kernel.diff
@@ -0,0 +1,14 @@
+Index: gridengine-6.2u5/source/dist/util/arch
+===================================================================
+--- gridengine-6.2u5.orig/source/dist/util/arch	2012-04-22 19:51:43.401262482 -0400
++++ gridengine-6.2u5/source/dist/util/arch	2012-04-22 19:52:16.429426253 -0400
+@@ -258,6 +258,9 @@
+    2.6.*)
+       lxrelease=26
+       ;;
++   3.*)
++      lxrelease=26
++      ;;
+    *)
+       unsupported="UNSUPPORTED-"
+       lxrelease=$osrelease
--- gridengine-6.2u5.orig/debian/patches/120-buffer-overflow.diff
+++ gridengine-6.2u5/debian/patches/120-buffer-overflow.diff
@@ -0,0 +1,70 @@
+Index: source/utilbin/sge_passwd.c
+===================================================================
+--- a/source/utilbin/sge_passwd.c	(revision 115)
++++ b/source/utilbin/sge_passwd.c	(working copy)
+@@ -1049,7 +1049,7 @@
+ static void
+ sge_passwd_add_change(const char *username, const char *domain, uid_t uid) 
+ {
+-   char user[128] = "";
++   char user[128+128] = ""; /* actually (128-1) + (1) + (128-1) + (1) */
+    char **users = NULL;
+    char **encryped_pwd = NULL;
+    char err_str[MAX_STRING_SIZE];
+@@ -1319,9 +1319,13 @@
+          DEXIT;
+          exit(1);
+       } 
+-      if (!strcmp(argv[1],"-D")) {
++      if (!strcmp(argv[1],"-D"))
++      {
+          argc--; argv++;
+-         if (argc != 1 && sscanf(argv[1], "%s", domain) == 1) {
++
++         if (argc != 1 && strncpy(domain, argv[1], sizeof(domain)) && domain[0] != '\0')
++         {
++            domain[sizeof(domain)-1] = '\0';
+             argc--; argv++;
+             continue;
+          } else {
+@@ -1330,7 +1334,8 @@
+             exit(1);
+          }
+       }
+-      if (!strcmp(argv[1],"-d")) {
++      if (!strcmp(argv[1],"-d"))
++      {
+          uid_t uid = getuid();
+ 
+          if (uid != 0) {
+@@ -1340,7 +1345,11 @@
+          }
+ 
+          argc--; argv++;
+-         if (argc != 1 && sscanf(argv[1], "%s", username) == 1) {
++
++         if (argc != 1 && strncpy(username, argv[1], sizeof(username)) && username[0] != '\0')
++         {
++            username[sizeof(username)-1] = '\0';
++
+             argc--; argv++;
+             do_delete = true;
+             continue;
+@@ -1349,10 +1358,15 @@
+             DEXIT;
+             exit(1);
+          }
+-      } 
+-      if (argv[1][0] != '-' && sscanf(argv[1], "%s", username) == 1) {
++      }
++
++
++      if (argv[1][0] != '-' && strncpy(username, argv[1], sizeof(username)) && username[0] != '\0')
++      {
+          uid_t uid = getuid();
+ 
++         username[sizeof(username)-1] = '\0';
++
+          if (uid != 0) {
+             fprintf(stderr, MSG_PWD_ONLY_USER_SS, SGE_PASSWD_PROG_NAME, username);
+             fprintf(stderr, "\n");
--- gridengine-6.2u5.orig/debian/patches/120-env-code-injection.diff
+++ gridengine-6.2u5/debian/patches/120-env-code-injection.diff
@@ -0,0 +1,172 @@
+Index: source/daemons/shepherd/shepherd.c
+===================================================================
+--- a/source/daemons/shepherd/shepherd.c	(revision 84)
++++ b/source/daemons/shepherd/shepherd.c	(working copy)
+@@ -2202,7 +2202,7 @@
+          }
+       } else if (received_signal != 0 || *postponed_signal != 0) { /* received any other signal */
+ #if defined(INTERIX)
+-         sge_set_environment();
++         sge_set_environment(true);
+          if(strcmp(childname, "job") == 0 &&
+             wl_get_GUI_mode(get_conf_val("display_win_gui")) == true) {
+             /*
+@@ -2359,7 +2359,7 @@
+ 
+ #if defined(INTERIX)
+       /* <Windows_GUI> */
+-      sge_set_environment();
++      sge_set_environment(true);
+       if (strcmp(childname, "job") == 0 &&
+          wl_get_GUI_mode(get_conf_val("display_win_gui")) == true) {
+          if (npid != -1) {      
+@@ -2603,7 +2603,7 @@
+       pid = getpid();
+       setpgid(pid, pid);  
+       setrlimits(0);
+-      sge_set_environment();
++      sge_set_environment(true);
+       umask(022);
+       tmp_str = search_conf_val("qsub_gid");
+       if (tmp_str && strcmp(tmp_str, "no")) {
+@@ -2877,6 +2877,9 @@
+       if (!strcmp(name, "PVM_TASK_ID"))
+          strcpy(pvm_task_id, value);
+ 
++      if (is_dangerous_env(name))
++         continue;
++
+       sge_set_env_value(name, value);
+    }
+ 
+Index: source/daemons/shepherd/builtin_starter.c
+===================================================================
+--- a/source/daemons/shepherd/builtin_starter.c	(revision 84)
++++ b/source/daemons/shepherd/builtin_starter.c	(working copy)
+@@ -48,6 +48,7 @@
+ #include "uti/sge_arch.h"
+ #include "setosjobid.h"
+ #include "sge_fileio.h"
++#include "sge_var.h"
+ 
+ #include "msg_common.h"
+ 
+@@ -365,7 +366,7 @@
+    setrlimits(!strcmp(childname, "job"));
+ 
+    shepherd_trace("setting environment");
+-   sge_set_environment();
++   sge_set_environment(strcmp(childname, "job") || ( is_qlogin && !g_new_interactive_job_support));
+ 
+ 	/* Create the "error" and the "exit" status file here.
+ 	 * The "exit_status" file indicates that the son is started.
+@@ -935,13 +936,60 @@
+    return;
+ }
+ 
++int is_dangerous_env(const char *name)
++{
++  if (strncmp(name, "LD_", 3) == 0)
++    return true;
++
++  if (strncmp(name, "PERL5LIB", 8) == 0)
++    return true;
++
++  if (strncmp(name, "PERLLIB", 7) == 0)
++    return true;
++
++  if (strncmp(name, "PERLOPT", 7) == 0)
++    return true;
++
++  if (strncmp(name, "PYTHONPATH", 10) == 0)
++    return true;
++
++  if (strncmp(name, "BASH_ENV", 8) == 0)
++    return true;
++
++#if   defined(AIX)
++  if (strncmp(name, "LIBPATH", 7) == 0)
++    return true;
++
++  if (strncmp(name, "LDR_PRELOAD", 11) == 0)
++    return true;
++
++#elif defined(DARWIN)
++  if (strncmp(name, "DYLD_", 5) == 0)
++    return true;
++
++#elif defined(HP11)
++  if (strncmp(name, "SHLIB_PATH", 10) == 0)
++    return true;
++
++#elif defined(LINUX)
++  if (strncmp(name, "MALLOC_TRACE", 12) == 0)
++    return true;
++
++#elif defined(IRIX) || defined(ALPHA)
++  if (strncmp(name, "_RLD_LIST", 9) == 0)
++    return true;
++#endif
++
++  return false;
++}
++
+ /****** Shepherd/sge_set_environment() *****************************************
+ *  NAME
+ *     sge_set_environment () -- Read the environment from the "environment" file
+ *     and store it in the appropriate environment, inherited or internal.
+ *
+ *  SYNOPSIS
+-*      int sge_set_environment(void)
++*      int sge_set_environment(int)
+ *
+ *  FUNCTION
+ *     This function reads the "environment" file written out by the execd and
+@@ -954,7 +1002,7 @@
+ *  NOTES
+ *      MT-NOTE: sge_set_environment() is not MT safe
+ *******************************************************************************/
+-int sge_set_environment()
++int sge_set_environment(int cleanenv)
+ {
+    const char *const filename = "environment";
+    FILE *fp;
+@@ -993,6 +1041,8 @@
+ 
+    while (fgets(buf, sizeof(buf), fp)) {
+ 
++      char new_name[128];
++
+       line++;
+ 
+       if (strlen(buf) <= 1)     /* empty line or lastline */
+@@ -1004,6 +1054,14 @@
+          shepherd_error(1, "error reading environment file: line=%d, contents:%s",
+                         line, buf);
+       }
++      else if (cleanenv)
++      {
++          if (is_dangerous_env(name))
++          {
++             snprintf(new_name, sizeof(new_name), "SGE_WRAP_%s", name);
++             name = new_name;
++          }
++      }
+ 
+       value = strtok(NULL, "\n");
+       if (value == NULL) {
+Index: source/daemons/shepherd/builtin_starter.h
+===================================================================
+--- a/source/daemons/shepherd/builtin_starter.h	(revision 84)
++++ b/source/daemons/shepherd/builtin_starter.h	(working copy)
+@@ -34,8 +34,9 @@
+ 
+ 
+ void son(const char *childname, char *script_file, int truncate_stderr_out);
+-int sge_set_environment(void);
++int sge_set_environment(int);
+ char** sge_get_environment(void);
++int is_dangerous_env(const char *name);
+ int sge_set_env_value(const char *, const char *);
+ const char *sge_get_env_value(const char *);
+ void start_command(const char *, char *, char *, char *, char *, int, int, int, int, char *, int);
--- gridengine-6.2u5.orig/debian/patches/130-dont-link-against-unused-libraries.diff
+++ gridengine-6.2u5/debian/patches/130-dont-link-against-unused-libraries.diff
@@ -0,0 +1,16 @@
+Description: Gridengine should no longer link against libXp as that
+ is going to be removed from Debian
+Author: Paul Gevers <elbrus@debian.org>
+Bug-Debian: http://bugs.debian.org/623642
+
+--- a/source/aimk
++++ b/source/aimk
+@@ -1509,7 +1509,7 @@
+    if ($BUILDARCH != ALINUX) then
+       set XINCD    = "$XMTINCD $XINCD -I/usr/X11R6/include"
+       set XCFLAGS  = "-Wno-strict-prototypes -Wno-error $XMTDEF $XINCD"
+-      set XLIBS    = "-lXm -lXpm -lXt -lXext -lXmu -lX11 -lSM -lICE -lXp"
++      set XLIBS    = "-lXm -lXt -lXext -lX11"
+    else
+       set XINCD    = "$XMTINCD $XINCD"
+       set XCFLAGS  = "-DNeedFunctionPrototypes -Wno-error $XMTDEF $XINCD"
--- gridengine-6.2u5.orig/debian/patches/140-fix-ftbfs-gcc-elibc-issue.diff
+++ gridengine-6.2u5/debian/patches/140-fix-ftbfs-gcc-elibc-issue.diff
@@ -0,0 +1,54 @@
+Description: gridengine ftbfs with eglibc-2.17 and/or GCC4-8
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701446
+Source: https://arc.liv.ac.uk/trac/SGE/changeset/3671/sge
+--- a/source/3rdparty/jemalloc/jemalloc.c
++++ b/source/3rdparty/jemalloc/jemalloc.c
+@@ -6336,28 +6336,31 @@
+ 		sizeof(malloc_zone_t *) * (malloc_num_zones - 1));
+ 	malloc_zones[0] = &zone;
+ }
++
++#ifdef HAVE_LIBDL
++#  include <dlfcn.h>
+ #endif
+ 
+-#include <dlfcn.h>
+-#include <malloc.h>
++#elif defined(__GLIBC__) && !defined(__UCLIBC__)
+ /*
+  * glibc provides the RTLD_DEEPBIND flag for dlopen which can make it possible
+  * to inconsistently reference libc's malloc(3)-compatible functions
++ * (Mozilla bug 493541).
++ *
++ * These definitions interpose hooks in glibc.  The functions are actually
++ * passed an extra argument for the caller return address, which will be
++ * ignored.
+  */
+-#ifdef RTLD_DEEPBIND
+-#  if defined(__GLIBC__) && !defined(__UCLIBC__)
+-
+-/*
+- * These interpose hooks in glibc.
+- */
+-static void sge_init_hook(void){
+-   __malloc_hook = malloc;
+-   __realloc_hook = realloc;
+-   __memalign_hook = memalign;
+-}
++void (*__free_hook)(void *ptr) = free;
++void *(*__malloc_hook)(size_t size) = malloc;
++void *(*__realloc_hook)(void *ptr, size_t size) = realloc;
++void *(*__memalign_hook)(size_t alignment, size_t size) = memalign;
+ 
+-void (*__malloc_initialize_hook) (void) = sge_init_hook;
+-#  elif !defined(malloc)
+-#    error "Interposing malloc is unsafe on this system without libc malloc hooks."
+-#  endif
++#elif defined(RTLD_DEEPBIND)
++        /*
++         * XXX On systems that support RTLD_GROUP or DF_1_GROUP, do their
++         * implementations permit similar inconsistencies?  Should STV_SINGLETON
++         * visibility be used for interposition where available?
++         */
++#  error "Interposing malloc is unsafe on this system without libc malloc hooks."
+ #endif
--- gridengine-6.2u5.orig/debian/patches/series
+++ gridengine-6.2u5/debian/patches/series
@@ -0,0 +1,22 @@
+001-nowerror.diff
+002-bdbnorpc.diff
+010-ssl1.0.0.diff
+020-manpages.diff
+030-qmon-lesstif.diff
+030-qmon-memset.diff
+040-pidfile-handling.diff
+050-debian-editor.diff
+060-dynamic-spooling-path.diff
+060-buildsetup.diff
+070-getline.diff
+080-arch_hppa.diff
+080-arch_s390.diff
+080-arch_sparc.diff
+090-CVE-2012-0208.diff
+090-fix_ftbfs_gcc45.diff
+100-as-needed.diff
+110-kernel.diff
+120-env-code-injection.diff
+120-buffer-overflow.diff
+130-dont-link-against-unused-libraries.diff
+140-fix-ftbfs-gcc-elibc-issue.diff
--- gridengine-6.2u5.orig/debian/po/POTFILES.in
+++ gridengine-6.2u5/debian/po/POTFILES.in
@@ -0,0 +1,6 @@
+[type: gettext/rfc822deb] gridengine-client.templates
+[type: gettext/rfc822deb] gridengine-common.templates
+[type: gettext/rfc822deb] gridengine-exec.templates
+[type: gettext/rfc822deb] gridengine-master.templates
+[type: gettext/rfc822deb] gridengine-qmon.templates
+[type: gettext/rfc822deb] gridengine.templates
--- gridengine-6.2u5.orig/debian/po/cs.po
+++ gridengine-6.2u5/debian/po/cs.po
@@ -0,0 +1,87 @@
+# Czech translation of gridengine debconf messages.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the gridengine package.
+# Miroslav Kure <kurem@debian.cz>, 2008
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-06-28 14:06+0200\n"
+"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Nastavit SGE automaticky?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Vyberte si prosím, zda chcete nastavit SGE automaticky (pomocí debconfu). "
+"Pokud nezvolíte automatické nastavení, nebudou daemoni ani klientské "
+"programy fungovat do doby, než je nastavíte (ručně)."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Název SGE buňky:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Zadejte prosím jméno SGE buňky, které budou používat klientské programy a "
+"spouštěcí daemon."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Jméno hlavního SGE počítače:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Aby mohly klientské programy a spouštěcí daemon fungovat, potřebují vědět, "
+"kde se nachází řídící server clusteru."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Zadejte prosím plně kvalifikované doménové jméno řídícího počítače."
--- gridengine-6.2u5.orig/debian/po/da.po
+++ gridengine-6.2u5/debian/po/da.po
@@ -0,0 +1,89 @@
+# Danish translation gridengine.
+# Copyright (C) 2010 gridengine & nedenstående oversættere.
+# This file is distributed under the same license as the gridengine package.
+# Joe Hansen <joedalton2@yahoo.dk>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2010-08-01 17:30+01:00\n"
+"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish@lists.debian.org> \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Konfigurer SGE automatisk?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Vælg venligst hvorvidt du ønsker at konfigurere SGE automatisk (med "
+"debconf). Hvis du ikke konfigurerer den automatisk, vil dæmon- eller "
+"klientprogrammer ikke virke, før en manuel konfiguration er udført."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "SGE-cellenavn:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Angiv venligst SGE-cellenavnet til brug for klientprogrammer og "
+"eksekveringsdæmonen."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "SGE-masterværtsnavn:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Eksekveringsdæmonen og klientprogrammer har brug for at vide, hvor "
+"klyngemasteren er for at kunne køre."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr ""
+"Indtast venligst det fuldt kvalificeret domænenavn på gittermasteren (grid "
+"master)."
--- gridengine-6.2u5.orig/debian/po/de.po
+++ gridengine-6.2u5/debian/po/de.po
@@ -0,0 +1,86 @@
+# Translation of gridengine.po to German
+# This file is distributed under the same license as the gridengine package.
+# Tobias Toedter <t.toedter@gmx.net>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2~beta2-2\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-06-29 10:26+0200\n"
+"Last-Translator: Tobias Toedter <t.toedter@gmx.net>\n"
+"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "SGE automatisch konfigurieren?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Bitte wählen Sie, ob SGE automatisch (mittels Debconf) konfiguriert werden "
+"soll. Falls Sie das Programm nicht automatisch konfigurieren lassen, werden "
+"der Daemon und die Clients nicht funktionieren, bevor eine manuelle "
+"Konfiguration erstellt wurde."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "SGE-Zellenname:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Bitte geben Sie den SGE-Zellennamen ein, der von Clientprogrammen und dem "
+"Ausführungs-Daemon verwendet wird."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Hostname des SGE-Masters:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Damit der Ausführungs-Daemon und die Clientprogramme arbeiten können, muss "
+"der Master des Clusters bekannt sein."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Bitte geben Sie den vollständigen Domain-Namen des Grid-Masters ein."
--- gridengine-6.2u5.orig/debian/po/es.po
+++ gridengine-6.2u5/debian/po/es.po
@@ -0,0 +1,108 @@
+# gridengine po-debconf translation to Spanish
+# Copyright (C) 2010 Software in the Public Interest
+# This file is distributed under the same license as the gridengine package.
+#
+# Changes:
+#   - Initial translation
+#       Francisco Javier Cuadrado <fcocuadrado@gmail.com>, 2010
+#
+# Traductores, si no conocen el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+#       info -n '(gettext)PO Files'
+#       info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+#
+#   - El proyecto de traducción de Debian al español
+#     http://www.debian.org/intl/spanish/
+#     especialmente las notas y normas de traducción en
+#     http://www.debian.org/intl/spanish/notas
+#
+#   - La guía de traducción de po's de debconf:
+#     /usr/share/doc/po-debconf/README-trans
+#     o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2u4-2\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2010-04-30 10:40+0200\n"
+"Last-Translator: Francisco Javier Cuadrado <fcocuadrado@gmail.com>\n"
+"Language-Team: Debian l10n Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "¿Desea configurar SGE automáticamente?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Escoja si quiere configurar SGE automáticamente (mediante debconf). Si no lo "
+"configura automáticamente, los demonios o los programas del cliente no "
+"funcionarán hasta que realice una configuración manual."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Nombre de la célula de SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Introduzca el nombre de la célula de SGE que usarán los programas del "
+"cliente y el demonio de ejecución."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Nombre de la máquina maestra de SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"El demonio de ejecución y los programas del cliente necesitan conocer dónde "
+"está el cluster maestro para poder funcionar."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Introduzca el nombre completo del dominio para la red maestra."
--- gridengine-6.2u5.orig/debian/po/fi.po
+++ gridengine-6.2u5/debian/po/fi.po
@@ -0,0 +1,84 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-07-03 09:43-0000\n"
+"Last-Translator: Esko Arajärvi <edu@iki.fi>\n"
+"Language-Team: Finnish <debian-l10n-finnish@lists.debian.org>\n"
+"Language: fi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Finnish\n"
+"X-Poedit-Country: FINLAND\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Tehdäänkö SGE:n asetukset automaattisesti?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Valitse tulisiko SGE:n asetukset tehdä automaattisesti (debconfin avulla). "
+"Jos asetuksia ei tehdä automaattisesti, taustaohjelmat tai asiakasohjelmat "
+"eivät toimi ennen kuin asetukset on tehty käsin."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "SGE-solmun nimi:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Anna SGE-solmun nimi, jota asiakasohjelmat ja suoritustaustaohjelma "
+"käyttävät."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "SGE-pääsolmun verkkonimi:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Toimiakseen suoritustaustaohjelman ja asiakasohjelmien täytyy tietää missä "
+"klusterin pääsolmu on."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Anna klusterin pääsolmun täydellinen verkkonimi."
--- gridengine-6.2u5.orig/debian/po/fr.po
+++ gridengine-6.2u5/debian/po/fr.po
@@ -0,0 +1,90 @@
+# Translation of gridengine debconf templates to French
+# Copyright (C) 2007 Christian Perrier <bubulle@debian.org>
+# This file is distributed under the same license as the gridengine package.
+#
+# Christian Perrier <bubulle@debian.org>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-06-28 11:53+0200\n"
+"Last-Translator: Christian Perrier <bubulle@debian.org>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Faut-il configurer SGE automatiquement ?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Veuillez choisir si vous souhaitez configurer SGE automatiquement (avec "
+"« debconf »). Si vous ne choisissez pas cette option, les démons et les "
+"clients devront être configurés manuellement pour pouvoir fonctionner."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Nom de la cellule SGE :"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Veuillez indiquer le nom de la cellule SGE, qui sera utilisée par les "
+"programmes clients et le démon d'exécution."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Nom d'hôte du maître SGE :"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Le démon d'exécution et les programmes clients doivent connaître le nom "
+"d'hôte du serveur maître de la grappe."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr ""
+"Veuillez indiquer le nom complètement qualifié de serveur maître de la "
+"grille."
--- gridengine-6.2u5.orig/debian/po/gl.po
+++ gridengine-6.2u5/debian/po/gl.po
@@ -0,0 +1,86 @@
+# Galician translation of gridengine's debconf templates
+# This file is distributed under the same license as the gridengine package.
+# Jacobo Tarrio <jtarrio@debian.org>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-06-28 14:27+0100\n"
+"Last-Translator: Jacobo Tarrio <jtarrio@debian.org>\n"
+"Language-Team: Galician <proxecto@trasno.net>\n"
+"Language: gl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "¿Configurar SGE automaticamente?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Indique se quere configurar SGE automaticamente (con debconf). Se non o "
+"configura automaticamente, os servizos ou programas cliente non han "
+"funcionar ata que realice unha configuración manual."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Nome da cela SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Indique o nome da cela SGE para o seu uso por parte dos programas cliente e "
+"o servizo de execución."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Nome do servidor mestre de SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"O servizo de execución e os programas cliente precisan de saber onde reside "
+"o mestre do clúster para se executar."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Introduza o nome de dominio completo do mestre do grid."
--- gridengine-6.2u5.orig/debian/po/it.po
+++ gridengine-6.2u5/debian/po/it.po
@@ -0,0 +1,89 @@
+# Italian translation of gridengine debconf messages.
+# Copyright (C) 2012, gridengine package copyright holder
+# This file is distributed under the same license as the gridengine package.
+# Beatrice Torracca <beatricet@libero.it>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2012-04-30 08:16+0200\n"
+"Last-Translator: Beatrice Torracca <beatricet@libero.it>\n"
+"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Virtaal 0.7.1\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Configurare SGE automaticamente?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Scegliere se configurare SGE automaticamente (con debconf). Se non viene "
+"configurato automaticamente, i demoni o i programmi client non funzioneranno "
+"fino a che non verrà effettuata una configurazione manuale."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Nome della cella SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Inserire il nome della cella SGE da usare per i programmi client e il demone "
+"di esecuzione."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Nome host del master SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Per poter funzionare, il demone di esecuzione e i programmi client devono "
+"sapere dove è il master del cluster."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr ""
+"Inserire il nome di dominio pienamente qualificato del master della griglia."
--- gridengine-6.2u5.orig/debian/po/ja.po
+++ gridengine-6.2u5/debian/po/ja.po
@@ -0,0 +1,85 @@
+# Japanese translation of gridengine debconf templates.
+# Copyright (C) 2009 Debian Grid Engine Maintainers <pkg-gridengine-devel@lists.alioth.debian.org>
+# This file is distributed under the same license as gridengine package.
+# 
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2-4\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2009-10-25 08:52+0900\n"
+"Last-Translator: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "SGE を自動的に設定しますか?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"debconf で SGE を自動的に設定したいかどうかを選んでください。自動的に設定をし"
+"ない場合は、デーモンあるいはクライアントプログラムは手動での設定が行われるま"
+"で動作しません。"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "SGE セル名:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"クライアントプログラムと実行デーモンが使う SGE セル名を入力してください。"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "SGE マスターホスト名:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"実行デーモンとクライアントプログラムは動作のため、クラスタマスターがどこにあ"
+"るのかを知る必要があります。"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "grid マスターの完全修飾ドメイン名 (FQDN) を入力してください。"
--- gridengine-6.2u5.orig/debian/po/nl.po
+++ gridengine-6.2u5/debian/po/nl.po
@@ -0,0 +1,87 @@
+# Dutch translation of gridengine debconf templates.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the gridengine package.
+# Jeroen Schot <schot@a-eskwadraat.nl>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2u5-4\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2012-02-09 16:43+0100\n"
+"Last-Translator: Jeroen Schot <schot@a-eskwadraat.nl>\n"
+"Language-Team: Debian l10n Dutch <debian-l10n-dutch@lists.debian.org>\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "SGE automatisch instellen?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Geef aan of u SGE automatisch wilt configureren (met debconf). Als u SGE "
+"niet automatisch wilt configureren werken de achtergronddiensten of client-"
+"programma's pas na handmatige configuratie."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Naam van de SGE-cel:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Geef de naam op van de SGE-cel die de client-programma's en "
+"uitvoeringsachtergronddienst moeten gebruiken?"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Computernaam van de SGE-master:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"De uitvoeringsachtergronddienst en de client-programma's moeten weten waar "
+"de cluster-master is om uitgevoerd te kunnen worden."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Geeft de volledige computernaam (FQDN) van de grid-master op."
--- gridengine-6.2u5.orig/debian/po/pl.po
+++ gridengine-6.2u5/debian/po/pl.po
@@ -0,0 +1,90 @@
+# Translation of gridengine debconf templates to Polish.
+# Copyright (C) 2008
+# This file is distributed under the same license as the gridengine package.
+#
+# Michał Kułach <michal.kulach@gmail.com>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2012-04-25 01:40+0200\n"
+"Last-Translator: Michał Kułach <michal.kulach@gmail.com>\n"
+"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.2\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Skonfigurować SGE w sposób automatyczny?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Proszę wybrać, czy SGE ma zostać skonfigurowany automatycznie (za pomocą "
+"debconfa). Jeśli ta opcja nie zostanie wybrana, demony lub programy "
+"klienckie nie będą działać do czasu wykonania ręcznej konfiguracji."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Nazwa komórki SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Proszę wprowadzić nazwę komórki (ang. cell) SGE, która będzie używana przez "
+"programy klienckie i demon wykonywania."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Główna nazwa hosta SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Demon wykonywania i programy klienckie muszą wiedzieć gdzie ma działać "
+"główny klaster."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Proszę podać pełną nazwę domenową głównego serwera grid."
--- gridengine-6.2u5.orig/debian/po/pt.po
+++ gridengine-6.2u5/debian/po/pt.po
@@ -0,0 +1,90 @@
+# translation of gridengine debconf to Portuguese
+# Copyright (C) 2008 Américo Monteiro
+# This file is distributed under the same license as the gridengine package.
+#
+# Américo Monteiro <a_monteiro@netcabo.pt>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2~beta2-3\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-06-28 12:24+0100\n"
+"Last-Translator: Américo Monteiro <a_monteiro@netcabo.pt>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: pt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Configurar SGE automaticamente?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Por favor escolha se deseja usar o debconf para configurar o SGE  (com "
+"debconf). Se não o configurar automaticamente, os deamons ou os programas "
+"cliente não irão funcionar até que seja executada uma configuração manual."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Nome da célula SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Por favor indique o nome da célula SGE para ser usado por programas cliente "
+"e pelo deamon de execução."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Nome de máquina SGE mestre:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"O deamon de execução e os programas cliente precisam de saber onde está o "
+"mestre do cluster para poderem funcionar."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr ""
+"Por favor indique o nome de domínio totalmente qualificado do mestre da "
+"grelha."
--- gridengine-6.2u5.orig/debian/po/ru.po
+++ gridengine-6.2u5/debian/po/ru.po
@@ -0,0 +1,91 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2~beta2-3\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-07-05 21:48+0400\n"
+"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Выполнить автоматическую настройку SGE?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Укажите, хотите ли вы, чтобы SGE был настроен автоматически (с помощью "
+"debconf). Если вы откажитесь от автоматической настройки, то службы или "
+"клиентские программы не будут работать, пока вы не выполните настройку "
+"вручную."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Имя ячейки SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Укажите имя ячейки SGE, которое будет использовано клиентскими программами и "
+"службой выполнения."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Имя мастер-хоста SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Для работы службе выполнения и клиентским программам требуется указать "
+"главную машину кластера."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Введите полностью определенное имя мастера."
--- gridengine-6.2u5.orig/debian/po/sv.po
+++ gridengine-6.2u5/debian/po/sv.po
@@ -0,0 +1,85 @@
+# translation of gridengine.po to swedish
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Martin Bagge <martin.bagge@bthstudent.se>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-06-28 15:22+0200\n"
+"Last-Translator: Martin Bagge <martin.bagge@bthstudent.se>\n"
+"Language-Team: swedish <debian-l10n-swedish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Vill du att paketet ställer in SGE automatiskt?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Ange om du vill att SGE ska ställas in automatiskt (genom debconf) eller om "
+"du vill göra det manuellt vid ett senare tillfälle. HJälpprocesserna och "
+"klientprogrammen fungerar inte förrens konfigurationen är utförd."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Namn på SGE-cellen:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr "Ange namnet för SGE-cellen som klientprogrammen ska använda."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Värdnamn för huvud-SGE:n"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Klientprogrammen måste kunna lokalisera klustretes huvudnod för att fungera."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Ange komplett värdnamn med domän för huvudvärden."
--- gridengine-6.2u5.orig/debian/po/templates.pot
+++ gridengine-6.2u5/debian/po/templates.pot
@@ -0,0 +1,80 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr ""
--- gridengine-6.2u5.orig/debian/po/vi.po
+++ gridengine-6.2u5/debian/po/vi.po
@@ -0,0 +1,87 @@
+# Vietnamese translation for Grid Engine.
+# Copyright © 2008 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gridengine 6.2~beta2-3\n"
+"Report-Msgid-Bugs-To: gridengine@packages.debian.org\n"
+"POT-Creation-Date: 2008-07-11 21:54+0100\n"
+"PO-Revision-Date: 2008-07-05 22:30+0930\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"Language: vi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.7b3\n"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid "Configure SGE automatically?"
+msgstr "Tự động cấu hình SGE ?"
+
+#. Type: boolean
+#. Description
+#: ../gridengine-client.templates:1001 ../gridengine-common.templates:1001
+#: ../gridengine-exec.templates:1001 ../gridengine-master.templates:1001
+#: ../gridengine-qmon.templates:1001 ../gridengine.templates:1001
+msgid ""
+"Please choose whether you wish to configure SGE automatically (with "
+"debconf). If you do not configure it automatically, the daemons or client "
+"programs will not work until a manual configuration is performed."
+msgstr ""
+"Hãy chọn nếu bạn muốn tự động cấu hình SGE (dùng debconf) hay không. Không "
+"thì các trình nền hay ứng dụng khách sẽ không chạy đúng đến khi một tiến "
+"trình cấu hình thủ công đã được thực hiện."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid "SGE cell name:"
+msgstr "Tên ô SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:2001 ../gridengine-common.templates:2001
+#: ../gridengine-exec.templates:2001 ../gridengine-master.templates:2001
+#: ../gridengine-qmon.templates:2001 ../gridengine.templates:2001
+msgid ""
+"Please provide the SGE cell name for use by client programs and the "
+"execution daemon."
+msgstr ""
+"Hãy cung cấp tên ô SGE cho các ứng dụng khách và trình nền thực hiện sử dụng."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "SGE master hostname:"
+msgstr "Tên máy chủ SGE:"
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid ""
+"The execution daemon and the client programs need to know where the cluster "
+"master is in order to run."
+msgstr ""
+"Để chạy được, trình nền thực hiện và các ứng dụng khách đều cần thông tin về "
+"vị trí của chủ nhóm."
+
+#. Type: string
+#. Description
+#: ../gridengine-client.templates:3001 ../gridengine-common.templates:3001
+#: ../gridengine-exec.templates:3001 ../gridengine-master.templates:3001
+#: ../gridengine-qmon.templates:3001 ../gridengine.templates:3001
+msgid "Please enter the fully qualified domain name of the grid master."
+msgstr "Hãy nhập tên miền có khả năng đầy đủ của chủ lưới."
--- gridengine-6.2u5.orig/debian/qlogin.wrapper
+++ gridengine-6.2u5/debian/qlogin.wrapper
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+/usr/bin/ssh -p $2 $1
--- gridengine-6.2u5.orig/debian/rules
+++ gridengine-6.2u5/debian/rules
@@ -0,0 +1,175 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+PRECMD=sh $(CURDIR)/debian/linux32-wrapper
+
+export MY_XINCD=/usr/include/freetype2
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+
+	cd source && ${PRECMD} ./aimk -only-depend
+	cd source && ${PRECMD} scripts/zerodepend
+	cd source && ${PRECMD} ./aimk -only-core depend
+	cd source && ${PRECMD} ./aimk -only-core
+	cd source && ${PRECMD} ./aimk -only-qmon
+	cd source && ${PRECMD} ./aimk -only-java
+	cd source && ${PRECMD} ./aimk -man -sunman
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	for k in source/ source/3rdparty/qmon source/3rdparty/sge_depend; do \
+		find $$k -maxdepth 1 -type d -name "MANSBUILD*" -print0 | xargs --null rm -rf; \
+		find $$k -maxdepth 1 -type d -name "LINUX*" -print0 | xargs --null rm -rf; \
+	done
+	find . -name "*_dependencies" | xargs rm -f
+	rm -fr source/CLASSES/
+	rm -fr source/dist/DetectJvmLibrary/build/
+	rm -fr source/libs/jgdi/build/
+	rm -fr source/libs/jgdi/cullconv/build/
+	rm -f source/dist/qmon/Qmon
+	dh_clean
+	cp debian/gridengine.templates debian/gridengine-common.templates
+	cp debian/gridengine.templates debian/gridengine-exec.templates
+	cp debian/gridengine.templates debian/gridengine-master.templates
+	cp debian/gridengine.templates debian/gridengine-client.templates
+	cp debian/gridengine.templates debian/gridengine-qmon.templates
+	debconf-updatepo
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	install -d debian/tmp/usr
+	install -d debian/tmp/usr/share
+	cd source && /usr/bin/yes | ${PRECMD} scripts/distinst -basedir ${CURDIR}/debian -mansrc sge -vdir tmp/usr -onlybin -- man examples
+
+	rm -rf debian/tmp/usr/catman
+	-rmdir debian/tmp/usr/utilbin/lx*
+
+	# Rename some of the spool utils so we can replace them with wrapper scripts
+	# which set LD_LIBRARY_PATH for the spool libraries
+	mv debian/tmp/usr/utilbin/spooledit debian/tmp/usr/utilbin/spooledit.bin
+	mv debian/tmp/usr/utilbin/spooldefaults debian/tmp/usr/utilbin/spooldefaults.bin
+	cp debian/spool.wrapper debian/tmp/usr/utilbin/spooledit
+	chmod 755 debian/tmp/usr/utilbin/spooledit
+	cp debian/spool.wrapper debian/tmp/usr/utilbin/spooldefaults
+	chmod 755 debian/tmp/usr/utilbin/spooldefaults
+
+	# Make manpage names sane
+	for k in hostnameutils submit; do \
+		mv debian/tmp/usr/share/man/man1/$$k.1 debian/tmp/usr/share/man/man1/sge_$$k.1; \
+	done
+
+	for k in access_list accounting bootstrap calendar_conf checkpoint \
+		     complex host_aliases host_conf hostgroup project qtask queue_conf \
+		     reporting sched_conf share_tree user usermapping; do \
+		mv debian/tmp/usr/share/man/man5/$$k.5 debian/tmp/usr/share/man/man5/sge_$$k.5; \
+	done
+
+	# Remove manpages which we'll replace with symlinks
+
+	# hostnameutils links
+	for k in gethostbyaddr gethostbyname gethostname getservbyname; do \
+		rm -f debian/tmp/usr/share/man/man1/$$k.1; \
+	done
+
+	# sge_submit links
+	for manpage in qresub qrsh qsh qalter qlogin qsub; do \
+		rm -f debian/tmp/usr/share/man/man1/$$manpage.1; \
+	done
+
+	# libdrmaa-dev manpages
+	cut -d" " -f2 debian/libdrmaa-dev.links | while read f; do \
+		rm -f debian/tmp/$$f; \
+	done
+
+	rm -f debian/tmp/usr/share/man/man8/SGE_Helper_Service.exe.8
+
+	# Move java bindings
+	mkdir debian/tmp/usr/share/java
+	mv debian/tmp/usr/lib/drmaa.jar debian/tmp/usr/share/java/
+	cp source/libs/jgdi/build/jgdi.jar debian/tmp/usr/share/java/
+	cp source/CLASSES/juti/juti.jar debian/tmp/usr/share/java/
+
+	mkdir debian/tmp/usr/lib/jni
+	for j in libjgdi.so libjuti.so; do \
+		mv debian/tmp/usr/lib/$$j debian/tmp/usr/lib/jni/ ; \
+	done
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs -i Changelog
+	dh_installdocs -i
+	dh_installexamples -i
+	dh_install -i -XCVS --list-missing
+	install -m 644 $(CURDIR)/debian/configuration $(CURDIR)/debian/gridengine-common/usr/share/gridengine/default-configuration
+	install -m 644 $(CURDIR)/debian/bootstrap $(CURDIR)/debian/gridengine-common/usr/share/gridengine/default-bootstrap
+	install -m 755 $(CURDIR)/debian/scripts/init_cluster $(CURDIR)/debian/gridengine-common/usr/share/gridengine/scripts/init_cluster
+	# Install wrapper script
+	install -m 775 $(CURDIR)/debian/gridengine-client.wrapper $(CURDIR)/debian/gridengine-common/usr/share/gridengine/gridengine-wrapper
+	install -m 775 $(CURDIR)/debian/qlogin.wrapper $(CURDIR)/debian/gridengine-common/usr/share/gridengine/qlogin-wrapper
+	dh_installman -i
+	dh_installdebconf -i
+	dh_link -i
+	dh_compress -i -Xexamples
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installexamples -a
+	dh_install -a -XCVS --list-missing
+	dh_installinit -p gridengine-master
+	# Start the execd after the master
+	dh_installinit -p gridengine-exec -- defaults 21
+	dh_installman -a
+	dh_installdebconf -a
+	dh_link -a
+	dh_strip -a
+	dh_compress -a -Xexamples
+	dh_fixperms -a
+	dh_makeshlibs -V -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- gridengine-6.2u5.orig/debian/scripts/cleanup_sgetarball.sh
+++ gridengine-6.2u5/debian/scripts/cleanup_sgetarball.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# We do this due to the use of CVS keywords in the source files...
+
+find ./ -type f | while read file
+do
+    sed -i -e "s@\$Id[\.:A-Za-z0-9/_, -]*\ \\\$@\$Id\$@" \
+           -e "s@\$RCSfile.*,v\ \\\$@\$RCSfile\$@" \
+           -e "s@\$Log.*,v\ \\\$@\$Log\$@" \
+           -e "s@\$Header.*\ \\\$@\$Header\$@" \
+           -e "s@\$Date[\.:A-Za-z0-9/_, -]*\ \\\$@\$Date\$@" \
+           -e "s@\$Revision: [0-9.]*\ \\\$@\$Revision\$@" \
+    $file
+done
+
+# and whilst we're at it, we may as well remove the CVS directories
+find ./ -type d -name "CVS" | while read d
+do
+    rm -fr ${d}
+done
--- gridengine-6.2u5.orig/debian/scripts/init_cluster
+++ gridengine-6.2u5/debian/scripts/init_cluster
@@ -0,0 +1,59 @@
+#!/bin/sh
+#
+# Simple SGE cluster creation script.
+# Mainly used from gridengine-master postinst
+#
+# Copyright (C) 2008 Mark Hymers <mhy@debian.org>
+# Licensed under the BSD license as found in /usr/share/common-licenses/BSD
+#
+
+set -e
+
+if [ $# -ne 4 ]; then
+    echo "Usage: init_cluster <SGE_ROOT> <SGE_CELL> <spooldir> <manageruser>"
+    exit 1
+fi
+
+export SGE_ROOT=$1
+export SGE_CELL=$2
+spooldir=$3
+manager=$4
+
+baseconf=/usr/share/gridengine/default-configuration
+basecomplex=/usr/share/gridengine/centry
+baseuserset=/usr/share/gridengine/usersets
+
+if [ -e ${spooldir}/sge ]; then
+    echo "${spooldir}/sge already exists: skipping cluster initialization"
+    exit 0
+fi
+
+echo "Initializing cluster with the following parameters:"
+echo " => SGE_ROOT: $SGE_ROOT"
+echo " => SGE_CELL: $SGE_CELL"
+echo " => Spool directory: $spooldir"
+echo " => Initial manager user: $manager"
+
+# Initialise the spool
+echo "Initializing spool ($spooldir)"
+/usr/lib/gridengine/spoolinit berkeleydb libspoolb ${spooldir} init
+
+# Initialize global configuration
+echo "Initializing global configuration based on ${baseconf}"
+/usr/lib/gridengine/spooldefaults configuration ${baseconf}
+
+# Initialize complexes:
+echo "Initializing complexes based on ${basecomplex}"
+/usr/lib/gridengine/spooldefaults complexes ${basecomplex}
+
+# Initialize default usersets:
+echo "Initializing usersets based on ${baseuserset}"
+/usr/lib/gridengine/spooldefaults usersets ${baseuserset}
+
+# Add $manageruser as a manager
+echo "Adding user ${manager} as a manager"
+/usr/lib/gridengine/spooldefaults managers ${manager}
+
+echo "Cluster creation complete"
+
+exit 0
--- gridengine-6.2u5.orig/debian/source.lintian-overrides
+++ gridengine-6.2u5/debian/source.lintian-overrides
@@ -0,0 +1,33 @@
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/AIX43/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/AIX51/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/ALINUX_22/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/ALPHA5/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/DARWIN_PPC/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/DARWIN_X86/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/FREEBSD_ALPHA/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/FREEBSD_I386/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/FREEBSD_IA64/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/FREEBSD_SPARC64/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/HP10/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/HP11/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/HP1164/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/IRIX65/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUX86_24/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUX86_26/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUXAMD64_24/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUXAMD64_26/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUXIA64_24/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUXIA64_26/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/LINUXSPARC_26/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/NECSX5/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/NETBSD_I386/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/SOLARIS/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/SOLARIS64/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/SOLARIS86/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/SOLARISAMD64/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/ULINUX86_24/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/ULINUXAMD64_24/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qmake/WIN32_X86/config.status
+gridengine source: configure-generated-file-in-source source/3rdparty/qtcsh/SOLARISAMD64/config.log
+gridengine source: configure-generated-file-in-source source/3rdparty/qtcsh/SOLARISAMD64/config.status
+gridengine source: outdated-autotools-helper-file source/3rdparty/qtcsh/config.sub 2002-07-03
--- gridengine-6.2u5.orig/debian/spool.wrapper
+++ gridengine-6.2u5/debian/spool.wrapper
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# SGE spool binary Wrapper script to ensure correct environment variables are
+# set
+
+set -e
+
+PROG=$(basename $0)
+
+# Export LD_LIBRARY_PATH so it can find the spool libraries
+LD_LIBRARY_PATH=/usr/lib/gridengine${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+export LD_LIBRARY_PATH
+
+exec /usr/lib/gridengine/${PROG}.bin "$@"
