X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id BBFCBDC08B8 for ; Sat, 16 Jan 2016 09:03:22 +0000 (UTC) Received: from st11p00im-asmtp001.me.com (st11p00im-asmtp001.me.com [17.172.80.95]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 99AAADC0114 for ; Sat, 16 Jan 2016 09:03:22 +0000 (UTC) Received: from alpine.lan (c-73-22-200-3.hsd1.il.comcast.net [73.22.200.3]) by st11p00im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O1100LYEFSZEX30@st11p00im-asmtp001.me.com> for alpine-aports@lists.alpinelinux.org; Sat, 16 Jan 2016 09:03:22 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-01-16_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=4 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1601160159 From: Ben Allen To: alpine-aports@lists.alpinelinux.org Cc: Ben Allen Subject: [alpine-aports] [PATCH 2/2] testing/virtualbox-guest-modules: new aport Date: Sat, 16 Jan 2016 09:02:53 +0000 Message-id: <1452934973-26516-2-git-send-email-bensallen@me.com> X-Mailer: git-send-email 2.7.0 In-reply-to: <1452934973-26516-1-git-send-email-bensallen@me.com> References: <1452934973-26516-1-git-send-email-bensallen@me.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: - Virtualbox Guest Additions kernel modules: vboxguest and vboxsf. --- .../10-vboxguest-Makefile.patch | 11 ++++ testing/virtualbox-guest-modules/APKBUILD | 71 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 testing/virtualbox-guest-modules/10-vboxguest-Makefile.patch create mode 100644 testing/virtualbox-guest-modules/APKBUILD diff --git a/testing/virtualbox-guest-modules/10-vboxguest-Makefile.patch b/testing/virtualbox-guest-modules/10-vboxguest-Makefile.patch new file mode 100644 index 0000000..2e1b591 --- /dev/null +++ b/testing/virtualbox-guest-modules/10-vboxguest-Makefile.patch @@ -0,0 +1,11 @@ +--- VirtualBox-5.0.12/vboxguest/Makefile.orig ++++ VirtualBox-5.0.12/vboxguest/Makefile +@@ -108,7 +108,7 @@ + + MOD_DEFS = -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST \ + -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST \ +- -DVBOX_WITH_HGCM ++ -DVBOX_WITH_HGCM -DLOG_USE_C99 + ifeq ($(BUILD_TARGET_ARCH),amd64) + MOD_DEFS += -DRT_ARCH_AMD64 + else diff --git a/testing/virtualbox-guest-modules/APKBUILD b/testing/virtualbox-guest-modules/APKBUILD new file mode 100644 index 0000000..3449bd5 --- /dev/null +++ b/testing/virtualbox-guest-modules/APKBUILD @@ -0,0 +1,71 @@ +# Maintainer: +# Contributor: Ben Allen + +_flavor=${FLAVOR:-grsec} +_kpkg=linux-$_flavor +_kver=4.1.15 +_kpkgrel=4 + +# when chaning _ver we *must* bump _mypkgrel +_ver=5.0.12 +_mypkgrel=0 +_name=virtualbox-guest-modules + +# verify the kernel version before entering chroot +_kapkbuild=../../linux-${_flavor}/APKBUILD +if [ -f $_kapkbuild ]; then + . $_kapkbuild + pkgname=$_name-$_flavor + [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver" + [ "$_kpkgrel" != "$pkgrel" ] && die "please update _kpkgrel to $pkgrel" +fi + +_kpkgver="$_kver-r$_kpkgrel" +_abi_release=${_kver}-${_kpkgrel}-${_flavor} + +pkgname=${_name}-${_flavor} +pkgver=$_kver +pkgrel=$(($_kpkgrel + $_mypkgrel)) +pkgdesc="VirtualBox Additions kernel modules for $_flavor " +arch='x86_64' +url='http://virtualbox.org' +license="GPL custom" +makedepends="linux-grsec-dev sed" +source="http://download.virtualbox.org/virtualbox/$_ver/VirtualBox-$_ver.tar.bz2 + 10-vboxguest-Makefile.patch" + +_builddir="$srcdir"/VirtualBox-$_ver + +prepare() { + cd "$_builddir" + $_builddir/src/VBox/Additions/linux/export_modules "$_builddir/vbox-kmod.tar.gz" + tar -xf "$_builddir/vbox-kmod.tar.gz" + local i + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + # Build Kernel Modules + make KERN_DIR=/lib/modules/${_abi_release}/build +} + +package() { + cd "$_builddir" + local module= + for module in vboxsf vboxguest; do + install -v -D -m644 ${module}.ko \ + "$pkgdir/lib/modules/${_abi_release}/misc/${module}.ko" + done +} + +md5sums="5912835882ef547e0559c7e73bc85828 VirtualBox-5.0.12.tar.bz2 +34c8e3cb497d86be4281dcd62b3b3b4f 10-vboxguest-Makefile.patch" +sha256sums="de0362b1d404d1ca0298db1984acb6f0f1c6210313aeb744fea345ad9201e86e VirtualBox-5.0.12.tar.bz2 +440a4c15e7de4ad9087fedc64c045c6a28f31c59c787ad7a8a34ea65b72f8499 10-vboxguest-Makefile.patch" +sha512sums="eef01d1a5121905d2fbfcd48081f18db06433187bfbfea6a006b3adea11cad8c8351025fd19fa115c132231592330b17bfeba033a3a168f3064176a3f7586d7a VirtualBox-5.0.12.tar.bz2 +38f774b8b2242687dc6327bd4c2fc6951207758fb2e25dd46550861c09a3f2b8efad1a8414529146fbbb8a89cf2eb3ad44b00fbdbbeafd3f8c69ba4cb91decf0 10-vboxguest-Makefile.patch" -- 2.7.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---