updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / salt-git / PKGBUILD
blob256888a08e326f63cdfa7ecd192e8e6025b394be
1 # Maintainer: Christer Edwards <christer.edwards@gmail.com>
2 pkgname=salt-git
3 pkgver=20120122
4 pkgrel=1
5 pkgdesc="A remote execution and communication system built on zeromq"
6 arch=('any')
7 url="https://github.com/saltstack/salt"
8 license=('APACHE')
9 groups=()
10 depends=('python2'
11          'python2-pyzmq'
12          'python-m2crypto'
13          'python2-yaml'
14          'pycrypto'
15          'python2-psutil'
16          'python2-jinja'
17          'python2-msgpack')
18 makedepends=('git')
19 provides=()
20 backup=('etc/salt/master'
21         'etc/salt/minion')
22 options=()
23 conflicts=('salt')
24 source=("salt-master"
25         "salt-minion"
26         "salt-syndic")
27 md5sums=('1594591acb0a266854186a694da21103'
28          '21ab2eac231e9f61bf002ba5f16f8a3d'
29          '09683ef4966e401761f7d2db6ad4b692')
31 _gitroot="git://github.com/saltstack/salt.git"
32 _gitname="salt"
34 build() {
35   cd "$srcdir"
36   msg "Connecting to GIT server...."
38   if [ -d $_gitname ] ; then
39     cd $_gitname && git pull origin
40     msg "The local files are updated."
41   else
42     git clone $_gitroot $_gitname
43   fi
45   msg "GIT checkout done or server timeout"
46   msg "Starting make..."
48   rm -rf "$srcdir/$_gitname-build"
49   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
53 package() {
54   cd "$srcdir/$_gitname-build"
56   python2 setup.py install --root=$pkgdir/ --optimize=1
58   mkdir -p $pkgdir/etc/rc.d/
59   cp $srcdir/salt-master $pkgdir/etc/rc.d/
60   cp $srcdir/salt-minion $pkgdir/etc/rc.d/
61   cp $srcdir/salt-syndic $pkgdir/etc/rc.d/
62   chmod +x $pkgdir/etc/rc.d/*