[ofa-general] [PATCH] opensm/opens.spec: add -D option for logrotate file install command

Sasha Khapyorsky sashak at voltaire.com
Thu Oct 23 11:30:49 PDT 2008


This addresses bug #1294. 'install' doesn't create paths automatically
on Ubuntu.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm.spec.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm.spec.in b/opensm/opensm.spec.in
index 325e35c..f8cecf1 100644
--- a/opensm/opensm.spec.in
+++ b/opensm/opensm.spec.in
@@ -96,7 +96,7 @@ else
 fi
 mkdir -p $etc/{init.d,logrotate.d} $etc/@OPENSM_CONFIG_SUB_DIR@
 install -m 755 scripts/${REDHAT}opensm.init $etc/init.d/opensmd
-install -m 644 scripts/opensm.logrotate $etc/logrotate.d/opensm
+install -D -m 644 scripts/opensm.logrotate $etc/logrotate.d/opensm
 install -m 755 scripts/sldd.sh $RPM_BUILD_ROOT%{_sbindir}/sldd.sh
 
 %clean
-- 
1.6.0.1.196.g01914




More information about the general mailing list