aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/py-danzfs/Makefile31
-rw-r--r--sysutils/py-danzfs/distinfo2
-rw-r--r--sysutils/py-danzfs/pkg-descr4
-rw-r--r--sysutils/py-danzfs/pkg-plist12
5 files changed, 50 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 70c1aa29acf2..c78687275433 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -712,6 +712,7 @@
SUBDIR += pwsafe
SUBDIR += py-XenAPI
SUBDIR += py-bcfg2
+ SUBDIR += py-danzfs
SUBDIR += py-drmaa
SUBDIR += py-filelike
SUBDIR += py-nagiosplugin
diff --git a/sysutils/py-danzfs/Makefile b/sysutils/py-danzfs/Makefile
new file mode 100644
index 000000000000..1969f84399ff
--- /dev/null
+++ b/sysutils/py-danzfs/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: danzfs
+# Date created: 26 May 2012
+# Whom: Daniel Knaggs <knaggsy2000@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= danzfs
+PORTVERSION= 0.1.1
+CATEGORIES= sysutils python
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= knaggsy2000@gmail.com
+COMMENT= Provides a Python API for interacting with ZFS without using libzfs
+
+LICENSE= BSD
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+USE_XZ= yes
+
+WRKSRC= ${WRKDIR}/danzfs
+
+EXAMPLESDIR= ${PREFIX}/share/examples/danzfs
+
+post-install:
+ @${MKDIR} ${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-danzfs/distinfo b/sysutils/py-danzfs/distinfo
new file mode 100644
index 000000000000..e4db9219e97e
--- /dev/null
+++ b/sysutils/py-danzfs/distinfo
@@ -0,0 +1,2 @@
+SHA256 (danzfs-0.1.1.tar.xz) = 79672edcc4f253b32fbfcc6233f7134955acba421882c5f3a4715b1b6b2e038a
+SIZE (danzfs-0.1.1.tar.xz) = 6756
diff --git a/sysutils/py-danzfs/pkg-descr b/sysutils/py-danzfs/pkg-descr
new file mode 100644
index 000000000000..d50f7791f52a
--- /dev/null
+++ b/sysutils/py-danzfs/pkg-descr
@@ -0,0 +1,4 @@
+DanZFS provides a Python API for checking the status of ZFS without the use of
+libzfs.
+
+WWW: http://code.google.com/p/danzfs/
diff --git a/sysutils/py-danzfs/pkg-plist b/sysutils/py-danzfs/pkg-plist
new file mode 100644
index 000000000000..47aa3c151b55
--- /dev/null
+++ b/sysutils/py-danzfs/pkg-plist
@@ -0,0 +1,12 @@
+%%PYTHON_SITELIBDIR%%/danzfs.py
+%%PYTHON_SITELIBDIR%%/danzfs.pyc
+%%PYTHON_SITELIBDIR%%/danzfs.pyo
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zfs_get.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zfs_list_everything.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zfs_list_filesystems.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zfs_list_snapshots.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zfs_list_volumes.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zpool_iostat.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zpool_list.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zpool_status.py
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%