aboutsummaryrefslogtreecommitdiffstats
path: root/testing/daemontools/APKBUILD
blob: d21ce8be1faa337467598b0ad72beb768efbb6d8 (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
# Maintainer: Johannes Findeisen <you@hanez.org>
pkgname=daemontools
pkgver=0.76
pkgrel=0
pkgdesc="Collection of tools for managing UNIX services"
url="http://cr.yp.to/daemontools.html"
arch="all"
license="public-domain"
depends=
# The makefile need GNU cat for 'cat -v'
makedepends="coreutils"

source="http://cr.yp.to/daemontools/$pkgname-$pkgver.tar.gz
	0.76-errno.patch
	0.76-warnings.patch
	svscan.initd
	"

builddir="$srcdir"/admin/$pkgname-$pkgver/src

build() {
	cd "$builddir"
	echo "${CC:-"gcc"} ${CFLAGS}" > conf-cc
	echo "${CC:-"gcc"} ${LDFLAGS}" > conf-ld
	touch home
	make PATH="/usr/bin:/bin" || return 1
}

package() {
	local f
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/bin "$pkgdir"/service
	for f in $(cat ../package/commands); do
		cp $f "$pkgdir"/usr/bin/$f
	done
	install -Dm755 "$srcdir"/svscan.initd "$pkgdir"/etc/init.d/svscan
}

md5sums="1871af2453d6e464034968a0fbcb2bfc  daemontools-0.76.tar.gz
c75438b1c3b9d9f67691bd10cf3c8e52  0.76-errno.patch
ad68177f50bfffb6a1cbf8c668de6a55  0.76-warnings.patch
39641f3d432b6f8d3259c867b5ad3a0a  svscan.initd"
sha256sums="a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f  daemontools-0.76.tar.gz
1afaa3b5a26e7382cfe1c9880ddf3910fde4ded6fa815440ef087506543a3947  0.76-errno.patch
42bfcc27660ef6459d39fbaaa9f1852313baadf7b96201872e4deb12804f4833  0.76-warnings.patch
1b1c739f4adff56f902df5b1eb324a057cf3ef6353555a509351f2a8abb29056  svscan.initd"
sha512sums="e4a7938352b745a03ccc41acdddba1e6782f0ca245e5cae060de62ab6c5a23c841a994c30140298d274405a7f26d53ba7e84e5810a3d185b2c01e4c0feffe6c7  daemontools-0.76.tar.gz
76664b71e16ba4dbb081604a1a8c9ddc58a603777dccc0a53b0af9442ff8f0cdfce9ef8b05926dac62b81b2c805262df6a7e4df65920c00583132dbf136ba85e  0.76-errno.patch
13288c5d1fc5f775cff9286b5cb4c711c5e6e52ef9c714b377cec0328c887b065385c464ca27b2dbe921e66956c20b5f3205cc36d7d2e81c383b5765cbd554aa  0.76-warnings.patch
a2c3b35c7d253b9f2ffc5051663fdfacc5bd57385ce95d5d623f1f773d7bfe445b6837c7c1fe5565587387bdee0437761272f06902e166e95e2d00c19f8c6995  svscan.initd"