source: ProjectBuilder/devel/pb-modules/etc/pb.conf@ 909

Last change on this file since 909 was 909, checked in by Bruno Cornec, 14 years ago
  • setupvm for rhel-3
File size: 9.6 KB
Line 
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
27osrelfile gentoo = /etc/gentoo-release
28
29# Slackware >= 10.2
30osrelfile slackware = /etc/slackware-version
31
32# Mandriva >=2006.0
33osrelfile mandriva = /etc/mandriva-release
34
35# Mandrake = 10.2
36osrelfile mandrakelinux = /etc/mandrakelinux-release
37
38# Fedora >= 4
39osrelfile fedora = /etc/fedora-release
40
41# VMWare >= 3
42osrelfile vmware = /etc/vmware-release
43
44# SLES - Doesn't exist as of 10
45osrelfile sles = /etc/sles-release
46
47# Asianux >= 2.2
48osrelfile asianux = /etc/asianux-release
49
50# Solaris 10
51osrelfile solaris = /etc/release
52
53#
54# Untested
55#
56osrelfile knoppix = /etc/knoppix_version
57osrelfile yellowdog = /etc/yellowdog-release
58osrelfile esmith = /etc/e-smith-release
59osrelfile turbolinux = /etc/turbolinux-release
60osrelfile blackcat = /etc/blackcat-release
61osrelfile aurox = /etc/aurox-release
62osrelfile annvix = /etc/annvix-release
63osrelfile cobalt = /etc/cobalt-release
64osrelfile redflag = /etc/redflag-release
65osrelfile ark = /etc/ark-release
66osrelfile pld = /etc/pld-release
67osrelfile nld = /etc/nld-release
68osrelfile lfs = /etc/lfs-release
69osrelfile mk = /etc/mk-release
70osrelfile conectiva = /etc/conectiva-release
71osrelfile immunix = /etc/immunix-release
72osrelfile tinysofa = /etc/tinysofa-release
73osrelfile trustix = /etc/trustix-release
74osrelfile adamantix = /etc/adamantix_version
75osrelfile yoper = /etc/yoper-release
76osrelfile arch = /etc/arch-release
77osrelfile libranet = /etc/libranet_version
78osrelfile valinux = /etc/va-release
79osrelfile yellowdog = /etc/yellowdog-release
80osrelfile 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
88osrelambfile mandrake = /etc/mandrake-release
89
90# Debian >= 3.1
91osrelambfile debian = /etc/debian_version
92
93# SuSE >= 10.0
94osrelambfile suse = /etc/SuSE-release
95
96# RedHat >= 7.3
97osrelambfile redhat = /etc/redhat-release
98
99# LSB
100osrelambfile 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#
106osambiguous mandrake = mandrake,mandrakelinux
107osambiguous debian = debian,ubuntu
108osambiguous suse = suse,sles,opensuse
109osambiguous redhat = redhat,rhel,centos,mandrake,vmware
110osambiguous 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#
116osrelexpr gentoo = .* version (.+)
117osrelexpr slackware = S[^ ]* (.+)$
118osrelexpr mandriva = Mandr[^ ]* [^ ]* release (.+) \(
119osrelexpr mandrake = Mandr[^ ]* release (.+) \(
120osrelexpr mandrakelinux = Mandrakelinux release (.+) \(
121osrelexpr fedora = Fedora .*release (\d+) \(
122osrelexpr vmware = VMware ESX Server (\d+) \(
123osrelexpr rhel = Red Hat (?:Enterprise Linux|Linux Advanced Server) .*release ([0-9.]+).* \(
124osrelexpr centos = .*CentOS .*release ([0-9]).*
125osrelexpr redhat = Red Hat Linux release (.+) \(
126osrelexpr sles = SUSE .* Enterprise Server (\d+) \(
127osrelexpr suse = SUSE LINUX (\d.+) \(
128osrelexpr opensuse = openSUSE (\d.+) \(
129osrelexpr asianux = Asianux (?:Server|release) ([0-9]).* \(
130osrelexpr lsb = .*[^Ubunt].*\nDISTRIB_RELEASE=(.+)
131osrelexpr ubuntu = .*Ubuntu.*\nDISTRIB_RELEASE=(.+)
132osrelexpr debian = (.+)
133osrelexpr 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
148osfamily debian = du
149osfamily ubuntu = du
150osfamily gentoo = gen
151osfamily slackware = slack
152osfamily suse = novell
153osfamily opensuse = novell
154osfamily sles = novell
155osfamily redhat = rh
156osfamily rhel = rh
157osfamily fedora = rh
158osfamily vmware = rh
159osfamily asianux = rh
160osfamily centos = rh
161osfamily mandrake = md
162osfamily mandrakelinux = md
163osfamily mandriva = md
164osfamily freebsd = bsd
165osfamily solaris = sol
166
167# Group family by build types
168# Key is osfamily, Value is build type
169ostype du = deb
170ostype slack = tgz
171ostype gen = ebuild
172ostype novell = rpm
173ostype rh = rpm
174ostype md = rpm
175ostype bsd = port
176ostype 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
185osupd du = sudo apt-get update ; sudo apt-get -y install
186osupd gen = sudo emerge
187osupd rpm = sudo yum clean all; sudo yum -y update ; sudo yum -y install
188osupd rhel-2.1 = sudo up2date -y
189osupd rhel-3 = sudo up2date -y
190osupd rhel-4 = sudo up2date -y
191osupd md = sudo urpmi.update -a ; sudo urpmi --auto
192osupd novell = export TERM=linux ; export PATH=\$PATH:/sbin:/usr/sbin ; sudo yast2 -i
193osupd opensuse = sudo zypper -n install
194osupd sol = sudo pkgadd -d
195
196# From the most generic to the most specialized, in term of granularity,
197# give the suffix for the packages created
198# If none is given, the suffix will be a concatenation of
199# .osname and version
200# osname being as defined upper as the keys of osrelfile and osrelambfile
201# depends on granularity, value is install command
202
203ossuffix slackware = slack
204ossuffix asianux = asx
205ossuffix fedora = fc
206ossuffix vmware = vmw
207ossuffix mandrake = mdk
208ossuffix mandriva = mdv
209#ossuffix centos = el
210
211# For that OS no need to keep the version
212# Key depends on granularity, value is boolean
213osnover gentoo = true
214
215# For that OS no need to keep the . in the version release
216# Key depends on granularity, value is boolean
217osremovedotinver mandrake = true
218osremovedotinver redhat = true
219
220# pb install dependencies per distro
221# osperldep gives perl file dependecies to get from CPAN
222# ospkgdep gives distribution package dependencies
223#
224# Asianux - Module-Build first for processing as needed by others
225osperldep asianux = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
226ospkgdep asianux = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
227# Fedora - Module-Build first for processing as needed by others
228osperldep fedora-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
229ospkgdep fedora-4 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
230osperldep fedora =
231ospkgdep fedora = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
232# Slack - Module-Build first for processing as needed by others
233osperldep tgz = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
234ospkgdep tgz = wget,make,ntp,patch
235# RHEL
236osperldep rhel-3 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
237ospkgdep rhel-3 = wget,make,ntp,patch,perl-DateManip
238# Old RedHat - Module-Build first for processing as needed by others
239osperldep redhat = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
240ospkgdep redhat = wget,make,ntp,patch
241# Old SuSE - Module-Build first for processing as needed by others
242osperldep suse = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
243ospkgdep suse = wget,make,ntp,patch
244# New OpenSuSE - Module-Build first for processing as needed by others
245osperldep opensuse = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
246ospkgdep opensuse = wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir
247# Mdv
248osperldep mandrake-10.1 = Date-Manip
249ospkgdep mandrake-10.1 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail
250osperldep md =
251ospkgdep md = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail,perl-Date-Manip
252# Debian
253osperldep debian-3.1 = File-MimeInfo,File-BaseDir
254ospkgdep debian-3.1 = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl
255osperldep deb =
256ospkgdep deb = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libfile-mimeinfo-perl,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl
257# Gentoo
258osperldep gen =
259ospkgdep gen = wget,ntp,make,patch,DateManip,File-MimeInfo,Mail-Sendmail
260# Solaris - Module-Build first for processing as needed by others
261osperldep pkg = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
262# Should be installaed manually first for the moment
263#ospkgdep pkg = wget,make
264# 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
265
266# Version of the perl module as found on CPAN
267# http://search.cpan.org/CPAN/modules/by-module
268osperlver Date-Manip = 5.54
269osperlver Module-Build = 0.35
270osperlver File-MimeInfo = 0.15
271osperlver File-BaseDir = 0.03
272osperlver Mail-Sendmail = 0.79
Note: See TracBrowser for help on using the repository browser.