[ofa-general] [PATCH 2/2] install the configuration files by the rpm

Doron Shoham dorons at Voltaire.COM
Thu Nov 6 01:25:19 PST 2008


install the configuration files by the rpm

Signed-off-by: Doron Shoham <dorons at voltaire.com>
---
 opensm/opensm.spec.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm.spec.in b/opensm/opensm.spec.in
index f8cecf1..b5d5b2c 100644
--- a/opensm/opensm.spec.in
+++ b/opensm/opensm.spec.in
@@ -98,6 +98,10 @@ mkdir -p $etc/{init.d,logrotate.d} $etc/@OPENSM_CONFIG_SUB_DIR@
 install -m 755 scripts/${REDHAT}opensm.init $etc/init.d/opensmd
 install -D -m 644 scripts/opensm.logrotate $etc/logrotate.d/opensm
 install -m 755 scripts/sldd.sh $RPM_BUILD_ROOT%{_sbindir}/sldd.sh
+install -m 644 scripts/opensm.conf $etc/opensm/
+install -m 644 scripts/partitions.conf $etc/opensm/
+install -m 644 scripts/qos-policy.conf $etc/opensm/
+install -m 644 scripts/root-nodes.conf $etc/opensm/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -130,6 +134,7 @@ fi
 %config(noreplace) %{_sysconfdir}/logrotate.d/opensm
 %dir /var/cache/opensm
 %dir %{_sysconfdir}/@OPENSM_CONFIG_SUB_DIR@
+%{_sysconfdir}/opensm/*
 
 %files libs
 %defattr(-,root,root,-)
-- 
1.5.3.8





More information about the general mailing list