| 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 = (\d+\.\d+)
|
|---|
| 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 rhel = rhel
|
|---|
| 216 | #ossuffix centos = el
|
|---|
| 217 |
|
|---|
| 218 | # For that OS no need to keep the version
|
|---|
| 219 | # Key depends on granularity, value is boolean
|
|---|
| 220 | osnover gentoo = true
|
|---|
| 221 |
|
|---|
| 222 | # For that OS no need to keep the . in the version release
|
|---|
| 223 | # Key depends on granularity, value is boolean
|
|---|
| 224 | osremovedotinver mandrake = true
|
|---|
| 225 | osremovedotinver redhat = true
|
|---|
| 226 |
|
|---|
| 227 | # These deps are needed before setupvm|ve can be run.
|
|---|
| 228 | # Install them with your distribution in VM or automatically in VE
|
|---|
| 229 | osmindep default = perl,sudo,wget,tar,make,gzip
|
|---|
| 230 |
|
|---|
| 231 | # pb install dependencies per distro
|
|---|
| 232 | # osperldep gives perl file dependecies to get from CPAN
|
|---|
| 233 | # ospkgdep gives distribution package dependencies
|
|---|
| 234 | #
|
|---|
| 235 | # Asianux - Module-Build first for processing as needed by others
|
|---|
| 236 | osperldep asianux = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 237 | ospkgdep asianux = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
|
|---|
| 238 | # Fedora - Module-Build first for processing as needed by others
|
|---|
| 239 | osperldep fedora-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 240 | ospkgdep fedora-4 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
|
|---|
| 241 | osperldep fedora =
|
|---|
| 242 | ospkgdep fedora-5 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 243 | ospkgdep fedora-6 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 244 | ospkgdep fedora-7 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 245 | ospkgdep fedora-8 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 246 | ospkgdep fedora-9 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 247 | ospkgdep fedora-10 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 248 | ospkgdep fedora = wget,make,fprintd-pam,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 249 | # fprintd-pam
|
|---|
| 250 | # Slack - Module-Build first for processing as needed by others
|
|---|
| 251 | osperldep tgz = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 252 | ospkgdep tgz = wget,make,ntp,patch
|
|---|
| 253 | # RHEL
|
|---|
| 254 | osperldep rhel-5 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 255 | ospkgdep rhel-5 = wget,make,ntp,patch,perl-DateManip
|
|---|
| 256 | osperldep centos-5 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 257 | ospkgdep centos-5 = wget,make,ntp,patch,perl-DateManip
|
|---|
| 258 | osperldep rhel-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 259 | ospkgdep rhel-4 = wget,make,ntp,patch,perl-DateManip
|
|---|
| 260 | osperldep centos-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 261 | ospkgdep centos-4 = wget,make,ntp,patch,perl-DateManip
|
|---|
| 262 | osperldep rhel-3 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 263 | ospkgdep rhel-3 = wget,make,ntp,patch,perl-DateManip
|
|---|
| 264 | osperldep centos-3 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 265 | ospkgdep centos-3 = wget,make,ntp,patch,perl-DateManip
|
|---|
| 266 | # Old RedHat - Module-Build first for processing as needed by others
|
|---|
| 267 | osperldep redhat = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 268 | ospkgdep redhat = wget,make,ntp,patch
|
|---|
| 269 | # Old SuSE - Module-Build first for processing as needed by others
|
|---|
| 270 | osperldep suse = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 271 | ospkgdep suse = wget,make,ntp,patch
|
|---|
| 272 | # New OpenSuSE - Module-Build first for processing as needed by others
|
|---|
| 273 | osperldep opensuse = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 274 | ospkgdep opensuse = wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir
|
|---|
| 275 | # Mdv
|
|---|
| 276 | osperldep mandrake-10.1 = Date-Manip
|
|---|
| 277 | ospkgdep mandrake-10.1 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail
|
|---|
| 278 | osperldep md =
|
|---|
| 279 | ospkgdep md = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail,perl-Date-Manip
|
|---|
| 280 | # LSB
|
|---|
| 281 | osperldep lsb = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 282 | ospkgdep lsb =
|
|---|
| 283 | # Debian
|
|---|
| 284 | osperldep debian-3.1 = File-MimeInfo,File-BaseDir
|
|---|
| 285 | ospkgdep debian-3.1 = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl
|
|---|
| 286 | osperldep deb =
|
|---|
| 287 | 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
|
|---|
| 288 | # Gentoo
|
|---|
| 289 | osperldep gen =
|
|---|
| 290 | ospkgdep gen = wget,ntp,make,patch,DateManip,File-MimeInfo,Mail-Sendmail
|
|---|
| 291 | # Solaris - Module-Build first for processing as needed by others
|
|---|
| 292 | osperldep pkg = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
|---|
| 293 | # Should be installaed manually first for the moment
|
|---|
| 294 | #ospkgdep pkg = wget,make,perl
|
|---|
| 295 | # 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
|
|---|
| 296 |
|
|---|
| 297 | # Version of the perl module as found on CPAN
|
|---|
| 298 | # http://search.cpan.org/CPAN/modules/by-module
|
|---|
| 299 | osperlver Date-Manip = 5.54
|
|---|
| 300 | osperlver Module-Build = 0.35
|
|---|
| 301 | osperlver File-MimeInfo = 0.15
|
|---|
| 302 | osperlver File-BaseDir = 0.03
|
|---|
| 303 | osperlver Mail-Sendmail = 0.79
|
|---|
| 304 |
|
|---|
| 305 | # Code name for debian/ubuntu distro
|
|---|
| 306 | # used by debootstrap
|
|---|
| 307 | # Cf: http://www.debian.org/releases/
|
|---|
| 308 | # and https://wiki.ubuntu.com/DevelopmentCodeNames
|
|---|
| 309 | oscodename debian-3.1 = sarge
|
|---|
| 310 | oscodename debian-4.0 = etch
|
|---|
| 311 | oscodename debian-5.0 = lenny
|
|---|
| 312 | oscodename ubuntu-6.06 = dapper
|
|---|
| 313 | oscodename ubuntu-7.04 = feisty
|
|---|
| 314 | oscodename ubuntu-7.10 = gutsy
|
|---|
| 315 | oscodename ubuntu-8.04 = hardy
|
|---|
| 316 | oscodename ubuntu-8.10 = intrepid
|
|---|
| 317 | oscodename ubuntu-9.04 = jaunty
|
|---|
| 318 | oscodename ubuntu-9.10 = karmic
|
|---|
| 319 | oscodename ubuntu-10.04 = lucid
|
|---|