From owner-svn-ports-all@freebsd.org Thu Oct 11 16:58:34 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39C8310C0D60; Thu, 11 Oct 2018 16:58:34 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E348B78455; Thu, 11 Oct 2018 16:58:33 +0000 (UTC) (envelope-from 0mp@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DE1FB132E0; Thu, 11 Oct 2018 16:58:33 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9BGwXJr094518; Thu, 11 Oct 2018 16:58:33 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9BGwXQj094512; Thu, 11 Oct 2018 16:58:33 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201810111658.w9BGwXQj094512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Thu, 11 Oct 2018 16:58:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r481839 - in head/sysutils: . py-pyznap py-pyznap/files X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/sysutils: . py-pyznap py-pyznap/files X-SVN-Commit-Revision: 481839 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.27 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: Thu, 11 Oct 2018 16:58:34 -0000 Author: 0mp Date: Thu Oct 11 16:58:32 2018 New Revision: 481839 URL: https://svnweb.freebsd.org/changeset/ports/481839 Log: New port: sysutils/py-pyznap: ZFS snapshot tool written in Python pyznap is a ZFS snapshot management tool. It automatically takes and deletes snapshots and can send them to different remote and local backup locations. For example, it is possible to specify a policy for a given filesystem in the pyznap.conf file and then use cron to let it run once per quarter-hour. WWW: https://github.com/yboetz/pyznap PR: 232161 Submitted by: Dries Michiels (previous version) Reviewed by: krion Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D17520 Added: head/sysutils/py-pyznap/ head/sysutils/py-pyznap/Makefile (contents, props changed) head/sysutils/py-pyznap/distinfo (contents, props changed) head/sysutils/py-pyznap/files/ head/sysutils/py-pyznap/files/pkg-message.in (contents, props changed) head/sysutils/py-pyznap/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Thu Oct 11 15:41:23 2018 (r481838) +++ head/sysutils/Makefile Thu Oct 11 16:58:32 2018 (r481839) @@ -1011,6 +1011,7 @@ SUBDIR += py-ptyprocess SUBDIR += py-pytsk SUBDIR += py-pywatchman + SUBDIR += py-pyznap SUBDIR += py-queuelib SUBDIR += py-ranger SUBDIR += py-salt Added: head/sysutils/py-pyznap/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-pyznap/Makefile Thu Oct 11 16:58:32 2018 (r481839) @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= pyznap +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.2 +CATEGORIES= sysutils python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= driesm.michiels@gmail.com +COMMENT= ZFS snapshot tool written in Python + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configparser>3.5.0:devel/py-configparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}paramiko>=2.4.1:security/py-paramiko@${PY_FLAVOR} \ + mbuffer:misc/mbuffer + +USES= python:3.5+ +USE_PYTHON= autoplist distutils + +USE_GITHUB= yes +GH_ACCOUNT= yboetz + +NO_ARCH= yes +SUB_FILES= pkg-message +SUB_LIST= BINDIR=${PREFIX}/bin + +post-patch: + ${REINPLACE_CMD} -e 's|/etc/pyznap/|${PREFIX}/etc/pyznap/|g' ${WRKSRC}/${PORTNAME}/main.py + +.include Added: head/sysutils/py-pyznap/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-pyznap/distinfo Thu Oct 11 16:58:32 2018 (r481839) @@ -0,0 +1,3 @@ +TIMESTAMP = 1539192943 +SHA256 (yboetz-pyznap-v1.0.2_GH0.tar.gz) = e506a3541b3af95f06cd3920269dcad11ba5b3a231591b3a51160ac0f3022002 +SIZE (yboetz-pyznap-v1.0.2_GH0.tar.gz) = 33660 Added: head/sysutils/py-pyznap/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-pyznap/files/pkg-message.in Thu Oct 11 16:58:32 2018 (r481839) @@ -0,0 +1,10 @@ +Now it is time to set-up the main configuration file. + +First run "pyznap setup", a sample configuration will be copied +to %%PREFIX%%/etc/pyznap/pysnap.conf. + +After configuring the file to your liking setup cron(8) with the +following entries: + +*/15 * * * * root %%BINDIR%%/pyznap snap >> /var/log/pyznap.log +0 0 * * * root %%BINDIR%%/pyznap send >> /var/log/pyznap.log Added: head/sysutils/py-pyznap/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-pyznap/pkg-descr Thu Oct 11 16:58:32 2018 (r481839) @@ -0,0 +1,7 @@ +pyznap is a ZFS snapshot management tool. It automatically takes and deletes +snapshots and can send them to different remote and local backup locations. + +For example, it is possible to specify a policy for a given filesystem in the +pyznap.conf file and then use cron to let it run once per quarter-hour. + +WWW: https://github.com/yboetz/pyznap