Hi everyone, I wanted to submit a patch that I worked up today that adds Fuduntu to the list of menu choices. For the moment it is basically a copy of Fedora with our logo but that could change in the future as we diverge. :)

The attached icons and patch can be re-used under the terms of the MIT license:

Copyright (c) 2012 Andrew Wyatt, Fuduntu

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


Thanks for the consideration!

-Andrew (Fewt)
diff -rupN VirtualBox-4.1.14.orig/include/VBox/ostypes.h VirtualBox-4.1.14/include/VBox/ostypes.h
--- VirtualBox-4.1.14.orig/include/VBox/ostypes.h	2012-05-12 21:07:27.110253004 -0400
+++ VirtualBox-4.1.14/include/VBox/ostypes.h	2012-05-13 08:32:36.159253875 -0400
@@ -114,6 +114,8 @@ typedef enum VBOXOSTYPE
     VBOXOSTYPE_MacOS            = 0xB0000,
     VBOXOSTYPE_MacOS_x64        = 0xB0100,
     VBOXOSTYPE_JRockitVE        = 0xC0000,
+    VBOXOSTYPE_Fuduntu       = 0xD0000,
+    VBOXOSTYPE_Fuduntu_x64   = 0xD0100,
 /** The bit number which indicates 64-bit or 32-bit. */
 #define VBOXOSTYPE_x64_BIT       8
     /** The mask which indicates 64-bit. */
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
--- VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp	2012-05-12 21:07:30.649253005 -0400
+++ VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp	2012-05-13 08:15:54.278261137 -0400
@@ -4908,6 +4908,8 @@ void VBoxGlobal::init()
         {"OpenSUSE_64",     ":/os_opensuse_64.png"},
         {"Fedora",          ":/os_fedora.png"},
         {"Fedora_64",       ":/os_fedora_64.png"},
+        {"Fuduntu",          ":/os_fuduntu.png"},
+        {"Fuduntu_64",       ":/os_fuduntu_64.png"},
         {"Gentoo",          ":/os_gentoo.png"},
         {"Gentoo_64",       ":/os_gentoo_64.png"},
         {"Mandriva",        ":/os_mandriva.png"},
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
--- VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp	2012-05-12 21:07:30.510253004 -0400
+++ VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp	2012-05-13 08:15:54.279261004 -0400
@@ -97,6 +97,8 @@ static const osTypePattern gs_OSTypePatt
     { QRegExp("(SU)|(Nov)|(SLE)", Qt::CaseInsensitive), "OpenSUSE" },
     { QRegExp("Fe.*64", Qt::CaseInsensitive), "Fedora_64" },
     { QRegExp("Fe", Qt::CaseInsensitive), "Fedora" },
+    { QRegExp("Fu.*64", Qt::CaseInsensitive), "Fuduntu_64" },
+    { QRegExp("Fu", Qt::CaseInsensitive), "Fuduntu" },
     { QRegExp("((Gen)|(Sab)).*64", Qt::CaseInsensitive), "Gentoo_64" },
     { QRegExp("(Gen)|(Sab)", Qt::CaseInsensitive), "Gentoo" },
     { QRegExp("Man.*64", Qt::CaseInsensitive), "Mandriva_64" },
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc
--- VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc	2012-05-12 21:07:30.725253003 -0400
+++ VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/VirtualBox2.qrc	2012-05-13 08:15:54.279261004 -0400
@@ -7,6 +7,8 @@
     <file alias="os_dos.png">images/os_dos.png</file>
     <file alias="os_fedora.png">images/os_fedora.png</file>
     <file alias="os_fedora_64.png">images/os_fedora_64.png</file>
+    <file alias="os_fuduntu.png">images/os_fuduntu.png</file>
+    <file alias="os_fuduntu_64.png">images/os_fuduntu_64.png</file>
     <file alias="os_freebsd.png">images/os_freebsd.png</file>
     <file alias="os_freebsd_64.png">images/os_freebsd_64.png</file>
     <file alias="os_gentoo.png">images/os_gentoo.png</file>
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Main/src-all/Global.cpp VirtualBox-4.1.14/src/VBox/Main/src-all/Global.cpp
--- VirtualBox-4.1.14.orig/src/VBox/Main/src-all/Global.cpp	2012-05-12 21:08:42.678253005 -0400
+++ VirtualBox-4.1.14/src/VBox/Main/src-all/Global.cpp	2012-05-13 08:15:54.280260878 -0400
@@ -163,6 +163,14 @@ const Global::OSType Global::sOSTypes[Sc
       VBOXOSTYPE_FedoraCore_x64,  VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
        768,  12,  8 * _1G64, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
         StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, AudioControllerType_AC97  },
+    { "Linux",   "Linux",             SchemaDefs_OSTypeId_Fuduntu,          "Fuduntu",
+      VBOXOSTYPE_Fuduntu,      VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
+       768,  12,  8 * _1G64, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
+        StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, AudioControllerType_AC97  },
+    { "Linux",   "Linux",             SchemaDefs_OSTypeId_Fuduntu_64,       "Fuduntu (64 bit)",
+      VBOXOSTYPE_Fuduntu_x64,  VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
+       768,  12,  8 * _1G64, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
+        StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, AudioControllerType_AC97  },
     { "Linux",   "Linux",             SchemaDefs_OSTypeId_Gentoo,          "Gentoo",
       VBOXOSTYPE_Gentoo,          VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
        256,  12,  8 * _1G64, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Main/src-server/ApplianceImpl.cpp VirtualBox-4.1.14/src/VBox/Main/src-server/ApplianceImpl.cpp
--- VirtualBox-4.1.14.orig/src/VBox/Main/src-server/ApplianceImpl.cpp	2012-05-12 21:08:42.129253004 -0400
+++ VirtualBox-4.1.14/src/VBox/Main/src-server/ApplianceImpl.cpp	2012-05-13 08:15:54.281260754 -0400
@@ -114,6 +114,8 @@ g_osTypes[] =
     { ovf::CIMOSType_CIMOS_Linux_2_6_x_64,                       SchemaDefs_OSTypeId_ArchLinux_64 },
     { ovf::CIMOSType_CIMOS_Linux_2_6_x,                          SchemaDefs_OSTypeId_Fedora },
     { ovf::CIMOSType_CIMOS_Linux_2_6_x_64,                       SchemaDefs_OSTypeId_Fedora_64 },
+    { ovf::CIMOSType_CIMOS_Linux_2_6_x,                          SchemaDefs_OSTypeId_Fuduntu },
+    { ovf::CIMOSType_CIMOS_Linux_2_6_x_64,                       SchemaDefs_OSTypeId_Fuduntu_64 },
     { ovf::CIMOSType_CIMOS_Linux_2_6_x,                          SchemaDefs_OSTypeId_Gentoo },
     { ovf::CIMOSType_CIMOS_Linux_2_6_x_64,                       SchemaDefs_OSTypeId_Gentoo_64 },
     { ovf::CIMOSType_CIMOS_Linux_2_6_x,                          SchemaDefs_OSTypeId_Xandros },
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Main/src-server/VirtualBoxImpl.cpp VirtualBox-4.1.14/src/VBox/Main/src-server/VirtualBoxImpl.cpp
--- VirtualBox-4.1.14.orig/src/VBox/Main/src-server/VirtualBoxImpl.cpp	2012-05-12 21:08:41.220253004 -0400
+++ VirtualBox-4.1.14/src/VBox/Main/src-server/VirtualBoxImpl.cpp	2012-05-13 08:15:54.284260396 -0400
@@ -1708,6 +1708,7 @@ STDMETHODIMP VirtualBox::GetGuestOSType(
         L"win2k8", L"Windows2008",
         L"ecs", L"OS2eCS",
         L"fedoracore", L"Fedora",
+        L"fuduntu", L"Fuduntu",
         /* the rest is covered by the case-insensitive comparison */
     };
 
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Main/xml/SettingsConverter.xsl VirtualBox-4.1.14/src/VBox/Main/xml/SettingsConverter.xsl
--- VirtualBox-4.1.14.orig/src/VBox/Main/xml/SettingsConverter.xsl	2012-05-12 21:08:43.074253005 -0400
+++ VirtualBox-4.1.14/src/VBox/Main/xml/SettingsConverter.xsl	2012-05-13 08:15:54.286260165 -0400
@@ -751,6 +751,7 @@ Value '<xsl:value-of select="@type"/>' o
         <xsl:when test="@OSType='debian'">Debian</xsl:when>
         <xsl:when test="@OSType='opensuse'">OpenSUSE</xsl:when>
         <xsl:when test="@OSType='fedoracore'">Fedora</xsl:when>
+        <xsl:when test="@OSType='fuduntu'">Fuduntu</xsl:when>
         <xsl:when test="@OSType='gentoo'">Gentoo</xsl:when>
         <xsl:when test="@OSType='mandriva'">Mandriva</xsl:when>
         <xsl:when test="@OSType='redhat'">RedHat</xsl:when>
diff -rupN VirtualBox-4.1.14.orig/src/VBox/Main/xml/VirtualBox-settings-common.xsd VirtualBox-4.1.14/src/VBox/Main/xml/VirtualBox-settings-common.xsd
--- VirtualBox-4.1.14.orig/src/VBox/Main/xml/VirtualBox-settings-common.xsd	2012-05-12 21:08:43.252253003 -0400
+++ VirtualBox-4.1.14/src/VBox/Main/xml/VirtualBox-settings-common.xsd	2012-05-13 08:15:54.287260052 -0400
@@ -177,6 +177,8 @@
     <xsd:enumeration value="OpenSUSE_64"/>
     <xsd:enumeration value="Fedora"/>
     <xsd:enumeration value="Fedora_64"/>
+    <xsd:enumeration value="Fuduntu"/>
+    <xsd:enumeration value="Fuduntu_64"/>
     <xsd:enumeration value="Gentoo"/>
     <xsd:enumeration value="Gentoo_64"/>
     <xsd:enumeration value="Mandriva"/>

<<attachment: os_fuduntu.png>>

<<attachment: os_fuduntu_64.png>>

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to