]> git.pld-linux.org Git - packages/isdn4k-utils.git/commitdiff
- register/unregister init script
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Jan 2013 16:08:25 +0000 (17:08 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Jan 2013 16:08:25 +0000 (17:08 +0100)
isdn4k-utils.spec

index b0bbbeaea6e0b903537c8276064a3df808595e74..ae61e44328c60cafd69fadfc199fac1331e4e82b 100644 (file)
@@ -95,6 +95,9 @@ Pliki potrzebne do programowania z użyciem isdn4k-tools.
 Summary:       Configuration tools for CAPI hardware
 Summary(pl.UTF-8):     Programy konfiguracyjne do sprzętu CAPI
 Group:         Applications/Communications
+Requires:      capi4k-utils-libs = %{epoch}:%{version}-%{release}
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 Obsoletes:     capi
 Obsoletes:     capi-tools
 Obsoletes:     capi4k-utils-remotecapi
@@ -290,6 +293,16 @@ install -d isdn-doc/faq
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -n capi4k-utils
+/sbin/chkconfig --add capi
+%service capi restart
+
+%preun -n capi4k-utils
+if [ "$1" = "0" ]; then
+       %service capi stop
+       /sbin/chkconfig --del capi
+fi
+
 %post  -n capi4k-utils-libs -p /sbin/ldconfig
 %postun        -n capi4k-utils-libs -p /sbin/ldconfig
 
This page took 0.084386 seconds and 4 git commands to generate.