libcgroup: add cgred service and group
* added system group cgred * added service /etc/sv/cgred * Two conf files, /etc/cgrules.conf and /etc/cgconfig.conf * setgid on cgexec to cgred * use relative paths for chown/chmod * remove service configuration file * add OPTS and docs to ./run script * fix cross (thanks xtraeme!)
This commit is contained in:
parent
f9a3e8058d
commit
eff81b7ff8
3 changed files with 23 additions and 2 deletions
5
srcpkgs/libcgroup/files/cgred/run
Executable file
5
srcpkgs/libcgroup/files/cgred/run
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Default logs to syslog with facility DAEMON
|
||||
# man cgrulesengd for options list and descriptions.
|
||||
: ${OPTS:=-s}
|
||||
exec cgrulesengd $OPTS -g cgred --nodaemon 2>&1
|
7
srcpkgs/libcgroup/libcgroup-utils.INSTALL
Executable file
7
srcpkgs/libcgroup/libcgroup-utils.INSTALL
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
case ${ACTION} in
|
||||
post)
|
||||
chown root:cgred usr/bin/cgexec
|
||||
chmod g+s usr/bin/cgexec
|
||||
;;
|
||||
esac
|
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'libcgroup'
|
||||
pkgname=libcgroup
|
||||
version=0.41
|
||||
revision=1
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-pam-module-dir=/usr/lib/security"
|
||||
hostmakedepends="flex"
|
||||
hostmakedepends="flex libtool"
|
||||
makedepends="pam-devel"
|
||||
short_desc="Library that abstracts the control group file system in Linux"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
@ -13,12 +13,21 @@ homepage="http://libcg.sourceforge.net"
|
|||
distfiles="${SOURCEFORGE_SITE}/libcg/$pkgname-$version.tar.bz2"
|
||||
checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
|
||||
|
||||
pre_configure() {
|
||||
libtoolize -f
|
||||
}
|
||||
|
||||
libcgroup-utils_package() {
|
||||
short_desc+=" - utilities"
|
||||
conf_files="/etc/cgrules.conf /etc/cgconfig.conf"
|
||||
system_groups="cgred"
|
||||
pkg_install() {
|
||||
vmove usr/bin
|
||||
vmove usr/sbin
|
||||
vmove usr/share/man
|
||||
vconf samples/cgrules.conf
|
||||
vconf samples/cgconfig.conf
|
||||
vsv cgred
|
||||
}
|
||||
}
|
||||
libcgroup-devel_package() {
|
||||
|
|
Loading…
Reference in a new issue