diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2008-04-14 19:10:08 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2008-04-14 19:10:08 +0000 |
commit | 35a75f198cc50fe126eb15c5638640e16f05ab6e (patch) | |
tree | 3cb0d2f52626e8dff406e70ce14a8dece407d2aa /sysutils/sge61 | |
parent | Expand description to explain, why there remain to LyX-ports. LyX-1.5 can (diff) |
Add an option to replace qsh with a script that prints an error message
and exist with an error code. This is useful on clusters where qsh is
not supported (common since it requires xterm to be installed on each
node).
Since I did not changed the default, I did not bump PORTREVISION.
Notes
Notes:
svn path=/head/; revision=211258
Diffstat (limited to 'sysutils/sge61')
-rw-r--r-- | sysutils/sge61/Makefile | 6 | ||||
-rw-r--r-- | sysutils/sge61/files/qsh-disabled.sh | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sysutils/sge61/Makefile b/sysutils/sge61/Makefile index 540dda683095..24dae6100d21 100644 --- a/sysutils/sge61/Makefile +++ b/sysutils/sge61/Makefile @@ -30,7 +30,8 @@ FETCH_CMD= wget -c OPTIONS= BDB "Use DB based spooler" on \ JAVA "Support Java DRMAA API" on \ - X11 "Qmon X11 GUI" on + X11 "Qmon X11 GUI" on \ + QSH "Enable qsh (requires xterm on exec hosts)" on LATEST_LINK= sge61 CONFLICTS= sge-6.[02-9]* sge-5* sgeee-[0-9]* sge-0.* @@ -182,6 +183,9 @@ do-build: @${MKDIR} ${TMP_SGE_ROOT} @cd ${WRKSRC} && ${SETENV} SGE_ROOT=${TMP_SGE_ROOT} \ ./scripts/distinst -local -libs ${SGE_ARCH} -- ${INST_PROGS} +.if defined(WITHOUT_QSH) + ${INSTALL_SCRIPT} ${FILESDIR}/qsh-disabled.sh ${TMP_SGE_ROOT}/bin/${SGE_ARCH}/qsh +.endif .if !defined(WITH_X11) @${RM} ${TMP_SGE_ROOT}/catman/cat/cat1/qmon.1 @${RM} -r ${TMP_SGE_ROOT}/3rd_party/qmon diff --git a/sysutils/sge61/files/qsh-disabled.sh b/sysutils/sge61/files/qsh-disabled.sh new file mode 100644 index 000000000000..1398eec061dc --- /dev/null +++ b/sysutils/sge61/files/qsh-disabled.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "qsh is not supported on this system" 1>&2 +exit 1 |