SPECS: perl-Mail-SRS.spec - fix chkconfig deps

glen glen at pld-linux.org
Thu Apr 20 19:13:30 CEST 2006


Author: glen                         Date: Thu Apr 20 17:13:30 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix chkconfig deps

---- Files affected:
SPECS:
   perl-Mail-SRS.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/perl-Mail-SRS.spec
diff -u SPECS/perl-Mail-SRS.spec:1.14 SPECS/perl-Mail-SRS.spec:1.15
--- SPECS/perl-Mail-SRS.spec:1.14	Sun Mar 12 23:45:47 2006
+++ SPECS/perl-Mail-SRS.spec	Thu Apr 20 19:13:24 2006
@@ -42,7 +42,7 @@
 Summary(pl):	Demon przepisujący adresy SRS
 Group:		Networking/Daemons
 Requires(post):	/usr/bin/perl
-Requires(post,postun):	/sbin/chkconfig
+Requires(post,preun):	/sbin/chkconfig
 Requires:	%{name} = %{version}-%{release}
 Requires:	rc-scripts
 
@@ -79,11 +79,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post -n srsd
-if [ ! -f /etc/srsd.secret ] ; then
+if [ ! -f %{_sysconfdir}/srsd.secret ] ; then
 	echo "Generating SRS secret..."
 	umask 066
 	perl -e 'open R,"/dev/urandom"; read R,$r,16;
-		printf "%02x",ord(chop $r) while($r);' > /etc/srsd.secret
+		printf "%02x",ord(chop $r) while($r);' > %{_sysconfdir}/srsd.secret
 fi
 /sbin/chkconfig --add srsd
 %service srsd restart "SRS daemon"
@@ -117,6 +117,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2006/04/20 17:13:24  glen
+- fix chkconfig deps
+
 Revision 1.14  2006/03/12 22:45:47  glen
 - use %service, adapterized
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/perl-Mail-SRS.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list