[packages/rsnapshot] - up to 1.4.0; patches obsoleted in this version

arekm arekm at pld-linux.org
Fri Jul 10 21:01:51 CEST 2015


commit fed580cf746c1e4f5f302fc710e5879a1fb196d5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 10 21:01:45 2015 +0200

    - up to 1.4.0; patches obsoleted in this version

 rsnapshot-lockfile.patch | 60 ------------------------------------------------
 rsnapshot-pid.patch      | 38 ------------------------------
 rsnapshot-pod.patch      | 15 ------------
 rsnapshot.spec           | 14 ++++-------
 4 files changed, 4 insertions(+), 123 deletions(-)
---
diff --git a/rsnapshot.spec b/rsnapshot.spec
index 945adbd..1688738 100644
--- a/rsnapshot.spec
+++ b/rsnapshot.spec
@@ -2,15 +2,12 @@
 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.3.1
-Release:	6
+Version:	1.4.0
+Release:	1
 License:	GPL v2+
 Group:		Daemons
 Source0:	http://www.rsnapshot.org/downloads/%{name}-%{version}.tar.gz
-# Source0-md5:	588f92995dcf60a6ea6df8d94a017e7e
-Patch0:		%{name}-pod.patch
-Patch1:		%{name}-lockfile.patch
-Patch2:		%{name}-pid.patch
+# Source0-md5:	4011768eb6ec122a0f9479275ed64a27
 URL:		http://www.rsnapshot.org/
 BuildRequires:	rpm-perlprov
 Requires:	rsync
@@ -25,9 +22,6 @@ w oparciu o rsynca.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
 
 %build
 %configure \
@@ -47,7 +41,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
+%doc AUTHORS ChangeLog README.md
 %attr(755,root,root) %{_bindir}/*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
 %{_mandir}/man1/*
diff --git a/rsnapshot-lockfile.patch b/rsnapshot-lockfile.patch
deleted file mode 100644
index 1a16a57..0000000
--- a/rsnapshot-lockfile.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-commit 8147e706d00fb2fcd0c50e95d54b9ffcb1f56932
-Author: drhyde <drhyde>
-Date:   Tue Apr 19 15:37:28 2011 +0000
-
-    Don't delete other processes' lockfiles if use_lazy_deletes is turned on!
-    
-    Log a warning whenever deleting another process's lockfile (but only a warning, not an error, because deleting *stale* lockfiles is kosher)
-    
-    Untested
-
-diff --git a/rsnapshot-program.pl b/rsnapshot-program.pl
-index 96656ac..5ce9dbb 100755
---- a/rsnapshot-program.pl
-+++ b/rsnapshot-program.pl
-@@ -285,7 +285,10 @@ chdir($config_vars{'snapshot_root'});
- handle_interval( $cmd );
- 
- # if we have a lockfile, remove it
--remove_lockfile();
-+# however, this will have already been done if use_lazy_deletes is turned
-+#   on, and there may be a lockfile from another process now in place,
-+#   so in that case don't just blindly delete!
-+remove_lockfile() unless($use_lazy_deletes);
- 
- # if we got this far, the program is done running
- # write to the log and syslog with the status of the outcome
-@@ -2278,9 +2281,12 @@ sub add_lockfile {
- }
- 
- # accepts no arguments
--# accepts the path to a lockfile and tries to remove it
--# returns undef if lockfile isn't defined in the config file, and 1 upon success
--# also, it can exit the program with a value of 1 if it can't remove the lockfile
-+#
-+# returns undef if lockfile isn't defined in the config file
-+# return 1 upon success or if there's no lockfile to remove
-+# warn if the PID in the lockfile is not the same as the PID of this process
-+# exit with a value of 1 if it can't read the lockfile
-+# exit with a value of 1 if it can't remove the lockfile
- #
- # we don't use bail() to exit on error, because that would call
- # this subroutine twice in the event of a failure
-@@ -2294,6 +2300,17 @@ sub remove_lockfile {
- 	my $result = undef;
- 	
- 	if ( -e "$lockfile" ) {
-+	        if(open(LOCKFILE, $lockfile)) {
-+		  chomp(my $locked_pid = <LOCKFILE>);
-+		  close(LOCKFILE);
-+		  if($locked_pid != $$) {
-+		    print_warn("About to remove lockfile $lockfile which belongs to a different process (this is OK if it's a stale lock)");
-+		  }
-+		} else {
-+		  print_err ("Could not read lockfile $lockfile: $!", 0);
-+		  syslog_err("Error! Could not read lockfile $lockfile: $!");
-+		  exit(1);
-+		}
- 		print_cmd("rm -f $lockfile");
- 		if (0 == $test) {
- 			$result = unlink($lockfile);
diff --git a/rsnapshot-pid.patch b/rsnapshot-pid.patch
deleted file mode 100644
index 6af1e10..0000000
--- a/rsnapshot-pid.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-commit eb3b3264cd2c10720e92caf75671696859a88203
-Author: Kilburn <kilburn at la3.org>
-Date:   Sat Mar 2 11:02:49 2013 +0100
-
-    Print rnspashot's PID when logging to syslog
-    
-    Print rsnapshot's PID instead of the logger's PID when logging to
-    syslog. This is much more useful because it allow to relate log
-    lines to rsnapshot instances when there are multiple concurrent
-    ones. Previously each line had a different PID, even those
-    generated by the same instance.
-    
-    The change is achieved by dropping the "-i" option from the
-    logger's call and appending the rnapshot's PID to the tag itself.
-
-diff --git a/rsnapshot-program.pl b/rsnapshot-program.pl
-index 3d95cc2..9d9e50f 100755
---- a/rsnapshot-program.pl
-+++ b/rsnapshot-program.pl
-@@ -2098,15 +2098,15 @@ sub syslog_msg {
- 	if (defined($config_vars{'cmd_logger'})) {
- 		# print out our call to syslog
- 		if (defined($verbose) && ($verbose >= 4)) {
--			print_cmd("$config_vars{'cmd_logger'} -i -p $facility.$level -t rsnapshot $msg");
-+			print_cmd("$config_vars{'cmd_logger'} -p $facility.$level -t rsnapshot[$$] $msg");
- 		}
- 		
- 		# log to syslog
- 		if (0 == $test) {
--			$result = system($config_vars{'cmd_logger'}, '-i', '-p', "$facility.$level", '-t', 'rsnapshot', $msg);
-+			$result = system($config_vars{'cmd_logger'}, '-p', "$facility.$level", '-t', "rsnapshot[$$]", $msg);
- 			if (0 != $result) {
- 				print_warn("Could not log to syslog:", 2);
--				print_warn("$config_vars{'cmd_logger'} -i -p $facility.$level -t rsnapshot $msg", 2);
-+				print_warn("$config_vars{'cmd_logger'} -p $facility.$level -t rsnapshot[$$] $msg", 2);
- 			}
- 		}
- 	}
diff --git a/rsnapshot-pod.patch b/rsnapshot-pod.patch
deleted file mode 100644
index a28a854..0000000
--- a/rsnapshot-pod.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-From: Guillaume Delacour <gui at iroqwa.org>
-Subject: Add missing "=back" to fix pod2man error.
-Origin: upstream, http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.408&r2=1.409&view=patch
-
---- a/rsnapshot-program.pl
-+++ b/rsnapshot-program.pl
-@@ -6716,6 +6716,8 @@
- 
- =back
- 
-+=back
-+
- =head1 USAGE
- 
- B<rsnapshot> can be used by any user, but for system-wide backups
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rsnapshot.git/commitdiff/fed580cf746c1e4f5f302fc710e5879a1fb196d5



More information about the pld-cvs-commit mailing list