packages/utils/rsnapshot/patches/001-busybox-logger-i.patch
florian 98989f0e37 rsnapshot: add rsnapshot backup utility
this adds the rsnapshot backup utility to the packages feed.

To be compatible with busybox logger, I had to patch rsnapshot to don't
pass -i to logger. This package was also proposed in Ticket #11371, but
in a wrong categorie, without this patch, without most of the dependencies
and without the conffiles line to save rsnapshot.conf over sysupgrade.

[florian: fix whitespaces and clean up configure args]

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-05 17:31:02 +00:00

24 lines
1000 B
Diff

diff --git a/rsnapshot-program.pl b/rsnapshot-program.pl
index dfd7ef6..c51b9ff 100755
--- a/rsnapshot-program.pl
+++ b/rsnapshot-program.pl
@@ -2164,15 +2164,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);
}
}
}