# Copyright (C) 2007 Platform Computing Inc # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # # # Summary: Platform OFED Component Name: component-Platform-OFED-SM-v1_4 Version: 1.4 Release: 1 License: Kit is GPL. OpenIB.org is BSD license Group: System Environment/Base Vendor: Platform Computing Corporation BuildArchitectures: noarch BuildRoot: %{_tmppath}/%{name}.%{version}-buildroot Requires: component-Platform-OFED-v1_4 Requires: opensm = 3.2.5_20081207 # For post section Requires: aaa_base %description This package is a meta package for the OFED Subnet manager install and config %prep %pre %install rm -rf $RPM_BUILD_ROOT /usr/bin/install -d $RPM_BUILD_ROOT/etc/rc.kusu.d/ /usr/bin/install -m 755 %{_topdir}/S42ofed-osm.rc.py $RPM_BUILD_ROOT/etc/rc.kusu.d/ %post # Place any component post install code here if [ -e /var/lock/subsys/kusu-installer ]; then exit 0; fi /sbin/chkconfig --level 35 opensmd on > /dev/null 2>&1 # S42ofed-osm.rc.py file may overwrite the config file, including any user changes /usr/sbin/opensm -c /etc/opensm/opensm.conf > /dev/null 2>&1 service opensmd restart > /dev/null 2>&1 || : %preun %postun # Place any component uninstall code here # Generate scripts for the CFM to remove other packages /bin/cat << 'EOF' >> /opt/kusu/lib/plugins/cfmclient/%{name}.remove #!/bin/sh rpm -e opensm rm -rf /opt/kusu/lib/plugins/cfmclient/%{name}.remove EOF %files /etc/rc.kusu.d/S42ofed-osm.rc.py* %changelog * Wed Apr 22 2009 Mehdi Bozzo-Rey 1.4-8 - initial packaging