diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-11 22:55:35 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:55:35 +0200 |
commit | fbf95fdee481ac31ec62ab8cd2a9d87f738485b4 (patch) | |
tree | 9ad5890cdc1d7760dc46adcc973f3531cc239634 /system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh | |
parent | 2057932eaf45e2ad7a4270dec79799237284ee97 (diff) |
system/virtualbox-kernel-addons: Added to 12.1 repository
Diffstat (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh')
-rw-r--r-- | system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh b/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh new file mode 100644 index 0000000000000..5b0843bc6ea2c --- /dev/null +++ b/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# This script helps you to make the source package +# of the virtualbox guest additions kernel modules. +# IMPORTANT: The virtualbox-ose-addons version you want to use +# must already be installed! + +# Based on the ffmpeg-mksrctarball.sh from the SlackBuilds.org repository + +set -e + +PRGNAM=virtualbox-kernel-addons +VERSION=$(VBoxControl --help 2>/dev/null | grep OSE | cut -d " " -f 9 | cut -d "_" -f 1) + +mkdir $PRGNAM + +echo "--> Copying sourcecode from /usr/src" +cp -rf /usr/src/vboxadd-$VERSION $PRGNAM/vboxadd +cp -rf /usr/src/vboxvfs-$VERSION $PRGNAM/vboxvfs + +echo "--> Making the sourcecode tarball: $PRGNAM-src-$VERSION.tar.bz2 " +tar -c $PRGNAM/ | bzip2 > $PRGNAM-$VERSION.tar.bz2 + +echo "--> Erasing the sourcecode directory: $PRGNAM/" +rm -rf $PRGNAM/ + +echo "--> Sourcecode tarball for $PRGNAM: $PRGNAM-$VERSION.tar.bz2" |