The attached patch adds Sabayon Linux to the list of known distros. It
is based on current SVN trunk.
Please also find some *reverse-engineered* icons (I couldn't find icon
templates).

Regards,
-- 
Fabio Erculiani
http://www.sabayon.org
http://www.gentoo.org
Index: include/VBox/ostypes.h
===================================================================
--- include/VBox/ostypes.h	(revisione 26319)
+++ include/VBox/ostypes.h	(copia locale)
@@ -110,6 +110,8 @@
     VBOXOSTYPE_Solaris_x64      = 0x80100,
     VBOXOSTYPE_OpenSolaris      = 0x81000,
     VBOXOSTYPE_OpenSolaris_x64  = 0x81100,
+    VBOXOSTYPE_Sabayon          = 0x82000,
+    VBOXOSTYPE_Sabayon_x64      = 0x82100,
     VBOXOSTYPE_L4               = 0x90000,
     VBOXOSTYPE_QNX              = 0xA0000,
     /** The usual 32-bit hack. */
Index: src/VBox/Main/Global.cpp
===================================================================
--- src/VBox/Main/Global.cpp	(revisione 26319)
+++ src/VBox/Main/Global.cpp	(copia locale)
@@ -109,6 +109,10 @@
       VBOXOSTYPE_RedHat,          VBOXOSHINT_NONE, 384,  12,  8 * _1K, NetworkAdapterType_Am79C973, 0 },
     { "Linux",   "Linux",             SchemaDefs_OSTypeId_RedHat_64,       "Red Hat (64 bit)",
       VBOXOSTYPE_RedHat_x64,      VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC,  384,  12,  8 * _1K, NetworkAdapterType_I82540EM, 0 },
+    { "Linux",   "Linux",             SchemaDefs_OSTypeId_Sabayon,          "Sabayon",
+      VBOXOSTYPE_Sabayon,          VBOXOSHINT_NONE, 256,  12,  8 * _1K, NetworkAdapterType_Am79C973, 0 },
+    { "Linux",   "Linux",             SchemaDefs_OSTypeId_Sabayon_64,       "Sabayon (64 bit)",
+      VBOXOSTYPE_Sabayon_x64,      VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC,  256,  12,  8 * _1K, NetworkAdapterType_I82540EM, 0 },
     { "Linux",   "Linux",             SchemaDefs_OSTypeId_Turbolinux,      "Turbolinux",
       VBOXOSTYPE_Turbolinux,      VBOXOSHINT_NONE, 384,  12,  8 * _1K, NetworkAdapterType_Am79C973, 0 },
     { "Linux",   "Linux",             SchemaDefs_OSTypeId_Ubuntu,          "Ubuntu",
Index: src/VBox/Main/xml/VirtualBox-settings-common.xsd
===================================================================
--- src/VBox/Main/xml/VirtualBox-settings-common.xsd	(revisione 26319)
+++ src/VBox/Main/xml/VirtualBox-settings-common.xsd	(copia locale)
@@ -181,6 +181,8 @@
     <xsd:enumeration value="Fedora_64"/>
     <xsd:enumeration value="Gentoo"/>
     <xsd:enumeration value="Gentoo_64"/>
+    <xsd:enumeration value="Sabayon"/>
+    <xsd:enumeration value="Sabayon_64"/>
     <xsd:enumeration value="Mandriva"/>
     <xsd:enumeration value="Mandriva_64"/>
     <xsd:enumeration value="RedHat"/>
Index: src/VBox/Main/xml/Settings.cpp
===================================================================
--- src/VBox/Main/xml/Settings.cpp	(revisione 26319)
+++ src/VBox/Main/xml/Settings.cpp	(copia locale)
@@ -2725,6 +2725,7 @@
     else if (str == "opensuse") str = "OpenSUSE";
     else if (str == "fedoracore") str = "Fedora";
     else if (str == "gentoo") str = "Gentoo";
+    else if (str == "sabayon") str = "Sabayon";
     else if (str == "mandriva") str = "Mandriva";
     else if (str == "redhat") str = "RedHat";
     else if (str == "ubuntu") str = "Ubuntu";
Index: src/VBox/Main/xml/SettingsConverter.xsl
===================================================================
--- src/VBox/Main/xml/SettingsConverter.xsl	(revisione 26319)
+++ src/VBox/Main/xml/SettingsConverter.xsl	(copia locale)
@@ -756,6 +756,7 @@
         <xsl:when test="@OSType='opensuse'">OpenSUSE</xsl:when>
         <xsl:when test="@OSType='fedoracore'">Fedora</xsl:when>
         <xsl:when test="@OSType='gentoo'">Gentoo</xsl:when>
+        <xsl:when test="@OSType='sabayon'">Sabayon</xsl:when>
         <xsl:when test="@OSType='mandriva'">Mandriva</xsl:when>
         <xsl:when test="@OSType='redhat'">RedHat</xsl:when>
         <xsl:when test="@OSType='ubuntu'">Ubuntu</xsl:when>
Index: src/VBox/Installer/linux/VBoxSysInfo.sh
===================================================================
--- src/VBox/Installer/linux/VBoxSysInfo.sh	(revisione 26319)
+++ src/VBox/Installer/linux/VBoxSysInfo.sh	(copia locale)
@@ -75,6 +75,11 @@
         # Gentoo-based
         release=`cat /etc/gentoo-release | sed -e 's/[A-Za-z ]* release //'`
         print_linux_info "Gentoo" $release
+    elif [ -r /etc/sabayon-release ]
+    then
+        # Sabayon
+        release=`cat /etc/sabayon-release | sed -e 's/Sabayon Linux //'`
+        print_linux_info "Sabayon Linux" $release
     elif [ -r /etc/slackware-version ]
     then
         # Slackware
Index: src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
===================================================================
--- src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp	(revisione 26319)
+++ src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp	(copia locale)
@@ -4668,6 +4668,8 @@
         {"Fedora_64",       ":/os_fedora_64.png"},
         {"Gentoo",          ":/os_gentoo.png"},
         {"Gentoo_64",       ":/os_gentoo_64.png"},
+        {"Sabayon",          ":/os_sabayon.png"},
+        {"Sabayon_64",       ":/os_sabayon_64.png"},
         {"Mandriva",        ":/os_mandriva.png"},
         {"Mandriva_64",     ":/os_mandriva_64.png"},
         {"RedHat",          ":/os_redhat.png"},

<<attachment: os_sabayon.png>>

<<attachment: os_sabayon_64.png>>

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to