diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/README b/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/README new file mode 100644 index 0000000000..aff503a9c8 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/README @@ -0,0 +1,3 @@ +When updating the version of open-vm-tools the ebuild version of +oem-vmware must be updated to match as well. That way the reported "OEM" +version directly reflects the installed tools. diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/README b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/README new file mode 100644 index 0000000000..bdc50aeed4 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/README @@ -0,0 +1 @@ +The OEM version should match the current version of open-vm-tools. diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/cloud-config.yml b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/cloud-config.yml new file mode 100644 index 0000000000..045d9fbf23 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/cloud-config.yml @@ -0,0 +1,21 @@ +#cloud-config + +coreos: + units: + - name: vmtoolsd.service + command: start + content: | + [Unit] + Description=VMware Tools Agent + Documentation=http://open-vm-tools.sourceforge.net/ + ConditionVirtualization=vmware + + [Service] + ExecStartPre=/usr/bin/ln -sfT /usr/share/oem/vmware-tools /etc/vmware-tools + ExecStart=/usr/share/oem/bin/vmtoolsd + TimeoutStopSec=5 + oem: + bug-report-url: "https://github.com/coreos/bugs/issues" + id: vmware + name: VMWare + version-id: "@@OEM_VERSION_ID@@" diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/oem-vmware-9.4.6.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/oem-vmware-9.4.6.ebuild new file mode 100644 index 0000000000..e710b6b8b2 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/oem-vmware-9.4.6.ebuild @@ -0,0 +1,31 @@ +# Copyright (c) 2014 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="OEM suite for VMware" +HOMEPAGE="https://github.com/coreos/coreos-overlay/tree/master/coreos-base" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND=" + app-emulation/open-vm-tools + " +RDEPEND="${DEPEND}" + +# no source directory +S="${WORKDIR}" + +src_prepare() { + sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ + "${FILESDIR}"/cloud-config.yml > ${T}/cloud-config.yml || die +} + +src_install() { + insinto "/usr/share/oem" + doins "${T}/cloud-config.yml" +}