blob: f4549ff5687b2af4ff860a27580ee8cdb65bba35 (
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:
pkgname=cgmanager
pkgver=0.39
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="83ef00049944f1e444a3149afc668a1d cgmanager-0.39.tar.gz
918125d912147f91aab0a373b69bfb41 cgmanager.initd
5e5b8380537d8ed14030ddb785c5f65c cgproxy.initd"
sha256sums="9e65487fb4e4aa0a6acd87ba7f8f00b8007d8c52608aa6d411e72e6fe9445b7b cgmanager-0.39.tar.gz
e10a05091f883711fd41a4917ba165d796c92b20001fd61171605a203a7ef934 cgmanager.initd
d9d2796c295aeec8d8d4e1b46b94a2476a4b191260ff7a416ab8ead8ccf5ac65 cgproxy.initd"
sha512sums="2adf2c639191fb681ffed083629d6ba93f6d5a3534d4dc00b2cff1917c3273febcb30ec7d524ee95ce4a1b8811d902a2ff1cdffe911a66850fb9f10750ef1801 cgmanager-0.39.tar.gz
9e3414e9253b4fb3a5c18ea634b3c817a80ec15b3e7e66c5c2611fc9073ac363ebef7ed9e79dc6eb8ee9401860fc6a3d00b385284402bfee371f5fa842016a5a cgmanager.initd
52c4252acb06e5df2985a688082bbb4cd8ea67f6c275f0c769c583ca70f4f9b6de496ef9724dba55f7266859a06f5b6c6fd71abe9de57c097539eca5c7049b61 cgproxy.initd"
|