pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel/gridscheduler Import Open Grid Scheduler vers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/375d09b603f9
branches:  trunk
changeset: 601505:375d09b603f9
user:      asau <asau%pkgsrc.org@localhost>
date:      Wed Mar 21 20:48:53 2012 +0000

description:
Import Open Grid Scheduler version 2011.11 as parallel/gridscheduler.
Heavily based on Sun Grid Engine package (parallel/sge).

Open Grid Scheduler/Grid Engine is a free and open-source
batch-queuing system for distributed resource management.
OGS/GE is based on Sun Grid Engine, and maintained by the same
group of external (i.e. non-Sun) developers who started
contributing code to Sun Grid Engine since 2001.

diffstat:

 parallel/gridscheduler/DESCR                                 |    6 +
 parallel/gridscheduler/MESSAGE                               |   31 +
 parallel/gridscheduler/Makefile                              |  171 +++
 parallel/gridscheduler/PLIST                                 |  576 +++++++++++
 parallel/gridscheduler/distinfo                              |   24 +
 parallel/gridscheduler/patches/patch-ad                      |   13 +
 parallel/gridscheduler/patches/patch-ag                      |   13 +
 parallel/gridscheduler/patches/patch-ak                      |   44 +
 parallel/gridscheduler/patches/patch-am                      |  119 ++
 parallel/gridscheduler/patches/patch-at                      |   15 +
 parallel/gridscheduler/patches/patch-bd                      |   77 +
 parallel/gridscheduler/patches/patch-bl                      |  125 ++
 parallel/gridscheduler/patches/patch-bm                      |   60 +
 parallel/gridscheduler/patches/patch-daemons_common_procfs.c |   13 +
 14 files changed, 1287 insertions(+), 0 deletions(-)

diffs (truncated from 1343 to 300 lines):

diff -r 4cc6ff42bd52 -r 375d09b603f9 parallel/gridscheduler/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/gridscheduler/DESCR      Wed Mar 21 20:48:53 2012 +0000
@@ -0,0 +1,6 @@
+The Grid Engine project is an open source community effort
+to facilitate the adoption of distributed computing solutions.
+Sponsored by Sun Microsystems and hosted by CollabNet, the
+Grid Engine project provides enabling distributed resource
+management software for wide ranging requirements from compute
+farms to grid computing.
diff -r 4cc6ff42bd52 -r 375d09b603f9 parallel/gridscheduler/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/gridscheduler/MESSAGE    Wed Mar 21 20:48:53 2012 +0000
@@ -0,0 +1,31 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2012/03/21 20:48:53 asau Exp $
+
+You will need to add the following lines to /etc/services:
+
+sge_qmaster     6444/tcp
+sge_execd       6445/tcp
+
+In addition after installation, you need to set up SGE.  To configure the
+master node of the cluster, run:
+
+        cd ${SGE_ROOT} && ./install_qmaster -csp
+
+For the back-end compute nodes, run:
+
+        cd ${SGE_ROOT} && ./install_execd
+
+Additionally, you will want to add the following lines in /etc/csh.cshrc:
+
+# Sun Grid Engine Setup
+if ( -f ${SGE_ROOT}/default/common/settings.csh  ) then
+        source ${SGE_ROOT}/default/common/settings.csh
+endif
+
+and the following in /etc/profile:
+
+if [ -f ${SGE_ROOT}/default/common/settings.sh ]; then
+        . ${SGE_ROOT}/default/common/settings.sh
+fi
+
+===========================================================================
diff -r 4cc6ff42bd52 -r 375d09b603f9 parallel/gridscheduler/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/gridscheduler/Makefile   Wed Mar 21 20:48:53 2012 +0000
@@ -0,0 +1,171 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/03/21 20:48:53 asau Exp $
+
+PKGNAME=               gridscheduler-2011.11
+DISTNAME=              GE2011.11
+CATEGORIES=            parallel sysutils
+MASTER_SITES=          $(MASTER_SITE_SOURCEFORGE:=gridscheduler/)
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://gridscheduler.sourceforge.net/
+COMMENT=               Open Grid Scheduler/Grid Engine resource management system
+
+BUILD_DEPENDS+=                {standalone-tcsh,tcsh}-[0-9]*:../../shells/tcsh
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+GNU_CONFIGURE=         YES
+USE_TOOLS+=            gmake perl:run
+
+CFLAGS+=               -D${UPPER_OPSYS}
+CONFIGURE_ENV+=                REMOTE=sge
+CONFIGURE_ENV+=                CFLAGS=${CFLAGS:M*:Q}
+CONFIGURE_ARGS+=       --with-sge=${SGE_BUILDARCH:Q}
+PLIST_SUBST+=          SGE_ARCH=${SGE_ARCH:Q}
+MESSAGE_SUBST+=                SGE_ROOT=${SGE_ROOT}
+MAKE_ENV+=             PERL5=${PERL5:Q}
+
+SGE_USER?=             sgeadmin
+SGE_GROUP?=            sgeadmin
+PKG_GROUPS=            ${SGE_GROUP}
+PKG_USERS=             ${SGE_USER}:${SGE_GROUP}::Sun\ Grid\ Engine\ Administrator
+PKG_GROUPS_VARS+=      SGE_GROUP
+PKG_USERS_VARS+=       SGE_USER
+
+EVAL_PREFIX+=  PKGSRC_SSL_PREFIX=openssl
+
+AIMK=  ${SETENV} ${MAKE_ENV} tcsh -fb ${WRKSRC}/source/aimk
+
+CONFIG_GUESS_OVERRIDE= source/3rdparty/qmake/config.guess \
+               source/3rdparty/qtcsh/config.guess
+CONFIG_SUB_OVERRIDE=   source/3rdparty/qmake/config.sub \
+               source/3rdparty/qtcsh/config.sub
+
+REPLACE_INTERPRETER+=  tclsh
+REPLACE.tclsh.old=     .*tclsh
+REPLACE.tclsh.new=     ${PREFIX}/bin/tclsh
+REPLACE_FILES.tclsh=   source/dist/util/resources/jsv/jsv.tcl
+REPLACE_PERL+=         source/dist/util/resources/jsv/jsv.pl
+
+CHECK_INTERPRETER_SKIP+=       sge/ckpt/cpr_* sge/mpi/myrinet/* sge/util/resources/loadsensors/interix-loadsensor.sh
+
+.include "../../mk/bsd.prefs.mk"
+
+# SGE_ARCH should match the putput of ${WRKSRC}/source/dist/util/arch
+# SGE_BUILDARCH should match whats in ${WRKSRC}/source/aimk
+UPPER_OPSYS_cmd=       ${ECHO} "${OPSYS}" | ${TR} a-z A-Z
+UPPER_OPSYS=           ${UPPER_OPSYS_cmd:sh}
+
+.if ${OPSYS} == "NetBSD"
+AIMK+=                 -DFD_SETSIZE=2048
+SGE_ARCH=              nbsd-${MACHINE_ARCH}
+SGE_BUILDARCH_cmd=     ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
+.elif ${OPSYS} == "FreeBSD"
+SGE_ARCH=              fbsd-${MACHINE_ARCH}
+SGE_BUILDARCH_cmd=     ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
+.elif ${OPSYS} == "SunOS"
+.  if ${MACHINE_ARCH} == "i386"
+SGE_ARCH=              solaris86
+.  else
+_ISAINFO!=             isainfo
+.    if !empty(_ISAINFO:Msparcv9)
+SGE_ARCH=              solaris64
+.    else
+SGE_ARCH=              solaris
+.    endif
+.  endif
+SGE_BUILDARCH_cmd=     ${ECHO} "${SGE_ARCH}" | ${TR} a-z A-Z
+.elif ${OPSYS} == "Darwin"
+SGE_ARCH=              darwin
+SGE_BUILDARCH=         DARWIN
+.elif ${OPSYS} == "Linux"
+AIMK+=                 -no-dump
+SGE_ARCH=              lx26-x86
+SGE_BUILDARCH=         LINUX86
+.else
+PKG_FAIL_REASON+=      "SGE_ARCH and SGE_BUILDARCH need to be configured for your OS"
+.endif
+SGE_BUILDARCH?=                ${SGE_BUILDARCH_cmd:sh}
+
+# Some hacks to get it properly linked:
+MAKE_ENV+=     SGE_ARCH=$(SGE_ARCH) SGE_ROOT=$(SGE_ROOT)
+
+LDFLAGS+=      -R${SGE_ROOT}/lib/${SGE_ARCH}
+BUILDLINK_PASSTHRU_RPATHDIRS+= ${SGE_ROOT}/lib/${SGE_ARCH}
+
+SGE_ROOT=      ${PREFIX}/sge
+
+INSTALLATION_DIRS=     bin
+
+post-patch:
+       @if [ "`${WRKSRC}/source/dist/util/arch`" != "${SGE_ARCH}" ]; then \
+               ${ECHO} "ERROR:  SGE_ARCH as set in the pkgsrc Makefile," ;\
+               ${ECHO} "        ${SGE_ARCH}, does not agree with that returned by" ; \
+               ${ECHO} "        ${WRKSRC}/source/dist/util/arch," ; \
+               ${ECHO} "        `${WRKSRC}/source/dist/util/arch`" ; \
+               ${FALSE} ; \
+       fi
+       ( ${ECHO} "set OPENSSL_HOME = ${SSL_PREFIX}" ; \
+       ${ECHO} "set BERKELEYDB_HOME = ${BUILDLINK_PREFIX.db4}" ; \
+       ${ECHO} "set BDB_INCLUDE_SUBDIR = db4" ; \
+       ${ECHO} "set BDB_LIB_SUFFIX = 4" ; \
+       ${ECHO} "set PERL = ${PERL5}" ) > ${WRKSRC}/source/aimk.private
+       ( ${ECHO} "OPENSSLBASE=${SSL_PREFIX}" ; \
+       ${ECHO} "BERKELEYDBBASE=${BUILDLINK_PREFIX.db4}" ) > ${WRKSRC}/source/distinst.private
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     post-patch
+SUBST_FILES.paths=     source/dist/util/arch_variables
+SUBST_SED.paths=       -e 's;@rcd_dir@;${RCD_SCRIPTS_DIR};' 
+
+do-configure:
+.for __prog__ in qmake qtcsh
+       ${MKDIR} ${WRKSRC}/source/3rdparty/${__prog__}/${SGE_BUILDARCH}
+       cd ${WRKSRC}/source/3rdparty/${__prog__}/${SGE_BUILDARCH} && \
+               ${SETENV} ${CONFIGURE_ENV} \
+               SGE_ARCH=`${WRKSRC}/source/dist/util/arch` \
+               ../configure ${CONFIGURE_ARGS} --srcdir=..
+.endfor
+
+do-build:
+       cd ${WRKSRC}/source && ${AIMK} -no-java -no-jni -only-depend
+       cd ${WRKSRC}/source && ${SETENV} ${MAKE_ENV} ./scripts/zerodepend
+       cd ${WRKSRC}/source && ${AIMK} -no-java -no-jni -no-qmake -no-qtcsh depend
+       cd ${WRKSRC}/source && ${AIMK} -no-java -no-jni
+       cd ${WRKSRC}/source && ${AIMK} -no-java -no-jni -man -sunman
+
+do-install:
+       ${MKDIR} ${DESTDIR}${SGE_ROOT}
+       #${CHOWN} ${SGE_USER} ${DESTDIR}${SGE_ROOT}
+       #${CHGRP} ${SGE_GROUP} ${DESTDIR}${SGE_ROOT}
+       cd ${WRKSRC}/source && \
+               ${ECHO} "Y" | ${SETENV} LOCALBASE=${LOCALBASE} DESTDIR=${DESTDIR} SGE_ROOT=${SGE_ROOT} ./scripts/distinst -local -all -nobdb -noopenssl -mansrc sge ${SGE_ARCH} -- doc man
+       for f in archive checkpoint deadlock dump load printlog recover stat upgrade verify ; do \
+               ln -s ${DESTDIR}${LOCALBASE}/bin/db4_$${f} ${DESTDIR}${SGE_ROOT}/utilbin/${SGE_ARCH}/db_$${f} ; done
+       ln -s ${DESTDIR}${LOCALBASE}/bin/berkeley_db4_svc ${DESTDIR}${SGE_ROOT}/utilbin/${SGE_ARCH}/berkeley_db_svc
+       ln -s ${DESTDIR}${SSL_PREFIX}/bin/openssl ${DESTDIR}${SGE_ROOT}/utilbin/${SGE_ARCH}/openssl
+       cd ${DESTDIR}${SGE_ROOT} && ${SETENV} SGE_ROOT=${SGE_ROOT} DESTDIR=${DESTDIR} ./util/setfileperm.sh -auto \
+               ${SGE_ROOT}
+       for f in ${DESTDIR}${SGE_ROOT}/bin/${SGE_ARCH}/q* ; do \
+               cd ${DESTDIR}${PREFIX}/bin && ln -fs $$f ; done
+
+#% scripts/distinst -local"
+
+PLIST_SUBST+=  SGE_ARCH=${SGE_ARCH}
+
+CHECK_INTERPRETER_SKIP=        sge/hadoop/pestart.sh \
+                       sge/hadoop/pestop.sh \
+                       sge/hadoop/setup.pl \
+                       sge/hadoop/wait.sh
+
+.include "../../parallel/hwloc/buildlink3.mk" # optional?
+.include "../../databases/db4/buildlink3.mk" # 4.2 at least
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+.if ${USE_BUILTIN.openssl} == "yes"
+SSL_PREFIX=    /usr
+.else
+SSL_PREFIX=    ${PKGSRC_SSL_PREFIX}
+.endif
diff -r 4cc6ff42bd52 -r 375d09b603f9 parallel/gridscheduler/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/gridscheduler/PLIST      Wed Mar 21 20:48:53 2012 +0000
@@ -0,0 +1,576 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/03/21 20:48:53 asau Exp $
+bin/qacct
+bin/qalter
+bin/qconf
+bin/qdel
+bin/qhold
+bin/qhost
+bin/qlogin
+bin/qmake
+bin/qmod
+bin/qmon
+bin/qping
+bin/qquota
+bin/qrdel
+bin/qresub
+bin/qrls
+bin/qrsh
+bin/qrstat
+bin/qrsub
+bin/qselect
+bin/qsh
+bin/qstat
+bin/qsub
+bin/qtcsh
+sge/3rd_party/3rd_party_licscopyrights
+sge/3rd_party/qmon/ltree_changed.tar.gz
+sge/bin/${SGE_ARCH}/qacct
+sge/bin/${SGE_ARCH}/qalter
+sge/bin/${SGE_ARCH}/qconf
+sge/bin/${SGE_ARCH}/qdel
+sge/bin/${SGE_ARCH}/qhold
+sge/bin/${SGE_ARCH}/qhost
+sge/bin/${SGE_ARCH}/qlogin
+sge/bin/${SGE_ARCH}/qmake
+sge/bin/${SGE_ARCH}/qmod
+sge/bin/${SGE_ARCH}/qmon
+sge/bin/${SGE_ARCH}/qping
+sge/bin/${SGE_ARCH}/qquota
+sge/bin/${SGE_ARCH}/qrdel
+sge/bin/${SGE_ARCH}/qresub
+sge/bin/${SGE_ARCH}/qrls
+sge/bin/${SGE_ARCH}/qrsh
+sge/bin/${SGE_ARCH}/qrstat
+sge/bin/${SGE_ARCH}/qrsub
+sge/bin/${SGE_ARCH}/qselect
+sge/bin/${SGE_ARCH}/qsh
+sge/bin/${SGE_ARCH}/qstat
+sge/bin/${SGE_ARCH}/qsub
+sge/bin/${SGE_ARCH}/qtcsh
+sge/bin/${SGE_ARCH}/sge_coshepherd
+sge/bin/${SGE_ARCH}/sge_execd
+sge/bin/${SGE_ARCH}/sge_qmaster
+sge/bin/${SGE_ARCH}/sge_shadowd
+sge/bin/${SGE_ARCH}/sge_shepherd
+sge/bin/${SGE_ARCH}/sgepasswd
+sge/ckpt/README.cpr
+sge/ckpt/README.cray
+sge/ckpt/checkpoint_command
+sge/ckpt/clean_command
+sge/ckpt/cpr_ckpt_command
+sge/ckpt/cpr_clean_command
+sge/ckpt/cpr_migration_command
+sge/ckpt/cpr_restart_command
+sge/ckpt/cray_ckpt_command
+sge/ckpt/cray_clean_command
+sge/ckpt/cray_migration_command
+sge/ckpt/cray_restart_command
+sge/ckpt/migration_command
+sge/ckpt/restart_command
+sge/ckpt/sx6_ckpt_command
+sge/ckpt/sx6_clean_command
+sge/ckpt/sx6_migration_command
+sge/ckpt/sx6_restart_command
+sge/doc/README-DRMAA.txt
+sge/doc/arc_depend_irix.asc
+sge/doc/arc_depend_solaris.asc



Home | Main Index | Thread Index | Old Index