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