diff options
author | Chris Piazza <cpiazza@FreeBSD.org> | 1999-06-28 07:07:31 +0000 |
---|---|---|
committer | Chris Piazza <cpiazza@FreeBSD.org> | 1999-06-28 07:07:31 +0000 |
commit | cad6c0c117fe4b1c6ae18dda6a02174a31dc4295 (patch) | |
tree | f8a77505ed450af8911e77789464145b2a168e9d /net/generic-nqs/Makefile | |
parent | Move generic-nqs to the net category. (diff) |
Generic-NQS, a freely available Network Queuing System that provides
configurable limits on jobs on a per queue basis as well as for the
total queue system.
It is based on the de facto NQS standards and is interoperable with
commercial NQS products.
PR: 6699
Submitted by: Tony Maher <tonym@angis.org.au>
Notes
Notes:
svn path=/head/; revision=19862
Diffstat (limited to 'net/generic-nqs/Makefile')
-rw-r--r-- | net/generic-nqs/Makefile | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/net/generic-nqs/Makefile b/net/generic-nqs/Makefile new file mode 100644 index 000000000000..5117a197d073 --- /dev/null +++ b/net/generic-nqs/Makefile @@ -0,0 +1,106 @@ +# New ports collection makefile for: nqs (Generic NQS) +# Version required: 3.50.4 +# Date created: 01 May 1998 +# Whom: tonym +# +# $Id$ +# + +DISTNAME= Generic-NQS-3.50.4 +CATEGORIES= net +MASTER_SITES= ftp://ftp.shef.ac.uk/pub/uni/projects/nqs/v3.5x/ + +MAINTAINER= tonym@angis.org.au + +IS_INTERACTIVE= yes +NO_PACKAGE= have to build on site due to the descriptors created in\ + /var/spool/nqs (default location) and the configuration\ + procedure + +# +# NQS gets configured, built and installed via its own SETUP script +# +# can call with --config, --compile or --install (in that order) +# and provided the previous steps have been done and it then goes thru +# everything from the called argument +# +# In order to fit in with the FreeBSD ports, modified SETUP so it has +# 3 new targets --fbconfig, --fbcompile, --fbinstall +# these differ in that they only do the current stage and *not* everything +# from there on in +# + +HOSTNAME= `uname -n` +RELEASE= `uname -r | cut -d'-' -f 1` +HARDWARE= `uname -m` + +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= SETUP +CONFIGURE_ARGS= --fbconfig + +# +# In the files directory we have: +# + +DUMMYMAKE= Makefile +STARTUP= nqs.sh +TEMPLATE= i386-unknown-freebsd2.2.6 + +# We rename TEMPLATE (which is known to work for 2.2.6 up to and including +# 4.0-CURRENT as of Jan 26) to the release number of this machine. +# Maybe this is a mistake. NQS will auto generate a file from a similar +# Platorm description file, but you would have to run make twice +# in this case. +# + +PLATFORMDIR= ${WRKSRC}/SETUPDir/Platforms +PLATFORM= ${HARDWARE}-unknown-freebsd${RELEASE} + +# +# NQS configure generates a config file in +# Build-Tree/${PLATFORM}/${HOSTNAME}/SETUP/General.h +# We can use this to extract what was actually configured such as +# where the nqsdaemon resides. We just want the NQS_ROOTDIR +# out of it for the post-install when we put in system startup file. +# + +CONFIGFILE= ${WRKSRC}/Build-Tree/${PLATFORM}/${HOSTNAME}/SETUP/General.h +RCDIR= ${PREFIX}/etc/rc.d +SYSINST= ${SCRIPTDIR}/create-nqs-rc.sh +SYSLOGFIX= ${SCRIPTDIR}/syslog-add.sh +CREATEQ= ${SCRIPTDIR}/create-example-batch-queues + +MAN1= nqs.1 nqsconfig.1 nqsgs.1 nqsrn.1\ + qacct.1 qalter.1 qcat.1 qcmplx.1 qdel.1 qdev.1\ + qhold.1 qjob.1 qlimit.1 qmsg.1 qpr.1\ + qresume.1 qrls.1 qstat.1 qstatc.1 qsub.1 qsuspend.1 + +# +# Thus ends the definitions +# + +# +# Ok get a working platform description file in there. +# We need a dummy top level Makefile as NQS will put its Makefile +# in Build-Tree/${PLATFORM}/${HOSTNAME} +# Need to have the SETUP scripts executable. +# + +pre-configure: + @ ${CP} ${FILESDIR}/${TEMPLATE} ${PLATFORMDIR}/${PLATFORM}; \ + ${CP} ${FILESDIR}/${DUMMYMAKE} ${WRKSRC}; \ + chmod 555 ${WRKDIR}/${DISTNAME}/Source-Tree/SETUP/all-systems/* + +# +# Install system boot startup file but need to find out exactly where +# the nqs stuff was installed as this is set in nqs' own install script +# Modify syslog.conf to hqndle nqs +# + +post-install: + @ ${SH} ${SYSINST} ${CONFIGFILE} ${FILESDIR}/${STARTUP} ${RCDIR}/${STARTUP}; \ + ${SH} ${SYSLOGFIX} ;\ + ${ECHO} "You may want run ${CREATEQ} to actually make some queues"; \ + ${ECHO} "" + +.include <bsd.port.mk> |