| 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 | # LSB |
|---|
| 51 | osrelfile lsb = /etc/lsb-release |
|---|
| 52 | |
|---|
| 53 | # Solaris 10 |
|---|
| 54 | osrelfile solaris = /etc/release |
|---|
| 55 | |
|---|
| 56 | # |
|---|
| 57 | # Untested |
|---|
| 58 | # |
|---|
| 59 | osrelfile knoppix = /etc/knoppix_version |
|---|
| 60 | osrelfile yellowdog = /etc/yellowdog-release |
|---|
| 61 | osrelfile esmith = /etc/e-smith-release |
|---|
| 62 | osrelfile turbolinux = /etc/turbolinux-release |
|---|
| 63 | osrelfile blackcat = /etc/blackcat-release |
|---|
| 64 | osrelfile aurox = /etc/aurox-release |
|---|
| 65 | osrelfile annvix = /etc/annvix-release |
|---|
| 66 | osrelfile cobalt = /etc/cobalt-release |
|---|
| 67 | osrelfile redflag = /etc/redflag-release |
|---|
| 68 | osrelfile ark = /etc/ark-release |
|---|
| 69 | osrelfile pld = /etc/pld-release |
|---|
| 70 | osrelfile nld = /etc/nld-release |
|---|
| 71 | osrelfile lfs = /etc/lfs-release |
|---|
| 72 | osrelfile mk = /etc/mk-release |
|---|
| 73 | osrelfile conectiva = /etc/conectiva-release |
|---|
| 74 | osrelfile immunix = /etc/immunix-release |
|---|
| 75 | osrelfile tinysofa = /etc/tinysofa-release |
|---|
| 76 | osrelfile trustix = /etc/trustix-release |
|---|
| 77 | osrelfile adamantix = /etc/adamantix_version |
|---|
| 78 | osrelfile yoper = /etc/yoper-release |
|---|
| 79 | osrelfile arch = /etc/arch-release |
|---|
| 80 | osrelfile libranet = /etc/libranet_version |
|---|
| 81 | osrelfile valinux = /etc/va-release |
|---|
| 82 | osrelfile yellowdog = /etc/yellowdog-release |
|---|
| 83 | osrelfile ultrapenguin = /etc/ultrapenguin-release |
|---|
| 84 | |
|---|
| 85 | # |
|---|
| 86 | # Here are the ambiguous file association |
|---|
| 87 | # E.g. the file /etc/redhat-release is found on multiple distro such as redhat, rhel, centos, mandrake, vmware |
|---|
| 88 | # |
|---|
| 89 | |
|---|
| 90 | # Mandrake <= 10.1 |
|---|
| 91 | osrelambfile mandrake = /etc/mandrake-release |
|---|
| 92 | |
|---|
| 93 | # Debian >= 3.1 |
|---|
| 94 | osrelambfile debian = /etc/debian_version |
|---|
| 95 | |
|---|
| 96 | # SuSE >= 10.0 |
|---|
| 97 | osrelambfile suse = /etc/SuSE-release |
|---|
| 98 | |
|---|
| 99 | # RedHat >= 7.3 |
|---|
| 100 | osrelambfile redhat = /etc/redhat-release |
|---|
| 101 | |
|---|
| 102 | # LSB |
|---|
| 103 | osrelambfile lsb = /etc/lsb-release |
|---|
| 104 | |
|---|
| 105 | # |
|---|
| 106 | # Here is the association between the key and all the OS usig the same file |
|---|
| 107 | # The key mentioned here should be the same as the previous ones |
|---|
| 108 | # |
|---|
| 109 | osambiguous mandrake = mandrake,mandrakelinux |
|---|
| 110 | osambiguous debian = debian,ubuntu |
|---|
| 111 | osambiguous suse = suse,sles,opensuse |
|---|
| 112 | osambiguous redhat = redhat,rhel,centos,mandrake,vmware |
|---|
| 113 | osambiguous lsb = ubuntu,lsb |
|---|
| 114 | |
|---|
| 115 | # |
|---|
| 116 | # The next key give the Regular Expression that is used when parsing the previous file |
|---|
| 117 | # to find the version needed in it |
|---|
| 118 | # |
|---|
| 119 | osrelexpr gentoo = .* version (.+) |
|---|
| 120 | osrelexpr slackware = S[^ ]* (.+)$ |
|---|
| 121 | osrelexpr mandriva = Mandr[^ ]* [^ ]* release (.+) \( |
|---|
| 122 | osrelexpr mandrake = Mandr[^ ]* release (.+) \( |
|---|
| 123 | osrelexpr mandrakelinux = Mandrakelinux release (.+) \( |
|---|
| 124 | osrelexpr fedora = Fedora .*release (\d+) \( |
|---|
| 125 | osrelexpr vmware = VMware ESX Server (\d+) \( |
|---|
| 126 | osrelexpr rhel = Red Hat (?:Enterprise Linux|Linux Advanced Server) .*release ([0-9.]+).* \( |
|---|
| 127 | osrelexpr centos = .*CentOS .*release ([0-9]).* |
|---|
| 128 | osrelexpr redhat = Red Hat Linux release (.+) \( |
|---|
| 129 | osrelexpr sles = SUSE .* Enterprise Server (\d+) \( |
|---|
| 130 | osrelexpr suse = SUSE LINUX (\d.+) \( |
|---|
| 131 | osrelexpr opensuse = openSUSE (\d.+) \( |
|---|
| 132 | osrelexpr asianux = Asianux (?:Server|release) ([0-9]).* \( |
|---|
| 133 | osrelexpr lsb = .*\nDISTRIB_ID=LSBSI\nDISTRIB_RELEASE=(.+) |
|---|
| 134 | osrelexpr ubuntu = .*Ubuntu.*\nDISTRIB_RELEASE=(.+) |
|---|
| 135 | osrelexpr debian = (.+) |
|---|
| 136 | osrelexpr solaris = Solaris (\d+) |
|---|
| 137 | |
|---|
| 138 | # |
|---|
| 139 | # The following conf info are for pb_distro_init (man ProjectBuilder::Distribution) |
|---|
| 140 | # |
|---|
| 141 | # Ganularity is the following: |
|---|
| 142 | # |
|---|
| 143 | # ostype |
|---|
| 144 | # osfamily |
|---|
| 145 | # os |
|---|
| 146 | # os-ver |
|---|
| 147 | # os-ver-arch |
|---|
| 148 | |
|---|
| 149 | # Group OS by family to handle common actions more easily (filtering, install command, ...) |
|---|
| 150 | # Key is osname, Value is osfamily |
|---|
| 151 | osfamily debian = du |
|---|
| 152 | osfamily ubuntu = du |
|---|
| 153 | osfamily gentoo = gen |
|---|
| 154 | osfamily slackware = slack |
|---|
| 155 | osfamily suse = novell |
|---|
| 156 | osfamily opensuse = novell |
|---|
| 157 | osfamily sles = novell |
|---|
| 158 | osfamily redhat = rh |
|---|
| 159 | osfamily rhel = rh |
|---|
| 160 | osfamily fedora = rh |
|---|
| 161 | osfamily vmware = rh |
|---|
| 162 | osfamily asianux = rh |
|---|
| 163 | osfamily centos = rh |
|---|
| 164 | osfamily mandrake = md |
|---|
| 165 | osfamily mandrakelinux = md |
|---|
| 166 | osfamily mandriva = md |
|---|
| 167 | osfamily lsb = rh |
|---|
| 168 | osfamily freebsd = bsd |
|---|
| 169 | osfamily solaris = sol |
|---|
| 170 | |
|---|
| 171 | # Group family by build types |
|---|
| 172 | # Key is osfamily, Value is build type |
|---|
| 173 | ostype du = deb |
|---|
| 174 | ostype slack = tgz |
|---|
| 175 | ostype gen = ebuild |
|---|
| 176 | ostype novell = rpm |
|---|
| 177 | ostype rh = rpm |
|---|
| 178 | ostype md = rpm |
|---|
| 179 | ostype bsd = port |
|---|
| 180 | ostype sol = pkg |
|---|
| 181 | |
|---|
| 182 | # From the most generic to the most specialized, in term of granularity, |
|---|
| 183 | # give the command to use to install on the OS |
|---|
| 184 | # If none is given, no install can takes place |
|---|
| 185 | # key depends on granularity, value is install command |
|---|
| 186 | |
|---|
| 187 | # Chaining the commands allow to only test for what is able to be installed, |
|---|
| 188 | # not the update of the repo which may well be unaccessible if too old |
|---|
| 189 | osupd du = sudo apt-get update ; sudo apt-get -y install |
|---|
| 190 | osupd gen = sudo emerge |
|---|
| 191 | osupd rpm = sudo yum clean all; sudo yum -y update ; sudo yum -y install |
|---|
| 192 | osupd rhel-2.1 = sudo up2date -y |
|---|
| 193 | osupd rhel-3 = sudo up2date -y |
|---|
| 194 | osupd rhel-4 = sudo up2date -y |
|---|
| 195 | osupd md = sudo urpmi.update -a ; sudo urpmi --auto |
|---|
| 196 | osupd novell = export TERM=linux ; export PATH=\$PATH:/sbin:/usr/sbin ; sudo yast2 -i |
|---|
| 197 | osupd opensuse = sudo zypper -n install |
|---|
| 198 | osupd sol = sudo pkgadd -d |
|---|
| 199 | osupd lsb = /bin/true |
|---|
| 200 | |
|---|
| 201 | # From the most generic to the most specialized, in term of granularity, |
|---|
| 202 | # give the suffix for the packages created |
|---|
| 203 | # If none is given, the suffix will be a concatenation of |
|---|
| 204 | # .osname and version |
|---|
| 205 | # osname being as defined upper as the keys of osrelfile and osrelambfile |
|---|
| 206 | # depends on granularity, value is install command |
|---|
| 207 | |
|---|
| 208 | ossuffix slackware = slack |
|---|
| 209 | ossuffix asianux = asx |
|---|
| 210 | ossuffix fedora = fc |
|---|
| 211 | ossuffix vmware = vmw |
|---|
| 212 | ossuffix mandrake = mdk |
|---|
| 213 | ossuffix mandriva = mdv |
|---|
| 214 | ossuffix lsb = lsb |
|---|
| 215 | #ossuffix centos = el |
|---|
| 216 | |
|---|
| 217 | # For that OS no need to keep the version |
|---|
| 218 | # Key depends on granularity, value is boolean |
|---|
| 219 | osnover gentoo = true |
|---|
| 220 | |
|---|
| 221 | # For that OS no need to keep the . in the version release |
|---|
| 222 | # Key depends on granularity, value is boolean |
|---|
| 223 | osremovedotinver mandrake = true |
|---|
| 224 | osremovedotinver redhat = true |
|---|
| 225 | |
|---|
| 226 | # These deps are needed before setupvm can be run. |
|---|
| 227 | # Install them with your distribution in VM or automatically in VE |
|---|
| 228 | osmindep default = perl,sudo,wget,tar,make,gzip |
|---|
| 229 | |
|---|
| 230 | # pb install dependencies per distro |
|---|
| 231 | # osperldep gives perl file dependecies to get from CPAN |
|---|
| 232 | # ospkgdep gives distribution package dependencies |
|---|
| 233 | # |
|---|
| 234 | # Asianux - Module-Build first for processing as needed by others |
|---|
| 235 | osperldep asianux = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 236 | ospkgdep asianux = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp |
|---|
| 237 | # Fedora - Module-Build first for processing as needed by others |
|---|
| 238 | osperldep fedora-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 239 | ospkgdep fedora-4 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp |
|---|
| 240 | osperldep fedora = |
|---|
| 241 | ospkgdep fedora-5 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 242 | ospkgdep fedora-6 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 243 | ospkgdep fedora-7 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 244 | ospkgdep fedora-8 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 245 | ospkgdep fedora-9 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 246 | ospkgdep fedora-10 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 247 | ospkgdep fedora = wget,make,fprintd-pam,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 248 | # fprintd-pam |
|---|
| 249 | # Slack - Module-Build first for processing as needed by others |
|---|
| 250 | osperldep tgz = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 251 | ospkgdep tgz = wget,make,ntp,patch |
|---|
| 252 | # RHEL |
|---|
| 253 | osperldep rhel-5 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 254 | ospkgdep rhel-5 = wget,make,ntp,patch,perl-DateManip |
|---|
| 255 | osperldep centos-5 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 256 | ospkgdep centos-5 = wget,make,ntp,patch,perl-DateManip |
|---|
| 257 | osperldep rhel-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 258 | ospkgdep rhel-4 = wget,make,ntp,patch,perl-DateManip |
|---|
| 259 | osperldep centos-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 260 | ospkgdep centos-4 = wget,make,ntp,patch,perl-DateManip |
|---|
| 261 | osperldep rhel-3 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 262 | ospkgdep rhel-3 = wget,make,ntp,patch,perl-DateManip |
|---|
| 263 | osperldep centos-3 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 264 | ospkgdep centos-3 = wget,make,ntp,patch,perl-DateManip |
|---|
| 265 | # Old RedHat - Module-Build first for processing as needed by others |
|---|
| 266 | osperldep redhat = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 267 | ospkgdep redhat = wget,make,ntp,patch |
|---|
| 268 | # Old SuSE - Module-Build first for processing as needed by others |
|---|
| 269 | osperldep suse = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 270 | ospkgdep suse = wget,make,ntp,patch |
|---|
| 271 | # New OpenSuSE - Module-Build first for processing as needed by others |
|---|
| 272 | osperldep opensuse = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 273 | ospkgdep opensuse = wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir |
|---|
| 274 | # Mdv |
|---|
| 275 | osperldep mandrake-10.1 = Date-Manip |
|---|
| 276 | ospkgdep mandrake-10.1 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail |
|---|
| 277 | osperldep md = |
|---|
| 278 | ospkgdep md = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail,perl-Date-Manip |
|---|
| 279 | # LSB |
|---|
| 280 | osperldep lsb = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 281 | ospkgdep lsb = |
|---|
| 282 | # Debian |
|---|
| 283 | osperldep debian-3.1 = File-MimeInfo,File-BaseDir |
|---|
| 284 | ospkgdep debian-3.1 = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl |
|---|
| 285 | osperldep deb = |
|---|
| 286 | ospkgdep deb = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libfile-mimeinfo-perl,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl |
|---|
| 287 | # Gentoo |
|---|
| 288 | osperldep gen = |
|---|
| 289 | ospkgdep gen = wget,ntp,make,patch,DateManip,File-MimeInfo,Mail-Sendmail |
|---|
| 290 | # Solaris - Module-Build first for processing as needed by others |
|---|
| 291 | osperldep pkg = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail |
|---|
| 292 | # Should be installaed manually first for the moment |
|---|
| 293 | #ospkgdep pkg = wget,make,perl |
|---|
| 294 | # And also need ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/sudo-1.7.2p1-sol10-sparc-local.gz ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/make-3.81-sol10-sparc-local.gz ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libintl-3.4.0-sol10-x86-local.gz ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.9.2-sol10-x86-local.gz ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz |
|---|
| 295 | |
|---|
| 296 | # Version of the perl module as found on CPAN |
|---|
| 297 | # http://search.cpan.org/CPAN/modules/by-module |
|---|
| 298 | osperlver Date-Manip = 5.54 |
|---|
| 299 | osperlver Module-Build = 0.35 |
|---|
| 300 | osperlver File-MimeInfo = 0.15 |
|---|
| 301 | osperlver File-BaseDir = 0.03 |
|---|
| 302 | osperlver Mail-Sendmail = 0.79 |
|---|
| 303 | |
|---|
| 304 | # Code name for debian/ubuntu distro |
|---|
| 305 | # used by debootstrap |
|---|
| 306 | # Cf: http://www.debian.org/releases/ |
|---|
| 307 | # and https://wiki.ubuntu.com/DevelopmentCodeNames |
|---|
| 308 | oscodename debian-3.1 = sarge |
|---|
| 309 | oscodename debian-4.0 = etch |
|---|
| 310 | oscodename debian-5.0 = lenny |
|---|
| 311 | oscodename ubuntu-6.06 = dapper |
|---|
| 312 | oscodename ubuntu-7.04 = feisty |
|---|
| 313 | oscodename ubuntu-7.10 = gutsy |
|---|
| 314 | oscodename ubuntu-8.04 = hardy |
|---|
| 315 | oscodename ubuntu-8.10 = intrepid |
|---|
| 316 | oscodename ubuntu-9.04 = jaunty |
|---|
| 317 | oscodename ubuntu-9.10 = karmic |
|---|
| 318 | oscodename ubuntu-10.04 = lucid |
|---|