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:
@@ -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)";
|
||||
|
||||
Reference in New Issue
Block a user