salt/pkg/arch/PKGBUILD
2011-12-03 11:38:15 -07:00

42 lines
1.1 KiB
Bash
Executable File

# Maintainer: Thomas S Hatch <thatch45@gmail.com>
pkgname=salt
pkgver=0.9.4
pkgrel=1
pkgdesc="A remote execution and communication system built on zeromq"
arch=(any)
url="https://github.com/saltstack/salt"
license=("APACHE")
depends=('python2'
'python2-pyzmq'
'python-m2crypto'
'python2-yaml'
'pycrypto'
'python2-psutil'
'python2-jinja')
backup=('etc/salt/master'
'etc/salt/minion')
makedepends=()
optdepends=()
options=()
source=("https://github.com/downloads/saltstack/salt/$pkgname-$pkgver.tar.gz"
"salt-master"
"salt-syndic"
"salt-minion")
md5sums=('c27837bac06dadfdb51b4a2b63fe6d35'
'1594591acb0a266854186a694da21103'
'09683ef4966e401761f7d2db6ad4b692'
'21ab2eac231e9f61bf002ba5f16f8a3d')
package() {
cd $srcdir/$pkgname-$pkgver
python2 setup.py install --root=$pkgdir/ --optimize=1
mkdir -p $pkgdir/etc/rc.d/
cp $srcdir/salt-master $pkgdir/etc/rc.d/
cp $srcdir/salt-minion $pkgdir/etc/rc.d/
cp $srcdir/salt-syndic $pkgdir/etc/rc.d/
chmod +x $pkgdir/etc/rc.d/*
}