updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / salt-git / PKGBUILD
blobdfb5f1451781cd5ad19fd304c83fbfe895932002
1 # Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
2 pkgname=salt-git
3 pkgver=20110830
4 pkgrel=1
5 pkgdesc="A remote execution and communication system built on zeromq"
6 arch=('any')
7 url="https://github.com/thatch45/salt"
8 license=('APACHE')
9 groups=()
10 depends=('python2'
11          'python2-pyzmq'
12          'python-m2crypto'
13          'python2-yaml'
14          'pycrypto')
15 makedepends=('git')
16 provides=()
17 backup=('etc/salt/master' 
18         'etc/salt/minion')
19 optdepends=('python2-psutil: For the ps minion module')
20 options=()
21 source=("salt-master"
22         "salt-minion"
23         "salt-syndic")
24 md5sums=('1594591acb0a266854186a694da21103'
25          '21ab2eac231e9f61bf002ba5f16f8a3d'
26          '09683ef4966e401761f7d2db6ad4b692')
28 _gitroot="git://github.com/thatch45/salt.git"
29 _gitname="salt"
31 build() {
32   cd "$srcdir"
33   msg "Connecting to GIT server...."
35   if [ -d $_gitname ] ; then
36     cd $_gitname && git pull origin
37     msg "The local files are updated."
38   else
39     git clone $_gitroot $_gitname
40   fi
42   msg "GIT checkout done or server timeout"
43   msg "Starting make..."
45   rm -rf "$srcdir/$_gitname-build"
46   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
50 package() {
51   cd "$srcdir/$_gitname-build"
53   python2 setup.py install --root=$pkgdir/ --optimize=1
54   
55   mkdir -p $pkgdir/etc/rc.d/
56   cp $srcdir/salt-master $pkgdir/etc/rc.d/
57   cp $srcdir/salt-minion $pkgdir/etc/rc.d/
58   cp $srcdir/salt-syndic $pkgdir/etc/rc.d/
59   chmod +x $pkgdir/etc/rc.d/*
60