# Maintainer: zer0def # Contributor: Kirill Goncharov # Contributor: Johannes Löthberg # Contributor: Sébastien Luttringer # Contributor: Daniel Wallace # Contributor: Christer Edwards pkgname=salt-py3 pkgver=3001.1 pkgrel=1 pkgdesc='Central system and configuration manager' arch=('any') url='http://saltstack.org/' license=('Apache') provides=('salt') replaces=('salt' 'salt-zmq' 'salt-raet') conflicts=('salt' 'salt-zmq' 'salt-raet') depends=('python-jinja' 'python-msgpack' 'python-yaml' 'python-markupsafe' 'python-requests' 'python-pyzmq' 'python-m2crypto' 'python-systemd' 'python-distro' 'python-pycryptodomex') optdepends=('dmidecode: decode SMBIOS/DMI tables' 'python-pygit2: gitfs support') backup=('etc/logrotate.d/salt' 'etc/salt/master' 'etc/salt/minion') install=salt.install source=("https://pypi.io/packages/source/s/salt/salt-$pkgver.tar.gz" "salt.logrotate") sha256sums=('e9ebb4d92fae8dabf21b8749dc126e4a4048bf8f613f5b1b851fe4b8226b5abc' 'abecc3c1be124c4afffaaeb3ba32b60dfee8ba6dc32189edfa2ad154ecb7a215') build() { cd salt-$pkgver python setup.py build } package() { install -Dm644 salt.logrotate "$pkgdir"/etc/logrotate.d/salt cd salt-$pkgver python setup.py --salt-pidfile-dir="/run/salt" install --root="$pkgdir" --optimize=1 --skip-build # default config install -Dm644 conf/master "$pkgdir/etc/salt/master" install -Dm644 conf/minion "$pkgdir/etc/salt/minion" # systemd services for _svc in salt-master.service salt-syndic.service salt-minion.service salt-api.service; do install -Dm644 pkg/$_svc "$pkgdir/usr/lib/systemd/system/$_svc" done install -Dm644 pkg/salt.bash "$pkgdir/usr/share/bash-completion/completions/salt" install -Dm644 pkg/zsh_completion.zsh "$pkgdir/usr/share/zsh/site-functions/_salt" } # vim:set ts=2 sw=2 et: