Changes of Revision 48
[-] | Changed | icinga-mod_gearman.spec |
x 1
2 Source2: mod_gearman_worker.sysconfig 3 Patch0: mod_gearman-init-worker.patch 4 Patch1: mod_gearman-worker-config.patch 5 +Patch2: mod_gearman-logrotate.patch 6 BuildRoot: %{_tmppath}/%{name}-%{version}-root 7 BuildRequires: gcc-c++ gearmand-devel >= 0.14 ncurses-devel sed 8 BuildRequires: %{monitor} 9
10 Requires: %{monitor}-%{pkgname} 11 Requires(pre): pwdutils 12 Requires: %{monitor}-%{pkgname}-plugins = %{version} 13 +Requires: logrotate 14 15 %description worker 16 This package includes only the files needed for a mod_gearman worker. 17
18 %setup -n %{pkgname}-%{version} 19 %patch0 20 %patch1 21 +%patch2 22 23 %build 24 [ ! -f ./configure ] && ./autogen.sh 25
26 ln -sf ../../etc/init.d/mod_gearman_worker %{buildroot}%{_sbindir}/rcmod_gearman_worker 27 %endif 28 %__install -D -m0644 %{buildroot}%{_datadir}/mod_gearman/standalone_worker.conf %{buildroot}%{_sysconfdir}/mod_gearman_worker.conf 29 +%__install -D -m0644 etc/mod_gearman_worker_logrotate %{buildroot}%{_sysconfdir}/logrotate.d/mod_gearman_worker 30 %__install -d %{buildroot}/var/log/mod_gearman_worker 31 %__install -d %{buildroot}/var/log/mod_gearman 32 %__install -d %{buildroot}/var/run/mod_gearman 33
34 %files worker 35 %defattr(-,root,root) 36 %config(noreplace) %{_sysconfdir}/mod_gearman_worker.conf 37 +%config %{_sysconfdir}/logrotate.d/mod_gearman_worker 38 %{_sysconfdir}/init.d/mod_gearman_worker 39 %{_sbindir}/rcmod_gearman_worker 40 %{_bindir}/mod_gearman_worker 41 |
||
[+] | Added | mod_gearman-logrotate.patch ^ |
@@ -0,0 +1,8 @@ +--- etc/mod_gearman_worker_logrotate.orig 2013-01-13 17:59:13.696121676 +0100 ++++ etc/mod_gearman_worker_logrotate 2013-01-13 17:59:32.284138101 +0100 +@@ -1,4 +1,4 @@ +-/var/log/mod_gearman/*log { ++/var/log/mod_gearman_worker/*log { + missingok + notifempty + sharedscripts |