aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-07-02 15:54:34 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-07-02 15:55:51 +0200
commit96ca18de5be1e6116e4ef0fe6bc8c4ff452f4f41 (patch)
treeaacef3cce922a5f9fa8a23eaccb8ac375813881c /main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch
parenteec2f1c7b69e668c82a014c4454c24de18c5cd68 (diff)
downloadaports-96ca18de5be1e6116e4ef0fe6bc8c4ff452f4f41.tar.bz2
aports-96ca18de5be1e6116e4ef0fe6bc8c4ff452f4f41.tar.xz
main/open-vm-tools: recognize alpine linux
ref #1221
Diffstat (limited to 'main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch')
-rw-r--r--main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch b/main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch
new file mode 100644
index 0000000000..b713137126
--- /dev/null
+++ b/main/open-vm-tools/0001-lib-misc-Recognize-Alpine-Linux.patch
@@ -0,0 +1,46 @@
+From 70438337a96f53019bfb3b5b928d9a9ab8067d64 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 2 Jul 2012 15:48:35 +0200
+Subject: [PATCH] lib/misc: Recognize Alpine Linux
+
+---
+ lib/include/guest_os.h | 1 +
+ lib/misc/hostinfoPosix.c | 3 +++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/lib/include/guest_os.h b/open-vm-tools/lib/include/guest_os.h
+index ffced6d..49f30eb 100644
+--- a/lib/include/guest_os.h
++++ b/lib/include/guest_os.h
+@@ -152,6 +152,7 @@ typedef enum GuestOSFamilyType {
+ #define STR_OS_ESX_5 "VMware ESX 5"
+
+ /* Linux */
++#define STR_OS_ALPINE "Alpine"
+ #define STR_OS_ANNVIX "Annvix"
+ #define STR_OS_ARCH "Arch"
+ #define STR_OS_ARKLINUX "Arklinux"
+diff --git a/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c
+index 8fa18cc..9874c2a 100644
+--- a/lib/misc/hostinfoPosix.c
++++ b/lib/misc/hostinfoPosix.c
+@@ -185,6 +185,7 @@ static const DistroInfo distroArray[] = {
+ {"Gentoo", "/etc/gentoo-release"},
+ {"Novell", "/etc/nld-release"},
+ {"Ubuntu", "/etc/lsb-release"},
++ {"Alpine", "/etc/alpine-release"},
+ {"Annvix", "/etc/annvix-release"},
+ {"Arch", "/etc/arch-release"},
+ {"Arklinux", "/etc/arklinux-release"},
+@@ -545,6 +546,8 @@ HostinfoGetOSShortName(char *distro, // IN: full distro name
+ Str_Strcpy(distroShort, STR_OS_TURBO, distroShortSize);
+ } else if (strstr(distroLower, "sun")) {
+ Str_Strcpy(distroShort, STR_OS_SUN_DESK, distroShortSize);
++ } else if (strstr(distroLower, "alpine")) {
++ Str_Strcpy(distroShort, STR_OS_ALPINE, distroShortSize);
+ } else if (strstr(distroLower, "annvix")) {
+ Str_Strcpy(distroShort, STR_OS_ANNVIX, distroShortSize);
+ } else if (strstr(distroLower, "arch")) {
+--
+1.7.11.1
+