aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cgmanager/APKBUILD
blob: 183af42801ab3e2f6ad8599f849cd3d6253e0d9c (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=0
pkgdesc="nother daemon for managing control groups"
url="https://linuxcontainers.org/cgmanager/"
arch="x86_64"
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
918125d912147f91aab0a373b69bfb41  cgmanager.initd
5e5b8380537d8ed14030ddb785c5f65c  cgproxy.initd"
sha256sums="29b155befb3ac233d5d29dbca7c791c8138bab01bfa78ea4757ebb88ce23b458  cgmanager-0.41.tar.gz
e10a05091f883711fd41a4917ba165d796c92b20001fd61171605a203a7ef934  cgmanager.initd
d9d2796c295aeec8d8d4e1b46b94a2476a4b191260ff7a416ab8ead8ccf5ac65  cgproxy.initd"
sha512sums="e8ba64665a21d987cd835580c2b6bafbcb05e22ce7f6216762d04840957c2cd21fb571360e0206ae9143656beed88ff3396eb1f644052c05189093a665a705fd  cgmanager-0.41.tar.gz
9e3414e9253b4fb3a5c18ea634b3c817a80ec15b3e7e66c5c2611fc9073ac363ebef7ed9e79dc6eb8ee9401860fc6a3d00b385284402bfee371f5fa842016a5a  cgmanager.initd
52c4252acb06e5df2985a688082bbb4cd8ea67f6c275f0c769c583ca70f4f9b6de496ef9724dba55f7266859a06f5b6c6fd71abe9de57c097539eca5c7049b61  cgproxy.initd"