summaryrefslogtreecommitdiff
path: root/filesystems/unionfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/unionfs/Makefile')
-rw-r--r--filesystems/unionfs/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/filesystems/unionfs/Makefile b/filesystems/unionfs/Makefile
new file mode 100644
index 000000000000..4db9d90fc34c
--- /dev/null
+++ b/filesystems/unionfs/Makefile
@@ -0,0 +1,38 @@
+PORTNAME= unionfs
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.2
+CATEGORIES= filesystems
+PKGNAMEPREFIX= fusefs-
+
+MAINTAINER= 0mp@FreeBSD.org
+COMMENT= FUSE based implementation of the well-known unionfs
+WWW= https://github.com/rpodgorny/unionfs-fuse
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+
+USES= cmake fuse localbase:ldflags python:test
+
+USE_GITHUB= yes
+GH_ACCOUNT= rpodgorny
+GH_PROJECT= unionfs-fuse
+
+SUB_FILES= pkg-message
+
+PLIST_FILES= bin/unionfs \
+ bin/unionfsctl \
+ share/man/man8/unionfs.8.gz
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
+
+pre-test:
+ ${RLN} ${BUILD_WRKSRC}/src/unionfs ${WRKSRC}/src/unionfs
+ ${RLN} ${BUILD_WRKSRC}/src/unionfsctl ${WRKSRC}/src/unionfsctl
+
+do-test:
+ cd ${WRKSRC} && ${SETNEV} ${MAKE_ENV} ${PYTHON_CMD} -m pytest -k test_help --verbose
+
+.include <bsd.port.mk>