PKGBUILDs/aur/salt/PKGBUILD
2012-06-21 20:34:39 -04:00

54 lines
1.5 KiB
Bash

# Maintainer: Christer Edwards <christer.edwards@gmail.com>
# Contributor: Jason Plum <jplum@archlinuxarm.org>
pkgname=salt
pkgver=0.10.0
pkgrel=1
plugrel=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'
'python2-msgpack-pure')
backup=('etc/salt/master.template'
'etc/salt/minion.template')
makedepends=()
optdepends=()
options=()
conflicts=('salt-git')
source=("https://github.com/downloads/saltstack/salt/${pkgname}-${pkgver}.tar.gz"
"salt-master"
"salt-syndic"
"salt-minion")
md5sums=('fc99b188b599729572fc744c9fffc8c7'
'1594591acb0a266854186a694da21103'
'09683ef4966e401761f7d2db6ad4b692'
'21ab2eac231e9f61bf002ba5f16f8a3d'
'eb0556c5b0e4e62f65a2ae459c2ec25d')
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/*
mkdir -p ${pkgdir}/etc/salt/
cp ${srcdir}/${pkgname}-${pkgver}/conf/master.template ${pkgdir}/etc/salt/
cp ${srcdir}/${pkgname}-${pkgver}/conf/minion.template ${pkgdir}/etc/salt/
}