Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6bf5b1c6ed5fde2db9355f774532fecf02647934
commit 6bf5b1c6ed5fde2db9355f774532fecf02647934 Author: crazy <[email protected]> Date: Fri Jun 17 13:57:17 2016 +0200 virtualbox-modules-5.0.22-1-x86_64 * Version bump * added the gentoo script to generate the tarball * ( no need to wait for gentoo folks to do that ) * added a HOWTO update the tarball on a new version in FB diff --git a/source/apps-extra/virtualbox-modules/FrugalBuild b/source/apps-extra/virtualbox-modules/FrugalBuild index 6ad7830..566a159 100644 --- a/source/apps-extra/virtualbox-modules/FrugalBuild +++ b/source/apps-extra/virtualbox-modules/FrugalBuild @@ -1,9 +1,15 @@ # Compiling Time: 0.03 SBU # Maintainer: Marius Cirsta <[email protected]> +## added script from gentoo to create the tarball +## on a new version get the amd64.run file.. +## run ./create_vbox_modules_tarball.sh the_file +## upload the tarbal on genesis +## done + pkgname=virtualbox-modules -pkgver=5.0.20 -pkgrel=6 +pkgver=5.0.22 +pkgrel=1 pkgdesc="Kernel modules for VirtualBox" url="http://www.virtualbox.org" _F_kernelmod_scriptlet="$pkgname.install" @@ -11,9 +17,9 @@ groups=('apps-extra') archs=('i686' 'x86_64') license=('GPL-2') up2date="lynx -dump http://download.virtualbox.org/virtualbox/LATEST.TXT | head -n 1" -source=(http://dev.gentoo.org/~polynomial-c/virtualbox/vbox-kernel-module-src-${pkgver}.tar.xz $pkgname-depmod.patch $pkgname.install) +source=(http://ftp.frugalware.org/pub/other/sources/virtualbox/vbox-kernel-module-src-${pkgver}.tar.xz $pkgname-depmod.patch $pkgname.install) Finclude kernel-module -sha1sums=('d42b6690d7d4103135750b1ffb4467c529198a6e' \ +sha1sums=('492f077be6eb4ea6e0acc44576157fadf72d033b' \ '8c342e7068a235e44ec6cae33d26e3b6a27bafe4' \ 'e3aa128d61ff9e65ab813cc0f25c53840c458cb4') diff --git a/source/apps-extra/virtualbox-modules/create_vbox_modules_tarball.sh b/source/apps-extra/virtualbox-modules/create_vbox_modules_tarball.sh new file mode 100755 index 0000000..476ae56 --- /dev/null +++ b/source/apps-extra/virtualbox-modules/create_vbox_modules_tarball.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Create a virtualbox modules tarball from a VirtualBox binary package. +# We cannot download the package by this script because of the unpredictable +# build number being in the filename. +# +# usage: create_vbox_modules_tarball.sh VirtualBox-4.1.18-78361-Linux_amd64.run + +[ -f "$1" ] || exit 1 + +VBOX_PACKAGE="$1" +VERSION_SUFFIX="" + +if [[ ${VBOX_PACKAGE} = *_BETA* ]] || [[ ${VBOX_PACKAGE} = *_RC* ]] ; then + VERSION_SUFFIX="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-[[:digit:]\.]\+\(_[[:alpha:]]\+[[:digit:]]\).*@\L\1@')" +fi + +VBOX_VER="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-\([[:digit:]\.]\+\).*@\1@')${VERSION_SUFFIX}" + + +sh ${VBOX_PACKAGE} --noexec --keep --nox11 || exit 2 +cd install || exit 3 +tar -xaf VirtualBox.tar.bz2 || exit 4 +cd src/vboxhost || exit 5 +tar -cvJf ../../../vbox-kernel-module-src-${VBOX_VER}.tar.xz . || exit 6 +cd ../../.. && rm install -rf + +exit 0 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
