source: devel/pb-modules/etc/pb.conf @ 892

Last change on this file since 892 was 892, checked in by Bruno Cornec, 11 years ago
  • remove call to bash to use generic sh. This has o be checked for compatibility issues
  • In conf file, when having a dependency on Module-Build, it has to be first, as some other may depend on it
File size: 9.4 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 sol = sudo pkgadd -d
194
195# From the most generic to the most specialized, in term of granularity,
196# give the suffix for the packages created
197# If none is given, the suffix will be a concatenation of
198# .osname and version
199# osname being as defined upper as the keys of osrelfile and osrelambfile
200# depends on granularity, value is install command
201
202ossuffix slackware = slack
203ossuffix asianux = asx
204ossuffix fedora = fc
205ossuffix vmware = vmw
206ossuffix mandrake = mdk
207ossuffix mandriva = mdv
208#ossuffix centos = el
209
210# For that OS no need to keep the version
211# Key depends on granularity, value is boolean
212osnover gentoo = true
213
214# For that OS no need to keep the . in the version release
215# Key depends on granularity, value is boolean
216osremovedotinver mandrake = true
217osremovedotinver redhat = true
218
219# pb install dependencies per distro
220# osperldep gives perl file dependecies to get from CPAN
221# ospkgdep gives distribution package dependencies
222#
223# Asianux - Module-Build first for processing as neede by others
224osperldep asianux = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
225ospkgdep asianux = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
226# Fedora - Module-Build first for processing as neede by others
227osperldep fedora-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
228ospkgdep fedora-4 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
229osperldep fedora =
230ospkgdep fedora = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
231# Slack - Module-Build first for processing as neede by others
232osperldep tgz = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
233ospkgdep tgz = wget,make,ntp,patch
234# Old RedHat - Module-Build first for processing as neede by others
235osperldep redhat = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
236ospkgdep redhat = wget,make,ntp,patch
237# Old SuSE - Module-Build first for processing as neede by others
238osperldep opensuse-10.0 = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
239ospkgdep opensuse-10.0 = wget,make,ntp,patch
240osperldep opensuse-10.1 = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
241ospkgdep opensuse-10.1 = wget,make,ntp,patch
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 neede by others
245ospkgdep opensuse-10.2 = wget,make,ntp,patch
246ospkgdep opensuse-10.3 = wget,make,ntp,patch
247osperldep opensuse = Module-Build,File-MimeInfo,File-BaseDir
248ospkgdep opensuse = wget,make,sntp,patch,perl-Date-Manip,perl-File-HomeDir,perl-Mail-Sendmail
249# Mdv
250osperldep mandrake-10.1 = Date-Manip
251ospkgdep mandrake-10.1 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail
252osperldep md =
253ospkgdep md = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail,perl-Date-Manip
254# Debian
255osperldep debian-3.1 = File-MimeInfo,File-BaseDir
256ospkgdep debian-3.1 = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl
257osperldep deb =
258ospkgdep deb = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libfile-mimeinfo-perl,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl
259# Gentoo
260osperldep gen =
261ospkgdep gen = wget,ntp,make,patch,DateManip,File-MimeInfo,Mail-Sendmail
262# Solaris - Module-Build first for processing as neede by others
263osperldep pkg = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
264# Should be installaed manually first for the moment
265ospkgdep pkg = wget,make
266
267# Version of the perl module as found on CPAN
268# http://search.cpan.org/CPAN/modules/by-module
269osperlver Date-Manip = 5.54
270osperlver Module-Build = 0.2808
271osperlver File-MimeInfo = 0.15
272osperlver File-BaseDir = 0.03
273osperlver Mail-Sendmail = 0.79
Note: See TracBrowser for help on using the repository browser.