Page MenuHomeFreeBSD

D17520.diff
No OneTemporary

D17520.diff

Index: head/sysutils/Makefile
===================================================================
--- head/sysutils/Makefile
+++ head/sysutils/Makefile
@@ -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
Index: head/sysutils/py-pyznap/Makefile
===================================================================
--- head/sysutils/py-pyznap/Makefile
+++ head/sysutils/py-pyznap/Makefile
@@ -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 <bsd.port.mk>
Index: head/sysutils/py-pyznap/distinfo
===================================================================
--- head/sysutils/py-pyznap/distinfo
+++ head/sysutils/py-pyznap/distinfo
@@ -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
Index: head/sysutils/py-pyznap/files/pkg-message.in
===================================================================
--- head/sysutils/py-pyznap/files/pkg-message.in
+++ head/sysutils/py-pyznap/files/pkg-message.in
@@ -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
Index: head/sysutils/py-pyznap/pkg-descr
===================================================================
--- head/sysutils/py-pyznap/pkg-descr
+++ head/sysutils/py-pyznap/pkg-descr
@@ -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

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 7:37 PM (19 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15956582
Default Alt Text
D17520.diff (2 KB)

Event Timeline