summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremote/modules/vmplayer/data/bin/vmplayer8
-rw-r--r--remote/modules/vmplayer/vmplayer.build25
-rw-r--r--remote/modules/vmplayer/vmplayer.conf3
l---------remote/targets/stage32-opensuse/vmplayer1
4 files changed, 37 insertions, 0 deletions
diff --git a/remote/modules/vmplayer/data/bin/vmplayer b/remote/modules/vmplayer/data/bin/vmplayer
new file mode 100755
index 00000000..d4cd1d65
--- /dev/null
+++ b/remote/modules/vmplayer/data/bin/vmplayer
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for mod in /lib/modules/vmware/*.ko; do
+ insmod "$mod" || xmessage "Could not load kernel module $mod. vmplayer might fail."
+done
+
+/bin/vmplayer-bin $@
+
diff --git a/remote/modules/vmplayer/vmplayer.build b/remote/modules/vmplayer/vmplayer.build
new file mode 100644
index 00000000..f2400380
--- /dev/null
+++ b/remote/modules/vmplayer/vmplayer.build
@@ -0,0 +1,25 @@
+fetch_source() {
+ :
+}
+
+build() {
+ mkdir -p "$MODULE_BUILD_DIR/lib/modules/vmware"
+ mkdir -p "$MODULE_BUILD_DIR/bin"
+ cp "/usr/lib/vmware/bin/vmplayer" "$MODULE_BUILD_DIR/bin/vmplayer-bin" || perror "Could not copy vmplayer binary from /usr/lib/vmware/bin/vmplayer to build dir."
+ cd "/usr/lib/vmware/modules/source" || perror "vmplayer modules source not found. install vmplayer."
+ local tarball
+ for tarball in *.tar; do
+ pinfo "Building $tarball...."
+ tar xf "$tarball" || perror "Could not untar $tarball"
+ cd "${tarball/.tar}-only" || perror "Could not cd to extracted $tarball (tried ${tarball/.tar}-only)"
+ make LINUXINCLUDE="$MODULE_DIR/../kernel/ksrc/usr/include" || perror "Could not build kernel module $tarball"
+ cp "${tarball/.tar}.ko" "$MODULE_BUILD_DIR/lib/modules/vmware/" || perror "Could not copy ${tarball/.tar}.ko to $MODULE_BUILD_DIR/lib/modules/vmware/"
+ cd -
+ done
+ cd -
+}
+
+post_copy() {
+ :
+}
+
diff --git a/remote/modules/vmplayer/vmplayer.conf b/remote/modules/vmplayer/vmplayer.conf
new file mode 100644
index 00000000..b7582397
--- /dev/null
+++ b/remote/modules/vmplayer/vmplayer.conf
@@ -0,0 +1,3 @@
+REQUIRED_BINARIES="vmplayer-bin"
+REQUIRED_SYSTEM_FILES=""
+REQUIRED_DIRECTORIES="/lib"
diff --git a/remote/targets/stage32-opensuse/vmplayer b/remote/targets/stage32-opensuse/vmplayer
new file mode 120000
index 00000000..9303aa6a
--- /dev/null
+++ b/remote/targets/stage32-opensuse/vmplayer
@@ -0,0 +1 @@
+../../modules/vmplayer \ No newline at end of file