1 # Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
5 pkgdesc="A remote execution and communication system built on zeromq"
7 url="https://github.com/thatch45/salt"
17 backup=('etc/salt/master'
19 optdepends=('python2-psutil: For the ps minion module')
24 md5sums=('1594591acb0a266854186a694da21103'
25 '21ab2eac231e9f61bf002ba5f16f8a3d'
26 '09683ef4966e401761f7d2db6ad4b692')
28 _gitroot="git://github.com/thatch45/salt.git"
33 msg "Connecting to GIT server...."
35 if [ -d $_gitname ] ; then
36 cd $_gitname && git pull origin
37 msg "The local files are updated."
39 git clone $_gitroot $_gitname
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"
51 cd "$srcdir/$_gitname-build"
53 python2 setup.py install --root=$pkgdir/ --optimize=1
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/*