Author: baggins                      Date: Mon Jul 25 20:18:22 2005 GMT
Module: nps                           Tag: HEAD
---- Log message:
- some cleanup

---- Files affected:
nps:
   nps.spec (1.1.1.1 -> 1.2) 

---- Diffs:

================================================================
Index: nps/nps.spec
diff -u nps/nps.spec:1.1.1.1 nps/nps.spec:1.2
--- nps/nps.spec:1.1.1.1        Mon Jul 25 21:42:49 2005
+++ nps/nps.spec        Mon Jul 25 22:18:17 2005
@@ -1,55 +1,35 @@
-#                          
-#
-#
-
-Summary: Platform Linux components
-Name: nps
-Version: V2.2.0.6
-Release: 0
-URL: http://www.newisys.com
-Source0: %{name}-%{version}.%{release}.tar.gz
-License: Copyright (C) 2002 Newisys, Inc. (Refer to the Description below.)
-Group: System/Monitoring
-Vendor: Newisys, Inc.
-#
-# we only support linux
-ExclusiveOS: Linux
 
-#
-# Required to suppress stripping of binaries, compression of man pages, etc.
-#
-%define  __spec_install_post %{nil}
-
-#
-# bug in redhat 9 about debugging symbols
-#   it will stop changing file.list to debugfiles.list
-#
-%define debug_package %{nil}
+%define                _vendor_rel 0
+Summary:       Platform Linux components
+Name:          nps
+Version:       2.2.0.6.%{_vendor_rel}
+Release:       0.1
+URL:           http://www.newisys.com
+# Source taken from: nsv-redhat_V2_2_0_6b.zip,
+# available at Sun Download Center http://www.sun.com/download/
+# Sun Fire V20z and V40z NSV bundles 2.2.0.6
+Source0:       %{name}-V%{version}.tar.gz
+Source0-md5:   5c843ff779f10722b314433b7e8f1210
+License:       GPL
+Group:         System/Monitoring
+#Vendor:               Newisys, Inc.
+# we only support linux
+ExclusiveOS:   Linux
+%{!?_without_dist_kernel:%requires_releq_kernel_up}
+BuildRequires: pciutils-devel
 
 %description
+ Network Share Volume Update version 2.2.0.6. This page contains latest version
+of BIOS and SP firmware.
 
-SYSTEM AGREEMENT
-BY PURCHASING AND/OR USING THE HARDWARE, SOFTWARE AND DOCUMENTATION ("SYSTEM") 
PROVIDED WITH THIS SYSTEM AGREEMENT ("AGREEMENT"), YOU OR THE ENTITY OR COMPANY 
THAT YOU REPRESENT ("END USER") ARE UNCONDITIONALLY CONSENTING TO BE BOUND BY 
AND ARE BECOMING A PARTY TO THIS AGREEMENT.    IF THESE TERMS ARE CONSIDERED AN 
OFFER, ACCEPTANCE IS EXPRESSLY LIMITED TO THESE TERMS. 
-
-1. HARDWARE
-1.1. The System contains computer hardware ("Hardware"), the design, 
functionality, features, trade secrets, Confidential Information and 
proprietary rights (the "Technology") of which are proprietary to Newisys, Inc. 
("Licensor") and its suppliers and are protected by the laws of the United 
States and international treaties.  Notwithstanding transfer of title and risk 
of loss to the Hardware, the Technology is licensed to End User and not sold 
and Licensor and its suppliers retain all right, title and interest in and to 
the Technology and all accompanying intellectual property rights.  End User is 
granted no interest in, other than a license to use, the Technology and use of 
the Hardware is subject to the terms and conditions of this Agreement. 
-1.2. End User agrees that it will not, and will not allow others to, reverse 
engineer, disassemble or otherwise attempt to discover the Technology, except 
to the extent expressly permitted by applicable law.  End User is granted no 
rights to make a derivative work, improvement, or other modification to the 
Hardware. 
-2. SOFTWARE 2.1. Subject to all the terms and conditions of this Agreement, 
Licensor hereby grants End User a limited, personal, non-sublicensable, 
non-transferable, non-exclusive license to use the software included with the 
System ("Software") only for End User's personal, internal use and only in 
accordance with any documentation that accompanies it. 
-2.2. Except as expressly and unambiguously permitted by this Agreement, End 
User shall not, nor permit anyone else to, directly or indirectly: (i) copy 
(except for a reasonable number of backup copies), modify, or distribute the 
Software; (ii) reverse engineer, disassemble, decompile or otherwise attempt to 
discover the source code or structure, sequence and organization of the 
Software (except where the foregoing is required by applicable local law, and 
then only to the extent so permitted); or (iii) rent, lease, or use the 
Software for timesharing or service bureau purposes, or otherwise use the 
Software on behalf of any third party. End User shall maintain and not remove 
or obscure any copyright or other proprietary notices on the Software.  As 
between the parties, title, ownership rights, and intellectual property rights 
in and to the Software, and any copies or portions thereof, shall remain in 
Licensor and its suppliers. End User understands that Licensor may modify o!
 r discontinue offering the System at any time. The Software is protected by 
the copyright laws of the United States and international copyright treaties. 
This Agreement does not give End User any rights not expressly granted herein.  
Unless otherwise agreed in a separate written agreement with Licensor, End User 
is not entitled to any maintenance or support services with respect to the 
System, or any Hardware or Software included therein.
-3. INDEMNITY. End User agrees that Licensor and its suppliers shall have no 
liability whatsoever for any use End User make of the System. End User shall 
indemnify and hold harmless Licensor and its suppliers from any claims, 
damages, liabilities, costs and fees (including reasonable attorney fees) 
arising from End User's use of the System as well as from End User's failure to 
comply with any term of this Agreement.
-4. WARRANTY DISCLAIMER.   LICENSOR AND ITS SUPPLIERS HEREBY DISCLAIM ALL 
EXPRESS AND IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION THE WARRANTIES OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, PERFORMANCE, ACCURACY, 
RELIABILITY, AND NON-INFRINGEMENT. NEITHER LICENSOR NOR ITS SUPPLIERS WARRANT 
OR GUARANTEE THAT THE SYSTEM WILL OPERATE UNINTERRUPTED OR ERROR-FREE.  THIS 
DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS AGREEMENT.  UNLESS 
AGREED IN A SEPARATE WRITTEN AGREEMENT, SIGNED BY AUTHORIZED LICENSOR 
REPRESENTATIVES, LICENSOR MAKES NO WARRANTY WHATSOEVER, EXPRESS, IMPLIED OR 
OTHERWISE, WITH RESPECT TO HARDWARE OR SOFTWARE INCLUDED WITH THE SYSTEM.  TO 
THE EXTENT POSSIBLE, LICENSOR SHALL PASS THROUGH ANY APPLICABLE THIRD PARTY 
WARRANTIES.
-5. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, 
INCLUDING, BUT NOT LIMITED TO, TORT, CONTRACT, NEGLIGENCE, STRICT LIABILITY, OR 
OTHERWISE, SHALL LICENSOR OR ITS SUPPLIERS BE LIABLE TO END USER OR ANY OTHER 
PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY 
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF 
GOODWILL, WORK STOPPAGE, ACCURACY OF RESULTS, COMPUTER FAILURE OR MALFUNCTION, 
OR DAMAGES RESULTING FROM END USER'S USE OF THE SYSTEM. THE FOREGOING 
LIMITATIONS SHALL APPLY EVEN IF LICENSOR SHALL HAVE BEEN INFORMED OF THE 
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR 
LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION AND 
EXCLUSION MAY NOT APPLY TO END USER. 
-6. TERM AND TERMINATION. This Agreement shall continue until terminated as set 
forth in this Section 6. End User may terminate this Agreement at any time. 
Licensor may terminate this Agreement immediately if End User breaches any 
provision of this Agreement and such breach is not cured within 30 days of 
Licensor's notice. Any termination of this Agreement shall also terminate the 
licenses granted hereunder. Upon termination of this Agreement for any reason, 
the licenses granted under Section 2.1 shall be immediately terminated, End 
User shall immediately cease all use of the Software, and shall, at Licensor's 
discretion, return or destroy the Software, and any copies thereof, and provide 
written certification by an officer of End User that the foregoing has been 
accomplished. Licensor and its suppliers shall have the right to inspect and 
audit End User's facilities to confirm End User's compliance with this 
Agreement. Those provisions of this Agreement that by their nature,!
  or their terms, should survive termination of this Agreement shall survive. 
-7. HIGH RISK USES. End User acknowledges that the System has not been designed 
to be failsafe or intended for use in connection with any high risk or strict 
liability activity (including, without limitation, air travel, space travel, 
fire fighting, police operations, power plant operation, military operations, 
rescue operations, hospital and medical operations or the like) and End User 
agrees that Licensor and its suppliers shall have no liability for, and End 
User shall indemnify and defend Licensor and its suppliers for damages suffered 
as a result of, End User's use of the System or any portion thereof for, or in 
connection with, any such activity . 
-8. GOVERNMENT USE. If End User is part of an agency, department, or other 
entity of the United States Government ("Government"), the use, duplication, 
reproduction, release, modification, disclosure or transfer of the System is 
restricted in accordance with the Federal Acquisition Regulations as applied to 
civilian agencies and the Defense Federal Acquisition Regulation Supplement as 
applied to military agencies. The Software is a "commercial item," "commercial 
computer software" and "commercial computer software documentation." In 
accordance with such provisions, any use of the System by the Government shall 
be governed solely by the terms of this Agreement. 
-9. EXPORT CONTROLS. End User shall comply with all import and export laws and 
restrictions and regulations of the Department of Commerce, the United States 
Department of Treasury Office of Foreign Assets Control ("OFAC"), or other 
United States or foreign agency or authority, and End User shall not import, 
export, or allow the import, export or re-export of the System in violation of 
any such restrictions, laws or regulations. By using the System, End User 
agrees to the foregoing and represents and warrants that End User is not 
located in, under the control of, or a national or resident of any restricted 
country. 
-10. MISCELLANEOUS.  Licensor and its suppliers shall have the right to audit 
your use of the system to ensure compliance with this Agreement. If any 
provision of this Agreement is held to be unenforceable for any reason, such 
provision shall be reformed only to the extent necessary to make it 
enforceable.  The failure of Licensor to act with respect to a breach of this 
Agreement by End User or others does not constitute a waiver and shall not 
limit Licensor's or Newisys' rights with respect to such breach or any 
subsequent breaches. This Agreement is personal to End User and may not be 
assigned or transferred for any reason whatsoever (including, without 
limitation, by operation of law, merger, reorganization, or as a result of an 
acquisition or change of control involving End User) without Licensor's consent 
and any action or conduct in violation of the foregoing shall be void and 
without effect. The party prevailing in any dispute under this Agreement shall 
be entitled to!
  its costs and legal fees.  This Agreement shall be governed by, and shall be 
construed in accordance with, the laws of the State in which Licensor's 
headquarters are located, excluding its conflict of laws provisions, as if this 
Agreement was executed in, and fully performed within, such State.  Additional 
terms and conditions required by third party suppliers may be included with the 
System and are binding on End User to the same extent as this Agreement. 
-11. THIRD PARTY NOTICES. PowerPC, PPC and VisualAge are trademarks or 
registered trademarks of International Business Machines Corporation.  Java 
Development Kit and JDK are trademarks or registered trademarks of Sun 
Microsystems, Inc.  StrongARM is a registered trademark of ARM, LTD.  MIPS is a 
registered trademark of MIP Technologies, Inc.  ViewML is a registered 
trademark of Century Software Inc.  GoAhead Webserver is a trademark of GoAhead 
Software, Inc.  Linux is a registered trademark of Linus Torvalds.  Hard Hat is 
a trademark of MontaVista Software, Inc.  AMD and HyperTransport are trademarks 
of Advanced Micro Devices, Inc.  Newisys and the Newisys logo are trademarks of 
Newisys, Inc. Certain portions of the Software included with the System are 
licensed under the terms of the most recent version of the GNU General Public 
License ("GPL") as published by the Free Software Foundation.  A copy of the 
GPL is available at  http://www.gnu.org/licenses/licenses.html.
-
-
+%package -n kernel-net-nps
+Summary:       Linux driver for the 
+License:       GPL
+Group:         Base/Kernel
+Requires(post,postun): /sbin/depmod
 
 %prep
-%setup -c -n %{name}
+%setup -c -n %{name}-%{version}
 
 %build
 make INSTALL_MOD_PATH=$RPM_BUILD_ROOT all
@@ -58,42 +38,13 @@
 rm -rf $RPM_BUILD_ROOT
 make install BUILD_FROM_RPM=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT
 
-%pre
-# if we are running RH9, we need to add a flag to the network config file
-if ( uname -r | grep -v "grep" | grep -q "2.4.2[01]-" )
-then
-  if [ -f /etc/sysconfig/network ]
-  then
-    if ! grep -q "NOZEROCONF.*yes" /etc/sysconfig/network
-    then
-      echo "NOZEROCONF=yes" >> /etc/sysconfig/network
-    fi
-  fi
-fi
-
 %post
-sed -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" < 
/etc/newisys/swinventory.xml > /etc/newisys/swinventory.new
-mv /etc/newisys/swinventory.new /etc/newisys/swinventory.xml
-sed -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" < 
/etc/newisys/poci/swinventory.xml > /etc/newisys/poci/swinventory.new
-mv /etc/newisys/poci/swinventory.new /etc/newisys/poci/swinventory.xml
-sed -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" < 
/etc/newisys/jnet/swinventory.xml > /etc/newisys/jnet/swinventory.new
-mv /etc/newisys/jnet/swinventory.new /etc/newisys/jnet/swinventory.xml
-
-KERNEL_VER_2_6=`uname -r | awk '{ if ($0 ~ /2\.6\./) print "1"; else print 
"0"}'`
-PLATFORM_X86_64=`uname -m | awk '{ if ($0 ~ /x86[-_]64/) print "1"; else print 
"0"}'`
-if [ $KERNEL_VER_2_6 -eq 1 ] && [ $PLATFORM_X86_64 -eq 1 ]
-then
-  echo "skipping nws_mc"
-else
-  sed -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" < 
/etc/newisys/nws_mc/swinventory.xml > /etc/newisys/nws_mc/swinventory.new
-  mv /etc/newisys/nws_mc/swinventory.new /etc/newisys/nws_mc/swinventory.xml
-fi
+sed -i -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" 
/etc/newisys/swinventory.xml
+sed -i -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" 
/etc/newisys/poci/swinventory.xml
+sed -i -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" 
/etc/newisys/jnet/swinventory.xml
 
-if [ -f /etc/init.d/functions ]
-then
-  runConfig="chkconfig --add poci"
-else
-  runConfig="insserv /etc/init.d/poci"
+if [ -e /etc/newisys/nws_mc/swinventory.xml ] ; then
+  sed -i -e "s/<SWInstalledDate>.*</<SWInstalledDate>`date +%s`</" 
/etc/newisys/nws_mc/swinventory.xml
 fi
 
 # need to add a file for JNET's ip address
@@ -108,7 +59,7 @@
 then
   # now add poci
   # this must be an install, so add poci
-  ${runConfig}
+  /sbin/chkconfig --add poci
 
   # this is needed to run poci after an install without having to reboot
   if ( uname -r | grep -v "grep" | grep -q "2.4.2[01]-" )
@@ -132,13 +83,6 @@
 cp -f /usr/sbin/nws_mc /usr/sbin/nws_mc.bk
 
 %postun
-if [ -f /etc/init.d/functions ]
-then
-  runConfig="chkconfig --del poci"
-else
-  runConfig="insserv -r /etc/init.d/poci"
-fi
-
 # if poci DNE, this must be an uninstall
 if [ ! -f /usr/sbin/poci ]
 then
@@ -153,7 +97,7 @@
     /etc/init.d/poci stop 
   fi
 
-  ${runConfig}
+  /sbin/chkconfig --add poci
 
   rm -f /etc/init.d/poci
   rm -f /usr/sbin/nws_poci
@@ -174,9 +118,7 @@
 
 %clean
 rm -rf $RPM_BUILD_ROOT
-make clean INSTALL_MOD_PATH=$RPM_BUILD_ROOT -C $RPM_BUILD_DIR/%{name}
 
 %files -f file.list
 
 %changelog
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/nps/nps.spec?r1=1.1.1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to