aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/vzvol/Makefile
blob: db18474df0a97f9ecff526a5b69afbab976943d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $FreeBSD$

PORTNAME=       vzvol
DISTVERSIONPREFIX=  v
DISTVERSION=        0.7.0
PORTREVISION=   1
CATEGORIES=     sysutils

MAINTAINER=     rainbow@sanitylinux.org
COMMENT=        Feature-rich ZFS zvol management tool

LICENSE=        BSD2CLAUSE
LICENSE_FILE=       ${WRKSRC}/LICENSE

GROUPS=         operator

USE_GITHUB=     yes
GH_ACCOUNT=     RainbowHackerHorse
NO_BUILD=       yes
NO_ARCH=        yes

PORTDOCS=       README.md CONTRIBUTORS

OPTIONS_DEFINE=         DOCS PROGRESS VIRTUALBOX
OPTIONS_GROUP=          FILESYSTEMS
OPTIONS_GROUP_FILESYSTEMS=  EXT XFS
OPTIONS_DEFAULT=        EXT PROGRESS VIRTUALBOX XFS

EXT_RUN_DEPENDS=        mke2fs:sysutils/e2fsprogs
PROGRESS_RUN_DEPENDS=       pv:sysutils/pv
VIRTUALBOX_RUN_DEPENDS=     VBoxManage:emulators/virtualbox-ose
XFS_RUN_DEPENDS=        mkfs.xfs:sysutils/xfsprogs

EXT_DESC=           Install support for ext2, ext3, and ext4
PROGRESS_DESC=          Enables progress bars for import
VIRTUALBOX_DESC=        Support .VMDK creation with VirtualBox tools
XFS_DESC=           Install support for XFS Filesystem

do-install:
    ${INSTALL_MAN} ${WRKSRC}/man/freebsd/vzvol.8 ${STAGEDIR}${PREFIX}/man/man8/
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/vzvol ${STAGEDIR}${PREFIX}/sbin
.for dir in shared freebsd linux
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/vzvol/lib/${dir}
    ${INSTALL_SCRIPT} ${WRKSRC}/lib/${dir}/* ${STAGEDIR}${PREFIX}/lib/vzvol/lib/${dir}
.endfor

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>