1
0

PKGBUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Maintainer: Christer Edwards <christer.edwards@gmail.com>
  2. pkgname=salt
  3. pkgver=0.14.0
  4. pkgrel=1
  5. pkgdesc="A remote execution and communication system built on zeromq"
  6. arch=(any)
  7. url="https://github.com/saltstack/salt"
  8. license=("APACHE")
  9. depends=('python2'
  10. 'python2-yaml'
  11. 'python2-jinja'
  12. 'python2-pyzmq'
  13. 'python2-crypto'
  14. 'python2-psutil'
  15. 'python2-msgpack'
  16. 'python2-m2crypto')
  17. backup=('etc/salt/master'
  18. 'etc/salt/minion')
  19. makedepends=()
  20. optdepends=()
  21. options=()
  22. conflicts=('salt-git')
  23. source=("http://pypi.python.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz"
  24. "salt-master.service"
  25. "salt-syndic.service"
  26. "salt-minion.service")
  27. md5sums=('0f9fa32f208356e41ac8e0976e927b41'
  28. '3a2b032ec37077363c049969105b128e'
  29. 'e4c6adce5087e947c26c5c9d9fc3c9bb'
  30. '833d31ebee69f5c0e2c0b6c8d345b6d7')
  31. package() {
  32. cd ${srcdir}/${pkgname}-${pkgver}
  33. python2 setup.py install --root=${pkgdir}/ --optimize=1
  34. install -Dm644 ${srcdir}/salt-master.service ${pkgdir}/usr/lib/systemd/system/salt-master.service
  35. install -Dm644 ${srcdir}/salt-syndic.service ${pkgdir}/usr/lib/systemd/system/salt-syndic.service
  36. install -Dm644 ${srcdir}/salt-minion.service ${pkgdir}/usr/lib/systemd/system/salt-minion.service
  37. mkdir -p ${pkgdir}/etc/salt/
  38. cp ${srcdir}/${pkgname}-${pkgver}/conf/master ${pkgdir}/etc/salt/
  39. cp ${srcdir}/${pkgname}-${pkgver}/conf/minion ${pkgdir}/etc/salt/
  40. }