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 | # Solaris 10
|
---|
51 | osrelfile solaris = /etc/release
|
---|
52 |
|
---|
53 | #
|
---|
54 | # Untested
|
---|
55 | #
|
---|
56 | osrelfile knoppix = /etc/knoppix_version
|
---|
57 | osrelfile yellowdog = /etc/yellowdog-release
|
---|
58 | osrelfile esmith = /etc/e-smith-release
|
---|
59 | osrelfile turbolinux = /etc/turbolinux-release
|
---|
60 | osrelfile blackcat = /etc/blackcat-release
|
---|
61 | osrelfile aurox = /etc/aurox-release
|
---|
62 | osrelfile annvix = /etc/annvix-release
|
---|
63 | osrelfile cobalt = /etc/cobalt-release
|
---|
64 | osrelfile redflag = /etc/redflag-release
|
---|
65 | osrelfile ark = /etc/ark-release
|
---|
66 | osrelfile pld = /etc/pld-release
|
---|
67 | osrelfile nld = /etc/nld-release
|
---|
68 | osrelfile lfs = /etc/lfs-release
|
---|
69 | osrelfile mk = /etc/mk-release
|
---|
70 | osrelfile conectiva = /etc/conectiva-release
|
---|
71 | osrelfile immunix = /etc/immunix-release
|
---|
72 | osrelfile tinysofa = /etc/tinysofa-release
|
---|
73 | osrelfile trustix = /etc/trustix-release
|
---|
74 | osrelfile adamantix = /etc/adamantix_version
|
---|
75 | osrelfile yoper = /etc/yoper-release
|
---|
76 | osrelfile arch = /etc/arch-release
|
---|
77 | osrelfile libranet = /etc/libranet_version
|
---|
78 | osrelfile valinux = /etc/va-release
|
---|
79 | osrelfile yellowdog = /etc/yellowdog-release
|
---|
80 | osrelfile 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
|
---|
88 | osrelambfile mandrake = /etc/mandrake-release
|
---|
89 |
|
---|
90 | # Debian >= 3.1
|
---|
91 | osrelambfile debian = /etc/debian_version
|
---|
92 |
|
---|
93 | # SuSE >= 10.0
|
---|
94 | osrelambfile suse = /etc/SuSE-release
|
---|
95 |
|
---|
96 | # RedHat >= 7.3
|
---|
97 | osrelambfile redhat = /etc/redhat-release
|
---|
98 |
|
---|
99 | # LSB
|
---|
100 | osrelambfile 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 | #
|
---|
106 | osambiguous mandrake = mandrake,mandrakelinux
|
---|
107 | osambiguous debian = debian,ubuntu
|
---|
108 | osambiguous suse = suse,sles,opensuse
|
---|
109 | osambiguous redhat = redhat,rhel,centos,mandrake,vmware
|
---|
110 | osambiguous 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 | #
|
---|
116 | osrelexpr gentoo = .* version (.+)
|
---|
117 | osrelexpr slackware = S[^ ]* (.+)$
|
---|
118 | osrelexpr mandriva = Mandr[^ ]* [^ ]* release (.+) \(
|
---|
119 | osrelexpr mandrake = Mandr[^ ]* release (.+) \(
|
---|
120 | osrelexpr mandrakelinux = Mandrakelinux release (.+) \(
|
---|
121 | osrelexpr fedora = Fedora .*release (\d+) \(
|
---|
122 | osrelexpr vmware = VMware ESX Server (\d+) \(
|
---|
123 | osrelexpr rhel = Red Hat (?:Enterprise Linux|Linux Advanced Server) .*release ([0-9.]+).* \(
|
---|
124 | osrelexpr centos = .*CentOS .*release ([0-9]).*
|
---|
125 | osrelexpr redhat = Red Hat Linux release (.+) \(
|
---|
126 | osrelexpr sles = SUSE .* Enterprise Server (\d+) \(
|
---|
127 | osrelexpr suse = SUSE LINUX (\d.+) \(
|
---|
128 | osrelexpr opensuse = openSUSE (\d.+) \(
|
---|
129 | osrelexpr asianux = Asianux (?:Server|release) ([0-9]).* \(
|
---|
130 | osrelexpr lsb = .*[^Ubunt].*\nDISTRIB_RELEASE=(.+)
|
---|
131 | osrelexpr ubuntu = .*Ubuntu.*\nDISTRIB_RELEASE=(.+)
|
---|
132 | osrelexpr debian = (.+)
|
---|
133 | osrelexpr 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
|
---|
148 | osfamily debian = du
|
---|
149 | osfamily ubuntu = du
|
---|
150 | osfamily gentoo = gen
|
---|
151 | osfamily slackware = slack
|
---|
152 | osfamily suse = novell
|
---|
153 | osfamily opensuse = novell
|
---|
154 | osfamily sles = novell
|
---|
155 | osfamily redhat = rh
|
---|
156 | osfamily rhel = rh
|
---|
157 | osfamily fedora = rh
|
---|
158 | osfamily vmware = rh
|
---|
159 | osfamily asianux = rh
|
---|
160 | osfamily centos = rh
|
---|
161 | osfamily mandrake = md
|
---|
162 | osfamily mandrakelinux = md
|
---|
163 | osfamily mandriva = md
|
---|
164 | osfamily freebsd = bsd
|
---|
165 | osfamily solaris = sol
|
---|
166 |
|
---|
167 | # Group family by build types
|
---|
168 | # Key is osfamily, Value is build type
|
---|
169 | ostype du = deb
|
---|
170 | ostype slack = tgz
|
---|
171 | ostype gen = ebuild
|
---|
172 | ostype novell = rpm
|
---|
173 | ostype rh = rpm
|
---|
174 | ostype md = rpm
|
---|
175 | ostype bsd = port
|
---|
176 | ostype 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
|
---|
185 | osupd du = sudo apt-get update ; sudo apt-get -y install
|
---|
186 | osupd gen = sudo emerge
|
---|
187 | osupd rpm = sudo yum clean all; sudo yum -y update ; sudo yum -y install
|
---|
188 | osupd rhel-2.1 = sudo up2date -y
|
---|
189 | osupd rhel-3 = sudo up2date -y
|
---|
190 | osupd rhel-4 = sudo up2date -y
|
---|
191 | osupd md = sudo urpmi.update -a ; sudo urpmi --auto
|
---|
192 | osupd novell = export TERM=linux ; export PATH=\$PATH:/sbin:/usr/sbin ; sudo yast2 -i
|
---|
193 | osupd opensuse = sudo zypper -n install
|
---|
194 | osupd 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 |
|
---|
203 | ossuffix slackware = slack
|
---|
204 | ossuffix asianux = asx
|
---|
205 | ossuffix fedora = fc
|
---|
206 | ossuffix vmware = vmw
|
---|
207 | ossuffix mandrake = mdk
|
---|
208 | ossuffix 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
|
---|
213 | osnover gentoo = true
|
---|
214 |
|
---|
215 | # For that OS no need to keep the . in the version release
|
---|
216 | # Key depends on granularity, value is boolean
|
---|
217 | osremovedotinver mandrake = true
|
---|
218 | osremovedotinver 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
|
---|
225 | osperldep asianux = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
226 | ospkgdep asianux = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
|
---|
227 | # Fedora - Module-Build first for processing as needed by others
|
---|
228 | osperldep fedora-4 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
229 | ospkgdep fedora-4 = wget,make,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp
|
---|
230 | osperldep fedora =
|
---|
231 | ospkgdep fedora-5 = wget,make,perl,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
232 | ospkgdep fedora-6 = wget,make,perl,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
233 | ospkgdep fedora-7 = wget,make,perl,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
234 | ospkgdep fedora-8 = wget,make,perl,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
235 | ospkgdep fedora-9 = wget,make,perl,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
236 | ospkgdep fedora-10 = wget,make,perl,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
237 | ospkgdep fedora = wget,make,perl,fprintd-pam,perl-Date-Manip,perl-ExtUtils-MakeMaker,rpm-build,patch,ntp,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
238 | # fprintd-pam
|
---|
239 | # Slack - Module-Build first for processing as needed by others
|
---|
240 | osperldep tgz = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
241 | ospkgdep tgz = wget,make,ntp,patch
|
---|
242 | # RHEL
|
---|
243 | osperldep rhel-3 = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
244 | ospkgdep rhel-3 = wget,make,ntp,patch,perl-DateManip
|
---|
245 | # Old RedHat - Module-Build first for processing as needed by others
|
---|
246 | osperldep redhat = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
247 | ospkgdep redhat = wget,make,ntp,patch
|
---|
248 | # Old SuSE - Module-Build first for processing as needed by others
|
---|
249 | osperldep suse = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
250 | ospkgdep suse = wget,make,ntp,patch
|
---|
251 | # New OpenSuSE - Module-Build first for processing as needed by others
|
---|
252 | osperldep opensuse = Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
253 | ospkgdep opensuse = wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir
|
---|
254 | # Mdv
|
---|
255 | osperldep mandrake-10.1 = Date-Manip
|
---|
256 | ospkgdep mandrake-10.1 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail
|
---|
257 | osperldep md =
|
---|
258 | ospkgdep md = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-Mail-Sendmail,perl-Date-Manip
|
---|
259 | # Debian
|
---|
260 | osperldep debian-3.1 = File-MimeInfo,File-BaseDir
|
---|
261 | ospkgdep debian-3.1 = wget,patch,dpkg-dev,make,debian-builder,dh-make,fakeroot,ntpdate,libmodule-build-perl,libdate-manip-perl,libmail-sendmail-perl
|
---|
262 | osperldep deb =
|
---|
263 | 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
|
---|
264 | # Gentoo
|
---|
265 | osperldep gen =
|
---|
266 | ospkgdep gen = wget,ntp,make,patch,DateManip,File-MimeInfo,Mail-Sendmail
|
---|
267 | # Solaris - Module-Build first for processing as needed by others
|
---|
268 | osperldep pkg = Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,Mail-Sendmail
|
---|
269 | # Should be installaed manually first for the moment
|
---|
270 | #ospkgdep pkg = wget,make
|
---|
271 | # 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
|
---|
272 |
|
---|
273 | # Version of the perl module as found on CPAN
|
---|
274 | # http://search.cpan.org/CPAN/modules/by-module
|
---|
275 | osperlver Date-Manip = 5.54
|
---|
276 | osperlver Module-Build = 0.35
|
---|
277 | osperlver File-MimeInfo = 0.15
|
---|
278 | osperlver File-BaseDir = 0.03
|
---|
279 | osperlver Mail-Sendmail = 0.79
|
---|