blob: ee81abad1300bf94871fef7001f38505db96aa39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'>
# Contributor: Christer Edwards <christer.edwards@gmail.com>
pkgname=salt-git
pkgver=2019.8.r384.g705e8cca0b
pkgrel=1
pkgdesc='A remote execution and communication system built on zeromq'
url='https://github.com/saltstack/salt'
arch=('any')
license=('APACHE')
makedepends=('git' 'gcc')
depends=('python2'
'python2-yaml'
'python2-jinja'
'python2-tornado'
'python2-msgpack'
'python2-crypto'
'python2-m2crypto'
'python2-psutil'
'python2-pyzmq'
'python2-requests'
'python2-futures'
'python2-markupsafe')
optdepends=('python2-pysodium: Required for RAET transport method'
'python2-mako: Parser for salt states'
'python2-pygit2: gitfs support'
'virt-what: Improve results of the virtual grain'
'dmidecode: decode SMBIOS/DMI tables')
backup=('etc/salt/master'
'etc/salt/minion')
conflicts=('salt')
provides=('salt')
source=("${pkgname}::git+https://github.com/saltstack/salt.git")
md5sums=('SKIP')
pkgver() {
cd ${pkgname}
# Remove 'v' prefix on tags; prefix revision with 'r'; replace all '-' with '.'
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd ${pkgname}
python2 setup.py --salt-transport=both install --root=${pkgdir}/ --optimize=1
install -Dm644 ${srcdir}/${pkgname}/pkg/arch/salt-master.service ${pkgdir}/usr/lib/systemd/system/salt-master.service
install -Dm644 ${srcdir}/${pkgname}/pkg/arch/salt-syndic.service ${pkgdir}/usr/lib/systemd/system/salt-syndic.service
install -Dm644 ${srcdir}/${pkgname}/pkg/arch/salt-minion.service ${pkgdir}/usr/lib/systemd/system/salt-minion.service
mkdir -p ${pkgdir}/etc/salt/
cp ${srcdir}/${pkgname}/conf/master ${pkgdir}/etc/salt/
cp ${srcdir}/${pkgname}/conf/minion ${pkgdir}/etc/salt/
# remove git leftovers
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}
|