summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/zsm/Makefile27
-rw-r--r--sysutils/zsm/distinfo3
-rw-r--r--sysutils/zsm/pkg-descr10
4 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 00d34e4ed77e..e1f5f0095fd9 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1481,6 +1481,7 @@
SUBDIR += zrep
SUBDIR += zrepl
SUBDIR += zsd
+ SUBDIR += zsm
SUBDIR += zxfer
.include <bsd.port.subdir.mk>
diff --git a/sysutils/zsm/Makefile b/sysutils/zsm/Makefile
new file mode 100644
index 000000000000..9747f0579e44
--- /dev/null
+++ b/sysutils/zsm/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME= zsm
+PORTVERSION= 0.2.0
+CATEGORIES= sysutils python
+MASTER_SITES= CHEESESHOP
+
+MAINTAINER= mattias.lindvall@gmail.com
+COMMENT= ZFS Snapshot Manager
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=6.7:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pid>=2.2.0:devel/py-pid@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}zsm-lib>=0.2.0:devel/py-zsm-lib@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.6.4:devel/py-pytest@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} LC_ALL=en_US.UTF-8 ${PYTHON_CMD} -m pytest)
+
+.include <bsd.port.mk>
diff --git a/sysutils/zsm/distinfo b/sysutils/zsm/distinfo
new file mode 100644
index 000000000000..1006a03d5441
--- /dev/null
+++ b/sysutils/zsm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1545507449
+SHA256 (zsm-0.2.0.tar.gz) = 098d8ca87f8e92560b2b69ef5aff6835428bd64da599d01493946f311cf15a53
+SIZE (zsm-0.2.0.tar.gz) = 4760
diff --git a/sysutils/zsm/pkg-descr b/sysutils/zsm/pkg-descr
new file mode 100644
index 000000000000..9b58324ce0b5
--- /dev/null
+++ b/sysutils/zsm/pkg-descr
@@ -0,0 +1,10 @@
+A console program that manages ZFS snapshots.
+
+- Manage multiple sets of rolling snapshots.
+- Configure a custom schedule via the config file.
+- Run in background by adding it to crontab.
+
+Technically, most of the functionality is in zsm-lib,
+and zsm is just a thin console interface.
+
+WWW: https://zsm.rtfd.io/