PKGBUILDs/aur/salt/PKGBUILD
2012-06-22 21:54:06 -04:00

53 lines
1.4 KiB
Bash

# Maintainer: Christer Edwards <christer.edwards@gmail.com>
# Contributor: Jason Plum <jplum@archlinuxarm.org>
pkgname=salt
pkgver=0.10.1
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=('ff55b82d64429938ffe1097b77a71188'
'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/*
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/
}