Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2019 09:31:38 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491550 - in head/sysutils/flexbackup: . files
Message-ID:  <201901290931.x0T9Vccr048342@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Jan 29 09:31:38 2019
New Revision: 491550
URL: https://svnweb.freebsd.org/changeset/ports/491550

Log:
  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@dssgmbh.de>

Modified:
  head/sysutils/flexbackup/Makefile
  head/sysutils/flexbackup/files/patch-flexbackup

Modified: head/sysutils/flexbackup/Makefile
==============================================================================
--- head/sysutils/flexbackup/Makefile	Tue Jan 29 09:30:35 2019	(r491549)
+++ head/sysutils/flexbackup/Makefile	Tue Jan 29 09:31:38 2019	(r491550)
@@ -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: head/sysutils/flexbackup/files/patch-flexbackup
==============================================================================
--- head/sysutils/flexbackup/files/patch-flexbackup	Tue Jan 29 09:30:35 2019	(r491549)
+++ head/sysutils/flexbackup/files/patch-flexbackup	Tue Jan 29 09:31:38 2019	(r491550)
@@ -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";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901290931.x0T9Vccr048342>