aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/zfstools/Makefile
blob: 6f1e14a480ae9e2a676c0672b88070d587c4e2f8 (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
# $FreeBSD$

PORTNAME=   zfstools
PORTVERSION=    0.3.1
CATEGORIES= sysutils ruby
MASTER_SITES=   GH \
        http://mirror.shatow.net/freebsd/${PORTNAME}/

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    OpenSolaris-compatible auto snapshotting for ZFS

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

USE_GITHUB= yes
GH_ACCOUNT= bdrewery
GH_COMMIT=  24d02f9
GH_TAGNAME= v${DISTVERSION}

USE_RUBY=   yes
NO_BUILD=   yes

SUB_FILES=  pkg-message

OPTIONS_DEFINE= DOCS 

.include <bsd.port.options.mk>

do-install:
    @cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/sbin
    @cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_SITELIBDIR}
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>