]> git.pld-linux.org Git - packages/ejabberd.git/commitdiff
logrotate-related fixes auto/th/ejabberd-13.10-3
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Mon, 18 Nov 2013 08:10:26 +0000 (09:10 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Mon, 18 Nov 2013 08:10:26 +0000 (09:10 +0100)
– Conflicts: logrotate < 3.8.0 (the 'su' directive)
– /var/log/archive/ejabberd included in the package
– Release: 3

ejabberd.spec

index 6b33abef9c98fc503398b5b83f866ff15b1ed3aa..21e00b3d2bb8df0e10620f2129be1517a675acbe 100644 (file)
@@ -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
This page took 0.154634 seconds and 4 git commands to generate.