]> git.pld-linux.org Git - packages/cpqarrayd.git/commitdiff
- %post/%postun scriptlets
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Mar 2006 14:35:48 +0000 (14:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cpqarrayd.spec -> 1.5

cpqarrayd.spec

index 2d8b12f64cabe380f297b22f73bf1f70876caccd..243618e151ec3e9b34ed9953f5648f3cdb5e2880 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Cpqarrayd - SmartArray controllers monitoring
 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
@@ -14,6 +14,8 @@ URL:          http://www.strocamp.net/opensource/cpqarrayd.php
 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
@@ -48,6 +50,16 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpqarrayd
 %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
This page took 0.08686 seconds and 4 git commands to generate.