aboutsummaryrefslogtreecommitdiffstats
path: root/testing/daemontools/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-20 14:04:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-20 14:04:42 +0000
commita9f3c9b7a66ffea6484d4133ff802d5e2da8f01c (patch)
treeecf69c24e252c9a53b35f2b3e9c5e453d11da0de /testing/daemontools/APKBUILD
parent9bd12f322b294909af74233a5d7b9db88841a645 (diff)
downloadaports-a9f3c9b7a66ffea6484d4133ff802d5e2da8f01c.tar.bz2
aports-a9f3c9b7a66ffea6484d4133ff802d5e2da8f01c.tar.xz
testing/daemontools: new aport
fixes #205
Diffstat (limited to 'testing/daemontools/APKBUILD')
-rw-r--r--testing/daemontools/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/daemontools/APKBUILD b/testing/daemontools/APKBUILD
new file mode 100644
index 0000000000..f4920a24d6
--- /dev/null
+++ b/testing/daemontools/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=daemontools
+pkgver=0.76
+pkgrel=0
+pkgdesc="Collection of tools for managing UNIX services"
+url="http://cr.yp.to/daemontools.html"
+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
+
+prepare() {
+ cd "$_builddir"
+ for i in "$srcdir"/*.patch; do
+ msg "Applying $i"
+ patch -p1 -i $i || return 1
+ done
+}
+
+build() {
+ cd "$_builddir"
+ echo "${CC:-"gcc"} ${CFLAGS}" > conf-cc
+ echo "${CC:-"gcc"} ${LDFLAGS}" > conf-ld
+ touch > home
+ make || return 1
+}
+
+package() {
+ 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
+c6e4ace205400be062d3ba82315cbcd1 svscan.initd"