aboutsummaryrefslogtreecommitdiffstats
path: root/community/cgmanager/APKBUILD
blob: dd03535c4850664d43fc6783d3dac42bf55e2360 (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
45
46
47
48
49
50
51
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cgmanager
pkgver=0.42
pkgrel=0
pkgdesc="nother daemon for managing control groups"
url="https://linuxcontainers.org/cgmanager/"
arch="all"
license="GPL"
depends=""
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"

builddir="$srcdir"/cgmanager-$pkgver

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

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.la
	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
0bdfbed2fb5d79939ccb9b8554060c16c05e8e44503ecf1b6f4a38c7a39f765df34cdaa5cc0aa6d9ba5d17d3ecb7ee9f0623c363d99041bcbccd2ba410282a66  cgmanager.initd
b43439d9086fe50a8de93a61167272474e9e9b7a71b5a93bf3c6d2da127f95be3294c713295ca51c68e6de1f95c4d969502d8c3d503bc510873ccec794bef5ba  cgproxy.initd"