updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / torque / PKGBUILD
blobcc0e4d7fbd23f755709ac4b87e4d2681ff04693f
1 # Maintainer: flub <flub123@gmx.de>
3 pkgname=torque
4 pkgver=3.0.3
5 pkgrel=4
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'
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('openssh')
11 makedepends=('make' 'gcc')
12 optdepends=()
13 install=torque.install
14 options=(!libtool)
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"
17         "torque-server"
18         "torque-node"
19         "torque-scheduler")
20 md5sums=( 'f6e7271673a4290414b04081c07e3437'
21           '41581ea0fba02960ec7c128432f8f6ec'
22           'dfe8aa183dd9ec5dfcc2ba6a5f234053'
23           'e17b16f4898f1bfbbc4a6c208973889e')
25 build() {
26   cd "${srcdir}/${pkgname}-${pkgver}"
27   ./configure --with-default-server=localhost \
28               --with-server-home=/var/spool/torque \
29                                     --with-rcp=scp \
30                                     --prefix=/usr \
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
36   make || return 1
39 package() {
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: