Author: glen                         Date: Wed Feb  6 20:28:08 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service; adapter

---- Files affected:
SPECS:
   lstat.spec (1.76 -> 1.77) 

---- Diffs:

================================================================
Index: SPECS/lstat.spec
diff -u SPECS/lstat.spec:1.76 SPECS/lstat.spec:1.77
--- SPECS/lstat.spec:1.76       Wed Feb  6 21:26:29 2008
+++ SPECS/lstat.spec    Wed Feb  6 21:28:03 2008
@@ -36,6 +36,7 @@
 BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -76,10 +77,10 @@
 Requires:      apache(mod_auth)
 Requires:      apache(mod_dir)
 Requires:      apache(mod_perl)
-#Suggests:     apache(mod_perl)
-#Suggests:     apache(mod_cgi)
 Requires:      webapps
 Requires:      webserver = apache
+#Suggests:     apache(mod_cgi)
+#Suggests:     apache(mod_perl)
 
 %description cgi
 CGI webinterface for lstat.
@@ -157,20 +158,14 @@
 
 %post
 /sbin/chkconfig --add lstatd
-if [ -f /var/lock/subsys/lstatd ]; then
-       /etc/rc.d/init.d/lstatd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/lstatd start\" to start counting 
statistics."
-fi
+%service lstatd "Counting Statistics"
 
 # this will fail if /proc not mounted
 %{_bindir}/Mkgraph.pl || :
 
 %preun
 if [ "$1" = 0 ]; then
-       if [ -f /var/lock/subsys/lstatd ]; then
-               /etc/rc.d/init.d/lstatd stop >&2
-       fi
+       %service lstatd stop
        /sbin/chkconfig --del lstatd
 fi
 
@@ -237,7 +232,7 @@
 %attr(754,root,root) %{_initdir}/lstatd
 %dir %{_sysconfdir}/lstat
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lstat/config
-%config(noreplace,missingok) %verify(not size mtime md5) 
%{_sysconfdir}/lstat/users
+%config(noreplace,missingok) %verify(not md5 mtime size) 
%{_sysconfdir}/lstat/users
 
 %attr(755,root,root) %{_bindir}/lstatd.pl
 %attr(755,root,root) %{_bindir}/show_filters
@@ -253,8 +248,8 @@
 
 %files cgi
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not size mtime md5) 
%{_sysconfdir}/lstat/htaccess.view
-%config(noreplace) %verify(not size mtime md5) 
%{_sysconfdir}/lstat/htaccess.edit
+%config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/lstat/htaccess.view
+%config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/lstat/htaccess.edit
 %dir %attr(750,root,http) %{_httpdconf}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_httpdconf}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_httpdconf}/httpd.conf
@@ -278,6 +273,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.77  2008-02-06 20:28:03  glen
+- use %service; adapter
+
 Revision 1.76  2008-02-06 20:26:29  glen
 - never use '<=' in trigger comparision; rel 18
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lstat.spec?r1=1.76&r2=1.77&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to