1999-06-28 07:07:31 +00:00
|
|
|
# New ports collection makefile for: nqs (Generic NQS)
|
|
|
|
# Date created: 01 May 1998
|
|
|
|
# Whom: tonym
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1999-06-28 07:07:31 +00:00
|
|
|
#
|
1999-12-27 00:46:07 +00:00
|
|
|
# View this file with tabstop=4
|
|
|
|
#
|
|
|
|
|
2001-08-06 10:10:25 +00:00
|
|
|
PORTNAME= Generic-NQS
|
|
|
|
PORTVERSION= 3.50.9
|
2001-11-17 16:06:51 +00:00
|
|
|
PORTREVISION= 2
|
2001-08-06 10:10:25 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= fenner
|
1999-06-28 07:07:31 +00:00
|
|
|
|
2001-08-06 10:10:25 +00:00
|
|
|
MAINTAINER= tonym@biolateral.com.au
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Generic Network Queuing System
|
1999-06-28 07:07:31 +00:00
|
|
|
|
2001-08-06 10:10:25 +00:00
|
|
|
USE_BZIP2= yes
|
1999-06-28 07:07:31 +00:00
|
|
|
IS_INTERACTIVE= yes
|
1999-12-27 00:46:07 +00:00
|
|
|
NO_PACKAGE= have to build on site due to the descriptors created in\
|
|
|
|
/var/spool/nqs (default location) and the configuration\
|
|
|
|
procedure
|
1999-06-28 07:07:31 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
1999-12-27 00:46:07 +00:00
|
|
|
HOSTNAME= `uname -n`
|
|
|
|
RELEASE= `uname -r | cut -d'-' -f 1`
|
|
|
|
HARDWARE= `uname -m`
|
1999-06-28 07:07:31 +00:00
|
|
|
|
1999-12-27 00:46:07 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= SETUP
|
1999-06-28 07:07:31 +00:00
|
|
|
CONFIGURE_ARGS= --fbconfig
|
|
|
|
|
|
|
|
#
|
|
|
|
# In the files directory we have:
|
|
|
|
#
|
|
|
|
|
|
|
|
DUMMYMAKE= Makefile
|
|
|
|
STARTUP= nqs.sh
|
|
|
|
TEMPLATE= i386-unknown-freebsd2.2.6
|
|
|
|
|
1999-12-27 00:46:07 +00:00
|
|
|
#
|
1999-06-28 07:07:31 +00:00
|
|
|
# We rename TEMPLATE (which is known to work for 2.2.6 up to and including
|
1999-12-27 00:46:07 +00:00
|
|
|
# 4.0 current Mar 07) to the release number of this machine.
|
1999-06-28 07:07:31 +00:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
1999-12-27 00:46:07 +00:00
|
|
|
PLATFORMDIR=${WRKSRC}/SETUPDir/Platforms
|
1999-06-28 07:07:31 +00:00
|
|
|
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
|
1999-12-27 00:46:07 +00:00
|
|
|
MANDIR= ${WRKSRC}/Source-Tree/man/man1/all-systems
|
1999-06-28 07:07:31 +00:00
|
|
|
RCDIR= ${PREFIX}/etc/rc.d
|
|
|
|
SYSINST= ${SCRIPTDIR}/create-nqs-rc.sh
|
|
|
|
SYSLOGFIX= ${SCRIPTDIR}/syslog-add.sh
|
1999-12-27 00:46:07 +00:00
|
|
|
PLISTFIX= ${SCRIPTDIR}/fix-PLIST.mktmp.sh
|
1999-06-28 07:07:31 +00:00
|
|
|
CREATEQ= ${SCRIPTDIR}/create-example-batch-queues
|
|
|
|
|
1999-12-27 00:46:07 +00:00
|
|
|
MAN1= nmapmgr.1 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 qmgr.1m qmsg.1 qpr.1\
|
|
|
|
qresume.1 qrls.1 qstat.1 qstatc.1 qsub.1 qsuspend.1
|
1999-06-28 07:07:31 +00:00
|
|
|
#
|
|
|
|
# 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.
|
1999-12-27 00:46:07 +00:00
|
|
|
# Remove the dross *.man files qcat.man and list_nqs_queues.man
|
|
|
|
# Rename man page to fit BSD extensions
|
1999-06-28 07:07:31 +00:00
|
|
|
#
|
|
|
|
|
2001-10-10 11:45:08 +00:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh \
|
|
|
|
${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh.orig ; \
|
2002-10-10 12:59:36 +00:00
|
|
|
${SED} -e 's|-O6 -fno-strength-reduce|${CFLAGS}|' \
|
2001-10-10 11:45:08 +00:00
|
|
|
${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh.orig \
|
|
|
|
> ${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh
|
|
|
|
|
1999-06-28 07:07:31 +00:00
|
|
|
pre-configure:
|
2002-10-10 12:59:36 +00:00
|
|
|
@ ${SED} -e 's|XX_CFLAGS_XX|${CFLAGS}|' ${FILESDIR}/${TEMPLATE} > ${PLATFORMDIR}/${PLATFORM}; \
|
1999-06-28 07:07:31 +00:00
|
|
|
${CP} ${FILESDIR}/${DUMMYMAKE} ${WRKSRC}; \
|
2001-10-10 11:45:08 +00:00
|
|
|
${CHMOD} 555 ${WRKSRC}/Source-Tree/SETUP/all-systems/*
|
|
|
|
${RM} -f ${MANDIR}/*.man ; \
|
1999-12-27 00:46:07 +00:00
|
|
|
${MV} ${MANDIR}/nmapmgr.1m ${MANDIR}/nmapmgr.1
|
1999-06-28 07:07:31 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
1999-12-27 00:46:07 +00:00
|
|
|
# Modify syslog.conf to handle nqs
|
1999-06-28 07:07:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
post-install:
|
1999-12-27 00:46:07 +00:00
|
|
|
@ strip ${PREFIX}/sbin/loaddaemon ${PREFIX}/sbin/finish_autoinst \
|
|
|
|
${PREFIX}/sbin/lpserver ${PREFIX}/sbin/netclient \
|
|
|
|
${PREFIX}/sbin/netdaemon ${PREFIX}/sbin/netserver \
|
|
|
|
${PREFIX}/sbin/nqsdaemon ${PREFIX}/sbin/nqsexejob \
|
|
|
|
${PREFIX}/sbin/nqsmkdirs ${PREFIX}/sbin/nqsmkfile \
|
|
|
|
${PREFIX}/sbin/nqsmktrans ${PREFIX}/sbin/nqssetargv \
|
|
|
|
${PREFIX}/sbin/pipeclient ${PREFIX}/sbin/shlexefai; \
|
|
|
|
strip ${PREFIX}/bin/nmapmgr ${PREFIX}/bin/qacct \
|
|
|
|
${PREFIX}/bin/qalter ${PREFIX}/bin/qcat \
|
|
|
|
${PREFIX}/bin/qdel ${PREFIX}/bin/qdev \
|
|
|
|
${PREFIX}/bin/qhold ${PREFIX}/bin/qlimit \
|
|
|
|
${PREFIX}/bin/qmgr ${PREFIX}/bin/qmsg \
|
|
|
|
${PREFIX}/bin/qpr ${PREFIX}/bin/qrls \
|
|
|
|
${PREFIX}/bin/qstat ${PREFIX}/bin/qsub \
|
|
|
|
${PREFIX}/bin/qsuspend; \
|
1999-12-27 15:47:27 +00:00
|
|
|
${SH} ${SYSINST} ${CONFIGFILE} ${FILESDIR}/${STARTUP} ${RCDIR}/${STARTUP}; \
|
|
|
|
${SH} ${SYSLOGFIX}; \
|
|
|
|
${SH} ${PLISTFIX} ${CONFIGFILE} ${WRKDIR}; \
|
|
|
|
${ECHO} "You may want run ${SH} ${CREATEQ} to actually make some queues"; \
|
1999-06-28 07:07:31 +00:00
|
|
|
${ECHO} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|