aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/py-zfs
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-09-02 18:07:49 +0800
committerbapt <bapt@FreeBSD.org>2014-09-02 18:07:49 +0800
commit10e03167f487d64719cc43ea4950b4d925234d80 (patch)
treeabf5fbbdc4b27a245ff76b9850f4eb6e73e4ba19 /sysutils/py-zfs
parente36550b4b5e2ea827b9bd0c16daa7304d897c23b (diff)
downloadfreebsd-ports-gnome-10e03167f487d64719cc43ea4950b4d925234d80.tar.gz
freebsd-ports-gnome-10e03167f487d64719cc43ea4950b4d925234d80.tar.zst
freebsd-ports-gnome-10e03167f487d64719cc43ea4950b4d925234d80.zip
Remove non staged ports without pending PR from s*
Diffstat (limited to 'sysutils/py-zfs')
-rw-r--r--sysutils/py-zfs/Makefile89
-rw-r--r--sysutils/py-zfs/files/Makefile.lib31
-rw-r--r--sysutils/py-zfs/files/Makefile.lib.v2830
-rw-r--r--sysutils/py-zfs/files/compile.py.in12
-rw-r--r--sysutils/py-zfs/files/extra-patch-userspace.py43
-rw-r--r--sysutils/py-zfs/files/extra-patch-util.py24
-rw-r--r--sysutils/py-zfs/pkg-descr9
-rw-r--r--sysutils/py-zfs/pkg-plist34
8 files changed, 0 insertions, 272 deletions
diff --git a/sysutils/py-zfs/Makefile b/sysutils/py-zfs/Makefile
deleted file mode 100644
index a5eb68d5d8fd..000000000000
--- a/sysutils/py-zfs/Makefile
+++ /dev/null
@@ -1,89 +0,0 @@
-# Created by: Martin Matuska <mm@FreeBSD.org>
-# $FreeBSD$
-
-PORTNAME= zfs
-PORTVERSION= 1
-PORTREVISION= 4
-CATEGORIES= sysutils python
-MASTER_SITES= # none
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTFILES= # none
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Python ZFS library
-
-LICENSE= CDDL
-LICENSE_FILE= ${WRKSRC}/OPENSOLARIS.LICENSE
-
-USES= python:2
-MAKEFILE= ${FILESDIR}/Makefile.lib
-MAKE_ARGS+= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
- PYTHON_LDFLAGS="-L${LOCALBASE}/lib -l${PYTHON_VERSION}"
-NO_WRKSUBDIR= yes
-
-SUB_FILES+= compile.py
-SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
-
-PYFILES= __init__.py \
- allow.py \
- dataset.py \
- groupspace.py\
- unallow.py \
- userspace.py \
- util.py
-
-.include <bsd.port.pre.mk>
-
-.if !exists(${SRC_BASE}/cddl/contrib/opensolaris/lib/pyzfs) || \
- !exists(${SRC_BASE}/cddl/contrib/opensolaris/cmd/pyzfs)
-IGNORE= requires ZFS v15 or higher sources with pyzfs (in ${SRC_BASE})
-.endif
-
-.if !exists(${SRC_BASE}/cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.h)
-MAKEFILE= ${FILESDIR}/Makefile.lib.v28
-.endif
-
-.if exists(${SRC_BASE}/cddl/contrib/opensolaris/lib/pyzfs/common/holds.py) && \
-exists(${SRC_BASE}/cddl/contrib/opensolaris/lib/pyzfs/common/table.py)
-PYFILES+= holds.py \
- table.py
-PLIST_SUB+= V28=""
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-util.py \
- ${FILESDIR}/extra-patch-userspace.py
-.else
-PLIST_SUB+= V28="@comment "
-.endif
-
-do-extract:
- @${MKDIR} ${WRKSRC}
- @${CP} ${SRC_BASE}/cddl/contrib/opensolaris/OPENSOLARIS.LICENSE \
- ${WRKSRC}/OPENSOLARIS.LICENSE
- @${CP} ${SRC_BASE}/cddl/contrib/opensolaris/cmd/pyzfs/pyzfs.py \
- ${WRKSRC}/pyzfs.py
-.for PYFILE in ${PYFILES}
- @${CP} ${SRC_BASE}/cddl/contrib/opensolaris/lib/pyzfs/common/${PYFILE} \
- ${WRKSRC}/${PYFILE}
-.endfor
-
-post-patch:
-
-.for PYFILE in pyzfs.py ${PYFILES}
- @${REINPLACE_CMD} -e "s|#! /usr/bin/python.*|#! ${PYTHON_CMD}|g" \
- ${WRKSRC}/${PYFILE}
-.endfor
-
-do-install:
- ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zfs
-.for PYFILE in ${PYFILES}
- ${INSTALL_DATA} ${WRKSRC}/${PYFILE} \
- ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zfs
-.endfor
- ${INSTALL_DATA} ${WRKSRC}/ioctl.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zfs
- @${PYTHON_CMD} ${WRKDIR}/compile.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zfs
- @${PYTHON_CMD} -O ${WRKDIR}/compile.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zfs
- ${MKDIR} ${STAGEDIR}/usr/lib/zfs
- ${INSTALL_SCRIPT} ${WRKSRC}/pyzfs.py ${STAGEDIR}/usr/lib/zfs
- @${PYTHON_CMD} ${WRKDIR}/compile.py ${STAGEDIR}/usr/lib/zfs
- @${PYTHON_CMD} -O ${WRKDIR}/compile.py ${STAGEDIR}/usr/lib/zfs
-
-.include <bsd.port.post.mk>
diff --git a/sysutils/py-zfs/files/Makefile.lib b/sysutils/py-zfs/files/Makefile.lib
deleted file mode 100644
index e5a351ee58b8..000000000000
--- a/sysutils/py-zfs/files/Makefile.lib
+++ /dev/null
@@ -1,31 +0,0 @@
-# $FreeBSD$
-
-SRCDIR?= /usr/src
-
-.PATH: ${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common
-
-SRCS= ioctl.c
-
-SHLIB_NAME= ioctl.so
-LIB= ioctl
-DPADD= ${LIBGEOM} ${LIBZFS} ${LIBZFS_CORE} ${LIBNVPAIR} ${LIBUUTIL}
-LDADD= -lgeom -lzfs -lzfs_core -lnvpair -luutil ${PYTHON_LDFLAGS}
-
-CFLAGS+= -DNEED_SOLARIS_BOOLEAN
-CFLAGS+= -I${SRCDIR}/sys/cddl/compat/opensolaris
-CFLAGS+= -I${SRCDIR}/cddl/compat/opensolaris/include
-CFLAGS+= -I${SRCDIR}/cddl/compat/opensolaris/lib/libumem
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libzpool/common
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/common/zfs
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/uts/common/sys
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/uts/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/head
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/uts/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libnvpair
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libuutil/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libzfs_core/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libzfs/common
-CFLAGS+= -I${PYTHON_INCLUDEDIR}
-
-.include <bsd.lib.mk>
diff --git a/sysutils/py-zfs/files/Makefile.lib.v28 b/sysutils/py-zfs/files/Makefile.lib.v28
deleted file mode 100644
index e26574cabc0d..000000000000
--- a/sysutils/py-zfs/files/Makefile.lib.v28
+++ /dev/null
@@ -1,30 +0,0 @@
-# $FreeBSD$
-
-SRCDIR?= /usr/src
-
-.PATH: ${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common
-
-SRCS= ioctl.c
-
-SHLIB_NAME= ioctl.so
-LIB= ioctl
-DPADD= ${LIBGEOM} ${LIBZFS} ${LIBNVPAIR} ${LIBUUTIL}
-LDADD= -lgeom -lzfs -lnvpair -luutil ${PYTHON_LDFLAGS}
-
-CFLAGS+= -DNEED_SOLARIS_BOOLEAN
-CFLAGS+= -I${SRCDIR}/sys/cddl/compat/opensolaris
-CFLAGS+= -I${SRCDIR}/cddl/compat/opensolaris/include
-CFLAGS+= -I${SRCDIR}/cddl/compat/opensolaris/lib/libumem
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libzpool/common
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/common/zfs
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/uts/common/sys
-CFLAGS+= -I${SRCDIR}/sys/cddl/contrib/opensolaris/uts/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/head
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/uts/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libnvpair
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libuutil/common
-CFLAGS+= -I${SRCDIR}/cddl/contrib/opensolaris/lib/libzfs/common
-CFLAGS+= -I${PYTHON_INCLUDEDIR}
-
-.include <bsd.lib.mk>
diff --git a/sysutils/py-zfs/files/compile.py.in b/sysutils/py-zfs/files/compile.py.in
deleted file mode 100644
index ceef660ab03c..000000000000
--- a/sysutils/py-zfs/files/compile.py.in
+++ /dev/null
@@ -1,12 +0,0 @@
-#!%%PYTHON_CMD%%
-import sys
-import compileall
-
-import sys
-
-try:
- sys.argv[1]
-except IndexError:
- print "Path missing"
-else:
- compileall.compile_dir(sys.argv[1], force=True)
diff --git a/sysutils/py-zfs/files/extra-patch-userspace.py b/sysutils/py-zfs/files/extra-patch-userspace.py
deleted file mode 100644
index 58b574be7cef..000000000000
--- a/sysutils/py-zfs/files/extra-patch-userspace.py
+++ /dev/null
@@ -1,43 +0,0 @@
---- userspace.py.orig 2010-12-23 09:35:39.917675583 +0100
-+++ userspace.py 2010-12-23 09:52:20.873003971 +0100
-@@ -30,7 +30,6 @@
- import pwd
- import grp
- import errno
--import solaris.misc
- import zfs.util
- import zfs.ioctl
- import zfs.dataset
-@@ -68,9 +67,9 @@
- idstr = "%u" % rid
-
- (typename, mapfunc) = {
-- (1, 1): ("SMB Group", lambda id: solaris.misc.sid_to_name(id, 0)),
-+ (1, 1): ("SMB Group", id),
- (1, 0): ("POSIX Group", lambda id: grp.getgrgid(int(id)).gr_name),
-- (0, 1): ("SMB User", lambda id: solaris.misc.sid_to_name(id, 1)),
-+ (0, 1): ("SMB User", id),
- (0, 0): ("POSIX User", lambda id: pwd.getpwuid(int(id)).pw_name)
- }[isgroup, bool(domain)]
-
-@@ -107,13 +106,13 @@
- (domain, rid, value) = elem
- (field, isgroup) = props[prop]
-
-- if options.translate and domain:
-- try:
-- rid = solaris.misc.sid_to_id("%s-%u" % (domain, rid),
-- not isgroup)
-- domain = None
-- except KeyError:
-- pass;
-+# if options.translate and domain:
-+# try:
-+# rid = solaris.misc.sid_to_id("%s-%u" % (domain, rid),
-+# not isgroup)
-+# domain = None
-+# except KeyError:
-+# pass;
- key = (isgroup, domain, rid)
-
- try:
diff --git a/sysutils/py-zfs/files/extra-patch-util.py b/sysutils/py-zfs/files/extra-patch-util.py
deleted file mode 100644
index d1f77623f561..000000000000
--- a/sysutils/py-zfs/files/extra-patch-util.py
+++ /dev/null
@@ -1,24 +0,0 @@
---- util.py.orig 2010-12-23 09:07:09.188744296 +0100
-+++ util.py 2010-12-23 09:10:16.315849339 +0100
-@@ -28,7 +28,6 @@
- import gettext
- import errno
- import os
--import solaris.misc
- # Note: this module (zfs.util) should not import zfs.ioctl, because that
- # would introduce a circular dependency
-
-@@ -37,11 +36,8 @@
-
- dev = open("/dev/zfs", "w")
-
--try:
-- _ = gettext.translation("SUNW_OST_OSLIB", "/usr/lib/locale",
-- fallback=True).gettext
--except:
-- _ = solaris.misc.gettext
-+_ = gettext.translation("SUNW_OST_OSLIB", "/usr/lib/locale",
-+ fallback=True).gettext
-
- def default_repr(self):
- """A simple __repr__ function."""
diff --git a/sysutils/py-zfs/pkg-descr b/sysutils/py-zfs/pkg-descr
deleted file mode 100644
index e8fe9c6aeb44..000000000000
--- a/sysutils/py-zfs/pkg-descr
+++ /dev/null
@@ -1,9 +0,0 @@
-The Python ZFS library is a Python interface to ZFS functions.
-
-Since ZFS v15, the following functionality of the "zfs" command
-requires this library and the pyzfs utility:
-
-zfs allow
-zfs unallow
-zfs userspace
-zfs groupspace
diff --git a/sysutils/py-zfs/pkg-plist b/sysutils/py-zfs/pkg-plist
deleted file mode 100644
index df6af218a10c..000000000000
--- a/sysutils/py-zfs/pkg-plist
+++ /dev/null
@@ -1,34 +0,0 @@
-%%PYTHON_SITELIBDIR%%/zfs/__init__.py
-%%PYTHON_SITELIBDIR%%/zfs/__init__.pyc
-%%PYTHON_SITELIBDIR%%/zfs/__init__.pyo
-%%PYTHON_SITELIBDIR%%/zfs/allow.py
-%%PYTHON_SITELIBDIR%%/zfs/allow.pyc
-%%PYTHON_SITELIBDIR%%/zfs/allow.pyo
-%%PYTHON_SITELIBDIR%%/zfs/dataset.py
-%%PYTHON_SITELIBDIR%%/zfs/dataset.pyc
-%%PYTHON_SITELIBDIR%%/zfs/dataset.pyo
-%%PYTHON_SITELIBDIR%%/zfs/groupspace.py
-%%PYTHON_SITELIBDIR%%/zfs/groupspace.pyc
-%%PYTHON_SITELIBDIR%%/zfs/groupspace.pyo
-%%V28%%%%PYTHON_SITELIBDIR%%/zfs/holds.py
-%%V28%%%%PYTHON_SITELIBDIR%%/zfs/holds.pyc
-%%V28%%%%PYTHON_SITELIBDIR%%/zfs/holds.pyo
-%%PYTHON_SITELIBDIR%%/zfs/ioctl.so
-%%V28%%%%PYTHON_SITELIBDIR%%/zfs/table.py
-%%V28%%%%PYTHON_SITELIBDIR%%/zfs/table.pyc
-%%V28%%%%PYTHON_SITELIBDIR%%/zfs/table.pyo
-%%PYTHON_SITELIBDIR%%/zfs/unallow.py
-%%PYTHON_SITELIBDIR%%/zfs/unallow.pyc
-%%PYTHON_SITELIBDIR%%/zfs/unallow.pyo
-%%PYTHON_SITELIBDIR%%/zfs/userspace.py
-%%PYTHON_SITELIBDIR%%/zfs/userspace.pyc
-%%PYTHON_SITELIBDIR%%/zfs/userspace.pyo
-%%PYTHON_SITELIBDIR%%/zfs/util.py
-%%PYTHON_SITELIBDIR%%/zfs/util.pyc
-%%PYTHON_SITELIBDIR%%/zfs/util.pyo
-@dirrm %%PYTHON_SITELIBDIR%%/zfs
-@cwd /usr/lib
-zfs/pyzfs.py
-zfs/pyzfs.pyc
-zfs/pyzfs.pyo
-@dirrm zfs