aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nomad-pot-driver/Makefile
blob: dc82ed037a0e9e7ad0b58c70283f3d1990a9791a (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
# $FreeBSD$

PORTNAME=   nomad-pot-driver
DISTVERSIONPREFIX=  v
DISTVERSION=    0.2
DISTVERSIONSUFFIX=  -11-g412dbeb
PORTREVISION=   1
CATEGORIES= sysutils

MAINTAINER= pizzamig@FreeBSD.org
COMMENT=    Nomad driver to support pot jails

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

RUN_DEPENDS=    pot:sysutils/pot \
        nomad:sysutils/nomad

USES=       compiler go
USE_GITHUB= yes
GH_ACCOUNT= trivago
GH_SUBDIR=  src/github.com/trivago/nomad-pot-driver

PLIST_FILES=    libexec/nomad/plugins/nomad-pot-driver
SUB_FILES=  pkg-message

do-build:
    @cd ${WRKSRC}/src/github.com/trivago/nomad-pot-driver && \
        ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
        -o bin/nomad-pot-driver

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
    ${INSTALL_SCRIPT} ${WRKSRC}/src/github.com/trivago/nomad-pot-driver/bin/nomad-pot-driver ${STAGEDIR}${PREFIX}/libexec/nomad/plugins

.include <bsd.port.pre.mk>

.if ${COMPILER_TYPE} == clang
BUILD_ENV=  CC=clang
.endif

.include <bsd.port.post.mk>