# Maintainer: Christer Edwards # Contributor: Jason Plum 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" "salt.install") 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/ }