[ofa-general] [PATCH] opensm/opensm.spec.in: don't install old format conf file

Sasha Khapyorsky sashak at voltaire.com
Sat Sep 13 11:29:02 PDT 2008


OpenSM uses this name (<etc>/<opensm>/opensm.conf) as default config
file name. The file installed there from spec is old format "config-like"
setup for old init scripts. It has different format and will break
OpenSM (now this works in OFED only because some variables are not
substituted correctly during OFED build and it is installed in another
place).

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

diff --git a/opensm/opensm.spec.in b/opensm/opensm.spec.in
index fc7677d..14c753f 100644
--- a/opensm/opensm.spec.in
+++ b/opensm/opensm.spec.in
@@ -96,7 +96,6 @@ 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.conf $etc/@OPENSM_CONFIG_SUB_DIR@/opensm.conf
 install -m 644 scripts/opensm.logrotate $etc/logrotate.d/opensm
 install -m 755 scripts/sldd.sh $RPM_BUILD_ROOT%{_sbindir}/sldd.sh
 
@@ -128,7 +127,6 @@ fi
 %doc AUTHORS COPYING README doc/performance-manager-HOWTO.txt
 %{_sysconfdir}/init.d/opensmd
 %{_sbindir}/sldd.sh
-%config(noreplace) %{_sysconfdir}/@OPENSM_CONFIG_SUB_DIR@/opensm.conf
 %config(noreplace) %{_sysconfdir}/logrotate.d/opensm
 %dir /var/cache/opensm
 %dir %{_sysconfdir}/@OPENSM_CONFIG_SUB_DIR@
-- 
1.5.4.rc2.60.gb2e62




More information about the general mailing list