svn commit: r491551 - in branches/2019Q1/sysutils/flexbackup: . files
Tobias Kortkamp
tobik at FreeBSD.org
Tue Jan 29 09:34:03 UTC 2019
Author: tobik
Date: Tue Jan 29 09:34:02 2019
New Revision: 491551
URL: https://svnweb.freebsd.org/changeset/ports/491551
Log:
MFH: r491550
sysutils/flexbackup: Fix some issues
- flexbackup shows a perl deprecated warning with perl 5.16
- lzma support compression level 0
- compress flags do not work, if you use afio+lzma
PR: 221003
Submitted by: Lars Herschke <lhersch at dssgmbh.de>
Approved by: ports-secteam bug fix blanket
Modified:
branches/2019Q1/sysutils/flexbackup/Makefile
branches/2019Q1/sysutils/flexbackup/files/patch-flexbackup
Directory Properties:
branches/2019Q1/ (props changed)
Modified: branches/2019Q1/sysutils/flexbackup/Makefile
==============================================================================
--- branches/2019Q1/sysutils/flexbackup/Makefile Tue Jan 29 09:31:38 2019 (r491550)
+++ branches/2019Q1/sysutils/flexbackup/Makefile Tue Jan 29 09:34:02 2019 (r491551)
@@ -3,7 +3,7 @@
PORTNAME= flexbackup
PORTVERSION= 1.2.1
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= http://www.edwinh.org/flexbackup/tarball/ \
http://www.reynoldsnet.org/flexbackup/tarball/
Modified: branches/2019Q1/sysutils/flexbackup/files/patch-flexbackup
==============================================================================
--- branches/2019Q1/sysutils/flexbackup/files/patch-flexbackup Tue Jan 29 09:31:38 2019 (r491550)
+++ branches/2019Q1/sysutils/flexbackup/files/patch-flexbackup Tue Jan 29 09:34:02 2019 (r491551)
@@ -158,6 +158,15 @@
$cmd .= "; $::path{cat} $tmpfile $::z";
# Buffer both sides if remote
+@@ -2670,7 +2688,7 @@ sub optioncheck {
+ }
+
+ # Flag old config file
+- if (defined(@cfg::filesystems) or defined($cfg::mt_var_blksize)) {
++ if (@cfg::filesystems or defined($cfg::mt_var_blksize)) {
+ # so strict shuts up
+ my $junk = @cfg::filesystems;
+ $junk = $cfg::mt_var_blksize;
@@ -2700,7 +2718,7 @@ sub optioncheck {
# First check if things are defined in the config file
# Checks exist, true/false, or one of options
@@ -186,7 +195,7 @@
+ } elsif ($cfg::compress eq "lzma") {
+ $::path{'lzma'} = &checkinpath($cfg::compress);
+ push(@::remoteprogs, $::path{$cfg::compress});
-+ if ($cfg::compr_level !~ m/^[123456789]$/) {
++ if ($cfg::compr_level !~ m/^[0123456789]$/) {
+ push(@::errors,"\$compr_level must be set to 1-9");
+ } else {
+ $::z = " | $::path{$cfg::compress} -$cfg::compr_level ";
@@ -218,6 +227,15 @@
# If buffering disabled, use dd or cat depending on if blocking turned off on not
if ($cfg::blksize eq '0') {
$::buffer_cmd = "";
+@@ -3230,7 +3258,7 @@ sub optioncheck {
+ push(@::remoteprogs, $::path{'afio'});
+
+ # Compress flag for afio must be handled differently
+- if ($cfg::compress =~ m/^(gzip|bzip2|lzop|compress|zip)$/) {
++ if ($cfg::compress =~ m/^(gzip|bzip2|lzop|compress|zip|lzma)$/) {
+
+ if ($cfg::compress eq "gzip") {
+ $::afio_z_flag = "-P $::path{$cfg::compress} -Q -$cfg::compr_level -Z";
@@ -3252,6 +3280,10 @@ sub optioncheck {
$::afio_z_flag = "-P $::path{$cfg::compress} -Q -c -Z";
$::afio_unz_flag = "-P $::path{$cfg::compress} -Q -d -Q -c -Z";
More information about the svn-ports-branches
mailing list