1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
6 pkgdesc="Library that abstracts the control group file system in Linux"
8 url="http://libcg.sourceforge.net"
10 backup=(etc/conf.d/cgred etc/conf.d/cgconfig etc/cgconfig.conf etc/cgrules.conf)
11 options=('!emptydirs' '!libtool')
12 install=libcgroup.install
13 source=("http://downloads.sourceforge.net/libcg/$pkgname-$pkgver.tar.bz2"
14 cgred cgconfig cgconfig.conf)
17 cd "$srcdir/$pkgname-$pkgver"
29 cd "$srcdir/$pkgname-$pkgver"
31 make DESTDIR="$pkgdir" pkgconfigdir="/usr/lib/pkgconfig" install
33 install -Dm644 samples/cgred.conf "$pkgdir/etc/conf.d/cgred"
34 install -Dm644 samples/cgconfig.conf "$pkgdir/etc/cgconfig.conf"
35 install -Dm644 samples/cgrules.conf "$pkgdir/etc/cgrules.conf"
36 install -Dm644 samples/cgsnapshot_blacklist.conf "$pkgdir/etc/cgsnapshot_blacklist.conf"
40 mv lib/security/pam_cgroup.so.*.*.* lib/security/pam_cgroup.so
41 rm -f lib/security/pam_cgroup.so.*
44 install -Dm755 "$srcdir/cgred" etc/rc.d/cgred
45 install -Dm755 "$srcdir/cgconfig" etc/rc.d/cgconfig
46 install -Dm644 "$srcdir/cgconfig.conf" etc/conf.d/cgconfig
48 # Make cgexec setgid cgred
49 chown root:160 "$pkgdir/bin/cgexec"
50 chmod 2755 "$pkgdir/bin/cgexec"
53 md5sums=('24a41b18de112e8d085bb1f7d9e82af7'
54 '72abd2fd52853579b91e1ca6ea87197a'
55 '8e2ee870398dd62d3c4730330bbf6c21'
56 'cf4244ed9a413fa888be66bf0bc6d055')