3 // this class will provide OS knowledge - though how i have no idea yet
8 $knownOS = getKnownOSList();
15 function getRepoTypeForOS($os)
20 function getRepoTypes()
28 function getKnownOSList()
31 $kos["repotype"]["yum"] = "Yellowdog Updater Modified";
32 $kos["repotype"]["apt"] = "APT";
35 $kos["repotype"]["yum"][0] = "baseurl";
36 $kos["repotype"]["yum"][1] = "mirrorlist";
37 $kos["repotype"]["apt"][0] = "baseurl";
40 $kos["os"]["short"]["fedora"] = "Fedora";
41 $kos["os"]["short"]["debian"] = "Debian";
42 $kos["os"]["short"]["redhat"] = "RedHat";
43 $kos["os"]["short"]["ubuntu"] = "Ubuntu";
44 $kos["os"]["short"]["centos"] = "CentOS";
45 $kos["os"]["fedora"]["long"] = "Fedora";
46 $kos["os"]["debian"]["long"] = "Debian";
47 $kos["os"]["redhat"]["long"] = "RedHat Enterprise Linux";
48 $kos["os"]["ubuntu"]["long"] = "Ubuntu";
49 $kos["os"]["centos"]["long"] = "Community Enterprise OS";
53 // TODO uncomment these ones out of testing
54 $kos["apt"]["hardy"] = "Hardy Heron (8.04 LTS)";
55 $kos["apt"]["karmic"] = "Karmic Koala (9.10)";
56 $kos["apt"]["lucid"] = "Lucid Lynx (10.04 LTS)";
57 $kos["apt"]["maverick"] = "Maverick Meerkat (10.10)";
58 $kos["apt"]["natty"] = "Natty Narwhal (11.04)";
59 $kos["apt"]["oneiric"] = "Oneiric Ocelot (11.10)";
60 $kos["apt"]["lenny"] = "Debian Lenny";
61 $kos["apt"]["sid"] = "Debian Sid";
62 $kos["apt"]["squeeze"] = "Debian Squeeze";
63 $kos["apt"]["wheezy"] = "Debian Wheezy";
64 $kos["apt"]["stable"] = "Debian Stable";
65 $kos["apt"]["unstable"] = "Debian Unstable";
72 $kos["os"]["Fedora"]["repotype"] = "yum";
73 $kos["os"]["Debian"]["repotype"] = "apt";
74 $kos["os"]["RedHat"]["repotype"] = "yum";
75 $kos["os"]["Ubuntu"]["repotype"] = "apt";
76 $kos["os"]["CentOS"]["repotype"] = "yum";
79 $kos["arch"]["intel32"] = "i386";
80 $kos["arch"]["amdcrazy"] = "i586";
81 $kos["arch"]["amd64"] = "x86_64";
82 $kos["arch"]["amd64_2"] = "amd64";
86 $kos["pkgarch"]["i386"] = "i386";
87 $kos["pkgarch"]["x86_64"] = "x86_64";
88 $kos["pkgarch"]["noarch"] = "noarch";
91 $kos["pkg"]["rpm"] = "RPM";
92 $kos["pkg"]["deb"] = "DEB";