[packages/rsnapshot] - rel 2; log pid in messages
arekm
arekm at pld-linux.org
Tue Dec 4 11:43:55 CET 2018
commit 4022bbe105a332be9af0e33aa22e4886dfca7ba2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Dec 4 11:43:49 2018 +0100
- rel 2; log pid in messages
pid.patch | 11 +++++++++++
rsnapshot.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/rsnapshot.spec b/rsnapshot.spec
index 3ca1c09..6f10519 100644
--- a/rsnapshot.spec
+++ b/rsnapshot.spec
@@ -3,12 +3,13 @@ Summary: Program for efficient remote updates of backup sets
Summary(pl.UTF-8): Program do wydajnego zdalnego uaktualniania zbiorów kopii zapasowych
Name: rsnapshot
Version: 1.4.2
-Release: 1
+Release: 2
License: GPL v2+
Group: Daemons
Source0: http://www.rsnapshot.org/downloads/%{name}-%{version}.tar.gz
# Source0-md5: 860382f19e38fc649f9447397b54e442
Patch0: bug-207.patch
+Patch1: pid.patch
URL: http://www.rsnapshot.org/
BuildRequires: rpm-perlprov
Requires: rsync
@@ -24,6 +25,7 @@ w oparciu o rsynca.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure \
diff --git a/pid.patch b/pid.patch
new file mode 100644
index 0000000..2fb6ca5
--- /dev/null
+++ b/pid.patch
@@ -0,0 +1,11 @@
+--- rsnapshot-1.4.2/rsnapshot-program.pl~ 2015-12-12 00:55:44.000000000 +0100
++++ rsnapshot-1.4.2/rsnapshot-program.pl 2018-12-04 11:41:44.825674546 +0100
+@@ -2257,7 +2257,7 @@ sub log_msg {
+ exit(1);
+ }
+
+- print LOG '[', get_current_date(), '] ', $str, "\n";
++ print LOG '[', get_current_date(), '][', $$, '] ', $str, "\n";
+
+ $result = close(LOG);
+ if (!defined($result)) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rsnapshot.git/commitdiff/4022bbe105a332be9af0e33aa22e4886dfca7ba2
More information about the pld-cvs-commit
mailing list