1 # Maintainer: Christer Edwards <christer.edwards@gmail.com>
5 pkgdesc="A remote execution and communication system built on zeromq"
7 url="https://github.com/saltstack/salt"
20 backup=('etc/salt/master'
27 md5sums=('1594591acb0a266854186a694da21103'
28 '21ab2eac231e9f61bf002ba5f16f8a3d'
29 '09683ef4966e401761f7d2db6ad4b692')
31 _gitroot="git://github.com/saltstack/salt.git"
36 msg "Connecting to GIT server...."
38 if [ -d $_gitname ] ; then
39 cd $_gitname && git pull origin
40 msg "The local files are updated."
42 git clone $_gitroot $_gitname
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"
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/*