aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/vm-bhyve/Makefile
blob: 19c6b763a491de52abdef5927a4e8e64b444b887 (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
# $FreeBSD$

PORTNAME=   vm-bhyve
PORTVERSION=    1.0.2
DISTVERSIONPREFIX=v
CATEGORIES= sysutils

MAINTAINER= churchers@gmail.com
COMMENT=    Management system for bhyve virtual machines

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

OPTIONS_DEFINE= EXAMPLES
EXAMPLES_DESC=  Install example guest templates

USE_GITHUB= yes
GH_ACCOUNT= churchers

NO_ARCH=    yes
NO_BUILD=   yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 1000000
IGNORE=     this port works only on FreeBSD 10 and newer
.endif

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/vm ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/vm ${STAGEDIR}${PREFIX}/etc/rc.d
    (cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/vm-bhyve)
    (cd ${WRKSRC}/sample-templates/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
    ${INSTALL_MAN} ${WRKSRC}/vm.8 ${STAGEDIR}${MAN8PREFIX}/man/man8

.include <bsd.port.post.mk>