Package Details: libcgroup 0.41-2

Git Clone URL: https://aur.archlinux.org/libcgroup.git (read-only)
Package Base: libcgroup
Description: Library that abstracts the control group file system in Linux
Upstream URL: http://libcg.sourceforge.net
Licenses: LGPL
Submitter: heftig
Maintainer: eworm
Last Packager: eworm
Votes: 94
Popularity: 1.536542
First Submitted: 2010-04-25 12:01
Last Updated: 2015-06-30 11:39

Latest Comments

arno commented on 2014-03-25 19:13

I think it need a cgrules.socket to start correctly.

$ diff -U1 cgrules.service{.org,}
--- cgrules.service.org 2014-03-25 20:07:42.000000000 +0100
+++ cgrules.service 2014-03-25 20:10:22.000000000 +0100
@@ -2,2 +2,3 @@
Description=Control Group rules service
+Requires=cgrules.socket

@@ -16 +17,2 @@
WantedBy=sysinit.target
+Also=cgrules.socket

$ cat cgrules.socket
[Unit]
Description=Control Group Rules Daemon Listen Socket

[Socket]
ListenStream=/var/run/cgred.socket

[Install]
WantedBy=sockets.target

eworm commented on 2014-02-20 10:50

flex and bison belong to base-devel and are expected to be installed.

Hrafnahnef commented on 2014-02-20 10:49

Please add

makedepends=('flex' 'bison')

to the PKGBUILD.

kjslag commented on 2014-01-28 08:54

flex seems to to be a necessary make dependency

eworm commented on 2013-05-13 07:38

You should try to get your changes upstream. ;)

PKGBUILD is updated, have fun!

mamciek commented on 2013-05-13 07:05

please update cgrules.service. New revision of it is available here: https://gist.github.com/mamciek/5539646
Current revision contains an error.

mamciek commented on 2013-05-08 10:34

Please include systemd service to start cgrulesengd. I have created one here:
https://gist.github.com/mamciek/5539646

supersym commented on 2013-04-02 17:19

@eworm: works great here! Thanks :) Now I can rid myself of some more system messages that have been bugging me.

eworm commented on 2013-01-16 09:14

Updated the package and added systemd service file. Can anybody please test?

big_gie commented on 2013-01-15 19:19

Here's a patch to enable systemd:
--- PKGBUILD.orig 2013-01-15 13:19:42.775620213 -0500
+++ PKGBUILD 2013-01-15 14:18:12.882960578 -0500
@@ -12,7 +12,7 @@
options=('!emptydirs' '!libtool')
install=libcgroup.install
source=("http://downloads.sourceforge.net/libcg/${pkgname}-${pkgver/rc/.rc}.tar.bz2"
- 'cgred' 'cgconfig' 'cgconfig.conf')
+ 'cgred' 'cgconfig' 'cgconfig.conf' 'cgconfig.service')

build() {
cd "${srcdir}/${pkgname}-${pkgver/rc/.rc}"
@@ -20,7 +20,8 @@
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --enable-opaque-hierarchy=name=systemd

make
}
@@ -34,6 +35,7 @@
install -Dm644 samples/cgconfig.conf "${pkgdir}/etc/cgconfig.conf"
install -Dm644 samples/cgrules.conf "${pkgdir}/etc/cgrules.conf"
install -Dm644 samples/cgsnapshot_blacklist.conf "${pkgdir}/etc/cgsnapshot_blacklist.conf"
+ install -Dm644 cgconfig.service "${pkgdir}/usr/lib/systemd/system/cgconfig.service"

rm -f ${pkgdir}/usr/lib/security/pam_cgroup.{la,so,so.0}
mv ${pkgdir}/usr/lib/security/pam_cgroup.so.0.0.0 ${pkgdir}/usr/lib/security/pam_cgroup.so
@@ -51,4 +53,5 @@
sha256sums=('9d27e4b16b92fb9917d0807934023b8cc691f3b5258c4ee581957645fa7ba143'
'f68aadcacca0bbc22b9b89e1f2d9a1d607d1a39890d444eeef7b5574beda138d'
'40fa009e4beb576728eaab7165e824826cbed46e534e3a25503c6b9d7ed5f640'
- '72c39ce0160c30d714f1a7187036757bf9a8c8649f0818404e3bc45f4ae76e6b')
+ '72c39ce0160c30d714f1a7187036757bf9a8c8649f0818404e3bc45f4ae76e6b'
+ '3bdaadce18a482d8e42590aefa9bdd78407a67dd8860377e07d0e69242de2aca')

Note the required "cgconfig.service" file, downloaded from http://libcg.git.sourceforge.net/git/gitweb.cgi?p=libcg/libcg;a=blob;f=dist/cgconfig.service;hb=HEAD
Note also that the file "cgconfig.service" must use /usr/sbin/{cgconfigparser,cgclear} instead of plain /sbin.

All comments