updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / slurm-llnl-git / PKGBUILD
blobcedfa1658300b0d2ed283ea5f40ec43beb513680
1 # Maintainer: Jimmy Tang <jcftang@gmail.com>
2 # Derived from package slurm-llnl by Fredrik Tegenfeldt <fredrik.tegenfeldt AT unige DOT ch>
3 pkgname=slurm-llnl-git
4 pkgver=20110710
5 pkgrel=1
6 pkgdesc="Simple Linux Utility for Resource Management"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="https://computing.llnl.gov/linux/slurm/"
10 groups=()
11 depends=('python2')
12 makedepends=('python2' 'libmysqlclient>=5.0.0' 'openssl>=0.9.6' 'munge' 'readline' 'git')
13 provides=(slurm)
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=${pkgname}.install
19 changelog=
20 source=("arch_rc.d.slurm" "shtml2html.py.patch")
21 noextract=()
22 md5sums=('e4607c0e25c657a9dbf6e12cc7b3209f' '9d8f907b340cedc28f6148fb8665f0c2')
24 _gitroot="git://github.com/SchedMD/slurm.git"
25 _gitname="slurm"
27 build() {
28   cd "$srcdir"
29   msg "Connecting to GIT server...."
31   if [ -d $_gitname ] ; then
32     cd $_gitname && git pull origin
33     msg "The local files are updated."
34   else
35     git clone $_gitroot
36   fi
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 \
49               --with-mysql            \
50               --with-ssl              \
51               --with-munge            \
52               --with-readline
53   make
56 package() {
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"