blob: ab6a399da69dd74618519305397c0edddcec009f (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aports-build
pkgver=1.5.1
pkgrel=1
pkgdesc="MQTT based build-on-git-push scripts for Alpine Linux"
url="https://alpinelinux.org"
arch="noarch"
license="GPL-2.0"
options="!check"
depends="abuild>2.20.0 build-base mosquitto-clients openssh-client mqtt-exec
rsync lua-aports>1.0.0 lua5.2-cjson lua5.2-mqtt-publish pigz git"
depends_dev=""
makedepends="$depends_dev mosquitto-dev"
install="$pkgname.pre-install"
subpackages=""
source="aports-build
aports-build.initd
mqtt-exec.aports-build.confd
report-build-errors.lua
"
builddir="$srcdir"
build() {
cd "$builddir"
}
package() {
cd "$builddir"
install -Dm755 "$srcdir"/aports-build \
"$pkgdir"/usr/bin/aports-build
install -d "$pkgdir"/etc/init.d
ln -s mqtt-exec "$pkgdir"/etc/init.d/mqtt-exec.aports-build
install -Dm644 "$srcdir"/mqtt-exec.aports-build.confd \
"$pkgdir"/etc/conf.d/mqtt-exec.aports-build
install -Dm644 "$srcdir"/report-build-errors.lua \
"$pkgdir"/usr/share/buildrepo/plugins/report-build-errors.lua
install -d "$pkgdir"/etc/buildrepo
cat >"$pkgdir"/etc/buildrepo/config.lua <<-EOF
-- logurlprefix = "https://build.alpinelinux.org/buildlogs/"
-- mqttbroker = "localhost"
-- logtarget = "distfiles.alpinelinux.org:/var/cache/distfiles/buildlogs/"
EOF
}
sha512sums="c2497ad359ab0eb8a34a86ebe0f0d4205b191af870d4e612ce2e05041a3600ee648e017fceb1594be7536c007411656b5ade3fc454b7a32eead81f6dc367078f aports-build
821035bda47152c341ec94bf960fa67e3377051826712ceb74f39103e6e422777b6e082231bfb87865653d2b93b7d3154cfc24abf65a52e3e66da69412dd7e41 aports-build.initd
62ed5cb6d1fef03fa707512c8c99c572a91e64706ebcc2e7097108811818615618bab908292d0ba0ad2afe93a27333d9c91deb347d6c99703eb8983d1ee5f480 mqtt-exec.aports-build.confd
cf0d8e65e517857ee781e451a1d3e6404cd72aeb5c7dba25017229ff79c4c43425712d2fcbbaad89af45a358e86f33467ac1df47e8fba0f30f81d84794e1206c report-build-errors.lua"
|