svn commit: r481839 - in head/sysutils: . py-pyznap py-pyznap/files
Mateusz Piotrowski
0mp at FreeBSD.org
Thu Oct 11 16:58:34 UTC 2018
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 <driesm.michiels at gmail.com> (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 at 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 <bsd.port.mk>
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
More information about the svn-ports-all
mailing list