Permalink
Browse files

Add trueos-meta-virtualboxguest & vmwareguest packages

This will allow guest additions to be installed at install time, for TrueOS
systems
  • Loading branch information...
1 parent d9e2544 commit 451fc9443f51c74b698a4956084c578a1899dd7f @kmoore134 kmoore134 committed Jun 26, 2013
@@ -0,0 +1,22 @@
+# New ports collection makefile for: trueos-meta-virtualboxguest
+#
+# $FreeBSD$
+#
+
+PORTNAME= trueos-meta-virtualboxguest
+PORTVERSION= CHGVERSION
+CATEGORIES= misc
+MASTER_SITES= # empty
+DISTFILES= # none
+
+MAINTAINER= kris@pcbsd.org
+COMMENT= The meta-port trueos-meta-virtualboxguest
+
+RUN_DEPENDS= virtualbox-ose-additions>=0:${PORTSDIR}/emulators/virtualbox-ose-additions
+
+NO_BUILD= yes
+
+do-install:
+ ${DO_NADA}
+
+.include <bsd.port.mk>
@@ -0,0 +1,3 @@
+The meta-port for TrueOS meta-pkg virtualboxguest
+
+WWW: http://www.pcbsd.org
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+PREFIX=${PKG_PREFIX-/usr/local}
+
+if [ "$2" != "POST-INSTALL" ] ; then
+ exit 0
+fi
+
+# Enable loading the vboxguest binary driver
+grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxguest_load="YES"' >>/boot/loader.conf
+fi
+# Enable loading the vboxvideo binary driver
+grep '^vboxvideo_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxvideo_load="YES"' >>/boot/loader.conf
+fi
+
+exit 0
@@ -0,0 +1,21 @@
+# New ports collection makefile for: trueos-meta-vmwareguest
+#
+# $FreeBSD$
+#
+
+PORTNAME= trueos-meta-vmwareguest
+PORTVERSION= CHGVERSION
+CATEGORIES= misc
+MASTER_SITES= # empty
+DISTFILES= # none
+
+MAINTAINER= kris@pcbsd.org
+COMMENT= The meta-port trueos-meta-vmwareguest
+
+RUN_DEPENDS= open-vm-tools-nox11>=0:${PORTSDIR}/emulators/open-vm-tools-nox11
+NO_BUILD= yes
+
+do-install:
+ ${DO_NADA}
+
+.include <bsd.port.mk>
@@ -0,0 +1,3 @@
+The meta-port for TrueOS meta-pkg vmwareguest
+
+WWW: http://www.pcbsd.org
@@ -0,0 +1 @@
+The Open Virtual Machine Tools for VMware guests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+Virtualization
@@ -0,0 +1 @@
+trueos-meta-vmwareguest:/usr/ports/misc/trueos-meta-vmwareguest
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Enable loading the driver
+grep '^vmware_guest_vmblock_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vmware_guest_vmblock_enable="YES"' >>/etc/rc.conf
+fi
+grep '^vmware_guest_vmhgfs_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vmware_guest_vmhgfs_enable="YES"' >>/etc/rc.conf
+fi
+grep '^vmware_guest_vmmemctl_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vmware_guest_vmmemctl_enable="YES"' >>/etc/rc.conf
+fi
+grep '^vmware_guest_vmxnet_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vmware_guest_vmxnet_enable="YES"' >>/etc/rc.conf
+fi
+grep '^vmware_guestd_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vmware_guestd_enable="YES"' >>/etc/rc.conf
+fi
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Enable unloading the drivers
+grep '^vmware_guest_vmblock_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vmware_guest_vmblock_enable="YES"/d' /etc/rc.conf
+fi
+grep '^vmware_guest_vmhgfs_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vmware_guest_vmhgfs_enable="YES"/d' /etc/rc.conf
+fi
+grep '^vmware_guest_vmmemctl_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vmware_guest_vmmemctl_enable="YES"/d' /etc/rc.conf
+fi
+grep '^vmware_guest_vmxnet_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vmware_guest_vmxnet_enable="YES"/d' /etc/rc.conf
+fi
+grep '^vmware_guestd_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vmware_guestd_enable="YES"/d' /etc/rc.conf
+fi
@@ -0,0 +1 @@
+The VirtualBox OSE additions packages
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+Virtualization
@@ -0,0 +1 @@
+trueos-meta-virtualboxguest:/usr/ports/misc/trueos-meta-virtualboxguest
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Enable loading the vboxguest binary driver
+grep '^vboxguest_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxguest_enable="YES"' >>/etc/rc.conf
+fi
+grep '^vboxservice_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxservice_enable="YES"' >>/etc/rc.conf
+fi
+grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
+if [ $? -ne 0 ] ; then
+ echo 'vboxguest_load="YES"' >>/boot/loader.conf
+fi
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Enable loading the vboxguest binary driver
+grep '^vboxguest_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vboxguest_enable="YES"/d' /etc/rc.conf
+fi
+grep '^vboxservice_enable="YES"' /etc/rc.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vboxservice_enable="YES"/d' /etc/rc.conf
+fi
+grep '^vboxguest_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+ sed -i .bak '/vboxguest_load="YES"/d' /boot/loader.conf
+fi
@@ -158,6 +158,18 @@ share/pcbsd/metaset/trueos/VirtualBox/pkg-parent
share/pcbsd/metaset/trueos/VirtualBox/ports-list
share/pcbsd/metaset/trueos/VirtualBox/pkg-desc
share/pcbsd/metaset/trueos/VirtualBox/pkg-icon.png
+share/pcbsd/metaset/trueos/VirtualBoxGuest/pkg-parent
+share/pcbsd/metaset/trueos/VirtualBoxGuest/ports-list
+share/pcbsd/metaset/trueos/VirtualBoxGuest/pkg-desc
+share/pcbsd/metaset/trueos/VirtualBoxGuest/pkg-icon.png
+share/pcbsd/metaset/trueos/VirtualBoxGuest/post-install.sh
+share/pcbsd/metaset/trueos/VirtualBoxGuest/post-remove.sh
+share/pcbsd/metaset/trueos/VMwareGuest/pkg-parent
+share/pcbsd/metaset/trueos/VMwareGuest/ports-list
+share/pcbsd/metaset/trueos/VMwareGuest/pkg-desc
+share/pcbsd/metaset/trueos/VMwareGuest/pkg-icon.png
+share/pcbsd/metaset/trueos/VMwareGuest/post-install.sh
+share/pcbsd/metaset/trueos/VMwareGuest/post-remove.sh
share/pcbsd/metaset/trueos/MySQL/pkg-desc
share/pcbsd/metaset/trueos/MySQL/pkg-icon.png
share/pcbsd/metaset/trueos/MySQL/ports-list
@@ -617,6 +629,8 @@ share/pbi-manager/pcbsd.rpo
@dirrm share/pcbsd/metaset/trueos/ownCloud
@dirrm share/pcbsd/metaset/trueos/NGINX
@dirrm share/pcbsd/metaset/trueos/VirtualBox
+@dirrm share/pcbsd/metaset/trueos/VirtualBoxGuest
+@dirrm share/pcbsd/metaset/trueos/VMwareGuest
@dirrm share/pcbsd/metaset/trueos/MySQL
@dirrm share/pcbsd/metaset/trueos/Languages
@dirrm share/pcbsd/metaset/trueos/Database-Servers

0 comments on commit 451fc94

Please sign in to comment.