SPECS: mDNSResponder.spec - standard service registration, restaring

glen glen at pld-linux.org
Fri Mar 3 00:00:10 CET 2006


Author: glen                         Date: Thu Mar  2 23:00:10 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- standard service registration, restaring

---- Files affected:
SPECS:
   mDNSResponder.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/mDNSResponder.spec
diff -u SPECS/mDNSResponder.spec:1.19 SPECS/mDNSResponder.spec:1.20
--- SPECS/mDNSResponder.spec:1.19	Thu Feb 23 15:52:18 2006
+++ SPECS/mDNSResponder.spec	Fri Mar  3 00:00:03 2006
@@ -15,8 +15,9 @@
 Patch3:		%{name}-alpha.patch
 Patch4:		%{name}-spell.patch
 URL:		http://developer.apple.com/darwin/projects/rendezvous/
-Requires:	rc-scripts
+Requires(post,preun):	/sbin/chkconfig
 Requires:	%{name}-libs = %{version}-%{release}
+Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -125,10 +126,19 @@
 install mDNSShared/mDNSResponder.8 $RPM_BUILD_ROOT%{_mandir}/man8/mdnsd.8
 install mDNSShared/dnsextd.8 $RPM_BUILD_ROOT%{_mandir}/man8/dnsextd.8
 
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add mdns
+%service mdns restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service jabber-aimtrans mdns
+	/sbin/chkconfig --del mdns
+fi
+
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
@@ -170,6 +180,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2006/03/02 23:00:03  glen
+- standard service registration, restaring
+
 Revision 1.19  2006/02/23 14:52:18  freetz
 - rel.4, provides/obsoletes for virtual mdns-bonjour/avahi-compat-dns_sd
 
@@ -224,7 +237,9 @@
 - introduce devel subpackage, fix cflags
 
 Revision 1.3  2005/03/25 22:28:54  djurban
-- adapterized, finished most sections, rel. 1 for our need s (we could package at least the java client in the future though - they're in the tarball)
+- adapterized, finished most sections, rel. 1 for our needs (we could
+  package at least the java client in the future though - they're in
+  the tarball)
 
 Revision 1.2  2005/02/14 05:48:23  adgor
 - Provides libdns_sd.so
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mDNSResponder.spec?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list