diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2004-05-03 00:38:34 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2004-05-03 00:38:34 +0000 |
commit | 383fb8b855284dc8865a4c955ffb06ffe18bafd3 (patch) | |
tree | cfcc7482087c06b776feff7e5b868e7830ec654e /parallel/sge | |
parent | a50c60886c4bacedb047853701748cb0d3561a6d (diff) | |
download | pkgsrc-383fb8b855284dc8865a4c955ffb06ffe18bafd3.tar.gz |
import sge-5.3p6 (Sun Grid Engine)
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.
Diffstat (limited to 'parallel/sge')
37 files changed, 1406 insertions, 0 deletions
diff --git a/parallel/sge/DESCR b/parallel/sge/DESCR new file mode 100644 index 00000000000..caa9c458fe3 --- /dev/null +++ b/parallel/sge/DESCR @@ -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 --git a/parallel/sge/MESSAGE b/parallel/sge/MESSAGE new file mode 100644 index 00000000000..e6412400382 --- /dev/null +++ b/parallel/sge/MESSAGE @@ -0,0 +1,30 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +You will need to add the following line to /etc/services: + +sge_commd 535/tcp # Sun Grid Engine + +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 --git a/parallel/sge/Makefile b/parallel/sge/Makefile new file mode 100644 index 00000000000..a456e8df5d1 --- /dev/null +++ b/parallel/sge/Makefile @@ -0,0 +1,124 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ +# + +DISTNAME= sge-5.3p6 +CATEGORIES= parallel sysutils +MASTER_SITES= ${MASTER_SITE_LOCAL} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://gridengine.sunsource.net/ +COMMENT= Sun Grid Engine distributed resource management system + +BUILD_DEPENDS+= {standalone-tcsh,tcsh}-[0-9]*:../../shells/tcsh + +GNU_CONFIGURE= YES +USE_BUILDLINK3= YES +USE_GNU_TOOLS+= make +USE_X11= YES +USE_PERL5= YES + +CFLAGS+= -D${UPPER_OPSYS} +CONFIGURE_ENV+= REMOTE=sge +CONFIGURE_ENV+= CFLAGS="${CFLAGS}" +CONFIGURE_ARGS+= --with-grd=${SGE_BUILDARCH} +PLIST_SUBST+= SGE_ARCH=${SGE_ARCH} +MESSAGE_SUBST+= SGE_ROOT=${SGE_ROOT} +MAKE_ENV+= PERL5=${PERL5} + +USE_PKGINSTALL= YES +SGE_USER?= sgeadmin +SGE_GROUP?= sgeadmin +PKG_GROUPS= ${SGE_GROUP} +PKG_USERS= ${SGE_USER}:${SGE_GROUP}::Sun\\ Grid\\ Engine\\ Administrator + +EVAL_PREFIX+= PKGSRC_SSL_PREFIX=openssl + +AIMK= ${SETENV} ${MAKE_ENV} tcsh -fb ${WRKSRC}/source/aimk + +.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!= ${ECHO} "${OPSYS}" | ${TR} a-z A-Z + +.if ${OPSYS} == "NetBSD" +SGE_ARCH= nbsd-${MACHINE_ARCH} +SGE_BUILDARCH!= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z +.elif ${OPSYS} == "FreeBSD" +SGE_ARCH= fbsd-${MACHINE_ARCH} +SGE_BUILDARCH!= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z +.elif ${OPSYS} == "SunOS" +. if ${MACHINE_ARCH} == "i386" +SGE_ARCH= solaris86 +. else +SGE_ARCH= solaris +#or solaris64 +. endif +SGE_BUILDARCH!= ${ECHO} "${SGE_ARCH}" | ${TR} a-z A-Z +.elif ${OPSYS} == "Darwin" +SGE_ARCH= darwin +SGE_BUILDARCH= DARWIN +.else +PKG_FAIL_REASON= "SGE_ARCH and SGE_BUILDARCH need to be confgured for your OS" +.endif + +LDFLAGS+= -R${SGE_ROOT}/lib/${SGE_ARCH} +BUILDLINK_PASSTHRU_RPATHDIRS+= ${SGE_ROOT}/lib/${SGE_ARCH} + +SGE_ROOT= ${PREFIX}/sge + +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 + +pre-configure: +.for __tmp__ in source/dist/util/arch_variables source/scripts/distinst.site source/aimk.site + ${MV} ${WRKSRC}/${__tmp__} ${WRKSRC}/${__tmp__}.bak + ${SED} -e 's;@rcd_dir@;${RCD_SCRIPTS_DIR};g' -e 's;@ssl_prefix@;${SSL_PREFIX};g' \ + -e 's;@perl5@;${PERL5};g' ${WRKSRC}/${__tmp__}.bak > \ + ${WRKSRC}/${__tmp__} + ${RM} ${WRKSRC}/${__tmp__}.bak +.endfor + +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} -only-depend + cd ${WRKSRC}/source && ${SETENV} ${MAKE_ENV} ./scripts/zerodepend + cd ${WRKSRC}/source && ${AIMK} -no-qmake -no-qtcsh depend + cd ${WRKSRC}/source && ${AIMK} -secure + cd ${WRKSRC}/source && ${AIMK} -man + +do-install: + ${LN} -fs ${WRKSRC}/source/scripts/distinst ${WRKSRC}/source/scripts/myinst + ${MKDIR} ${SGE_ROOT} + ${CHOWN} ${SGE_USER} ${SGE_ROOT} + ${CHGRP} ${SGE_GROUP} ${SGE_ROOT} + cd ${WRKSRC}/source && \ + ${ECHO} "Y" | ${SETENV} LOCALBASE=${LOCALBASE} SGE_ROOT=${SGE_ROOT} ./scripts/myinst -allall ${SGE_ARCH} + cd ${SGE_ROOT} && ${SETENV} SGE_ROOT=${SGE_ROOT} ./util/setfileperm.sh -auto -noresport \ + ${SGE_USER} ${SGE_GROUP} ${SGE_ROOT} + for f in ${SGE_ROOT}/bin/${SGE_ARCH}/q* ; do \ + cd ${PREFIX}/bin && ${LN} -fs $$f ; done + +.include "../../graphics/xpm/buildlink3.mk" +.include "../../security/openssl/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 --git a/parallel/sge/PLIST b/parallel/sge/PLIST new file mode 100644 index 00000000000..d465d516f11 --- /dev/null +++ b/parallel/sge/PLIST @@ -0,0 +1,399 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ +bin/qacct +bin/qalter +bin/qconf +bin/qdel +bin/qhold +bin/qhost +bin/qlogin +bin/qmake +bin/qmod +bin/qmon +bin/qresub +bin/qrls +bin/qrsh +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/README.inst_sgeee +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}/qresub +sge/bin/${SGE_ARCH}/qrls +sge/bin/${SGE_ARCH}/qrsh +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_commd +sge/bin/${SGE_ARCH}/sge_coshepherd +sge/bin/${SGE_ARCH}/sge_execd +sge/bin/${SGE_ARCH}/sge_qmaster +sge/bin/${SGE_ARCH}/sge_schedd +sge/bin/${SGE_ARCH}/sge_shadowd +sge/bin/${SGE_ARCH}/sge_shepherd +sge/bin/${SGE_ARCH}/sgecommdcntl +sge/ckpt/README.cpr +sge/ckpt/README.cray +sge/ckpt/README.hibernator +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_jobstatus +sge/ckpt/cray_migration_command +sge/ckpt/cray_parse_job_status +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/INSTALL +sge/doc/UPGRADE +sge/doc/arc_depend_irix.asc +sge/doc/arc_depend_solaris.asc +sge/doc/load_parameters.asc +sge/doc/logfile-trimming.asc +sge/examples/jobs/array_submitter.sh +sge/examples/jobs/jobnet_submitter.sh +sge/examples/jobs/pascal.sh +sge/examples/jobs/pminiworm.sh +sge/examples/jobs/simple.sh +sge/examples/jobs/sleeper.sh +sge/examples/jobs/step_A_array_submitter.sh +sge/examples/jobs/step_B_array_submitter.sh +sge/examples/jobs/worker.sh +sge/examples/jobsbin/${SGE_ARCH}/work +sge/inst_sge +sge/inst_sgeee +sge/install_execd +sge/install_qmaster +sge/lib/${SGE_ARCH}/libXltree.so +sge/man/man1/qacct.1 +sge/man/man1/qalter.1 +sge/man/man1/qconf.1 +sge/man/man1/qdel.1 +sge/man/man1/qhold.1 +sge/man/man1/qhost.1 +sge/man/man1/qlogin.1 +sge/man/man1/qmake.1 +sge/man/man1/qmod.1 +sge/man/man1/qmon.1 +sge/man/man1/qresub.1 +sge/man/man1/qrls.1 +sge/man/man1/qrsh.1 +sge/man/man1/qselect.1 +sge/man/man1/qsh.1 +sge/man/man1/qstat.1 +sge/man/man1/qsub.1 +sge/man/man1/qtcsh.1 +sge/man/man1/sge_ckpt.1 +sge/man/man1/sge_intro.1 +sge/man/man1/submit.1 +sge/man/man5/access_list.5 +sge/man/man5/accounting.5 +sge/man/man5/calendar_conf.5 +sge/man/man5/checkpoint.5 +sge/man/man5/complex.5 +sge/man/man5/host_conf.5 +sge/man/man5/hostgroup.5 +sge/man/man5/project.5 +sge/man/man5/qtask.5 +sge/man/man5/queue_conf.5 +sge/man/man5/sched_conf.5 +sge/man/man5/sge_aliases.5 +sge/man/man5/sge_conf.5 +sge/man/man5/sge_h_aliases.5 +sge/man/man5/sge_pe.5 +sge/man/man5/sge_request.5 +sge/man/man5/share_tree.5 +sge/man/man5/user.5 +sge/man/man5/usermapping.5 +sge/man/man8/sge_commd.8 +sge/man/man8/sge_execd.8 +sge/man/man8/sge_qmaster.8 +sge/man/man8/sge_schedd.8 +sge/man/man8/sge_shadowd.8 +sge/man/man8/sge_shepherd.8 +sge/man/man8/sgecommdcntl.8 +sge/mpi/README +sge/mpi/README.atm +sge/mpi/hostname +sge/mpi/mpi.sh +sge/mpi/mpi.template +sge/mpi/mpi_cpi.sh +sge/mpi/mpich.template +sge/mpi/rsh +sge/mpi/startmpi.sh +sge/mpi/stopmpi.sh +sge/mpi/sunhpc/loose-integration/HPC_GE_Integration.sh +sge/mpi/sunhpc/loose-integration/MPRUN +sge/mpi/sunhpc/loose-integration/PRISM +sge/mpi/sunhpc/loose-integration/README +sge/mpi/sunhpc/loose-integration/accounting/MPRUN +sge/mpi/sunhpc/loose-integration/accounting/PRISM +sge/mpi/sunhpc/loose-integration/accounting/README +sge/mpi/sunhpc/loose-integration/accounting/ctacct1.pl +sge/mpi/sunhpc/loose-integration/accounting/ctacct2.pl +sge/mpi/sunhpc/loose-integration/accounting/stopsunmpi.sh +sge/mpi/sunhpc/loose-integration/batch.sunmpi.template +sge/mpi/sunhpc/loose-integration/resume_sunmpi.sh +sge/mpi/sunhpc/loose-integration/startsunmpi.sh +sge/mpi/sunhpc/loose-integration/stopsunmpi.sh +sge/mpi/sunhpc/loose-integration/sunmpi.pe.template +sge/mpi/sunhpc/loose-integration/suspend_sunmpi.sh +sge/mpi/sunhpc/loose-integration/terminate_sunmpi.sh +sge/mpi/sunhpc/tight-integration/README +sge/mpi/sunhpc/tight-integration/pe_sunmpi_ci.template +sge/mpi/sunhpc/tight-integration/resume_sunmpi_ci.sh +sge/mpi/sunhpc/tight-integration/suspend_sunmpi_ci.sh +sge/pvm/README +sge/pvm/pvm.sh +sge/pvm/pvm.template +sge/pvm/pvm_nogs.sh +sge/pvm/src/Makefile +sge/pvm/src/aimk +sge/pvm/src/install.sh +sge/pvm/src/master.c +sge/pvm/src/slave.c +sge/pvm/src/spmd.c +sge/pvm/src/start_pvm.c +sge/pvm/src/stop_pvm.c +sge/pvm/startpvm.sh +sge/pvm/stoppvm.sh +sge/qmon/PIXMAPS/21cal.xpm +sge/qmon/PIXMAPS/21cal_ins.xpm +sge/qmon/PIXMAPS/aclask.xpm +sge/qmon/PIXMAPS/big/toolbar_browser.xpm +sge/qmon/PIXMAPS/big/toolbar_calendar.xpm +sge/qmon/PIXMAPS/big/toolbar_ckpt.xpm +sge/qmon/PIXMAPS/big/toolbar_cluster.xpm +sge/qmon/PIXMAPS/big/toolbar_cplx.xpm +sge/qmon/PIXMAPS/big/toolbar_exit.xpm +sge/qmon/PIXMAPS/big/toolbar_host.xpm +sge/qmon/PIXMAPS/big/toolbar_job.xpm +sge/qmon/PIXMAPS/big/toolbar_pe.xpm +sge/qmon/PIXMAPS/big/toolbar_prj.xpm +sge/qmon/PIXMAPS/big/toolbar_queue.xpm +sge/qmon/PIXMAPS/big/toolbar_sched.xpm +sge/qmon/PIXMAPS/big/toolbar_submit.xpm +sge/qmon/PIXMAPS/big/toolbar_ticket.xpm +sge/qmon/PIXMAPS/big/toolbar_user.xpm +sge/qmon/PIXMAPS/bool.xpm +sge/qmon/PIXMAPS/branch.xpm +sge/qmon/PIXMAPS/branch_open.xpm +sge/qmon/PIXMAPS/ckpt.xpm +sge/qmon/PIXMAPS/cstr.xpm +sge/qmon/PIXMAPS/ctx.xpm +sge/qmon/PIXMAPS/days.xpm +sge/qmon/PIXMAPS/deadline.xpm +sge/qmon/PIXMAPS/deadline_ins.xpm +sge/qmon/PIXMAPS/dynamite.xpm +sge/qmon/PIXMAPS/env.xpm +sge/qmon/PIXMAPS/file_link.xpm +sge/qmon/PIXMAPS/head_open.xpm +sge/qmon/PIXMAPS/host.xpm +sge/qmon/PIXMAPS/hours.xpm +sge/qmon/PIXMAPS/infinity.xpm +sge/qmon/PIXMAPS/int.xpm +sge/qmon/PIXMAPS/intro-sge.xpm +sge/qmon/PIXMAPS/intro.xpm +sge/qmon/PIXMAPS/leaf.xpm +sge/qmon/PIXMAPS/leaf_open.xpm +sge/qmon/PIXMAPS/leftarrow.xpm +sge/qmon/PIXMAPS/lock.xpm +sge/qmon/PIXMAPS/logo-sge.xpm +sge/qmon/PIXMAPS/logo.xpm +sge/qmon/PIXMAPS/mailbox.xpm +sge/qmon/PIXMAPS/mailbox_ins.xpm +sge/qmon/PIXMAPS/mcicon.xpm +sge/qmon/PIXMAPS/mem.xpm +sge/qmon/PIXMAPS/memorybig.xpm +sge/qmon/PIXMAPS/minutes.xpm +sge/qmon/PIXMAPS/open_lock.xpm +sge/qmon/PIXMAPS/peask.xpm +sge/qmon/PIXMAPS/peconf.xpm +sge/qmon/PIXMAPS/penv.xpm +sge/qmon/PIXMAPS/project.xpm +sge/qmon/PIXMAPS/project_ins.xpm +sge/qmon/PIXMAPS/qask.xpm +sge/qmon/PIXMAPS/qlegend.xpm +sge/qmon/PIXMAPS/qsh_off.xpm +sge/qmon/PIXMAPS/qsh_off_ins.xpm +sge/qmon/PIXMAPS/qsh_on.xpm +sge/qmon/PIXMAPS/qsh_on_ins.xpm +sge/qmon/PIXMAPS/resources.xpm +sge/qmon/PIXMAPS/resources_enabled.xpm +sge/qmon/PIXMAPS/rightarrow.xpm +sge/qmon/PIXMAPS/script_file.xpm +sge/qmon/PIXMAPS/script_file_ins.xpm +sge/qmon/PIXMAPS/seconds.xpm +sge/qmon/PIXMAPS/shell.xpm +sge/qmon/PIXMAPS/shell_ins.xpm +sge/qmon/PIXMAPS/stderror.xpm +sge/qmon/PIXMAPS/stderror_ins.xpm +sge/qmon/PIXMAPS/stdoutput.xpm +sge/qmon/PIXMAPS/stdoutput_ins.xpm +sge/qmon/PIXMAPS/str.xpm +sge/qmon/PIXMAPS/time.xpm +sge/qmon/PIXMAPS/toolbar_browser.xpm +sge/qmon/PIXMAPS/toolbar_calendar.xpm +sge/qmon/PIXMAPS/toolbar_ckpt.xpm +sge/qmon/PIXMAPS/toolbar_cluster.xpm +sge/qmon/PIXMAPS/toolbar_cplx.xpm +sge/qmon/PIXMAPS/toolbar_exit.xpm +sge/qmon/PIXMAPS/toolbar_host.xpm +sge/qmon/PIXMAPS/toolbar_job.xpm +sge/qmon/PIXMAPS/toolbar_pe.xpm +sge/qmon/PIXMAPS/toolbar_prj.xpm +sge/qmon/PIXMAPS/toolbar_queue.xpm +sge/qmon/PIXMAPS/toolbar_sched.xpm +sge/qmon/PIXMAPS/toolbar_submit.xpm +sge/qmon/PIXMAPS/toolbar_ticket.xpm +sge/qmon/PIXMAPS/toolbar_user.xpm +sge/qmon/PIXMAPS/trashcan.xpm +sge/qmon/PIXMAPS/unknown.xpm +sge/qmon/PIXMAPS/xterm-axp.xpm +sge/qmon/PIXMAPS/xterm-blank.xpm +sge/qmon/PIXMAPS/xterm-cray.xpm +sge/qmon/PIXMAPS/xterm-dec.xpm +sge/qmon/PIXMAPS/xterm-hp.xpm +sge/qmon/PIXMAPS/xterm-ibm.xpm +sge/qmon/PIXMAPS/xterm-linux.xpm +sge/qmon/PIXMAPS/xterm-sgi.xpm +sge/qmon/PIXMAPS/xterm-sgi1.xpm +sge/qmon/PIXMAPS/xterm-sol.xpm +sge/qmon/PIXMAPS/xterm-sun.xpm +sge/qmon/PIXMAPS/xterm.xpm +sge/qmon/Qmon +sge/qmon/qmon_help.ad +sge/util/arch +sge/util/arch.orig +sge/util/arch_variables +sge/util/arch_variables.orig +sge/util/create_settings.sh +sge/util/dl.csh +sge/util/dl.sh +sge/util/dl1.csh +sge/util/dl2.csh +sge/util/install_cluster.sh +sge/util/logchecker.sh +sge/util/qhold.sh +sge/util/qtask +sge/util/resources/calendars/day +sge/util/resources/calendars/day_s +sge/util/resources/calendars/night +sge/util/resources/calendars/night_s +sge/util/resources/complexes/global +sge/util/resources/complexes/host +sge/util/resources/complexes/queue +sge/util/resources/loadsensors/calendar.sh +sge/util/resources/loadsensors/ibm-loadsensor +sge/util/resources/loadsensors/load.sh +sge/util/resources/loadsensors/nuser.sh +sge/util/resources/loadsensors/sgi_tty_sensor.sh +sge/util/resources/loadsensors/solaris-iidle.sh +sge/util/resources/pe/make +sge/util/resources/starter_methods/settaskid.sh +sge/util/resources/usersets/deadlineusers +sge/util/resources/usersets/defaultdepartment +sge/util/setfileperm.sh +sge/util/sgeCA/sge_ca +sge/util/sgeCA/sge_ssl.cnf +sge/util/sgeCA/sge_ssl_template.cnf +sge/util/sge_addadminhost.sh +sge/util/sge_aliases +sge/util/sge_request +sge/util/sge_update.sh +sge/util/sgeremoterun +sge/util/shutdown_commd.sh +sge/util/startup_template +sge/util/update_commands/accounting.awk +sge/util/update_commands/configuration.sh +sge/util/update_commands/exec_hosts.sed +sge/util/update_commands/queues.sed +sge/util/update_commands/sge2sgeee-exec_hosts.sed +sge/util/update_commands/sge2sgeee-queues.sed +sge/util/update_commands/sge_startupscript.sh +sge/util/update_commands/sgeee-sched_configuration.template +sge/util/update_commands/startup.sh +sge/util/update_commands/usersets.sed +sge/utilbin/${SGE_ARCH}/adminrun +sge/utilbin/${SGE_ARCH}/checkprog +sge/utilbin/${SGE_ARCH}/checkuser +sge/utilbin/${SGE_ARCH}/filestat +sge/utilbin/${SGE_ARCH}/gethostbyaddr +sge/utilbin/${SGE_ARCH}/gethostbyname +sge/utilbin/${SGE_ARCH}/gethostname +sge/utilbin/${SGE_ARCH}/getservbyname +sge/utilbin/${SGE_ARCH}/infotext +sge/utilbin/${SGE_ARCH}/loadcheck +sge/utilbin/${SGE_ARCH}/now +sge/utilbin/${SGE_ARCH}/openssl +sge/utilbin/${SGE_ARCH}/qrsh_starter +sge/utilbin/${SGE_ARCH}/rlogin +sge/utilbin/${SGE_ARCH}/rsh +sge/utilbin/${SGE_ARCH}/rshd +sge/utilbin/${SGE_ARCH}/testsuidroot +sge/utilbin/${SGE_ARCH}/uidgid +@dirrm sge/utilbin/${SGE_ARCH} +@dirrm sge/utilbin +@dirrm sge/util/update_commands +@dirrm sge/util/sgeCA +@dirrm sge/util/resources/usersets +@dirrm sge/util/resources/starter_methods +@dirrm sge/util/resources/pe +@dirrm sge/util/resources/loadsensors +@dirrm sge/util/resources/complexes +@dirrm sge/util/resources/calendars +@dirrm sge/util/resources +@dirrm sge/util +@dirrm sge/qmon/PIXMAPS/big +@dirrm sge/qmon/PIXMAPS +@dirrm sge/qmon +@dirrm sge/pvm/src +@dirrm sge/pvm +@dirrm sge/mpi/sunhpc/tight-integration +@dirrm sge/mpi/sunhpc/loose-integration/accounting +@dirrm sge/mpi/sunhpc/loose-integration +@dirrm sge/mpi/sunhpc +@dirrm sge/mpi +@dirrm sge/man/man8 +@dirrm sge/man/man5 +@dirrm sge/man/man1 +@dirrm sge/man +@exec ${MKDIR} %D/sge/locale +@dirrm sge/locale +@dirrm sge/lib/${SGE_ARCH} +@dirrm sge/lib +@dirrm sge/examples/jobsbin/${SGE_ARCH} +@dirrm sge/examples/jobsbin +@dirrm sge/examples/jobs +@dirrm sge/examples +@dirrm sge/doc +@dirrm sge/ckpt +@dirrm sge/bin/${SGE_ARCH} +@dirrm sge/bin +@dirrm sge/3rd_party/qmon +@dirrm sge/3rd_party +@comment the various queue setups get created in this directory +@unexec ${RMDIR} %D/sge 2>/dev/null || ${TRUE} diff --git a/parallel/sge/distinfo b/parallel/sge/distinfo new file mode 100644 index 00000000000..1d692d60501 --- /dev/null +++ b/parallel/sge/distinfo @@ -0,0 +1,36 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +SHA1 (sge-5.3p6.tar.gz) = be0ff4ea59d14a1186e5fd35987df6f15fbc21fe +Size (sge-5.3p6.tar.gz) = 9388452 bytes +SHA1 (patch-aa) = 6bc216cc0a1017332215fac5a8a1858cb1420ca0 +SHA1 (patch-ab) = e8597dfa756b5174736799e94fd93b20b819852e +SHA1 (patch-ac) = e8b7b6b56a6580562cc756ed37883a79c2936dc9 +SHA1 (patch-ad) = 352a7b36511468368d0727dedcb73f7a9738b4d6 +SHA1 (patch-ae) = 2827fe4999413aaf833e57ecfa44fd495809e02d +SHA1 (patch-af) = 9aff8304400779b6bd593fd067f464437b065c70 +SHA1 (patch-ag) = 84569ad4be04eb432e96bda57a2fc01b1e5e918a +SHA1 (patch-ah) = f437b0ff442cd68bda1d606b0abb963000b4636b +SHA1 (patch-ai) = cbfd2cab0e0a37aad2d1daa2e06ea0190fd9b856 +SHA1 (patch-aj) = 8b1627494067e559ed2a299f3b1de7d1e6d9c160 +SHA1 (patch-ak) = 40838c21066f55c2da19e87e93ccd9c71a6c761f +SHA1 (patch-al) = 6eeb76e376e69d3e40fcb034ae35a41179941020 +SHA1 (patch-am) = 9f4b0ed9ea0e322a78fe9c72f4650bc4bced51d8 +SHA1 (patch-an) = a7b3738d0bb6893215300608c096156b5c94b3a4 +SHA1 (patch-ao) = 22788540ea416f8630f4e423775f28abc2941eec +SHA1 (patch-ap) = 97f14b5c2469b977806458aa670f2fdbfdc38476 +SHA1 (patch-aq) = 1d2bd0d16a4e8bb7e614f6e8bef8b9205da24e71 +SHA1 (patch-ar) = ecf6259d9f4eb91f84fa86ea3853cde64b746088 +SHA1 (patch-as) = 114dad61ed17d0668303c472a42b049691fa1664 +SHA1 (patch-at) = 502b66d687afebb9d945c1664e11978986be0fbc +SHA1 (patch-au) = cec0609d9239ecc9749249145851ad4f637db38a +SHA1 (patch-av) = da8392761b8c9cfdc0c82f3d3df7edf73584c59e +SHA1 (patch-aw) = 3670f7acd9ab345b94e940214615dede8d40f31f +SHA1 (patch-ax) = 955c2114b8ac2bdce1530b57eb8fd0c19ae70c45 +SHA1 (patch-ay) = 247fa793afe0b7c3b2de178e08922ac62381fd7f +SHA1 (patch-az) = 513d21dfdb153545ede5445d74333a6e43f84a1d +SHA1 (patch-ba) = 06385fb7ffe2336d065a4d79f77b06f579a4e5ae +SHA1 (patch-bb) = 0894bfae85766e0a28e24b00e2c1cf94de53e0e7 +SHA1 (patch-bc) = ff0d2bb7faa8ece9fad0a1bb9dab3a47fcdce5b4 +SHA1 (patch-bd) = cfdbe67062bd4d08ce499c13f449b3a60f3e297b +SHA1 (patch-be) = b195148431d2225abe937934608959d94dd9b10a +SHA1 (patch-bf) = 65c9d44a435802be2c209260bbd5c78c60560298 diff --git a/parallel/sge/patches/patch-aa b/parallel/sge/patches/patch-aa new file mode 100644 index 00000000000..bc97ae8c5b6 --- /dev/null +++ b/parallel/sge/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/3rdparty/qmake/configure.orig 2001-07-18 11:05:54.000000000 +0000 ++++ source/3rdparty/qmake/configure +@@ -4457,7 +4457,7 @@ else + fi + + +- REMOTE=stub ++ REMOTE=${REMOTE:-stub} + make_try_customs=no + # Check whether --with-customs or --without-customs was given. + if test "${with_customs+set}" = set; then diff --git a/parallel/sge/patches/patch-ab b/parallel/sge/patches/patch-ab new file mode 100644 index 00000000000..0e3621b62e4 --- /dev/null +++ b/parallel/sge/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/3rdparty/qtcsh/Makefile.in.orig 2001-07-18 11:06:04.000000000 +0000 ++++ source/3rdparty/qtcsh/Makefile.in +@@ -25,7 +25,7 @@ CF=-c + + CPPFLAGS=-I. -I$(srcdir) + +-LFLAGS= ++LFLAGS= $(SGE_LOPTS) + #LFLAGS= -Zn10000 # hpux lint + + +@@ -627,3 +627,7 @@ ${EDOBJS} ${EDDINC}: ed.defns.h + + # tc.defs.o + tc.defs.${SUF}: tc.defs.c sh.h ++ ++depend: ++ echo "No depends target for qtsch yet" ++ diff --git a/parallel/sge/patches/patch-ac b/parallel/sge/patches/patch-ac new file mode 100644 index 00000000000..dc77d37f311 --- /dev/null +++ b/parallel/sge/patches/patch-ac @@ -0,0 +1,17 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/3rdparty/qtcsh/configure.in.orig 2004-03-03 13:09:22.000000000 +0000 ++++ source/3rdparty/qtcsh/configure.in +@@ -259,9 +259,9 @@ AC_ARG_WITH(grd, + [ --with-grd=ARCH SGE/SGEEE ARCH (LINUX5/LINUX6...)], + [grd="$withval"], [grd=no]) + if test "$grd" != no; then +- GRDDEF="-I../../apilib" +- GRDLIB="-L../../$grd -lcodine -L/home/codine/zlib/$grd -lz -lm" +- CFLAGS="$CFLAGS -DPROG_NAME='\"qtcsh\"'" ++ GRDDEF="-I../../../libs/gdi" ++ GRDLIB="-L../../../$grd -R${SGE_ROOT}/lib/${SGE_ARCH} \$(SGE_LIBS) ${LDFLAGS}" ++ CFLAGS="$CFLAGS -DPROG_NAME='\"qtcsh\"' -D$grd" + fi + AC_SUBST(GRDDEF) + AC_SUBST(GRDLIB) diff --git a/parallel/sge/patches/patch-ad b/parallel/sge/patches/patch-ad new file mode 100644 index 00000000000..40ea30a702a --- /dev/null +++ b/parallel/sge/patches/patch-ad @@ -0,0 +1,17 @@ +$NetBSD: patch-ad,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/3rdparty/qtcsh/configure.orig 2004-03-03 13:09:22.000000000 +0000 ++++ source/3rdparty/qtcsh/configure +@@ -1500,9 +1500,9 @@ else + fi + + if test "$grd" != no; then +- GRDDEF="-I../../apilib" +- GRDLIB="-L../../$grd -lcodine -L/home/codine/zlib/$grd -lz -lm" +- CFLAGS="$CFLAGS -DPROG_NAME='\"qtcsh\"'" ++ GRDDEF="-I../../../libs/gdi" ++ GRDLIB="-L../../../$grd -R${SGE_ROOT}/lib/${SGE_ARCH} \$(SGE_LIBS) ${LDFLAGS}" ++ CFLAGS="$CFLAGS -DPROG_NAME='\"qtcsh\"' -D$grd" + fi + + diff --git a/parallel/sge/patches/patch-ae b/parallel/sge/patches/patch-ae new file mode 100644 index 00000000000..2dd45b7861d --- /dev/null +++ b/parallel/sge/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/clients/qmon/Makefile.orig 2004-03-03 13:09:34.000000000 +0000 ++++ source/clients/qmon/Makefile +@@ -135,7 +135,7 @@ messages: + # rules to build binaries + ############################################################################### + qmon: $(QMON_OBJS) $(QMON_ADD_OBJS) $(QMON_LIB_DEPENDS) +- $(LD_WRAPPER) $(CC) $(LFLAGS) $(XLFLAGS) -o $@ $(QMON_OBJS) $(QMON_ADD_OBJS) $(QMON_ADD_LIBS) $(XLIBS) $(SLIBS) $(LIBS) ++ $(LD_WRAPPER) $(CC) $(LFLAGS) $(LDFLAGS) $(XLFLAGS) -o $@ $(QMON_OBJS) $(QMON_ADD_OBJS) $(QMON_ADD_LIBS) $(XLIBS) $(SLIBS) $(LIBS) + + ############################################################################ + # ListTree Demo prog diff --git a/parallel/sge/patches/patch-af b/parallel/sge/patches/patch-af new file mode 100644 index 00000000000..7c22d2e771c --- /dev/null +++ b/parallel/sge/patches/patch-af @@ -0,0 +1,15 @@ +$NetBSD: patch-af,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/3rdparty/qmon/iconlist/IconList.c 2003-10-02 14:25:24.000000000 +0200 ++++ source/3rdparty/qmon/iconlist/IconList.c 2003-09-30 16:35:21.000000000 +0200 +@@ -50,6 +50,10 @@ + #include <Xm/Traversal.h> + #endif + ++#ifdef LesstifVersion ++#undef NeedWidePrototypes ++#endif ++ + #if XmVersion >= 2000 + extern void _XmResizeObject( + Widget g, diff --git a/parallel/sge/patches/patch-ag b/parallel/sge/patches/patch-ag new file mode 100644 index 00000000000..f8c7628ed94 --- /dev/null +++ b/parallel/sge/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/3rdparty/qmon/spinbox/Spinbox.c.orig 2004-03-03 13:09:21.000000000 +0000 ++++ source/3rdparty/qmon/spinbox/Spinbox.c +@@ -1796,7 +1796,7 @@ static Boolean long_get_value ( + { + #ifdef CRAY + errno = 0; +-#elif !defined(LINUX6) && !defined(SOLARIS) && !defined(ALINUX) && !defined(SLINUX) && !defined(DARWIN) && !defined(FREEBSD) && !defined(IA64LINUX) && !defined(LINUXAMD64) ++#elif !defined(LINUX6) && !defined(SOLARIS) && !defined(ALINUX) && !defined(SLINUX) && !defined(DARWIN) && !defined(FREEBSD) && !defined(NETBSD) && !defined(IA64LINUX) && !defined(LINUXAMD64) + int errno = 0; + #endif + *value = strtol ( buffer, NULL, 10 ); diff --git a/parallel/sge/patches/patch-ah b/parallel/sge/patches/patch-ah new file mode 100644 index 00000000000..ba1e3634e0c --- /dev/null +++ b/parallel/sge/patches/patch-ah @@ -0,0 +1,22 @@ +$NetBSD: patch-ah,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/aimk.site.orig 2004-04-22 13:37:59.000000000 +0000 ++++ source/aimk.site +@@ -34,7 +34,7 @@ + # OPENSSL_HOME the directory where the include and lib directory of openssl + # is installed + # +-set OPENSSL_HOME = /vol2/tools/SW/openssl-0.9.7d-static/$buildarch ++set OPENSSL_HOME = @ssl_prefix@ + + # + # KRB_HOME the directory where the include and lib directory of kerberos is +@@ -63,7 +63,7 @@ set SWIG = /vol2/tools/SW/$buildarch/bin + # + # PERL path + # +-set PERL = /vol2/tools/SW/$buildarch/bin/perl ++set PERL = @perl5@ + + # + # TCLSH path diff --git a/parallel/sge/patches/patch-ai b/parallel/sge/patches/patch-ai new file mode 100644 index 00000000000..9759678b32a --- /dev/null +++ b/parallel/sge/patches/patch-ai @@ -0,0 +1,10 @@ +$NetBSD: patch-ai,v 1.1.1.1 2004/05/03 00:38:34 dmcmahill Exp $ + +--- source/scripts/distinst.site.orig 2004-04-22 13:39:12.000000000 +0000 ++++ source/scripts/distinst.site +@@ -34,4 +34,4 @@ + BASEDIR=/dist/OS-SGEDIST + + # Base directory where the openssl binary resides +-OPENSSL_HOME=/vol2/tools/SW/openssl-0.9.7d-static ++OPENSSL_HOME=@ssl_prefix@ diff --git a/parallel/sge/patches/patch-aj b/parallel/sge/patches/patch-aj new file mode 100644 index 00000000000..428322b2d07 --- /dev/null +++ b/parallel/sge/patches/patch-aj @@ -0,0 +1,13 @@ +$NetBSD: patch-aj,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/3rdparty/qtcsh/tc.alloc.c.orig 2004-03-03 13:09:22.000000000 +0000 ++++ source/3rdparty/qtcsh/tc.alloc.c +@@ -167,7 +167,7 @@ static void morecore __P((int)); + #endif + + +-#if defined(SOLARIS) || defined(SOLARIS64) || defined(SOLARIS86) || defined(SUN4) || defined (HP11) || defined(LINUX5) || defined(ALPHA5) || defined(ALPHA4) || defined(ALINUX) || defined(LINUX60) || defined(LINUX6) || defined(SLINUX) || defined(FREEBSD)|| defined(DARWIN) || defined(IA64LINUX) || defined(LINUXAMD64) ++#if defined(SOLARIS) || defined(SOLARIS64) || defined(SOLARIS86) || defined(SUN4) || defined (HP11) || defined(LINUX5) || defined(ALPHA5) || defined(ALPHA4) || defined(ALINUX) || defined(LINUX60) || defined(LINUX6) || defined(SLINUX) || defined(FREEBSD)|| defined(NETBSD) || defined(DARWIN) || defined(IA64LINUX) || defined(LINUXAMD64) + # ifdef const + # undef const + # endif diff --git a/parallel/sge/patches/patch-ak b/parallel/sge/patches/patch-ak new file mode 100644 index 00000000000..abe887e5182 --- /dev/null +++ b/parallel/sge/patches/patch-ak @@ -0,0 +1,13 @@ +$NetBSD: patch-ak,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/3rdparty/remote/rlogin.c 2003-10-02 14:25:26.000000000 +0200 ++++ source/3rdparty/remote/rlogin.c 2003-09-30 16:36:41.000000000 +0200 +@@ -64,7 +64,7 @@ + #include <string.h> + #include <unistd.h> + +-#if !defined(FREEBSD) && !defined(DARWIN) ++#if !defined(FREEBSD) && !defined(DARWIN) && !defined(NETBSD) + #include <values.h> + #endif + diff --git a/parallel/sge/patches/patch-al b/parallel/sge/patches/patch-al new file mode 100644 index 00000000000..c82fa009c12 --- /dev/null +++ b/parallel/sge/patches/patch-al @@ -0,0 +1,13 @@ +$NetBSD: patch-al,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/3rdparty/remote/rsh.c 2003-10-02 14:25:27.000000000 +0200 ++++ source/3rdparty/remote/rsh.c 2003-09-30 16:37:02.000000000 +0200 +@@ -85,7 +85,7 @@ + int rcmd(char **, u_short, char *, char *, char *, int *); + #endif + +-#if !defined(FREEBSD) && !defined(DARWIN) ++#if !defined(FREEBSD) && !defined(DARWIN) && !defined(NETBSD) + #include <values.h> + #endif + diff --git a/parallel/sge/patches/patch-am b/parallel/sge/patches/patch-am new file mode 100644 index 00000000000..70438f137ab --- /dev/null +++ b/parallel/sge/patches/patch-am @@ -0,0 +1,124 @@ +$NetBSD: patch-am,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/aimk.orig 2004-04-22 13:37:59.000000000 +0000 ++++ source/aimk +@@ -122,6 +122,72 @@ case "hp11-64": + case "irix6": + set BUILDARCH = IRIX6 + breaksw ++case "nbsd-alpha": ++ set BUILDARCH = NETBSD_ALPHA ++ breaksw ++case "nbsd-arm": ++ set BUILDARCH = NETBSD_ARM ++ breaksw ++case "nbsd-arm32": ++ set BUILDARCH = NETBSD_ARM32 ++ breaksw ++case "nbsd-armeb": ++ set BUILDARCH = NETBSD_ARMEB ++ breaksw ++case "nbsd-hppa": ++ set BUILDARCH = NETBSD_HPPA ++ breaksw ++case "nbsd-i386": ++ set BUILDARCH = NETBSD_I386 ++ breaksw ++case "nbsd-m68000": ++ set BUILDARCH = NETBSD_M68000 ++ breaksw ++case "nbsd-m68k": ++ set BUILDARCH = NETBSD_M68K ++ breaksw ++case "nbsd-mipseb": ++ set BUILDARCH = NETBSD_MIPSEB ++ breaksw ++case "nbsd-mipsel": ++ set BUILDARCH = NETBSD_MIPSEL ++ breaksw ++case "nbsd-ns32k": ++ set BUILDARCH = NETBSD_NS32K ++ breaksw ++case "nbsd-pdp10": ++ set BUILDARCH = NETBSD_PDP10 ++ breaksw ++case "nbsd-powerpc": ++ set BUILDARCH = NETBSD_POWERPC ++ breaksw ++case "nbsd-sh3": ++ set BUILDARCH = NETBSD_SH3 ++ breaksw ++case "nbsd-sh3eb": ++ set BUILDARCH = NETBSD_SH3EB ++ breaksw ++case "nbsd-sh3el": ++ set BUILDARCH = NETBSD_SH3EL ++ breaksw ++case "nbsd-sh5eb": ++ set BUILDARCH = NETBSD_SH5EB ++ breaksw ++case "nbsd-sh5el": ++ set BUILDARCH = NETBSD_SH5EL ++ breaksw ++case "nbsd-sparc": ++ set BUILDARCH = NETBSD_SPARC ++ breaksw ++case "nbsd-sparc64": ++ set BUILDARCH = NETBSD_SPARC64 ++ breaksw ++case "nbsd-vax": ++ set BUILDARCH = NETBSD_VAX ++ breaksw ++case "nbsd-x86_64": ++ set BUILDARCH = NETBSD_X86_64 ++ breaksw + case "necsx4": + set BUILDARCH = NECSX4 + breaksw +@@ -1091,6 +1157,46 @@ case FREEBSD_*: + set RM = "rm -f" + breaksw + ++case NETBSD_*: ++ set COMPILE_DC = 1 ++ set MAKE = gmake ++ set OFLAG = "-O" ++ set ARFLAGS = rcv ++ set CC = gcc ++ set CXX = g++ ++ set DLLIB = "" ++ set DEPEND_FLAGS = "$CFLAGS $XMTINCD" ++ set PTHRDSFLAGS = "-D_REENTRANT -D__USE_REENTRANT" ++ set CFLAGS = "$OFLAG -Wall -DNETBSD -D$BUILDARCH $DEBUG_FLAG $CFLAGS -I${X11BASE}/include" ++ set CXXFLAGS = "$OFLAG -Wstrict-prototypes -DNETBSD -D$BUILDARCH $DEBUG_FLAG $CXXFLAGS" ++ set NOERR_CFLAG = "-Wno-error" ++ set GCC_NOERR_CFLAGS = "$CFLAGS -Wno-error" ++ set GCC_NOERR_CXXFLAGS = "$CXXFLAGS -Wno-error" ++ set LFLAGS = "$DEBUG_FLAG $LFLAGS -L${LOCALBASE}/lib -R${LOCALBASE}/lib" ++ set LIBS = "$LIBS -lkvm" ++ set SHAREDLD = $CC ++ set SHARED_CFLAGS = "-fPIC" ++ set SHARED_LFLAGS = "-L. -shared" ++ ++ if ( $STATIC == 1 ) then ++ echo "STATITCS" ++ set CFLAGS = "-static $CFLAGS" ++ set CXXFLAGS = "-static $CXXFLAGS" ++ endif ++ ++ set KLIBS = "-lcrypto" ++ ++ set XMTDEF = "" ++ set XINCD = "$XMTINCD $XINCD -I${X11BASE}/include" ++ set XCFLAGS = "-Wno-strict-prototypes -Wno-error $XMTDEF $XINCD" ++ set XLIBD = "-L${X11BASE}/lib -R${X11BASE}/lib -L${LOCALBASE}/lib -R${LOCALBASE}/lib" ++ set XLFLAGS = "$XLIBD" ++ set XLIBS = " -lXm -lXpm -lXt -lXext -lX11 -lSM -lICE -lXp" ++ ++ set SGE_NPROCS_CFLAGS = "$CFLAGS" ++ set RM = "rm -f" ++ breaksw ++ + case IRIX6*: + set COMPILE_DC = 1 + set ARCH = $IRIX_ARCHDEF diff --git a/parallel/sge/patches/patch-an b/parallel/sge/patches/patch-an new file mode 100644 index 00000000000..c334c4be27d --- /dev/null +++ b/parallel/sge/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/clients/qevent/qevent.c 2003-10-02 14:25:29.000000000 +0200 ++++ source/clients/qevent/qevent.c 2003-10-01 14:22:09.000000000 +0200 +@@ -35,7 +35,7 @@ + #include <time.h> + #include <unistd.h> + #include <string.h> +-#if defined(FREEBSD) || defined(DARWIN) ++#if defined(FREEBSD) || defined(DARWIN) || defined(NETBSD) + #include <sys/time.h> + #endif + diff --git a/parallel/sge/patches/patch-ao b/parallel/sge/patches/patch-ao new file mode 100644 index 00000000000..1a971e591db --- /dev/null +++ b/parallel/sge/patches/patch-ao @@ -0,0 +1,13 @@ +$NetBSD: patch-ao,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/daemons/execd/exec_job.c 2003-10-02 14:25:31.000000000 +0200 ++++ source/daemons/execd/exec_job.c 2003-09-30 16:19:23.000000000 +0200 +@@ -472,7 +472,7 @@ + return "LIBPATH"; + #elif defined(HP10) || defined(HP11) + return "SHLIB_PATH"; +-#elif defined(ALPHA) || defined(IRIX6) || defined(IRIX65) || defined(LINUX) || defined(SOLARIS) || defined(FREEBSD) ++#elif defined(ALPHA) || defined(IRIX6) || defined(IRIX65) || defined(LINUX) || defined(SOLARIS) || defined(FREEBSD) || defined(NETBSD) + return "LD_LIBRARY_PATH"; + #elif defined(DARWIN) + return "DYLD_LIBRARY_PATH"; diff --git a/parallel/sge/patches/patch-ap b/parallel/sge/patches/patch-ap new file mode 100644 index 00000000000..a3f57592f08 --- /dev/null +++ b/parallel/sge/patches/patch-ap @@ -0,0 +1,31 @@ +$NetBSD: patch-ap,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/daemons/execd/ptf.c 2003-10-02 14:25:32.000000000 +0200 ++++ source/daemons/execd/ptf.c 2003-09-30 16:20:33.000000000 +0200 +@@ -279,7 +279,7 @@ + { + osjobid_t osjobid; + +-#if !defined(LINUX) && !defined(SOLARIS) && !defined(ALPHA5) && !defined(NECSX4) && !defined(NECSX5) && !defined(DARWIN) && !defined(FREEBSD) ++#if !defined(LINUX) && !defined(SOLARIS) && !defined(ALPHA5) && !defined(NECSX4) && !defined(NECSX5) && !defined(DARWIN) && !defined(FREEBSD) && !defined(NETBSD) + + osjobid = lGetUlong(osjob, JO_OS_job_ID2); + osjobid = (osjobid << 32) + lGetUlong(osjob, JO_OS_job_ID); +@@ -309,7 +309,7 @@ + ******************************************************************************/ + static void ptf_set_osjobid(lListElem *osjob, osjobid_t osjobid) + { +-#if !defined(LINUX) && !defined(SOLARIS) && !defined(ALPHA5) && !defined(NECSX4) && !defined(NECSX5) && !defined(DARWIN) && !defined(FREEBSD) ++#if !defined(LINUX) && !defined(SOLARIS) && !defined(ALPHA5) && !defined(NECSX4) && !defined(NECSX5) && !defined(DARWIN) && !defined(FREEBSD) && !defined(NETBSD) + + lSetUlong(osjob, JO_OS_job_ID2, ((u_osjobid_t) osjobid) >> 32); + lSetUlong(osjob, JO_OS_job_ID, osjobid & 0xffffffff); +@@ -948,7 +948,7 @@ + + DENTER(TOP_LAYER, "ptf_get_job_os"); + +-#if defined(LINUX) || defined(SOLARIS) || defined(ALPHA5) || defined(NECSX4) || defined(NECSX5) || defined(DARWIN) || defined(FREEBSD) ++#if defined(LINUX) || defined(SOLARIS) || defined(ALPHA5) || defined(NECSX4) || defined(NECSX5) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + where = lWhere("%T(%I == %u)", JO_Type, JO_OS_job_ID, (u_long32) os_job_id); + #else + where = lWhere("%T(%I == %u && %I == %u)", JO_Type, diff --git a/parallel/sge/patches/patch-aq b/parallel/sge/patches/patch-aq new file mode 100644 index 00000000000..d91f7b45581 --- /dev/null +++ b/parallel/sge/patches/patch-aq @@ -0,0 +1,17 @@ +$NetBSD: patch-aq,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/daemons/execd/ptf.h 2003-10-02 14:25:32.000000000 +0200 ++++ source/daemons/execd/ptf.h 2003-09-30 16:21:00.000000000 +0200 +@@ -168,6 +168,12 @@ + # define PTF_MAX_PRIORITY -10 + # define PTF_OS_MIN_PRIORITY 20 + # define PTF_OS_MAX_PRIORITY -20 ++# elif defined(NETBSD) ++# define ENFORCE_PRI_RANGE 1 ++# define PTF_MIN_PRIORITY 20 ++# define PTF_MAX_PRIORITY -10 ++# define PTF_OS_MIN_PRIORITY 20 ++# define PTF_OS_MAX_PRIORITY -20 + # endif + # define PTF_BACKGROUND_JOB_PROPORTION 0.015 + # define PTF_BACKGROUND_JOB_PRIORITY NDPLOMAX diff --git a/parallel/sge/patches/patch-ar b/parallel/sge/patches/patch-ar new file mode 100644 index 00000000000..9dbef91552a --- /dev/null +++ b/parallel/sge/patches/patch-ar @@ -0,0 +1,22 @@ +$NetBSD: patch-ar,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/daemons/shepherd/setrlimits.c.orig 2004-03-03 13:10:00.000000000 +0000 ++++ source/daemons/shepherd/setrlimits.c +@@ -34,7 +34,7 @@ + #include <stdlib.h> + #include <errno.h> + +-#if defined(SUN4) || defined(DARWIN) || defined(FREEBSD) ++#if defined(SUN4) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + # include <sys/time.h> + #endif + +@@ -406,7 +406,7 @@ int trace_rlimit + + #if defined(ALINUX) || defined(LINUX5) || ( defined(SOLARIS) && !defined(SOLARIS64) ) || defined(NECSX4) || defined(NECSX5) + # define limit_fmt "%ld" +-#elif defined(LINUX6) || defined(IRIX6) || defined(HP11) || defined(HP10) || defined(DARWIN) || defined(FREEBSD) ++#elif defined(LINUX6) || defined(IRIX6) || defined(HP11) || defined(HP10) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + # define limit_fmt "%lld" + #elif defined(ALPHA) || defined(SOLARIS64) || defined(IA64LINUX) || defined(LINUXAMD64) + # define limit_fmt "%lu" diff --git a/parallel/sge/patches/patch-as b/parallel/sge/patches/patch-as new file mode 100644 index 00000000000..5050c0bc50f --- /dev/null +++ b/parallel/sge/patches/patch-as @@ -0,0 +1,26 @@ +$NetBSD: patch-as,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/dist/util/arch 2003-10-02 14:25:34.000000000 +0200 ++++ source/dist/util/arch 2003-09-30 15:53:29.000000000 +0200 +@@ -63,6 +63,9 @@ + FreeBSD,*) + ARCH=fbsd-$ht + ;; ++ NetBSD,*) ++ ARCH=nbsd-$ht ++ ;; + esac + fi + +@@ -267,6 +270,11 @@ + DEFAULTMANPATH=`/usr/bin/manpath -q` + PATH=$SAFE_PATH + ;; ++ nbsd-*) ++ PATH=$OLD_PATH ++ DEFAULTMANPATH=/usr/pkg/man:/usr/local/man:/usr/X11R6/man:/usr/share/man ++ PATH=$SAFE_PATH ++ ;; + darwin) + DEFAULTMANPATH=`/usr/bin/manpath -q` + SHARED_LIBRARY_PATH="DYLD_LIBRARY_PATH" diff --git a/parallel/sge/patches/patch-at b/parallel/sge/patches/patch-at new file mode 100644 index 00000000000..951f90bb841 --- /dev/null +++ b/parallel/sge/patches/patch-at @@ -0,0 +1,25 @@ +$NetBSD: patch-at,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/dist/util/arch_variables 2003-10-02 14:25:34.000000000 +0200 ++++ source/dist/util/arch_variables 2003-09-30 16:30:23.000000000 +0200 +@@ -166,6 +166,20 @@ + GETTEXT=/usr/local/bin/gettext + ROOTGROUP=wheel + ;; ++ nbsd-*) ++ AWK=/usr/bin/awk ++ ECHO="/bin/echo" ++ RC_FILE=netbsd ++ RC_PREFIX=@rcd_dir@ ++ RC_SUFFIX= ++ XTERM=/usr/X11R6/bin/xterm ++ MAILER=/usr/bin/mail ++ QLOGIN_COMMAND=telnet ++ QLOGIN_DAEMON=/usr/libexec/telnetd ++ RLOGIN_DAEMON=/usr/libexec/rlogind ++ GETTEXT=/usr/bin/gettext ++ ROOTGROUP=wheel ++ ;; + darwin) + AWK=/usr/bin/awk + ECHO=/bin/echo diff --git a/parallel/sge/patches/patch-au b/parallel/sge/patches/patch-au new file mode 100644 index 00000000000..be42c7fc710 --- /dev/null +++ b/parallel/sge/patches/patch-au @@ -0,0 +1,13 @@ +$NetBSD: patch-au,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/comm/commlib.c 2003-10-02 14:25:46.000000000 +0200 ++++ source/libs/comm/commlib.c 2003-09-30 16:09:54.000000000 +0200 +@@ -63,7 +63,7 @@ + int gethostname(char *name, int namelen); + #endif + +-#if defined(DARWIN) || defined(FREEBSD) ++#if defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + # define SIGCLD SIGCHLD + #endif + diff --git a/parallel/sge/patches/patch-av b/parallel/sge/patches/patch-av new file mode 100644 index 00000000000..8c0b9f73b48 --- /dev/null +++ b/parallel/sge/patches/patch-av @@ -0,0 +1,13 @@ +$NetBSD: patch-av,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/rmon/rmon_semaph.c 2003-10-02 14:25:47.000000000 +0200 ++++ source/libs/rmon/rmon_semaph.c 2003-09-30 16:14:54.000000000 +0200 +@@ -56,7 +56,7 @@ + /* + * Define the semaphore operation arrays for the semop() calls. + */ +-#if defined(bsd4_2) || defined(MACH) || defined(__hpux) || defined(_AIX) || defined(SOLARIS) || defined(SINIX) || (defined(LINUX) && defined(_SEM_SEMUN_UNDEFINED)) ++#if defined(bsd4_2) || defined(MACH) || defined(__hpux) || defined(_AIX) || defined(SOLARIS) || defined(SINIX) || (defined(LINUX) && defined(_SEM_SEMUN_UNDEFINED)) || defined(NETBSD) + union semun { + int val; /* value for SETVAL */ + struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ diff --git a/parallel/sge/patches/patch-aw b/parallel/sge/patches/patch-aw new file mode 100644 index 00000000000..b7ec64c3c4b --- /dev/null +++ b/parallel/sge/patches/patch-aw @@ -0,0 +1,59 @@ +$NetBSD: patch-aw,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_arch.c.orig 2004-03-03 13:11:00.000000000 +0000 ++++ source/libs/uti/sge_arch.c +@@ -129,6 +129,54 @@ const char *sge_get_arch() + # define ARCHBIN "darwin" + #elif defined(IA64LINUX) + # define ARCHBIN "ia64linux" ++#elif defined(NETBSD) ++# if defined(NETBSD_ALPHA) ++# define ARCHBIN "nbsd-alpha" ++# elif defined(NETBSD_ARM) ++# define ARCHBIN "nbsd-arm" ++# elif defined(NETBSD_ARM32) ++# define ARCHBIN "nbsd-arm32" ++# elif defined(NETBSD_ARMEB) ++# define ARCHBIN "nbsd-armeb" ++# elif defined(NETBSD_HPPA) ++# define ARCHBIN "nbsd-hppa" ++# elif defined(NETBSD_I386) ++# define ARCHBIN "nbsd-i386" ++# elif defined(NETBSD_M68000) ++# define ARCHBIN "nbsd-m68000" ++# elif defined(NETBSD_M68K) ++# define ARCHBIN "nbsd-m68k" ++# elif defined(NETBSD_MIPSEB) ++# define ARCHBIN "nbsd-mipseb" ++# elif defined(NETBSD_MIPSEL) ++# define ARCHBIN "nbsd-mipsel" ++# elif defined(NETBSD_NS32K) ++# define ARCHBIN "nbsd-ns32k" ++# elif defined(NETBSD_PDP10) ++# define ARCHBIN "nbsd-pdp10" ++# elif defined(NETBSD_POWERPC) ++# define ARCHBIN "nbsd-powerpc" ++# elif defined(NETBSD_SH3) ++# define ARCHBIN "nbsd-sh3" ++# elif defined(NETBSD_SH3EB) ++# define ARCHBIN "nbsd-sh3eb" ++# elif defined(NETBSD_SH3EL) ++# define ARCHBIN "nbsd-sh3el" ++# elif defined(NETBSD_SH5EB) ++# define ARCHBIN "nbsd-sh5eb" ++# elif defined(NETBSD_SH5EL) ++# define ARCHBIN "nbsd-sh5el" ++# elif defined(NETBSD_SPARC) ++# define ARCHBIN "nbsd-sparc" ++# elif defined(NETBSD_SPARC64) ++# define ARCHBIN "nbsd-sparc64" ++# elif defined(NETBSD_VAX) ++# define ARCHBIN "nbsd-vax" ++# elif defined(NETBSD_X86_64) ++# define ARCHBIN "nbsd-x86_64" ++# else ++# pragma "Define a NetBSD architecture for SGE" ++# endif + #else + # pragma "Define an architecture for SGE" + #endif diff --git a/parallel/sge/patches/patch-ax b/parallel/sge/patches/patch-ax new file mode 100644 index 00000000000..bff311c0c30 --- /dev/null +++ b/parallel/sge/patches/patch-ax @@ -0,0 +1,53 @@ +$NetBSD: patch-ax,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_getloadavg.c 2003-10-02 14:25:49.000000000 +0200 ++++ source/libs/uti/sge_getloadavg.c 2003-10-01 17:11:38.000000000 +0200 +@@ -185,6 +185,8 @@ + # define KERNEL_AVG_TYPE double + # define VMUNIX "/stand/vmunix" + # define X_CP_TIME 0 ++#elif defined(NETBSD) ++# include <sys/sched.h> + #endif + + #if defined(SOLARIS) || defined(SOLARIS64) || defined(FREEBSD) +@@ -827,6 +829,30 @@ + return cpu_load; + } + ++#elif defined(NETBSD) ++ ++#include <sys/param.h> ++#include <sys/sysctl.h> ++ ++double get_cpu_load() { ++ int mib[2]; ++ static long cpu_time[CPUSTATES]; ++ static long cpu_old[CPUSTATES]; ++ static long cpu_diff[CPUSTATES]; ++ double cpu_states[CPUSTATES]; ++ double cpu_load; ++ size_t size; ++ ++ mib[0] = CTL_KERN; mib[1] = KERN_CP_TIME; ++ size = sizeof(cpu_time); ++ sysctl(mib, 2, &cpu_time, &size, NULL, 0); ++ percentages(CPUSTATES, cpu_states, cpu_time, cpu_old, cpu_diff); ++ cpu_load = cpu_states[0] + cpu_states[1] + cpu_states[2]; ++ if (cpu_load < 0.0) { ++ cpu_load = -1.0; } ++ ++ return cpu_load; } ++ + #endif + + #if defined(ALPHA4) || defined(ALPHA5) || defined(IRIX6) || defined(HP10) || (defined(SOLARIS) && !defined(SOLARIS64)) +@@ -1150,7 +1176,7 @@ + ) { + int elem = 0; + +-#if defined(SOLARIS64) || defined(FREEBSD) || defined(DARWIN) ++#if defined(SOLARIS64) || defined(FREEBSD) || defined(DARWIN) || defined(NETBSD) + elem = getloadavg(loadavg, nelem); /* <== library function */ + #elif (defined(SOLARIS) && !defined(SOLARIS64)) || defined(ALPHA4) || defined(ALPHA5) || defined(IRIX6) || defined(HP10) || defined(HP11) || defined(CRAY) || defined(NECSX4) || defined(NECSX5) || defined(LINUX) + elem = get_load_avg(loadavg, nelem); diff --git a/parallel/sge/patches/patch-ay b/parallel/sge/patches/patch-ay new file mode 100644 index 00000000000..2cceae28808 --- /dev/null +++ b/parallel/sge/patches/patch-ay @@ -0,0 +1,18 @@ +$NetBSD: patch-ay,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_getloadavg.h 2003-10-02 14:25:49.000000000 +0200 ++++ source/libs/uti/sge_getloadavg.h 2003-10-01 17:12:19.000000000 +0200 +@@ -32,11 +32,11 @@ + ************************************************************************/ + /*___INFO__MARK_END__*/ + +-#if defined(LINUX) || defined(SOLARIS) || defined(SOLARIS64) || defined(CRAY) || defined(NEXSX4) || defined(NECSX5) || defined(ALPHA4) || defined(ALPHA5) || defined(IRIX6) || defined(DARWIN) || defined(FREEBSD) ++#if defined(LINUX) || defined(SOLARIS) || defined(SOLARIS64) || defined(CRAY) || defined(NEXSX4) || defined(NECSX5) || defined(ALPHA4) || defined(ALPHA5) || defined(IRIX6) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + # define SGE_LOADAVG + #endif + +-#if defined(LINUX) || defined(SOLARIS) || defined(SOLARIS64) || defined(ALPHA4) || defined(ALPHA5) || defined(IRIX6) || defined(HP10) || defined(HP11) || defined(DARWIN) || defined(FREEBSD) ++#if defined(LINUX) || defined(SOLARIS) || defined(SOLARIS64) || defined(ALPHA4) || defined(ALPHA5) || defined(IRIX6) || defined(HP10) || defined(HP11) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + # define SGE_LOADCPU + #endif + diff --git a/parallel/sge/patches/patch-az b/parallel/sge/patches/patch-az new file mode 100644 index 00000000000..4cffbaa89a5 --- /dev/null +++ b/parallel/sge/patches/patch-az @@ -0,0 +1,34 @@ +$NetBSD: patch-az,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_loadmem.c 2003-10-02 14:25:50.000000000 +0200 ++++ source/libs/uti/sge_loadmem.c 2003-10-01 16:36:46.000000000 +0200 +@@ -812,3 +812,29 @@ + return 0; + } + #endif /* FREEBSD */ ++ ++#if defined(NETBSD) ++ ++#include <sys/param.h> ++#include <sys/sysctl.h> ++ ++int loadmem(sge_mem_info_t *mem_info) { ++ int mib[2]; ++ size_t size; ++ struct uvmexp_sysctl uvmexp; ++ ++ mib[0] = CTL_VM; mib[1] = VM_UVMEXP2; ++ size = sizeof(uvmexp); ++ sysctl(mib, 2, &uvmexp, &size, NULL, 0); ++ ++ /* Memory */ ++ mem_info->mem_total = (uvmexp.npages * uvmexp.pagesize) / (1024 * 1024); ++ mem_info->mem_free = (uvmexp.free * uvmexp.pagesize) / (1024 * 1024); ++ ++ /* Swap */ ++ mem_info->swap_total = (uvmexp.swpages * uvmexp.pagesize) / (1024 * 1024); ++ mem_info->swap_free = ((uvmexp.swpages - uvmexp.swpginuse) * uvmexp.pagesize) / (1024 * 1024); ++ ++ return 0; } ++ ++#endif /* NETBSD */ diff --git a/parallel/sge/patches/patch-ba b/parallel/sge/patches/patch-ba new file mode 100644 index 00000000000..386951a325c --- /dev/null +++ b/parallel/sge/patches/patch-ba @@ -0,0 +1,13 @@ +$NetBSD: patch-ba,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_loadmem.h 2003-10-02 14:25:50.000000000 +0200 ++++ source/libs/uti/sge_loadmem.h 2003-10-01 15:15:34.000000000 +0200 +@@ -32,7 +32,7 @@ + ************************************************************************/ + /*___INFO__MARK_END__*/ + +-#if defined(CRAY) || defined(SOLARIS) || defined(HP10) || defined(HP11) || defined(ALPHA) || defined(LINUX) || defined(IRIX6) || defined(NECSX4) || defined(NECSX5) || defined(DARWIN) || defined(FREEBSD) ++#if defined(CRAY) || defined(SOLARIS) || defined(HP10) || defined(HP11) || defined(ALPHA) || defined(LINUX) || defined(IRIX6) || defined(NECSX4) || defined(NECSX5) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + + #define SGE_LOADMEM + diff --git a/parallel/sge/patches/patch-bb b/parallel/sge/patches/patch-bb new file mode 100644 index 00000000000..5616930ff6c --- /dev/null +++ b/parallel/sge/patches/patch-bb @@ -0,0 +1,33 @@ +$NetBSD: patch-bb,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_nprocs.c 2003-10-02 14:25:50.000000000 +0200 ++++ source/libs/uti/sge_nprocs.c 2003-09-30 18:37:06.000000000 +0200 +@@ -89,6 +89,11 @@ + # include <sys/sysctl.h> + #endif + ++#if defined(NETBSD) ++# include <sys/param.h> ++# include <sys/sysctl.h> ++#endif ++ + #ifdef NPROCS_TEST + # include <stdio.h> + # include <unistd.h> +@@ -259,6 +264,16 @@ + } + #endif + ++#if defined(NETBSD) ++ int mib[2]; ++ size_t nprocs_len; ++ ++ nprocs_len = sizeof(nprocs); ++ mib[0] = CTL_HW; mib[1] = HW_NCPU; ++ if (sysctl(mib, 2, &nprocs, &nprocs_len, NULL, 0) == -1) { ++ nprocs = -1; } ++#endif ++ + + if (nprocs <= 0) { + nprocs = 1; diff --git a/parallel/sge/patches/patch-bc b/parallel/sge/patches/patch-bc new file mode 100644 index 00000000000..e0acd555b00 --- /dev/null +++ b/parallel/sge/patches/patch-bc @@ -0,0 +1,13 @@ +$NetBSD: patch-bc,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/libs/uti/sge_pids.h 2003-10-02 14:25:50.000000000 +0200 ++++ source/libs/uti/sge_pids.h 2003-09-30 17:52:04.000000000 +0200 +@@ -32,7 +32,7 @@ + ************************************************************************/ + /*___INFO__MARK_END__*/ + +-#if defined(SUN4) || defined(LINUX) || defined(DARWIN) || defined(FREEBSD) ++#if defined(SUN4) || defined(LINUX) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) + # define PSCMD "/bin/ps -axc" + #elif defined(ALPHA) + # define PSCMD "/bin/ps axo pid,ucomm" diff --git a/parallel/sge/patches/patch-bd b/parallel/sge/patches/patch-bd new file mode 100644 index 00000000000..c03b7d7701b --- /dev/null +++ b/parallel/sge/patches/patch-bd @@ -0,0 +1,67 @@ +$NetBSD: patch-bd,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/scripts/distinst.orig 2004-04-22 13:39:12.000000000 +0000 ++++ source/scripts/distinst +@@ -66,7 +66,10 @@ REMOTEBINARIES="rsh rshd rlogin" + SUPPORTEDARCHS="aix42 aix43 aix51 alinux cray crayts craytsieee glinux hp10 \ + hp11 hp11-64 irix6 necsx4 sx slinux solaris solaris64 solaris86 osf4 tru64 \ + darwin fbsd-alpha fbsd-amd64 fbsd-i386 fbsd-ia64 fbsd-ppc fbsd-sparc64 \ +-ia64linux lx24-amd64" ++nbsd-alpha nbsd-arm nbsd-arm32 nbsd-armeb nbsd-hppa nbsd-i386 nbsd-m68000 \ ++nbsd-m68k nbsd-mipseb nbsd-mipsel nbsd-ns32k nbsd-pdp10 nbsd-powerpc nbsd-sh3 \ ++nbsd-sh3eb nbsd-sh3el nbsd-sh5eb nbsd-sh5el nbsd-sparc nbsd-sparc64 nbsd-vax \ ++nbsd-x86_64 ia64linux lx24-amd64" + + #SGEEE_UTILITYBINARIES="sge_share_mon sge_host_mon" + SGEEE_UTILITYBINARIES="sge_share_mon" +@@ -213,6 +216,50 @@ SetArchBin() + ARCHBIN=FREEBSD_PPC + elif [ $i = fbsd-sparc64 ]; then + ARCHBIN=FREEBSD_SPARC64 ++ elif [ $i = nbsd-alpha ]; then ++ ARCHBIN=NETBSD_ALPHA ++ elif [ $i = nbsd-arm ]; then ++ ARCHBIN=NETBSD_ARM ++ elif [ $i = nbsd-arm32 ]; then ++ ARCHBIN=NETBSD_ARM32 ++ elif [ $i = nbsd-armeb ]; then ++ ARCHBIN=NETBSD_ARMEB ++ elif [ $i = nbsd-hppa ]; then ++ ARCHBIN=NETBSD_HPPA ++ elif [ $i = nbsd-i386 ]; then ++ ARCHBIN=NETBSD_I386 ++ elif [ $i = nbsd-m68000 ]; then ++ ARCHBIN=NETBSD_M68000 ++ elif [ $i = nbsd-m68k ]; then ++ ARCHBIN=NETBSD_M68K ++ elif [ $i = nbsd-mipseb ]; then ++ ARCHBIN=NETBSD_MIPSEB ++ elif [ $i = nbsd-mipsel ]; then ++ ARCHBIN=NETBSD_MIPSEL ++ elif [ $i = nbsd-ns32k ]; then ++ ARCHBIN=NETBSD_NS32K ++ elif [ $i = nbsd-pdp10 ]; then ++ ARCHBIN=NETBSD_PDP10 ++ elif [ $i = nbsd-powerpc ]; then ++ ARCHBIN=NETBSD_POWERPC ++ elif [ $i = nbsd-sh3 ]; then ++ ARCHBIN=NETBSD_SH3 ++ elif [ $i = nbsd-sh3eb ]; then ++ ARCHBIN=NETBSD_SH3EB ++ elif [ $i = nbsd-sh3el ]; then ++ ARCHBIN=NETBSD_SH3EL ++ elif [ $i = nbsd-sh5eb ]; then ++ ARCHBIN=NETBSD_SH5EB ++ elif [ $i = nbsd-sh5el ]; then ++ ARCHBIN=NETBSD_SH5EL ++ elif [ $i = nbsd-sparc ]; then ++ ARCHBIN=NETBSD_SPARC ++ elif [ $i = nbsd-sparc64 ]; then ++ ARCHBIN=NETBSD_SPARC64 ++ elif [ $i = nbsd-vax ]; then ++ ARCHBIN=NETBSD_VAX ++ elif [ $i = nbsd-x86_64 ]; then ++ ARCHBIN=NETBSD_X86_64 + elif [ $i = ia64linux ]; then + ARCHBIN=IA64LINUX + elif [ $i = lx24-amd64 ]; then diff --git a/parallel/sge/patches/patch-be b/parallel/sge/patches/patch-be new file mode 100644 index 00000000000..cc4fda3f0a6 --- /dev/null +++ b/parallel/sge/patches/patch-be @@ -0,0 +1,13 @@ +$NetBSD: patch-be,v 1.1.1.1 2004/05/03 00:38:35 dmcmahill Exp $ + +--- source/dist/inst_sge.orig 2004-03-03 08:10:02.000000000 -0500 ++++ source/dist/inst_sge +@@ -738,7 +738,7 @@ AddConfiguration() + + if [ $csp = true ]; then + X509_COUNT=`strings $V5BIN/sge_qmaster | grep X509 | wc -l` +- if [ 50 -gt $X509_COUNT ]; then ++ if [ 10 -gt $X509_COUNT ]; then + $INFOTEXT "\n>sge_qmaster< binary is not compiled with >-secure< option!\n" + $INFOTEXT -wait -auto $autoinst -n "Hit <RETURN> to cancel the installation >> " + exit 1 diff --git a/parallel/sge/patches/patch-bf b/parallel/sge/patches/patch-bf new file mode 100644 index 00000000000..2234376e353 --- /dev/null +++ b/parallel/sge/patches/patch-bf @@ -0,0 +1,31 @@ +$NetBSD: patch-bf,v 1.1.1.1 2004/05/03 00:38:36 dmcmahill Exp $ + +--- source/utilbin/infotext.c.orig Wed Mar 3 13:11:17 2004 ++++ source/utilbin/infotext.c +@@ -64,7 +64,7 @@ static void sge_infotext_welcome(void); + static void sge_infotext_raw(char* format_string); + static void sge_infotext_usage(void); + static int sge_infotext_get_nr_of_substrings(char* buffer, char* substring); +-#if defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HP11) || defined(HP10) || __GNUC__ == 3 ++#if defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HP11) || defined(HP10) || __GNUC__ == 3 || defined(NETBSD) + static char* sge_infotext_string_replace(dstring* buf, char* arg, char* what, char* with, int only_first ); + #endif + static char* sge_infotext_string_input_parsing(dstring* buf,char* string); +@@ -536,7 +536,7 @@ static char* sge_infotext_string_output_ + } + + +-#if defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HP11) || defined(HP10) || __GNUC__ == 3 ++#if defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HP11) || defined(HP10) || __GNUC__ == 3 || defined(NETBSD) + static char* sge_infotext_string_replace(dstring* tmp_buf, char* arg, char* what, char* with, int only_first) { + int i; + char* p1; +@@ -1035,7 +1035,7 @@ int main( int argc, char* argv[] ) { + DPRINTF(("pass 4\n")); + { + if (real_args > 0) { +-#if defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HP11) || defined(HP10) || __GNUC__ == 3 ++#if defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HP11) || defined(HP10) || __GNUC__ == 3 || defined(NETBSD) + for(i=0;i<real_args;i++) { + /* printf("argument[%d]: \"%s\"\n",i,argv[first_arg +i]); */ + sge_dstring_copy_string(&buffer, sge_infotext_string_replace(&tmp_buf, (char*)sge_dstring_get_string(&buffer2),"%s",argv[first_arg +i],1)); |