# Template file for 'salt'
pkgname=salt
version=3007.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="dmidecode pciutils python3-Jinja2 python3-M2Crypto python3-MarkupSafe
 python3-aiohttp python3-CherryPy python3-cryptography python3-dateutil
 python3-distro python3-gnupg python3-importlib_metadata python3-jmespath
 python3-looseversion python3-msgpack python3-openssl python3-packaging
 python3-passlib python3-psutil python3-pycryptodomex python3-pyzmq
 python3-requests python3-rpm-vercmp python3-setproctitle python3-timelib
 python3-tornado python3-yaml"
short_desc="Remote execution system, and configuration manager"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="Apache-2.0"
homepage="http://saltstack.org/"
changelog="https://docs.saltstack.com/en/latest/topics/releases/${version}.html"
distfiles="${PYPI_SITE}/s/salt/salt-${version}.tar.gz"
checksum=b933ac4cb3e4b1118b46dada55c9cc6bdc6f0f94b4c92877aec44b25c6a28c9a
conf_files="
 /etc/salt/cloud.providers.d/digitalocean.conf
 /etc/salt/cloud.providers.d/vsphere.conf
 /etc/salt/cloud.providers.d/linode.conf
 /etc/salt/cloud.providers.d/parallels.conf
 /etc/salt/cloud.providers.d/ibmsce.conf
 /etc/salt/cloud.providers.d/tencent.conf
 /etc/salt/cloud.providers.d/ec2.conf
 /etc/salt/cloud.providers.d/saltify.conf
 /etc/salt/cloud.providers.d/joyent.conf
 /etc/salt/cloud.providers.d/gogrid.conf
 /etc/salt/cloud.providers.d/proxmox.conf
 /etc/salt/cloud.providers.d/scaleway.conf
 /etc/salt/cloud.maps.d/cloud.map
 /etc/salt/cloud.maps.d/saltify.map
 /etc/salt/minion
 /etc/salt/cloud
 /etc/salt/roster
 /etc/salt/proxy
 /etc/salt/suse/master
 /etc/salt/master
 /etc/salt/cloud.profiles.d/EC2-us-west-1.profiles
 /etc/salt/cloud.profiles.d/EC2-us-east-1.profiles
 /etc/salt/cloud.profiles.d/EC2-us-west-2.profiles
 /etc/salt/cloud.profiles.d/saltify.conf
 /etc/salt/cloud.profiles.d/tencentcloud-guangzhou-s1sm1.profiles
 /etc/salt/cloud.profiles
 /etc/salt/cloud.providers"

post_install() {
	vmkdir etc/salt 0750
	vcopy conf/* etc/salt
	vsv salt-api
	vsv salt-master
	vsv salt-minion
	vsv salt-syndic
}
