oem-vmware: Add VMware OEM package, uses open-vm-tools

Originally contributed by Camilo Aguilar <camilo.aguilar@gmail.com>
This commit is contained in:
Michael Marineau 2014-10-08 11:34:55 -07:00
parent 54b9e0d1fc
commit a1e3d135d3
4 changed files with 56 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1 @@
The OEM version should match the current version of open-vm-tools.

View File

@ -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@@"

View File

@ -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"
}