aboutsummaryrefslogtreecommitdiffstats
path: root/testing/salt/APKBUILD
blob: 890dca0e8aac9a0f23d55c0135e1beb8377d7246 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=salt
pkgver=2015.8.8
pkgrel=0
pkgdesc="A remote execution and communication system built on zeromq"
url="https://github.com/saltstack/salt"
arch="noarch"
license="ASL 2.0"
depends=""
depends_dev=""
makedepends="$depends_dev python-dev py-zmq py-m2crypto 
	py-crypto py-psutil py-jinja2 py-yaml py-msgpack"
install=""
subpackages="$pkgname-doc"
source="https://github.com/saltstack/salt/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
		salt-master.initd
		salt-master.confd
		salt-minion.initd
		salt-minion.confd
		salt-syndic.initd
		salt-syndic.confd"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --root=$pkgdir/ --optimize=1 || return 1
	mkdir -p ${pkgdir}/etc/rc.d/
	cp ${srcdir}/salt-master.initd ${pkgdir}/etc/rc.d/salt-master
	cp ${srcdir}/salt-minion.initd ${pkgdir}/etc/rc.d/salt-minion
	cp ${srcdir}/salt-syndic.initd ${pkgdir}/etc/rc.d/salt-syndic
	chmod +x ${pkgdir}/etc/rc.d/salt-master
	chmod +x ${pkgdir}/etc/rc.d/salt-minion
	chmod +x ${pkgdir}/etc/rc.d/salt-syndic

	mkdir -p ${pkgdir}/etc/salt/
	cp ${srcdir}/${pkgname}-${pkgver}/conf/master ${pkgdir}/etc/salt/
	cp ${srcdir}/${pkgname}-${pkgver}/conf/minion ${pkgdir}/etc/salt/
}

md5sums="99ce814992f07d661440dfcecbba6262  salt-2015.8.8.tar.gz
0b40fd1b49ff4c2f34382fd69c341c34  salt-master.initd
7bb58f256213aaaa23d86d5127c9ffe3  salt-master.confd
c8326b9cff0df6065a1320eefea09b2c  salt-minion.initd
75badf5042aa93a6da74659ca12bef70  salt-minion.confd
dffce15d3a16a2dc40dd02d0c24fb4c6  salt-syndic.initd
a24d13b018a35b31b34167bcaa749db5  salt-syndic.confd"
sha256sums="b2ecce7bf562cfcd6586d66ade278f268bb89023f0fa0accaa55f90b8a668ef5  salt-2015.8.8.tar.gz
40c9864ab001c00de60b52baff5c9cf7c2c0f248a1e02fb15260ae70287bce70  salt-master.initd
383475b21261ac22c5930e99060d53630dfb35aac67aa03a18ec738e0f4dff50  salt-master.confd
ae9236919c3fee3eef0ef8ad54334d6f833a51bbd4d42c40214614498acbe573  salt-minion.initd
286148f5391d42c04a62a13cc125fa2130b5821e50da913c5a20d3a913e5f2d1  salt-minion.confd
6a453f63e51f2cc1ecb024ee8e7fa1beab7fbcea010f3eb10ea23bdb2383e7f5  salt-syndic.initd
66a663c426e2fa157ea78f7f9b2f33f17b72dbc48e119f8dd2609aab8f8370e7  salt-syndic.confd"
sha512sums="add65951694bc9e3aaa6db69bf9ac7ed32a5c42822ae34281ca3ea1e7f393235cd6baa1905362d177c62505a514e1c4599751e1a8a913cc334f9ebe1d4ab7ed3  salt-2015.8.8.tar.gz
324e687e8b0eaccb799b4a719448341a4e09cda3add102890beddaf371ac42957bbc1622f145b2b86420061655bb27f27879302b5b34c6eee1987d2dcae6b8ef  salt-master.initd
cfbbeb8023a383e7c42d84e3346edfd068c9ec7650c4ddc3caa38534da325a67497e1f06ca02cc1f0941b7348a3af6d1dca7cd6f2bcb3612ca10e1ec98997e5a  salt-master.confd
c6634a592c6f3e65dd2b704cb500486bf8004c5b287d4a4d42b09af36ef129c59d6a89f005af058cf7911e8587d927b3db931186569084f13ebaca56f6ef93a0  salt-minion.initd
0051e13351cef8db81dc075a194bb384723f07d5591b5b4d3f3adf4180afaf7beced470ab79ceca9d1ec0dae62dbd72084eb76af009fc78411a011050a94a2ed  salt-minion.confd
d71133e834685304e0167554035ebbc861252f972bbe981cc71e45b70f15d94a28a02a369463c9a641372919689f96b62a0408b14f824ad986d536e52b1e5ec0  salt-syndic.initd
bafc6ea10cdafd0aef868feb35aecbe4ae6a7dff0ae42862bded85715ad763eb89e1ed27437866a7e5f2b9f7064e3c2a3fb59814487744ba4227238d95cf3818  salt-syndic.confd"