From e39727f8a2bf13c5fba5d80821972b42f5ed015b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Aug 2015 08:52:41 +0200 Subject: [PATCH] cgmanager: added runit service. --- srcpkgs/cgmanager/files/cgmanager/run | 3 +++ srcpkgs/cgmanager/template | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 srcpkgs/cgmanager/files/cgmanager/run diff --git a/srcpkgs/cgmanager/files/cgmanager/run b/srcpkgs/cgmanager/files/cgmanager/run new file mode 100755 index 00000000000..e4ff09e6942 --- /dev/null +++ b/srcpkgs/cgmanager/files/cgmanager/run @@ -0,0 +1,3 @@ +#!/bin/sh +sv check dbus >/dev/null || exit 1 +exec cgmanager -q diff --git a/srcpkgs/cgmanager/template b/srcpkgs/cgmanager/template index 4756fbf0c9e..f4800290700 100644 --- a/srcpkgs/cgmanager/template +++ b/srcpkgs/cgmanager/template @@ -1,7 +1,7 @@ # Template file for 'cgmanager' pkgname=cgmanager version=0.37 -revision=2 +revision=3 build_style=gnu-configure configure_args="--sbindir=/usr/bin --with-distro=void" hostmakedepends="pkg-config" @@ -13,6 +13,10 @@ homepage="https://linuxcontainers.org/cgmanager/introduction/" distfiles="https://linuxcontainers.org/downloads/cgmanager/cgmanager-${version}.tar.gz" checksum=8309e7f2ae5f4a6b52cc2fca62c098b18ecfe90bca2c9c034ba80f68aa427b6e +post_install() { + vsv $pkgname +} + libcgmanager_package() { short_desc+=" - runtime library" pkg_install() {