summaryrefslogtreecommitdiff
path: root/sysutils/coreos-ct/Makefile
blob: 99a9c25be2d3edafc97247c9c0107b7f0bdf17ec (plain)
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

PORTNAME=	coreos-ct
PORTVERSION=	0.9.0
DISTVERSIONPREFIX=	v
CATEGORIES=	sysutils

MAINTAINER=	fabian.freyer@physik.tu-berlin.de
COMMENT=	Container Linux Config Transpiler

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go
USE_GITHUB=	yes

GH_ACCOUNT=	coreos
GH_PROJECT=	container-linux-config-transpiler

GO_PKGNAME=	github.com/${GH_ACCOUNT}/${GH_PROJECT}
GO_BUILDFLAGS=	-ldflags "-w -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/internal/version.Raw=${PORTVERSION}"
GO_TARGET=	./internal:ct

OPTIONS_DEFINE=	DOCS

PORTDOCS=	README.md NEWS doc/*

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>