aboutsummaryrefslogtreecommitdiffstats
path: root/community/cgmanager/APKBUILD
blob: 9daae1340cb23c1146ddea4b5c104a28bb122c66 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cgmanager
pkgver=0.41
pkgrel=3
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"
install=""
subpackages="$pkgname-dev"
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 \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
	install -Dm755 "$srcdir"/cgmanager.initd \
		"$pkgdir"/etc/init.d/cgmanager || return 1
	install -Dm755 "$srcdir"/cgproxy.initd \
		"$pkgdir"/etc/init.d/cgproxy || return 1
}

sha512sums="e8ba64665a21d987cd835580c2b6bafbcb05e22ce7f6216762d04840957c2cd21fb571360e0206ae9143656beed88ff3396eb1f644052c05189093a665a705fd  cgmanager-0.41.tar.gz
0bdfbed2fb5d79939ccb9b8554060c16c05e8e44503ecf1b6f4a38c7a39f765df34cdaa5cc0aa6d9ba5d17d3ecb7ee9f0623c363d99041bcbccd2ba410282a66  cgmanager.initd
b43439d9086fe50a8de93a61167272474e9e9b7a71b5a93bf3c6d2da127f95be3294c713295ca51c68e6de1f95c4d969502d8c3d503bc510873ccec794bef5ba  cgproxy.initd"