SPECS: cpqarrayd.spec - %post/%postun scriptlets
glen
glen at pld-linux.org
Thu Mar 9 15:35:55 CET 2006
Author: glen Date: Thu Mar 9 14:35:55 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- %post/%postun scriptlets
---- Files affected:
SPECS:
cpqarrayd.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/cpqarrayd.spec
diff -u SPECS/cpqarrayd.spec:1.4 SPECS/cpqarrayd.spec:1.5
--- SPECS/cpqarrayd.spec:1.4 Thu Mar 9 13:21:37 2006
+++ SPECS/cpqarrayd.spec Thu Mar 9 15:35:48 2006
@@ -3,7 +3,7 @@
Summary(pl): Cpqarrayd - monitorowanie kontrolerów SmartArray
Name: cpqarrayd
Version: 2.2
-Release: 0.3
+Release: 0.4
License: GPL v2+
Group: Applications/System
Source0: http://www.strocamp.net/opensource/compaq/downloads/%{name}-%{version}.tar.gz
@@ -15,6 +15,8 @@
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: net-snmp-devel
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires(post,preun): /sbin/chkconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -49,6 +51,16 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add cpqarrayd
+%service cpqarrayd restart "Compaq RAID Array Monitor"
+
+%preun
+if [ "$1" = "0" ]; then
+ %service -q %{name} stop
+ /sbin/chkconfig --del cpqarrayd
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
@@ -63,6 +75,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2006/03/09 14:35:48 glen
+- %post/%postun scriptlets
+
Revision 1.4 2006/03/09 12:21:37 glen
- added init script
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/cpqarrayd.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list