aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-15 13:17:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-15 13:17:00 +0000
commitd8907e11a580645c5d04840f1ad68c1b81c0d0b4 (patch)
tree5c6f9c64c8002485a30c096fbefbde37eff9760b /testing
parent11d3eb57876e5df84ed4c5c5ec0fa5b649216a15 (diff)
downloadaports-d8907e11a580645c5d04840f1ad68c1b81c0d0b4.tar.bz2
aports-d8907e11a580645c5d04840f1ad68c1b81c0d0b4.tar.xz
testing/runit: new aport
UNIX init scheme with service supervision http://smarden.org/runit/
Diffstat (limited to 'testing')
-rw-r--r--testing/runit/APKBUILD50
-rw-r--r--testing/runit/run-service-dir.patch11
2 files changed, 61 insertions, 0 deletions
diff --git a/testing/runit/APKBUILD b/testing/runit/APKBUILD
new file mode 100644
index 0000000000..3af912aea7
--- /dev/null
+++ b/testing/runit/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=runit
+pkgver=2.1.2
+pkgrel=0
+pkgdesc="UNIX init scheme with service supervision"
+url="http://smarden.org/runit/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://smarden.org/runit/runit-$pkgver.tar.gz
+ run-service-dir.patch
+ "
+
+_builddir="$srcdir"/admin/runit-$pkgver/src
+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
+ echo "$CC $CFLAGS" > conf-cc
+ echo "$CC $LDFLAGS" > conf-ld
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+ install -d "$pkgdir"/sbin
+ for i in chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset; do
+ install -m755 "$i" "$pkgdir"/sbin/$i || return 1
+ done
+}
+
+md5sums="6c985fbfe3a34608eb3c53dc719172c4 runit-2.1.2.tar.gz
+dc4e4b469451497e37cb295136a9b23b run-service-dir.patch"
+sha256sums="6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 runit-2.1.2.tar.gz
+4f4df10f35cd103d7cab27d34f4586f2099b4c5a4e007bdc8299196434744c77 run-service-dir.patch"
+sha512sums="a18773ebf1aa22305dd89ed67363165b9fcf86c192b2be4e268d08005dd82d51265160c637abe072f2f2e378c4b315a75bd3d3e602c3e75bdd451a3b0190f8cf runit-2.1.2.tar.gz
+195102ea27119700d13279a4265e730ea4d682293b52b5a036481057100de9e7865f77f96d027f4d8e774901beaa7f1f3818e17451d359d1be31cc3759db9646 run-service-dir.patch"
diff --git a/testing/runit/run-service-dir.patch b/testing/runit/run-service-dir.patch
new file mode 100644
index 0000000000..f01dcc2ac5
--- /dev/null
+++ b/testing/runit/run-service-dir.patch
@@ -0,0 +1,11 @@
+--- ./sv.c.orig
++++ ./sv.c
+@@ -32,7 +32,7 @@
+ char *progname;
+ char *action;
+ char *acts;
+-char *varservice ="/service/";
++char *varservice ="/run/service/";
+ char **service;
+ char **servicex;
+ unsigned int services;