File create-pmlogger-and-pmie-logdirs-during-install.patch of Package pcp

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

openSUSE Build Service is sponsored by