diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/torcx.target b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/torcx.target new file mode 100644 index 0000000000..adfd836204 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/torcx.target @@ -0,0 +1,7 @@ +[Unit] +Description=Verify torcx succeeded +DefaultDependencies=no +AssertPathExists=/run/metadata/torcx + +[Install] +WantedBy=basic.target diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/vendor.json b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/vendor.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/metadata.xml b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/metadata.xml new file mode 100644 index 0000000000..097975e3ad --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/metadata.xml @@ -0,0 +1,4 @@ + + + + diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-0.1.0_alpha1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-0.1.0_alpha1.ebuild new file mode 120000 index 0000000000..a82f2db352 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-0.1.0_alpha1.ebuild @@ -0,0 +1 @@ +torcx-9999.ebuild \ No newline at end of file diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-9999.ebuild new file mode 100644 index 0000000000..228da33af2 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright (c) 2017 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +CROS_WORKON_PROJECT="coreos/torcx" +CROS_WORKON_LOCALNAME="torcx" +CROS_WORKON_REPO="git://github.com" +COREOS_GO_PACKAGE="github.com/coreos/torcx" +COREOS_GO_VERSION="go1.8" + +if [[ "${PV}" == 9999 ]]; then + KEYWORDS="~amd64 ~arm64" +else + CROS_WORKON_COMMIT="1987d1c516c6925280fade659569d5062999a1db" # v0.1.0-alpha.1a + KEYWORDS="amd64 arm64" +fi + +inherit coreos-go cros-workon systemd + +DESCRIPTION="torcx is a boot-time addon manager for immutable systems" +HOMEPAGE="https://github.com/coreos/torcx" +LICENSE="Apache-2.0" +SLOT="0" + +src_compile() { + CGO_ENABLED=0 go_export + ${EGO} build -v \ + -p "$(makeopts_jobs)" \ + -ldflags "-X ${COREOS_GO_PACKAGE}/pkg/version.VERSION=${PV}" \ + -o "bin/${ARCH}/torcx" \ + -tags containers_image_openpgp \ + "${COREOS_GO_PACKAGE}" +} + +src_install() { + local generatordir=/usr/lib/systemd/system-generators + local vendordir=/usr/share/torcx + +# dobin "${S}/bin/${ARCH}/torcx" + + exeinto "${generatordir}" + newexe "${S}/bin/${ARCH}/torcx" torcx-generator +# dosym ../../../bin/torcx "${generatordir}/torcx-generator" + systemd_dounit "${FILESDIR}/torcx.target" + + insinto "${vendordir}/profiles" + doins "${FILESDIR}/vendor.json" + dodir "${vendordir}/store" +} diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r280.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r281.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r280.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1-r281.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild index bc7f83a2a2..2a5f0d4a1d 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild @@ -96,6 +96,7 @@ RDEPEND="${RDEPEND} app-admin/toolbox app-arch/gzip app-arch/tar + app-arch/torcx app-arch/unzip app-arch/zip app-crypt/gnupg