updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / libcgroup / PKGBUILD
blobdf7e598052db78adfab8fa0473ccf498d42f8715
1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
3 pkgname=libcgroup
4 pkgver=0.37.1
5 pkgrel=1
6 pkgdesc="Library that abstracts the control group file system in Linux"
7 arch=(i686 x86_64)
8 url="http://libcg.sourceforge.net"
9 license=(LGPL)
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)
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
19   ./configure \
20     --prefix=/usr \
21     --exec_prefix=/ \
22     --sysconfdir=/etc \
23     --localstatedir=/var
25   make
28 package() {
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"
38   cd "$pkgdir"
40   mv lib/security/pam_cgroup.so.*.*.* lib/security/pam_cgroup.so
41   rm -f lib/security/pam_cgroup.so.*
43   rm -rf etc/rc.d
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')