aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cgmanager/APKBUILD
blob: 8c969f50172d004861bdbc9a1a32833f65df266f (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cgmanager
pkgver=0.41
pkgrel=1
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
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
}

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
}

md5sums="6ebed9ed3bf0751eb3cde47a94c45340  cgmanager-0.41.tar.gz
29ad96ec5a4ddfc6d9fb7b3df8e2375f  cgmanager.initd
10ad15961c3921d92af342908730c2ee  cgproxy.initd"
sha256sums="29b155befb3ac233d5d29dbca7c791c8138bab01bfa78ea4757ebb88ce23b458  cgmanager-0.41.tar.gz
ce10491d71b1163e6a6b737dc65e1fae6b7d05b4bfaaa8a42c85c6c0e38fac66  cgmanager.initd
adb05f21ca89439f47c8e17283d4accb82860c44f7703807bc5142686a47ebf0  cgproxy.initd"
sha512sums="e8ba64665a21d987cd835580c2b6bafbcb05e22ce7f6216762d04840957c2cd21fb571360e0206ae9143656beed88ff3396eb1f644052c05189093a665a705fd  cgmanager-0.41.tar.gz
1a6de3d90140b0c8e0871ab097bb3260f35dd4ad5f131ead8913f6168e41eb43cac38ab4c09eb792bfffc982353c0976c9ee6568299dc803058c0dd4381aa675  cgmanager.initd
3e7ed48d3d5b4c178ec038b6db53d693f98ac9dd2b5ba405cc0241ddb2a0d60632bd1aeb7b7bea6ee3cf15a66eb069690197d067f9c7d8b5d8654f509db0f230  cgproxy.initd"