diff options
author | Martin Matuska <mm@FreeBSD.org> | 2010-11-22 14:10:29 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2010-11-22 14:10:29 +0000 |
commit | f541cc2ef7400ab2809db320ba8cf959a97460ef (patch) | |
tree | 8ee269875168a866ed55ef037b7a8e0751c228a5 /sysutils/py-zfs | |
parent | fdf0e2a358a4b21bddbc1856599766032393f81e (diff) | |
download | ports-f541cc2ef7400ab2809db320ba8cf959a97460ef.tar.gz ports-f541cc2ef7400ab2809db320ba8cf959a97460ef.zip |
Notes
Diffstat (limited to 'sysutils/py-zfs')
-rw-r--r-- | sysutils/py-zfs/Makefile | 12 | ||||
-rw-r--r-- | sysutils/py-zfs/pkg-plist | 6 |
2 files changed, 17 insertions, 1 deletions
diff --git a/sysutils/py-zfs/Makefile b/sysutils/py-zfs/Makefile index 19eaed527183..c64325b8249e 100644 --- a/sysutils/py-zfs/Makefile +++ b/sysutils/py-zfs/Makefile @@ -7,6 +7,7 @@ PORTNAME= zfs PORTVERSION= 1 +PORTREVISION= 1 CATEGORIES= sysutils python MASTER_SITES= # none PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,7 +16,7 @@ DISTFILES= # none MAINTAINER= mm@FreeBSD.org COMMENT= Python ZFS library -USE_PYTHON= 2.4+ +USE_PYTHON= 2.4-2.7 MAKEFILE= ${FILESDIR}/Makefile.lib MAKE_ARGS+= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \ PYTHON_LDFLAGS="-L${LOCALBASE}/lib -l${PYTHON_VERSION}" @@ -38,6 +39,15 @@ PYFILES= __init__.py \ IGNORE= requires ZFS v15 or higher sources with pyzfs (in ${SRCDIR}) .endif +.if exists(${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/holds.py) && \ +exists(${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/table.py) +PYFILES+= holds.py \ + table.py +PLIST_SUB+= V28="" +.else +PLIST_SUB+= V28="@comment " +.endif + post-patch: @${MKDIR} ${WRKSRC} @${SED} -e "s|/usr/bin/python2.4|${PYTHON_CMD}|g" \ diff --git a/sysutils/py-zfs/pkg-plist b/sysutils/py-zfs/pkg-plist index cf5e3f4ab9dc..df6af218a10c 100644 --- a/sysutils/py-zfs/pkg-plist +++ b/sysutils/py-zfs/pkg-plist @@ -10,7 +10,13 @@ %%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 |