Index: head/sysutils/Makefile =================================================================== --- head/sysutils/Makefile +++ head/sysutils/Makefile @@ -203,6 +203,7 @@ SUBDIR += container-diff SUBDIR += contractor SUBDIR += copytape + SUBDIR += coreos-ct SUBDIR += coreutils SUBDIR += cotty SUBDIR += cpdup Index: head/sysutils/coreos-ct/Makefile =================================================================== --- head/sysutils/coreos-ct/Makefile +++ head/sysutils/coreos-ct/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +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_LDFLAGS= -w -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/internal/version.Raw=${PORTVERSION} + +OPTIONS_DEFINE= DOCS + +PORTDOCS= README.md NEWS doc/* + +do-build: + @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build -o ${WRKDIR}/bin/ct -ldflags "${GO_LDFLAGS}" ./internal) + +do-install: + ${INSTALL_PROGRAM} ${WRKDIR}/bin/ct ${STAGEDIR}${PREFIX}/bin + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include Index: head/sysutils/coreos-ct/distinfo =================================================================== --- head/sysutils/coreos-ct/distinfo +++ head/sysutils/coreos-ct/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1527263595 +SHA256 (coreos-container-linux-config-transpiler-v0.9.0_GH0.tar.gz) = 140c2a5bfd2562a069882e66c4aee01290417f35ef0db06e11e74b2ccf52de7f +SIZE (coreos-container-linux-config-transpiler-v0.9.0_GH0.tar.gz) = 217508 Index: head/sysutils/coreos-ct/pkg-descr =================================================================== --- head/sysutils/coreos-ct/pkg-descr +++ head/sysutils/coreos-ct/pkg-descr @@ -0,0 +1,6 @@ +The Config Transpiler, ct, is the utility responsible for transforming a +user-provided Container Linux Configuration into an Ignition configuration. +The resulting Ignition config can then be provided to a Container Linux machine +when it first boots in order to provision it. + +WWW: https://coreos.com/os/docs/latest/overview-of-ct.html Index: head/sysutils/coreos-ct/pkg-plist =================================================================== --- head/sysutils/coreos-ct/pkg-plist +++ head/sysutils/coreos-ct/pkg-plist @@ -0,0 +1,9 @@ +bin/ct +%%PORTDOCS%%%%DOCSDIR%%/configuration.md +%%PORTDOCS%%%%DOCSDIR%%/dynamic-data.md +%%PORTDOCS%%%%DOCSDIR%%/examples.md +%%PORTDOCS%%%%DOCSDIR%%/getting-started.md +%%PORTDOCS%%%%DOCSDIR%%/operators-notes.md +%%PORTDOCS%%%%DOCSDIR%%/overview.md +%%PORTDOCS%%%%DOCSDIR%%/production-users.md +%%PORTDOCS%%%%DOCSDIR%%/release_checklist.md