summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmplayer/vmplayer.build
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/vmplayer/vmplayer.build')
-rw-r--r--remote/modules/vmplayer/vmplayer.build25
1 files changed, 25 insertions, 0 deletions
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() {
+ :
+}
+