1 # Maintainer: flub <flub123@gmx.de>
6 pkgdesc='An open source resource manager providing control over batch jobs and distributed compute nodes.'
7 url='http://www.clusterresources.com/products/torque-resource-manager.php'
11 makedepends=('make' 'gcc')
13 install=torque.install
15 backup=(var/spool/torque/server_name var/spool/torque/mom_priv/config var/spool/torque/serv_priv/{nodes,serverdb})
16 source=("http://www.clusterresources.com/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"
20 md5sums=( 'f6e7271673a4290414b04081c07e3437'
21 '41581ea0fba02960ec7c128432f8f6ec'
22 'dfe8aa183dd9ec5dfcc2ba6a5f234053'
23 'e17b16f4898f1bfbbc4a6c208973889e')
26 cd "${srcdir}/${pkgname}-${pkgver}"
27 ./configure --with-default-server=localhost \
28 --with-server-home=/var/spool/torque \
31 --disable-gcc-warnings \
32 --mandir=/usr/share/man \
33 --enable-high-availability || return 1
34 mv src/resmom/Makefile src/resmom/Makefile.old
35 cat src/resmom/Makefile.old | sed 's/$(MOMLIBS) $(PBS_LIBS)/$(PBS_LIBS) $(MOMLIBS)/g' > src/resmom/Makefile
40 cd "${srcdir}/${pkgname}-${pkgver}"
41 make DESTDIR="${pkgdir}/" install || return 1
42 mkdir -p ${pkgdir}/etc/rc.d/
43 cp ${srcdir}/torque-server ${pkgdir}/etc/rc.d/
44 cp ${srcdir}/torque-node ${pkgdir}/etc/rc.d/
45 cp ${srcdir}/torque-scheduler ${pkgdir}/etc/rc.d/
48 # vim:set ts=2 sw=2 et: