pcp/create-pmlogger-and-pmie-logdirs-during-install.patch
David Disseldorp 6fb7136bf4 - Create pcp user and group during installation.
- Package pre-populated tmp directory. The directory must be world writeable
  (with the sticky-bit set), as it may be used by any PMDAs or client tools;
  (bnc#782967).

- Update to pcp-3.6.10.
  + Transition daemons to run under an unprivileged account.
  + Fixes for security advisory CVE-2012-5530: tmpfile flaws;
    (bnc#782967).
  + Fix pcp(1) command short-form pmlogger reporting.
  + Fix pmdalogger error handling for directory files.
  + Fix pmstat handling of odd corner case in CPU metrics.
  + Correct the python ctype used for pmAtomValue 32bit ints.
  + Add missing RPM spec dependency for python-ctypes.
  + Corrections to pmdamysql metrics units.
  + Add pmdamysql slave status metrics.
  + Improve pmcollectl error messages.
  + Parameterize pmcollectl CPU counts in interrupt subsys.
  + Fix generic RPM packaging for powerpc builds.
  + Fix python API use of reentrant libpcp string routines.
  + Python code backporting for RHEL5 in qa and pmcollectl.
  + Fix edge cases in capturing interrupt error counts.
- Update to pcp-3.6.9.
  + Python wrapper for the pmimport API
  + Make sar2pcp work with the sysstat versions from RHEL5,
    RHEL6, and all recent Fedora versions (which is almost
    all current versions of sysstat verified).
  + Added a number of additional metrics into the importer
    for people starting to use it to analyse sar data from
    real customer incidents.

OBS-URL: https://build.opensuse.org/package/show/Base:System/pcp?expand=0&rev=25
2012-11-21 15:07:21 +00:00

38 lines
1.2 KiB
Diff

From 05c112bd44b4a5dbb432e9d13e1e51816bd0acf8 Mon Sep 17 00:00:00 2001
From: David Disseldorp <ddiss@suse.de>
Date: Wed, 21 Nov 2012 12:53:25 +0100
Subject: [PATCH] create pmlogger and pmie logdirs during install
---
src/pmie/GNUmakefile | 1 +
src/pmlogger/GNUmakefile | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/pmie/GNUmakefile b/src/pmie/GNUmakefile
index c62b869..e0ec1cd 100644
--- a/src/pmie/GNUmakefile
+++ b/src/pmie/GNUmakefile
@@ -46,6 +46,7 @@ install:: default
$(INSTALL) -m 755 pmie_daily.sh $(PCP_BINADM_DIR)/pmie_daily
$(INSTALL) -m 755 pmie2col $(PCP_BIN_DIR)/pmie2col
$(INSTALL) -m 755 rc_pmie $(PCP_RC_DIR)/pmie
+ $(INSTALL) -m 755 -d $(PCP_LOG_DIR)/pmie
$(INSTALL) -m 1777 -d $(PCP_TMP_DIR)/pmie
include $(BUILDRULES)
diff --git a/src/pmlogger/GNUmakefile b/src/pmlogger/GNUmakefile
index 23c810c..b045bdb 100644
--- a/src/pmlogger/GNUmakefile
+++ b/src/pmlogger/GNUmakefile
@@ -37,6 +37,7 @@ include $(BUILDRULES)
install: $(CMDTARGET) $(OTHERS)
$(INSTALL) -m 755 $(CMDTARGET) $(PCP_BINADM_DIR)/$(CMDTARGET)
$(INSTALL) -m 755 rc_pmlogger $(PCP_RC_DIR)/pmlogger
+ $(INSTALL) -m 755 -d $(PCP_LOG_DIR)/pmlogger
$(INSTALL) -m 1777 -d $(PCP_TMP_DIR)/pmlogger
YFLAGS += -v
--
1.7.10.4