From 57b6e8063a41a88f9d6f89ce8a14c8ba10471bc1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 17 Dec 2017 17:11:52 +0000 Subject: [PATCH] Fix up builds.sr.ht package --- builds.sr.ht/APKBUILD | 12 ++++++++++-- builds.sr.ht/builds.sr.ht-runner.initd | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/builds.sr.ht/APKBUILD b/builds.sr.ht/APKBUILD index 265108a..2edf366 100644 --- a/builds.sr.ht/APKBUILD +++ b/builds.sr.ht/APKBUILD @@ -17,9 +17,14 @@ depends=" " makedepends="py-setuptools nodejs sassc" subpackages="$pkgname-images" -source="http://git.sr.ht/~sircmpwn/$pkgname/snapshot/$pkgname-$pkgver.tar.xz" +source=" + http://git.sr.ht/~sircmpwn/$pkgname/snapshot/$pkgname-$pkgver.tar.xz + builds.sr.ht-runner.initd +" +install="$pkgname.pre-install" builddir="$srcdir/$pkgname-$pkgver" export PKGVER=$pkgver +options="$options !check" build() { cd "$builddir" @@ -32,9 +37,12 @@ package() { } images() { + depends="qemu-system-x86_64 builds.sr.ht" cd "$builddir" mkdir -p "$subpkgdir"/var/lib/ cp -R images "$subpkgdir"/var/lib/ + install -Dm755 "$srcdir"/builds.sr.ht-runner.initd "$subpkgdir"/etc/init.d/builds.sr.ht-runner } -sha512sums="9eab18643eec0f282a564c2d49b96f184719707d35df5cc4fdced0c8157a9004a95dc0e878f989a1f9eaadd3171316d566b957f53206ddc837965d3c8242994d builds.sr.ht-0.4.6.tar.xz" +sha512sums="9eab18643eec0f282a564c2d49b96f184719707d35df5cc4fdced0c8157a9004a95dc0e878f989a1f9eaadd3171316d566b957f53206ddc837965d3c8242994d builds.sr.ht-0.4.6.tar.xz +9a46e63e9cb24dc48c6e96d8b674a2481374c68568230ebda9e042624ff80406638a5da071e7b92769fe4feb71d5fa276d2d4ed47012fca2107d5d42ef48d6b1 builds.sr.ht-runner.initd" diff --git a/builds.sr.ht/builds.sr.ht-runner.initd b/builds.sr.ht/builds.sr.ht-runner.initd index e62cfd0..e44b08d 100644 --- a/builds.sr.ht/builds.sr.ht-runner.initd +++ b/builds.sr.ht/builds.sr.ht-runner.initd @@ -14,7 +14,7 @@ start() { ebegin "Starting $name" start-stop-daemon --background --make-pidfile --pidfile /run/$name.pid -u builds \ --exec /usr/bin/celery -- \ - -A buildshr.runner worker --loglevel=info -c $(nproc) + -A buildsrht.runner worker --loglevel=info -c $(nproc) eend $? } -- 2.45.2