aboutsummaryrefslogtreecommitdiffstats
path: root/community/cgmanager/APKBUILD
blob: eb132d2834e3989f35d3ff98d3cbae5dece6f855 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cgmanager
pkgver=0.42
pkgrel=3
pkgdesc="Another daemon for managing control groups"
url="https://linuxcontainers.org/cgmanager/"
arch="all"
license="LGPL-2.0-or-later"
depends_dev="linux-pam-dev"
makedepends="$depends_dev linux-headers libnih-dev popt-dev"
subpackages="$pkgname-dev $pkgname-openrc"
source="https://linuxcontainers.org/downloads/cgmanager/cgmanager-$pkgver.tar.gz
	cgmanager.initd
	cgproxy.initd"


build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-distro=gentoo \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/cgmanager.initd "$pkgdir"/etc/init.d/cgmanager
	install -Dm755 "$srcdir"/cgproxy.initd "$pkgdir"/etc/init.d/cgproxy
}

sha512sums="d92113a6748084f1c0708f75c8bdf5de484d534bf00f664a5288902be887c2a1c7cf3d91afaab3331f0d573a86fbc6edb2fa1d37c070250cf53e0621213d7d74  cgmanager-0.42.tar.gz
9be9aa2cda6627633e830295cff3ec27d30ccba5e047a3135162088b78005261935d6b0bd493818c48d101bcc8b8c3c8a31b9288f56293793ba820d5ae9feb76  cgmanager.initd
7d04a324684f41f85614b7e583557b49b8acf9414ab8861c07037f27fde8c46763977b7ae5690bbe56aa314a592f9b32769dbeb9adcc8ad0ceeaf5b6138a01d8  cgproxy.initd"