coreos-base: Add oem-virtualbox package

This commit adds the oem-virtualbox package, which sets the id
in grub.cfg to "virtualbox" and creates an oem-release file
for virtualbox builds.
This commit is contained in:
Alexander Pavel 2017-06-14 16:16:10 -07:00
parent 9140edcce9
commit 9c4a5ddcee
4 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="virtualbox"

View File

@ -0,0 +1,4 @@
ID=virtualbox
VERSION_ID=@@OEM_VERSION_ID@@
NAME="Oracle VirtualBox"
BUG_REPORT_URL="https://issues.coreos.com"

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
</pkgmetadata>

View File

@ -0,0 +1,27 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DESCRIPTION="OEM suite for VirtualBox"
HOMEPAGE=""
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
# no source directory
S="${WORKDIR}"
src_prepare() {
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
}
src_install() {
insinto "/usr/share/oem"
doins "${FILESDIR}/grub.cfg"
doins "${T}/oem-release"
}