Merge pull request #2603 from AlexNPavel/oem-virtualbox

coreos-base: Add oem-virtualbox package
This commit is contained in:
Euan Kemp 2017-06-16 16:59:46 -07:00 committed by GitHub
commit db4f78508c
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"
}