SPECS: cpqarrayd.spec - added init script

glen glen at pld-linux.org
Thu Mar 9 13:21:44 CET 2006


Author: glen                         Date: Thu Mar  9 12:21:44 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added init script

---- Files affected:
SPECS:
   cpqarrayd.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/cpqarrayd.spec
diff -u SPECS/cpqarrayd.spec:1.3 SPECS/cpqarrayd.spec:1.4
--- SPECS/cpqarrayd.spec:1.3	Thu Mar  9 11:38:30 2006
+++ SPECS/cpqarrayd.spec	Thu Mar  9 13:21:37 2006
@@ -1,14 +1,15 @@
 # $Revision$, $Date$
-# TODO: init script (provided one isn't LSB-compliant)
 Summary:	Cpqarrayd - SmartArray controllers monitoring
 Summary(pl):	Cpqarrayd - monitorowanie kontrolerów SmartArray
 Name:		cpqarrayd
 Version:	2.2
-Release:	0.1
+Release:	0.3
 License:	GPL v2+
 Group:		Applications/System
 Source0:	http://www.strocamp.net/opensource/compaq/downloads/%{name}-%{version}.tar.gz
 # Source0-md5:	d287d1ad9317443063aff1098f7bc4f4
+Source1:	%{name}.init
+Source2:	%{name}.sysconfig
 Patch0:		%{name}-headers.patch
 URL:		http://www.strocamp.net/opensource/cpqarrayd.php
 BuildRequires:	autoconf >= 2.50
@@ -38,9 +39,12 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpqarrayd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpqarrayd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -50,6 +54,8 @@
 %doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_sbindir}/cpqarrayd
 %{_mandir}/man1/cpqarrayd.1*
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cpqarrayd
+%attr(754,root,root) /etc/rc.d/init.d/cpqarrayd
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -57,6 +63,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2006/03/09 12:21:37  glen
+- added init script
+
 Revision 1.3  2006/03/09 10:38:30  qboosh
 - updated to 2.2, added headers patch - builds now
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cpqarrayd.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list