From cd5cce6888a973a421ca22b965ee30bc8f70472b Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Thu, 1 Mar 2012 13:31:04 +0200 Subject: [PATCH] new package: add initial package 'xf86-video-virtualbox' --- .../x11/driver/xf86-video-virtualbox/install | 40 +++++++++++++++++++ .../x11/driver/xf86-video-virtualbox/meta | 37 +++++++++++++++++ .../source/41_virtualbox | 32 +++++++++++++++ .../x11/driver/xf86-video-virtualbox/unpack | 27 +++++++++++++ 4 files changed, 136 insertions(+) create mode 100755 packages/x11/driver/xf86-video-virtualbox/install create mode 100644 packages/x11/driver/xf86-video-virtualbox/meta create mode 100644 packages/x11/driver/xf86-video-virtualbox/source/41_virtualbox create mode 100755 packages/x11/driver/xf86-video-virtualbox/unpack diff --git a/packages/x11/driver/xf86-video-virtualbox/install b/packages/x11/driver/xf86-video-virtualbox/install new file mode 100755 index 0000000000..760b2106fe --- /dev/null +++ b/packages/x11/driver/xf86-video-virtualbox/install @@ -0,0 +1,40 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options + +mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers + cp -P $PKG_BUILD/lib/VBoxGuestAdditions/vboxvideo_drv_111.so $INSTALL/$XORG_PATH_MODULES/drivers/vboxvideo_drv.so +mkdir -p $INSTALL/usr/lib/dri + cp -P $PKG_BUILD/lib/VBoxOGL.so $INSTALL/usr/lib/dri/vboxvideo_dri.so +mkdir -p $INSTALL/usr/lib + cp -aP $PKG_BUILD/lib/* $INSTALL/usr/lib +mkdir -p $INSTALL/usr/sbin + chmod +x $PKG_BUILD/sbin/* + cp -a $PKG_BUILD/sbin/* $INSTALL/usr/sbin +mkdir -p $INSTALL/usr/bin + chmod +x $PKG_BUILD/bin/* + cp -aP $PKG_BUILD/bin/* $INSTALL/usr/bin + +mkdir -p $INSTALL/etc/init.d + cp -aP $PKG_DIR/source/41_virtualbox $INSTALL/etc/init.d + diff --git a/packages/x11/driver/xf86-video-virtualbox/meta b/packages/x11/driver/xf86-video-virtualbox/meta new file mode 100644 index 0000000000..1e8bf4b64d --- /dev/null +++ b/packages/x11/driver/xf86-video-virtualbox/meta @@ -0,0 +1,37 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="xf86-video-virtualbox" +PKG_VERSION="4.1.8" +PKG_REV="1" +PKG_ARCH="i386 x86_64" +PKG_LICENSE="OSS" +PKG_SITE="http://www.virtualbox.org" +PKG_URL="http://saraev.ca/${PKG_NAME}-${PKG_VERSION}-${ARCH}.tar.bz2" +# PKG_URL="${DISTRO_SRC}/${PKG_NAME}-${PKG_VERSION}-${ARCH}.tar.bz2" +PKG_DEPENDS="libXcomposite libXdamage libXfixes libXext libX11 libxcb libXau" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="x11/driver" +PKG_SHORTDESC="xf86-video-virtualbox: The Xorg driver for virtualbox video" +PKG_LONGDESC="xf86-video-virtualbox: The Xorg driver for virtualbox video" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/x11/driver/xf86-video-virtualbox/source/41_virtualbox b/packages/x11/driver/xf86-video-virtualbox/source/41_virtualbox new file mode 100644 index 0000000000..baf8615539 --- /dev/null +++ b/packages/x11/driver/xf86-video-virtualbox/source/41_virtualbox @@ -0,0 +1,32 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +# start ConsoleKit daemon +# +# runlevels: openelec + +progress "starting virtualbox guest additions" + +if [ -f /lib/modules/$(uname -r)/vboxguest/vboxvideo.ko ] ; then + modprobe vboxvideo + sh /lib/udev/xorg_start + wait_for_xorg + VBoxClient-all & +fi diff --git a/packages/x11/driver/xf86-video-virtualbox/unpack b/packages/x11/driver/xf86-video-virtualbox/unpack new file mode 100755 index 0000000000..9157df0bb4 --- /dev/null +++ b/packages/x11/driver/xf86-video-virtualbox/unpack @@ -0,0 +1,27 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir $BUILD/$PKG_NAME-$PKG_VERSION + +tar jxpf $SOURCES/$1/$PKG_NAME-$PKG_VERSION-$ARCH.tar.bz2 -C $BUILD/$PKG_NAME-$PKG_VERSION