1 # Maintainer: Jimmy Tang <jcftang@gmail.com>
2 # Derived from package slurm-llnl by Fredrik Tegenfeldt <fredrik.tegenfeldt AT unige DOT ch>
6 pkgdesc="Simple Linux Utility for Resource Management"
9 url="https://computing.llnl.gov/linux/slurm/"
12 makedepends=('python2' 'libmysqlclient>=5.0.0' 'openssl>=0.9.6' 'munge' 'readline' 'git')
18 install=${pkgname}.install
20 source=("arch_rc.d.slurm" "shtml2html.py.patch")
22 md5sums=('e4607c0e25c657a9dbf6e12cc7b3209f' '9d8f907b340cedc28f6148fb8665f0c2')
24 _gitroot="git://github.com/SchedMD/slurm.git"
29 msg "Connecting to GIT server...."
31 if [ -d $_gitname ] ; then
32 cd $_gitname && git pull origin
33 msg "The local files are updated."
38 msg "GIT checkout done or server timeout"
39 msg "Starting make..."
41 rm -rf "$srcdir/$_gitname-build"
42 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
43 cd "$srcdir/$_gitname-build"
45 patch -p0 -i ../shtml2html.py.patch
47 ./configure --prefix=/usr \
48 --sysconfdir=/etc/slurm \
57 cd "$srcdir/$_gitname-build"
59 make DESTDIR="$pkgdir/" install
61 install -D -m755 ../arch_rc.d.slurm "${pkgdir}/etc/rc.d/slurm"
62 install -D -m755 etc/init.d.slurmdbd "${pkgdir}/etc/rc.d/slurmdbd"
63 install -D -m644 etc/slurm.conf.example "${pkgdir}/etc/slurm/slurm.conf.example"
64 install -D -m644 etc/slurmdbd.conf.example "${pkgdir}/etc/slurm/slurmdbd.conf.example"
65 install -D -m644 LICENSE.OpenSSL "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.OpenSSL"
66 install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"