diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/compat-wrapper.sh b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/compat-wrapper.sh deleted file mode 100644 index 122162decae..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/compat-wrapper.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -set -e - -bin=${0##*/} -seal=/run/metadata/torcx - -if [ -z "${bin}" ] -then - echo 'Failed to determine the executed program name.' 1>&2 - exit 1 -fi - -if [ -s "${seal}" ] -then - . "${seal}" -else - echo "The program ${bin} is managed by torcx, which did not run." 1>&2 - exit 1 -fi - -if [ -z "${TORCX_BINDIR-}" ] -then - echo "The torcx seal file ${seal} is invalid." 1>&2 - exit 1 -fi - -if [ ! -x "${TORCX_BINDIR}/${bin}" ] -then - echo "The current torcx profile did not install a ${bin} program." 1>&2 - exit 1 -fi - -PATH="${TORCX_BINDIR}${PATH:+:${PATH}}" exec "${TORCX_BINDIR}/${bin}" "$@" diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/docker-1.12-no.json b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/docker-1.12-no.json deleted file mode 100644 index 4480c4e7670..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/docker-1.12-no.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "profile-manifest-v0", - "value": { - "images": [ - { - "name": "docker", - "reference": "com.coreos.cl" - } - ] - } -} diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/dockerd-wrapper.sh b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/dockerd-wrapper.sh deleted file mode 100644 index 19c440bddab..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/dockerd-wrapper.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# Wrapper for launching docker daemons with selinux default on -# This wrapper script has been deprecated (euank: 2017-05-09) and is retained -# for backwards compatibility. - -set -e - -parse_docker_args() { - local flag - while [[ $# -gt 0 ]]; do - flag="$1" - shift - - # treat --flag=foo and --flag foo identically - if [[ "${flag}" == *=* ]]; then - set -- "${flag#*=}" "$@" - flag="${flag%=*}" - fi - - case "${flag}" in - --selinux-enabled) - ARG_SELINUX="$1" - shift - ;; - *) - # ignore everything else - ;; - esac - done -} - -parse_docker_args "$@" - -USE_SELINUX="" -# Do not override selinux if it is already explicitly configured. -if [[ -z "${ARG_SELINUX}" ]]; then - # If unspecified, default off - USE_SELINUX="--selinux-enabled=false" -fi - -exec dockerd "$@" ${USE_SELINUX} 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 deleted file mode 100644 index adfd836204e..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/torcx.target +++ /dev/null @@ -1,7 +0,0 @@ -[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 deleted file mode 100644 index 4480c4e7670..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/files/vendor.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "profile-manifest-v0", - "value": { - "images": [ - { - "name": "docker", - "reference": "com.coreos.cl" - } - ] - } -} 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 deleted file mode 100644 index 097975e3adc..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/metadata.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-0.2.0-r8.ebuild b/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-0.2.0-r8.ebuild deleted file mode 120000 index a82f2db3523..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-0.2.0-r8.ebuild +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 0f46c47f774..00000000000 --- a/sdk_container/src/third_party/coreos-overlay/app-arch/torcx/torcx-9999.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (c) 2017-2018 CoreOS, Inc.. All rights reserved. -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -CROS_WORKON_PROJECT="flatcar/torcx" -CROS_WORKON_LOCALNAME="torcx" -CROS_WORKON_REPO="https://github.com" -COREOS_GO_PACKAGE="github.com/flatcar/torcx" -COREOS_GO_GO111MODULE="off" - -if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64 ~arm64" -else - CROS_WORKON_COMMIT="3e7173395658a7e43ec0cb0dd2077795931d857f" # flatcar-master - 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/flatcar/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 - local libcoreosdir=/usr/lib/flatcar - - # Install generator and userland. - exeinto "${generatordir}" - newexe "${S}/bin/${ARCH}/torcx" torcx-generator - dosym ../systemd/system-generators/torcx-generator "${libcoreosdir}/torcx" - systemd_dounit "${FILESDIR}/torcx.target" - - insinto "${vendordir}/profiles" - doins "${FILESDIR}/docker-1.12-no.json" - doins "${FILESDIR}/vendor.json" - dodir "${vendordir}/store" - - # Preserve program paths for torcx packages. - newbin "${FILESDIR}/compat-wrapper.sh" docker - for link in {docker-,}{containerd{,-shim},runc} ctr docker-{init,proxy} dockerd tini - do ln -fns docker "${ED}/usr/bin/${link}" - done - exeinto /usr/lib/flatcar - newexe "${FILESDIR}/dockerd-wrapper.sh" dockerd -}