Use /var/log/sa for statedir of sysstat, in stead of $out/var/lib/sa. This path cannot be overriden at runtime, so choosing a 'sane' default.

This commit is contained in:
Rob Vermaas
2012-08-14 14:14:55 +02:00
parent 4f7917ac62
commit a19a68e93b
2 changed files with 40 additions and 1 deletions
+3 -1
View File
@@ -13,9 +13,11 @@ stdenv.mkDerivation rec {
preConfigure = ''
export PATH_CP=$(type -tp cp)
export PATH_CHKCONFIG=/no-such-program
makeFlagsArray=(SA_DIR=$out/var/log/sa SYSCONFIG_DIR=$out/etc CHOWN=true IGNORE_MAN_GROUP=y)
makeFlagsArray=(SA_DIR=/var/log/sa SYSCONFIG_DIR=$out/etc CHOWN=true IGNORE_MAN_GROUP=y)
'';
patches = [ ./no-install-statedir.patch ];
meta = {
homepage = http://sebastien.godard.pagesperso-orange.fr/;
description = "A collection of performance monitoring tools for Linux (such as sar, iostat and pidstat)";