Update sysutils/znapzend to version 0.20.0.
- Remove redundant dependencies
This commit is contained in:
parent
6a181c48e8
commit
46e5118117
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544598
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= znapzend
|
||||
PORTVERSION= 0.19.1
|
||||
PORTVERSION= 0.20.0
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= sysutils
|
||||
|
||||
@ -15,16 +15,12 @@ BUILD_DEPENDS= mbuffer>=0:misc/mbuffer \
|
||||
p5-IO-Pipely>=0:devel/p5-IO-Pipely \
|
||||
p5-Mojo-IOLoop-ForkCall>=0.17:www/p5-Mojo-IOLoop-ForkCall \
|
||||
p5-Mojolicious>=7.15:www/p5-Mojolicious \
|
||||
p5-Pod-Simple>=0:textproc/p5-Pod-Simple \
|
||||
p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils \
|
||||
p5-Test-Harness>=0:devel/p5-Test-Harness
|
||||
p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils
|
||||
RUN_DEPENDS= mbuffer>=0:misc/mbuffer \
|
||||
p5-IO-Pipely>=0:devel/p5-IO-Pipely \
|
||||
p5-Mojo-IOLoop-ForkCall>=0.17:www/p5-Mojo-IOLoop-ForkCall \
|
||||
p5-Mojolicious>=7.15:www/p5-Mojolicious \
|
||||
p5-Pod-Simple>=0:textproc/p5-Pod-Simple \
|
||||
p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils \
|
||||
p5-Test-Harness>=0:devel/p5-Test-Harness
|
||||
p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils
|
||||
|
||||
USES= autoreconf gmake perl5
|
||||
USE_GITHUB= yes
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1561127031
|
||||
SHA256 (oetiker-znapzend-v0.19.1_GH0.tar.gz) = a9cf0c4b0a9c8c1733d61e72ad03fe7dbbfcfd2e3ade4e795fc858c8ac76ea60
|
||||
SIZE (oetiker-znapzend-v0.19.1_GH0.tar.gz) = 164991
|
||||
TIMESTAMP = 1590672896
|
||||
SHA256 (oetiker-znapzend-v0.20.0_GH0.tar.gz) = bfd5f3e5d751def4962d275d1c7f4eaf740a63fce5849049faeda892f8688b8d
|
||||
SIZE (oetiker-znapzend-v0.20.0_GH0.tar.gz) = 165742
|
||||
|
@ -1,28 +0,0 @@
|
||||
--- lib/ZnapZend.pm.orig 2017-02-08 07:38:40 UTC
|
||||
+++ lib/ZnapZend.pm
|
||||
@@ -2,7 +2,7 @@ package ZnapZend;
|
||||
|
||||
use Mojo::Base -base;
|
||||
use Mojo::IOLoop::ForkCall;
|
||||
-use Mojo::Util qw(slurp);
|
||||
+use Mojo::File;
|
||||
use Mojo::Log;
|
||||
use ZnapZend::Config;
|
||||
use ZnapZend::ZFS;
|
||||
@@ -571,12 +571,13 @@ my $createWorkers = sub {
|
||||
my $daemonize = sub {
|
||||
my $self = shift;
|
||||
my $pidFile = $self->pidfile || $self->defaultPidFile;
|
||||
+ my $pidFileFile = Mojo::File->new($pidFile);
|
||||
|
||||
if (-f $pidFile){
|
||||
- chomp(my $pid = slurp $pidFile);
|
||||
+ chomp(my $pid = $pidFileFile->slurp);
|
||||
#pid is not empty and is numeric
|
||||
- if ($pid && ($pid = int($pid)) && kill 0, $pid){
|
||||
- die "I Quit! Another copy of znapzend ($pid) seems to be running. See $pidFile\n";
|
||||
+ if ($pid && ($pid = int($pid)) && kill 0, $pid){
|
||||
+ die "I Quit! Another copy of znapzend ($pid) seems to be running. See $pidFile\n";
|
||||
}
|
||||
}
|
||||
#make sure pid file is writable before forking
|
Loading…
Reference in New Issue
Block a user