[packages/ejabberd] logrotate-related fixes

jajcus jajcus at pld-linux.org
Mon Nov 18 09:11:20 CET 2013


commit 028763ab02ad1d709153b5e89dfc41dd8d781516
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Nov 18 09:10:26 2013 +0100

    logrotate-related fixes
    
    – Conflicts: logrotate < 3.8.0 (the 'su' directive)
    – /var/log/archive/ejabberd included in the package
    – Release: 3

 ejabberd.spec | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/ejabberd.spec b/ejabberd.spec
index 6b33abe..21e00b3 100644
--- a/ejabberd.spec
+++ b/ejabberd.spec
@@ -8,7 +8,7 @@ Summary:	Fault-tolerant distributed Jabber/XMPP server
 Summary(pl.UTF-8):	Odporny na awarie rozproszony serwer Jabbera/XMPP
 Name:		ejabberd
 Version:	13.10
-Release:	2
+Release:	3
 License:	GPL
 Group:		Applications/Communications
 Source0:	http://www.process-one.net/downloads/ejabberd/%{version}/%{name}-%{version}.tgz
@@ -80,6 +80,7 @@ Requires:	erlang >= 1:R15B01
 Requires:	expat >= 1.95
 Requires:	rc-scripts
 Requires:	systemd-units >= 38
+Conflicts:	logrotate < 3.8.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_noautoprovfiles	%{_libdir}/%{name}/priv/lib/
@@ -173,7 +174,7 @@ cd ../..
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/var/lib/%{name},/etc/{sysconfig,rc.d/init.d}} \
 		$RPM_BUILD_ROOT{%{systemdunitdir},%{_sbindir}} \
-		$RPM_BUILD_ROOT/etc/logrotate.d
+		$RPM_BUILD_ROOT{/etc/logrotate.d,/var/log/archive/%{name}}
 
 unset GIT_DIR GIT_WORK_TREE
 
@@ -315,7 +316,8 @@ fi
 %attr(640,root,jabber) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/ejabberdctl.cfg
 # legacy config may still be there
 %attr(640,root,jabber) %ghost %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/ejabberd.cfg
-%attr(770,root,jabber) /var/log/ejabberd
+%attr(770,root,jabber) /var/log/%{name}
+%attr(770,root,jabber) /var/log/archive/%{name}
 %if %{with logdb}
 %exclude %{_libdir}/ejabberd/ebin/mod_logdb*
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ejabberd.git/commitdiff/028763ab02ad1d709153b5e89dfc41dd8d781516



More information about the pld-cvs-commit mailing list