pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/znapzend



Module Name:    pkgsrc
Committed By:   wiedi
Date:           Mon Sep 25 10:50:28 UTC 2017

Modified Files:
        pkgsrc/sysutils/znapzend: Makefile distinfo
Added Files:
        pkgsrc/sysutils/znapzend/patches: patch-lib_ZnapZend.pm

Log Message:
znapzend: patch for newer mojolicious

Fixes "Mojo::Util::slurp is DEPRECATED" error.
Upstream PR https://github.com/oetiker/znapzend/pull/283


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/znapzend/Makefile \
    pkgsrc/sysutils/znapzend/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/znapzend/patches/patch-lib_ZnapZend.pm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/znapzend/Makefile
diff -u pkgsrc/sysutils/znapzend/Makefile:1.12 pkgsrc/sysutils/znapzend/Makefile:1.13
--- pkgsrc/sysutils/znapzend/Makefile:1.12      Sat Jun 10 16:37:41 2017
+++ pkgsrc/sysutils/znapzend/Makefile   Mon Sep 25 10:50:27 2017
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2017/06/10 16:37:41 wiedi Exp $
+# $NetBSD: Makefile,v 1.13 2017/09/25 10:50:27 wiedi Exp $
 
 DISTNAME=      znapzend-0.17.0
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=oetiker/}
 
Index: pkgsrc/sysutils/znapzend/distinfo
diff -u pkgsrc/sysutils/znapzend/distinfo:1.12 pkgsrc/sysutils/znapzend/distinfo:1.13
--- pkgsrc/sysutils/znapzend/distinfo:1.12      Sat Jun 10 16:37:41 2017
+++ pkgsrc/sysutils/znapzend/distinfo   Mon Sep 25 10:50:27 2017
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.12 2017/06/10 16:37:41 wiedi Exp $
+$NetBSD: distinfo,v 1.13 2017/09/25 10:50:27 wiedi Exp $
 
 SHA1 (znapzend-0.17.0.tar.gz) = 77463270d24ef7a3a4658c614b5a9fef618308e8
 RMD160 (znapzend-0.17.0.tar.gz) = 7bb64b5bf103693c5dfd30b8d4973fd5718eed3a
 SHA512 (znapzend-0.17.0.tar.gz) = 51b5076cee4ba73f6e681f8e2aafd4b7f1aea29534dc6a12a895ff902a98410f452ee1d33b4061fa39e40fff0bcdb302c6928534810d1c76a47ea5a7bd13643d
 Size (znapzend-0.17.0.tar.gz) = 151268 bytes
 SHA1 (patch-Makefile.in) = 5ddb527ada8d3657f806d0731dd24856dde35cc7
+SHA1 (patch-lib_ZnapZend.pm) = a3c13d9cdb7a276df564794a62600801f26d42b8

Added files:

Index: pkgsrc/sysutils/znapzend/patches/patch-lib_ZnapZend.pm
diff -u /dev/null pkgsrc/sysutils/znapzend/patches/patch-lib_ZnapZend.pm:1.1
--- /dev/null   Mon Sep 25 10:50:28 2017
+++ pkgsrc/sysutils/znapzend/patches/patch-lib_ZnapZend.pm      Mon Sep 25 10:50:28 2017
@@ -0,0 +1,25 @@
+$NetBSD: patch-lib_ZnapZend.pm,v 1.1 2017/09/25 10:50:28 wiedi Exp $
+
+Fix Mojo::Util::slurp is DEPRECATED
+https://github.com/oetiker/znapzend/pull/283
+--- lib/ZnapZend.pm.orig       2017-02-08 07:38:40.000000000 +0000
++++ lib/ZnapZend.pm
+@@ -2,7 +2,8 @@ package ZnapZend;
+ 
+ use Mojo::Base -base;
+ use Mojo::IOLoop::ForkCall;
+-use Mojo::Util qw(slurp);
++use Mojo::File 'path';
++use Mojo::Util;
+ use Mojo::Log;
+ use ZnapZend::Config;
+ use ZnapZend::ZFS;
+@@ -573,7 +574,7 @@ my $daemonize = sub {
+     my $pidFile = $self->pidfile || $self->defaultPidFile;
+ 
+     if (-f $pidFile){
+-        chomp(my $pid = slurp $pidFile);
++        chomp(my $pid = path($pidFile)->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";



Home | Main Index | Thread Index | Old Index