Lines 1-33
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= pyznap |
3 |
PORTNAME= pyznap |
4 |
DISTVERSIONPREFIX= v |
4 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSION= 1.1.0 |
5 |
DISTVERSION= 1.1.2 |
6 |
CATEGORIES= sysutils python |
6 |
CATEGORIES= sysutils python |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
|
8 |
|
9 |
MAINTAINER= driesm.michiels@gmail.com |
9 |
MAINTAINER= driesm.michiels@gmail.com |
10 |
COMMENT= ZFS snapshot tool written in Python |
10 |
COMMENT= ZFS snapshot tool written in Python |
11 |
|
11 |
|
12 |
LICENSE= GPLv3 |
12 |
LICENSE= GPLv3 |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
14 |
|
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configparser>3.5.0:devel/py-configparser@${PY_FLAVOR} \ |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configparser>3.5.0:devel/py-configparser@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}paramiko>=2.4.2:security/py-paramiko@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}paramiko>=2.4.2:security/py-paramiko@${PY_FLAVOR} \ |
17 |
mbuffer:misc/mbuffer \ |
17 |
mbuffer:misc/mbuffer \ |
18 |
pv:sysutils/pv |
18 |
pv:sysutils/pv |
19 |
|
19 |
|
|
|
20 |
#TEST_DEPENDS= ${YPTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ |
21 |
# ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \ |
22 |
# faketime:devel/faketime |
23 |
|
20 |
USES= python:3.5+ |
24 |
USES= python:3.5+ |
21 |
USE_PYTHON= autoplist concurrent distutils |
25 |
USE_PYTHON= autoplist concurrent distutils |
22 |
|
26 |
|
23 |
USE_GITHUB= yes |
27 |
USE_GITHUB= yes |
24 |
GH_ACCOUNT= yboetz |
28 |
GH_ACCOUNT= yboetz |
25 |
|
29 |
|
26 |
NO_ARCH= yes |
30 |
NO_ARCH= yes |
27 |
SUB_FILES= pkg-message |
31 |
SUB_FILES= pkg-message |
28 |
SUB_LIST= BINDIR=${PREFIX}/bin ETCDIR=${PREFIX}/etc |
32 |
SUB_LIST= BINDIR=${PREFIX}/bin ETCDIR=${PREFIX}/etc |
29 |
|
33 |
|
30 |
post-patch: |
34 |
post-patch: |
31 |
${REINPLACE_CMD} -e 's|/etc/pyznap/|${PREFIX}/etc/pyznap/|g' ${WRKSRC}/${PORTNAME}/main.py |
35 |
${REINPLACE_CMD} -e 's|/etc/pyznap/|${PREFIX}/etc/pyznap/|g' ${WRKSRC}/${PORTNAME}/main.py |
32 |
|
36 |
|
|
|
37 |
# upstream does not support selecting/deselecting tests from setuptools |
38 |
# zfs tests work on the host but not in a poudriere jail |
39 |
# ssh tests fail as priv/pub key auth is required to be set up in advance |
40 |
#do-test: |
41 |
# @${CD} ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
42 |
|
33 |
.include <bsd.port.mk> |
43 |
.include <bsd.port.mk> |