# AWSTATS OPERATING SYSTEMS DATABASE
#-------------------------------------------------------
# If you want to add an OS to extend AWStats database detection capabilities,
# you must add an entry in OSSearchIDOrder, in OSHashID and in OSHashLib.
#-------------------------------------------------------
# $Revision: 1.1 $ - $Author: rizwank $ - $Date: 2005/02/12 13:11:33 $


#package AWSOS;


# OSSearchIDOrder
# This list is used to know in which order to search Operating System IDs
# (Most frequent one are first in this list to increase detect speed).
# It contains all matching criteria to search for in log fields.
# Note: OS IDs are in lower case and ' ' and '+' are changed into '_'
#-------------------------------------------------------------------------
@OSSearchIDOrder	= (
# Windows OS family
'windows[_+ ]?2005', 'windows[_+ ]nt[_+ ]6\.0',
'windows[_+ ]?2003','windows[_+ ]nt[_+ ]5\.2',	# Must be before windows_nt_5
'windows[_+ ]xp','windows[_+ ]nt[_+ ]5\.1',		# Must be before windows_nt_5
'windows[_+ ]me','win[_+ ]9x',					# Must be before windows_98
'windows[_+ ]?2000','windows[_+ ]nt[_+ ]5',
'winnt','windows[_+ \-]?nt','win32',
'win(.*)98',
'win(.*)95',
'win(.*)16','windows[_+ ]3',					# This works for windows_31 and windows_3.1
'win(.*)ce',
# Macintosh OS family
'mac[_+ ]os[_+ ]x',
'mac[_+ ]?p',									# This works for macppc and mac_ppc and mac_powerpc
'mac[_+ ]68',									# This works for mac_6800 and mac_68k
'macweb',
'macintosh',
# Unix like OS
'linux',
'aix',
'sunos',
'irix',
'osf',
'hp-ux',
'netbsd',
'bsdi',
'freebsd',
'openbsd',
'gnu',
'unix','x11',
# Other famous OS
'beos',
'os/2',
'amiga',
'atari',
'vms',
# Miscellanous OS
'cp/m',
'crayos',
'dreamcast',
'risc[_+ ]?os',
'symbian',
'webtv'
);


# OSHashID
# Each OS Search ID is associated to a string that is the AWStats id and
# also the name of icon file for this OS.
#--------------------------------------------------------------------------
%OSHashID	= (
# Windows OS family
'windows[_+ ]?2005','winlong','windows[_+ ]nt[_+ ]6\.0','winlong',
'windows[_+ ]?2003','win2003','windows[_+ ]nt[_+ ]5\.2','win2003',
'windows[_+ ]xp','winxp','windows[_+ ]nt[_+ ]5\.1','winxp',
'windows[_+ ]me','winme','win[_+ ]9x','winme',
'windows[_+ ]?2000','win2000','windows[_+ ]nt[_+ ]5','win2000',
'winnt','winnt','windows[_+ \-]?nt','winnt','win32','winnt',
'win(.*)98','win98',
'win(.*)95','win95',
'win(.*)16','win16','windows[_+ ]3','win16',
'win(.*)ce','wince',
# Macintosh OS family
'mac[_+ ]os[_+ ]x','macosx',
'mac[_+ ]?p','macintosh','mac[_+ ]68','macintosh','macweb','macintosh','macintosh','macintosh',
# Unix like OS
'linux','linux',
'aix','aix',
'sunos','sunos',
'irix','irix',
'osf','osf',
'hp-ux','hp-ux',
'netbsd','netbsd',
'bsdi','bsdi',
'freebsd','freebsd',
'openbsd','openbsd',
'gnu','gnu',
'unix','unix','x11','unix',
# Other famous OS
'beos','beos',
'os/2','os/2',
'amiga','amigaos',
'atari','atari',
'vms','vms',
# Miscellanous OS
'cp/m','cp/m',
'crayos','crayos',
'dreamcast','dreamcast',
'risc[_+ ]?os','riscos',
'symbian','symbian',
'webtv','webtv'
);

# OS name list ('os unique id in lower case','os clear text')
# Each unique ID string is associated to a label
#-----------------------------------------------------------
%OSHashLib      = (
# Windows family OS
'winlong','Windows Codename Longhorn',
'win2003','Windows 2003',
'winxp','Windows XP',
'winme','Windows Me',
'win2000','Windows 2000',
'winnt','Windows NT',
'win98','Windows 98',
'win95','Windows 95',
'win16','Windows 3.xx',
'wince','Windows CE',
# Macintosh OS
'macosx','Mac OS X',
'macintosh','Mac OS',
# Unix like OS
'linux','Linux',
'aix','Aix',
'sunos','Sun Solaris',
'irix','Irix',
'osf','OSF Unix',
'hp-ux','HP Unix',
'netbsd','NetBSD',
'bsdi','BSDi',
'freebsd','FreeBSD',
'openbsd','OpenBSD',
'gnu','GNU',
'unix','Unknown Unix system',
# Other famous OS
'beos','BeOS',
'os/2','OS/2',
'amigaos','AmigaOS',
'atari','Atari',
'vms','VMS',
# Miscellanous OS
'cp/m','CPM',
'crayos','CrayOS',
'dreamcast','Dreamcast',
'riscos','RISC OS',
'symbian','Symbian OS',
'webtv','WebTV'
);


1;


# Informations from microsoft for detecting windows version
#  Windows 95 retail, OEM     4.00.950                     7/11/95
#  Windows 95 retail SP1      4.00.950A                    7/11/95-12/31/95
#  OEM Service Release 2      4.00.1111* (4.00.950B)       8/24/96
#  OEM Service Release 2.1    4.03.1212-1214* (4.00.950B)  8/24/96-8/27/97  
#  OEM Service Release 2.5    4.03.1214* (4.00.950C)       8/24/96-11/18/97
#  Windows 98 retail, OEM     4.10.1998                    5/11/98
#  Windows 98 Second Edition  4.10.2222A                   4/23/99
#  Windows Me                 4.90.3000 
