aboutsummaryrefslogtreecommitdiffstats
path: root/community/cgmanager/APKBUILD
blob: 71d15f6c14f5d4e080775903e10d139dbc3dd2c5 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cgmanager
pkgver=0.41
pkgrel=2
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
}

md5sums="6ebed9ed3bf0751eb3cde47a94c45340  cgmanager-0.41.tar.gz
41adf1ade7d948b4a23e07cae542ee09  cgmanager.initd
f92c9952b1a744b109c35c3488c6d262  cgproxy.initd"
sha256sums="29b155befb3ac233d5d29dbca7c791c8138bab01bfa78ea4757ebb88ce23b458  cgmanager-0.41.tar.gz
123826e2116fc9f07d9e11b2d27f9bff03313b44c98bf4a0c0c288689e9bb8ac  cgmanager.initd
ad05950d2c4581067c90df0c47eacfc01ca2576db3c2ffac048f962f5222aa2f  cgproxy.initd"
sha512sums="e8ba64665a21d987cd835580c2b6bafbcb05e22ce7f6216762d04840957c2cd21fb571360e0206ae9143656beed88ff3396eb1f644052c05189093a665a705fd  cgmanager-0.41.tar.gz
fe148a9891d5f5f101283a39df223712c7a8c6ec7e7caf85888a390eac639b918a0b8a9923af1b6a5c21aae8cf50ec3d1dd1656837f6f172cec2fce063a1c5e6  cgmanager.initd
b43439d9086fe50a8de93a61167272474e9e9b7a71b5a93bf3c6d2da127f95be3294c713295ca51c68e6de1f95c4d969502d8c3d503bc510873ccec794bef5ba  cgproxy.initd"