]> git.pld-linux.org Git - packages/dcd.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:35:49 +0000 (15:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dcd.spec -> 1.80

dcd.spec

index 307bec96f4ffc11b63a4f0df8fcea2ed4f1b53c8..293dd698777aac59a8378924de27cde114b14a22 100644 (file)
--- a/dcd.spec
+++ b/dcd.spec
@@ -5,7 +5,6 @@ Version:        0.6.1
 Release:       1
 License:       GPL v2
 Group:         Networking/Daemons
-Vendor:                DConnect Team <dc-hub@ds.pg.gda.pl>
 Source0:       ftp://pollux.ds.pg.gda.pl/pub/Linux/DConnect/sources/stable/%{name}-%{version}.tar.bz2
 # Source0-md5: 35cc5d427004a3aa5ff46427f3b59a6a
 URL:           http://www.dc.ds.pg.gda.pl/
@@ -13,6 +12,7 @@ BuildRequires:        autoconf >= 2.52
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: libwrap-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires(triggerpostun):       sed >= 4.0
 Requires:      rc-scripts
@@ -57,17 +57,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add dcd
-if [ -f /var/lock/subsys/dcd ]; then
-       /etc/rc.d/init.d/dcd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/dcd start\" to start DConnect Daemon."
-fi
+%service dcd restart "DConnect Daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/dcd ]; then
-               /etc/rc.d/init.d/dcd stop 1>&2
-       fi
+       %service dcd stop
        /sbin/chkconfig --del dcd
 fi
 
@@ -107,7 +101,7 @@ sed -i -e 's/listen_interface/bind_address/' /etc/dcd/dcd.conf
 %attr(664,root,daemon) %config(noreplace) %{_sysconfdir}/dcd/dcd.welcome
 %attr(664,daemon,daemon) %config(noreplace) %{_sysconfdir}/dcd/nicks.allow
 %attr(664,daemon,daemon) %config(noreplace) %{_sysconfdir}/dcd/dcd.rules
-%config(noreplace) /etc/sysconfig/dcd
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dcd
 %config(noreplace) /etc/logrotate.d/dcd
 %attr(755,root,root) %{_sbindir}/dcd
 %attr(755,root,root) %{_sbindir}/dcd.adduser
This page took 0.079801 seconds and 4 git commands to generate.