1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Oops, add missing OpenBSD/NetBSD detection

This commit is contained in:
Andrey A. Chernov 1999-12-23 08:33:25 +00:00
parent 06818a7617
commit d25d988b67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=23869

View File

@ -1,6 +1,6 @@
--- tree.c.orig Fri Dec 17 13:15:19 1999
+++ tree.c Thu Dec 23 08:02:55 1999
@@ -781,8 +781,12 @@
+++ tree.c Thu Dec 23 11:19:15 1999
@@ -781,8 +781,16 @@
}
else if (strstr(whole, "Linux") != NULL || strstr(whole, "linux") != NULL)
*name = "Unix:Linux";
@ -8,10 +8,14 @@
- *name = "Unix:BSD";
+ else if (strstr(whole, "FreeBSD") != NULL || strstr(whole, "freebsd") != NULL)
+ *name = "Unix:FreeBSD";
+ else if (strstr(whole, "OpenBSD") != NULL || strstr(whole, "openbsd") != NULL)
+ *name = "Unix:OpenBSD";
+ else if (strstr(whole, "NetBSD") != NULL || strstr(whole, "netbsd") != NULL)
+ *name = "Unix:NetBSD";
+ else if (strstr(whole, "BSD/OS") != NULL || strstr(whole, "bsd/os") != NULL)
+ *name = "Unix:BSD/OS";
+ else if (strstr(whole, "BSD") != NULL || strstr(whole, "bsd") != NULL)
+ *name = "Unix:unkbsd";
+ *name = "Unix:Unknown BSD";
else if (strstr(whole, "SunOS") != NULL || strstr(whole, "sunos") != NULL)
*name = "Unix:SunOS";
else if (strstr(whole, "HP-UX") != NULL || strstr(whole, "HPUX") != NULL ||