eda7b96425696e19dc6af388c08ff396af9f33bf
[glcas.git] / plugins / knownos.php
1 <?php
2
3 // this class will provide OS knowledge - though how i have no idea yet
4 class GLCASKnownOS {
5         
6         function __construct()
7         {
8                 $knownOS = getKnownOSList();
9         }
10         
11         function getOSList()
12         {
13         }
14         
15         function getRepoTypeForOS($os)
16         {
17                 
18         }
19         
20         function getRepoTypes()
21         {
22                 
23         }
24         
25         public $knownOS;
26 }
27
28 function getKnownOSList()
29 {
30         // repo types
31         $kos["repotype"]["yum"] = "Yellowdog Updater Modified";
32         $kos["repotype"]["apt"] = "APT";
33
34         // repo providers
35         $kos["repotype"]["yum"][0] = "baseurl";
36         $kos["repotype"]["yum"][1] = "mirrorlist";
37         $kos["repotype"]["apt"][0] = "baseurl";
38         
39         // OS's
40         $kos["os"]["Fedora"] = "Fedora";
41         $kos["os"]["Debian"] = "Debian";
42         $kos["os"]["RedHat"] = "RedHat Enterprise Linux";
43         $kos["os"]["Ubuntu"] = "Ubuntu";
44         $kos["os"]["CentOS"] = "Community Enterprise OS";
45         
46         // Repo types per os
47         $kos["os"]["Fedora"]["repotype"] = "yum";
48         $kos["os"]["Debian"]["repotype"] = "apt";
49         $kos["os"]["RedHat"]["repotype"] = "yum";
50         $kos["os"]["Ubuntu"]["repotype"] = "apt";
51         $kos["os"]["CentOS"]["repotype"] = "yum";
52         
53         
54         
55         return $kos;
56 }
57
58 ?>