SPECS: ibmusbasm.spec - initscript hooks
glen
glen at pld-linux.org
Thu Apr 3 14:23:29 CEST 2008
Author: glen Date: Thu Apr 3 12:23:29 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initscript hooks
---- Files affected:
SPECS:
ibmusbasm.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/ibmusbasm.spec
diff -u SPECS/ibmusbasm.spec:1.4 SPECS/ibmusbasm.spec:1.5
--- SPECS/ibmusbasm.spec:1.4 Thu Apr 3 14:09:11 2008
+++ SPECS/ibmusbasm.spec Thu Apr 3 14:23:24 2008
@@ -1,4 +1,6 @@
# $Revision$, $Date$
+# TODO
+# - pldize initscript
Summary: IBM Remote Supervisor Adapter (RSA) II daemon
Summary(pl.UTF-8): Demon IBM Remote Supervisor Adapter (RSA) II
Name: ibmusbasm
@@ -12,7 +14,9 @@
BuildRequires: libusb-devel
BuildRequires: rpmbuild(macros) >= 1.228
BuildRequires: sed >= 4.0
+Requires(post): /sbin/ldconfig
Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
%ifarch %{x8664}
Requires: libusb-0.1.so.4()(64bit)
%else
@@ -63,7 +67,16 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add ibmasm
+%service ibmasm restart
+
+if [ "$1" = "0" ]; then
+ %service -q ibmasm stop
+ /sbin/chkconfig --del ibmasm
+fi
+
%postun -p /sbin/ldconfig
%files
@@ -81,6 +94,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2008-04-03 12:23:24 glen
+- initscript hooks
+
Revision 1.4 2008-04-03 12:09:11 glen
- update to 1.42
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ibmusbasm.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list