From owner-svn-ports-all@freebsd.org Wed Sep 13 17:48:07 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD060E07ADC; Wed, 13 Sep 2017 17:48:07 +0000 (UTC) (envelope-from jlaffaye@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88B9C6FFC1; Wed, 13 Sep 2017 17:48:07 +0000 (UTC) (envelope-from jlaffaye@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8DHm6gP039824; Wed, 13 Sep 2017 17:48:06 GMT (envelope-from jlaffaye@FreeBSD.org) Received: (from jlaffaye@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8DHm624039817; Wed, 13 Sep 2017 17:48:06 GMT (envelope-from jlaffaye@FreeBSD.org) Message-Id: <201709131748.v8DHm624039817@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jlaffaye set sender to jlaffaye@FreeBSD.org using -f From: Julien Laffaye Date: Wed, 13 Sep 2017 17:48:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449808 - in head/sysutils: . znapzend znapzend/files X-SVN-Group: ports-head X-SVN-Commit-Author: jlaffaye X-SVN-Commit-Paths: in head/sysutils: . znapzend znapzend/files X-SVN-Commit-Revision: 449808 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 17:48:07 -0000 Author: jlaffaye Date: Wed Sep 13 17:48:05 2017 New Revision: 449808 URL: https://svnweb.freebsd.org/changeset/ports/449808 Log: Add sysutils/znapzend PR: 218708 Submitted by: Anton Eriksson Added: head/sysutils/znapzend/ head/sysutils/znapzend/Makefile (contents, props changed) head/sysutils/znapzend/distinfo (contents, props changed) head/sysutils/znapzend/files/ head/sysutils/znapzend/files/patch-lib_ZnapZend.pm (contents, props changed) head/sysutils/znapzend/files/znapzend.in (contents, props changed) head/sysutils/znapzend/pkg-descr (contents, props changed) head/sysutils/znapzend/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Wed Sep 13 17:03:05 2017 (r449807) +++ head/sysutils/Makefile Wed Sep 13 17:48:05 2017 (r449808) @@ -1351,6 +1351,7 @@ SUBDIR += zfstools SUBDIR += zidrav SUBDIR += zisofs-tools + SUBDIR += znapzend SUBDIR += zogftw SUBDIR += zrep SUBDIR += zsd Added: head/sysutils/znapzend/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/znapzend/Makefile Wed Sep 13 17:48:05 2017 (r449808) @@ -0,0 +1,44 @@ +# $FreeBSD$ + +PORTNAME= znapzend +PORTVERSION= 0.17.0 +DISTVERSIONPREFIX= v +CATEGORIES= sysutils + +MAINTAINER= skalmanman@gmail.com +COMMENT= ZnapZend is a ZFS centric backup tool + +LICENSE= GPLv3 + +BUILD_DEPENDS= p5-Pod-Simple>=0:textproc/p5-Pod-Simple \ + p5-IO-Pipely>=0:devel/p5-IO-Pipely \ + p5-Mojolicious>=7.15:www/p5-Mojolicious \ + p5-Mojo-IOLoop-ForkCall>=0.17:www/p5-Mojo-IOLoop-ForkCall \ + p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils \ + p5-Test-Harness>=0:devel/p5-Test-Harness \ + mbuffer>=0:misc/mbuffer +RUN_DEPENDS= p5-Pod-Simple>=0:textproc/p5-Pod-Simple \ + p5-IO-Pipely>=0:devel/p5-IO-Pipely \ + p5-Mojolicious>=7.15:www/p5-Mojolicious \ + p5-Mojo-IOLoop-ForkCall>=0.17:www/p5-Mojo-IOLoop-ForkCall \ + p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils \ + p5-Test-Harness>=0:devel/p5-Test-Harness \ + mbuffer>=0:misc/mbuffer + +USES= gmake autoreconf perl5 +USE_GITHUB= yes +GH_ACCOUNT= oetiker + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --prefix=${PREFIX} --libdir=${SITE_PERL} +CONFIGURE_ENV= PERL5LIB=${SITE_PERL} + +USE_RC_SUBR= znapzend + +pre-configure: + @${REINPLACE_CMD} -e '/thirdparty\/Makefile/d' ${WRKSRC}/configure.ac + +post-configure: + @${REINPLACE_CMD} -e 's/thirdparty//g' ${WRKSRC}/Makefile + +.include Added: head/sysutils/znapzend/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/znapzend/distinfo Wed Sep 13 17:48:05 2017 (r449808) @@ -0,0 +1,3 @@ +TIMESTAMP = 1492393207 +SHA256 (oetiker-znapzend-v0.17.0_GH0.tar.gz) = e64a689babe50140b2f922c78a875dd8750e9c95dad017e231a9b747e6a7cd9e +SIZE (oetiker-znapzend-v0.17.0_GH0.tar.gz) = 151268 Added: head/sysutils/znapzend/files/patch-lib_ZnapZend.pm ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/znapzend/files/patch-lib_ZnapZend.pm Wed Sep 13 17:48:05 2017 (r449808) @@ -0,0 +1,28 @@ +--- 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 Added: head/sysutils/znapzend/files/znapzend.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/znapzend/files/znapzend.in Wed Sep 13 17:48:05 2017 (r449808) @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: znapzend +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# +# Add the following line to /etc/rc.conf to enable znapzend: +# znapzend_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable znapzend. +# + +. /etc/rc.subr + +name="znapzend" +rcvar="znapzend_enable" + +load_rc_config $name + +: ${znapzend_enable="NO"} + +pidfile=/var/run/${name}.pid +command=%%PREFIX%%/bin/${name} +command_args="--daemonize --pidfile=${pidfile}" + +run_rc_command "$1" + Added: head/sysutils/znapzend/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/znapzend/pkg-descr Wed Sep 13 17:48:05 2017 (r449808) @@ -0,0 +1,10 @@ +ZnapZend is a ZFS centric backup tool. +It relies on snapshot, send and recieve to do its work. +It has the built-in ability to manage both local +snapshots as well as remote copies by thinning them out +as time progresses. + +The ZnapZend configuration is stored as properties in +the ZFS filesystem itself. + +WWW: http://www.znapzend.org Added: head/sysutils/znapzend/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/znapzend/pkg-plist Wed Sep 13 17:48:05 2017 (r449808) @@ -0,0 +1,10 @@ +bin/znapzend +bin/znapzendzetup +bin/znapzendztatz +%%SITE_PERL%%/ZnapZend.pm +%%SITE_PERL%%/ZnapZend/Config.pm +%%SITE_PERL%%/ZnapZend/Time.pm +%%SITE_PERL%%/ZnapZend/ZFS.pm +man/man1/znapzend.1.gz +man/man1/znapzendzetup.1.gz +man/man1/znapzendztatz.1.gz