| 1 | # $Id$ |
|---|
| 2 | # |
|---|
| 3 | # Main configuration file for project-builder.org |
|---|
| 4 | # |
|---|
| 5 | |
|---|
| 6 | # |
|---|
| 7 | # Define Operating systems |
|---|
| 8 | # |
|---|
| 9 | |
|---|
| 10 | # |
|---|
| 11 | # For the following keys osrelfile and osrelambfile: |
|---|
| 12 | # The left member is the key that will be used overall as the OS name |
|---|
| 13 | # The right member is the name of the file that has to be looked at to get OS info |
|---|
| 14 | # |
|---|
| 15 | # It should be noted that the list of all OS is the result of gathering |
|---|
| 16 | # all the keys from osrelfile and osrelambfile, and the values of osrelambfile |
|---|
| 17 | # |
|---|
| 18 | |
|---|
| 19 | # |
|---|
| 20 | # The following conf info are for pb_distro_get (man ProjectBuilder::Distribution) |
|---|
| 21 | # |
|---|
| 22 | # Those definitions are non-ambiguous (the file only exists for that OS) |
|---|
| 23 | # |
|---|
| 24 | # Tested |
|---|
| 25 | # |
|---|
| 26 | # Gentoo >= 1.6 |
|---|
| 27 | osrelfile gentoo = /etc/gentoo-release |
|---|
| 28 | |
|---|
| 29 | # Slackware >= 10.2 |
|---|
| 30 | osrelfile slackware = /etc/slackware-version |
|---|
| 31 | |
|---|
| 32 | # Mandriva >=2006.0 |
|---|
| 33 | osrelfile mandriva = /etc/mandriva-release |
|---|
| 34 | |
|---|
| 35 | # Mandrake = 10.2 |
|---|
| 36 | osrelfile mandrakelinux = /etc/mandrakelinux-release |
|---|
| 37 | |
|---|
| 38 | # Fedora >= 4 |
|---|
| 39 | osrelfile fedora = /etc/fedora-release |
|---|
| 40 | |
|---|
| 41 | # VMWare >= 3 |
|---|
| 42 | osrelfile vmware = /etc/vmware-release |
|---|
| 43 | |
|---|
| 44 | # SLES - Doesn't exist as of 10 |
|---|
| 45 | osrelfile sles = /etc/sles-release |
|---|
| 46 | |
|---|
| 47 | # Asianux >= 2.2 |
|---|
| 48 | osrelfile asianux = /etc/asianux-release |
|---|
| 49 | |
|---|
| 50 | # Solaris 10 |
|---|
| 51 | osrelfile solaris = /etc/release |
|---|
| 52 | |
|---|
| 53 | # |
|---|
| 54 | # Untested |
|---|
| 55 | # |
|---|
| 56 | osrelfile knoppix = /etc/knoppix_version |
|---|
| 57 | osrelfile yellowdog = /etc/yellowdog-release |
|---|
| 58 | osrelfile esmith = /etc/e-smith-release |
|---|
| 59 | osrelfile turbolinux = /etc/turbolinux-release |
|---|
| 60 | osrelfile blackcat = /etc/blackcat-release |
|---|
| 61 | osrelfile aurox = /etc/aurox-release |
|---|
| 62 | osrelfile annvix = /etc/annvix-release |
|---|
| 63 | osrelfile cobalt = /etc/cobalt-release |
|---|
| 64 | osrelfile redflag = /etc/redflag-release |
|---|
| 65 | osrelfile ark = /etc/ark-release |
|---|
| 66 | osrelfile pld = /etc/pld-release |
|---|
| 67 | osrelfile nld = /etc/nld-release |
|---|
| 68 | osrelfile lfs = /etc/lfs-release |
|---|
| 69 | osrelfile mk = /etc/mk-release |
|---|
| 70 | osrelfile conectiva = /etc/conectiva-release |
|---|
| 71 | osrelfile immunix = /etc/immunix-release |
|---|
| 72 | osrelfile tinysofa = /etc/tinysofa-release |
|---|
| 73 | osrelfile trustix = /etc/trustix-release |
|---|
| 74 | osrelfile adamantix = /etc/adamantix_version |
|---|
| 75 | osrelfile yoper = /etc/yoper-release |
|---|
| 76 | osrelfile arch = /etc/arch-release |
|---|
| 77 | osrelfile libranet = /etc/libranet_version |
|---|
| 78 | osrelfile valinux = /etc/va-release |
|---|
| 79 | osrelfile yellowdog = /etc/yellowdog-release |
|---|
| 80 | osrelfile ultrapenguin = /etc/ultrapenguin-release |
|---|
| 81 | |
|---|
| 82 | # |
|---|
| 83 | # Here are the ambiguous file association |
|---|
| 84 | # E.g. the file /etc/redhat-release is found on multiple distro such as redhat, rhel, centos, mandrake, vmware |
|---|
| 85 | # |
|---|
| 86 | |
|---|
| 87 | # Mandrake <= 10.1 |
|---|
| 88 | osrelambfile mandrake = /etc/mandrake-release |
|---|
| 89 | |
|---|
| 90 | # Debian >= 3.1 |
|---|
| 91 | osrelambfile debian = /etc/debian_version |
|---|
| 92 | |
|---|
| 93 | # SuSE >= 10.0 |
|---|
| 94 | osrelambfile suse = /etc/SuSE-release |
|---|
| 95 | |
|---|
| 96 | # RedHat >= 7.3 |
|---|
| 97 | osrelambfile redhat = /etc/redhat-release |
|---|
| 98 | |
|---|
| 99 | # LSB |
|---|
| 100 | osrelambfile lsb = /etc/lsb-release |
|---|
| 101 | |
|---|
| 102 | # |
|---|
| 103 | # Here is the association between the key and all the OS usig the same file |
|---|
| 104 | # The key mentioned here should be the same as the previous ones |
|---|
| 105 | # |
|---|
| 106 | osambiguous mandrake = mandrake,mandrakelinux |
|---|
| 107 | osambiguous debian = debian,ubuntu |
|---|
| 108 | osambiguous suse = suse,sles,opensuse |
|---|
| 109 | osambiguous redhat = redhat,rhel,centos,mandrake,vmware |
|---|
| 110 | osambiguous lsb = ubuntu,lsb |
|---|
| 111 | |
|---|
| 112 | # |
|---|
| 113 | # The next key give the Regular Expression that is used when parsing the previous file |
|---|
| 114 | # to find the version needed in it |
|---|
| 115 | # |
|---|
| 116 | osrelexpr gentoo = .* version (.+) |
|---|
| 117 | osrelexpr slackware = S[^ ]* (.+)$ |
|---|
| 118 | osrelexpr mandriva = Mandr[^ ]* [^ ]* release (.+) \( |
|---|
| 119 | osrelexpr mandrake = Mandr[^ ]* release (.+) \( |
|---|
| 120 | osrelexpr mandrakelinux = Mandrakelinux release (.+) \( |
|---|
| 121 | osrelexpr fedora = Fedora .*release (\d+) \( |
|---|
| 122 | osrelexpr vmware = VMware ESX Server (\d+) \( |
|---|
| 123 | osrelexpr rhel = Red Hat (?:Enterprise Linux|Linux Advanced Server) .*release ([0-9.]+).* \( |
|---|
| 124 | osrelexpr centos = .*CentOS .*release ([0-9]).* |
|---|
| 125 | osrelexpr redhat = Red Hat Linux release (.+) \( |
|---|
| 126 | osrelexpr sles = SUSE .* Enterprise Server (\d+) \( |
|---|
| 127 | osrelexpr suse = SUSE LINUX (\d.+) \( |
|---|
| 128 | osrelexpr opensuse = openSUSE (\d.+) \( |
|---|
| 129 | osrelexpr asianux = Asianux (?:Server|release) ([0-9]).* \( |
|---|
| 130 | osrelexpr lsb = .*[^Ubunt].*\nDISTRIB_RELEASE=(.+) |
|---|
| 131 | osrelexpr ubuntu = .*Ubuntu.*\nDISTRIB_RELEASE=(.+) |
|---|
| 132 | osrelexpr debian = (.+) |
|---|
| 133 | osrelexpr solaris = Solaris (\d+) |
|---|
| 134 | |
|---|
| 135 | # |
|---|
| 136 | # The following conf info are for pb_distro_init (man ProjectBuilder::Distribution) |
|---|
| 137 | # |
|---|
| 138 | # Ganularity is the following: |
|---|
| 139 | # |
|---|
| 140 | # ostype |
|---|
| 141 | # osfamily |
|---|
| 142 | # os |
|---|
| 143 | # os-ver |
|---|
| 144 | # os-ver-arch |
|---|
| 145 | |
|---|
| 146 | # Group OS by family to handle common actions more easily (filtering, install command, ...) |
|---|
| 147 | # Key is osname, Value is osfamily |
|---|
| 148 | osfamily debian = du |
|---|
| 149 | osfamily ubuntu = du |
|---|
| 150 | osfamily gentoo = gen |
|---|
| 151 | osfamily slackware = slack |
|---|
| 152 | osfamily suse = novell |
|---|
| 153 | osfamily opensuse = novell |
|---|
| 154 | osfamily sles = novell |
|---|
| 155 | osfamily redhat = rh |
|---|
| 156 | osfamily rhel = rh |
|---|
| 157 | osfamily fedora = rh |
|---|
| 158 | osfamily vmware = rh |
|---|
| 159 | osfamily asianux = rh |
|---|
| 160 | osfamily centos = rh |
|---|
| 161 | osfamily mandrake = md |
|---|
| 162 | osfamily mandrakelinux = md |
|---|
| 163 | osfamily mandriva = md |
|---|
| 164 | osfamily freebsd = bsd |
|---|
| 165 | osfamily solaris = sol |
|---|
| 166 | |
|---|
| 167 | # Group family by build types |
|---|
| 168 | # Key is osfamily, Value is build type |
|---|
| 169 | ostype du = deb |
|---|
| 170 | ostype slack = tgz |
|---|
| 171 | ostype gen = ebuild |
|---|
| 172 | ostype novell = rpm |
|---|
| 173 | ostype rh = rpm |
|---|
| 174 | ostype md = rpm |
|---|
| 175 | ostype bsd = port |
|---|
| 176 | ostype sol = pkg |
|---|
| 177 | |
|---|
| 178 | # From the most generic to the most specialized, in term of granularity, |
|---|
| 179 | # give the command to use to install on the OS |
|---|
| 180 | # If none is given, no install can takes place |
|---|
| 181 | # key depends on granularity, value is install command |
|---|
| 182 | |
|---|
| 183 | # Chaining the commands allow to only test for what is able to be installed, |
|---|
| 184 | # not the update of the repo which may well be unaccessible if too old |
|---|
| 185 | osupd du = sudo apt-get update ; sudo apt-get -y install |
|---|
| 186 | osupd gen = sudo emerge |
|---|
| 187 | osupd rpm = sudo yum clean all; sudo yum -y update ; sudo yum -y install |
|---|
| 188 | osupd rhel-2.1 = sudo up2date -y |
|---|
| 189 | osupd rhel-3 = sudo up2date -y |
|---|
| 190 | osupd rhel-4 = sudo up2date -y |
|---|
| 191 | osupd md = sudo urpmi.update -a ; sudo urpmi --auto |
|---|
| 192 | osupd novell = export TERM=linux ; export PATH=\$PATH:/sbin:/usr/sbin ; sudo yast2 -i |
|---|
| 193 | |
|---|
| 194 | # From the most generic to the most specialized, in term of granularity, |
|---|
| 195 | # give the suffix for the packages created |
|---|
| 196 | # If none is given, the suffix will be a concatenation of |
|---|
| 197 | # .osname and version |
|---|
| 198 | # osname being as defined upper as the keys of osrelfile and osrelambfile |
|---|
| 199 | # depends on granularity, value is install command |
|---|
| 200 | |
|---|
| 201 | ossuffix slackware = slack |
|---|
| 202 | ossuffix asianux = asx |
|---|
| 203 | ossuffix fedora = fc |
|---|
| 204 | ossuffix vmware = vmw |
|---|
| 205 | ossuffix mandrake = mdk |
|---|
| 206 | ossuffix mandriva = mdv |
|---|
| 207 | #ossuffix centos = el |
|---|
| 208 | |
|---|
| 209 | # For that OS no need to keep the version |
|---|
| 210 | # Key depends on granularity, value is boolean |
|---|
| 211 | osnover gentoo = true |
|---|
| 212 | |
|---|
| 213 | # For that OS no need to keep the . in the version release |
|---|
| 214 | # Key depends on granularity, value is boolean |
|---|
| 215 | osremovedotinver mandrake = true |
|---|
| 216 | osremovedotinver redhat = true |
|---|