Changeset 867 in ProjectBuilder for devel/pb-modules/etc/pb.conf


Ignore:
Timestamp:
Oct 21, 2009, 11:48:11 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Transition static distribution into a configuration file typically /etc/pb/pb.conf
  • function pb_distro_init adapted to use the new conf file
  • function pb_distro_get_param adapted to support osfamily and ostype
  • Adapt the package building of pb to the need of the new configuration file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r866 r867  
    1414#
    1515# It should be noted that the list of all OS is the result of gathering
    16 # all the keys from osrelfile and osrelambfile
    17 #
    18 
     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)
    1921#
    2022# Those definitions are non-ambiguous (the file only exists for that OS)
     
    131133osrelexpr solaris = Solaris (\d+)
    132134
     135#
     136# The following conf info are for pb_distro_init (man ProjectBuilder::Distribution)
     137#
    133138# Ganularity is the following:
    134139#
     
    140145
    141146# Group OS by family to handle common actions more easily (filtering, install command, ...)
     147# Key is osname, Value is osfamily
    142148osfamily debian = du
    143149osfamily ubuntu = du
     
    158164osfamily freebsd = bsd
    159165osfamily solaris = sol
    160 osfamily unknown = unknown
    161166
    162167# Group family by build types
     168# Key is osfamily, Value is build type
    163169ostype du = deb
    164170ostype slack = tgz
     
    169175ostype bsd = port
    170176ostype sol = pkg
    171 ostype unknown = unknown
    172177
    173178# From the most generic to the most specialized, in term of granularity,
    174179# give the command to use to install on the OS
    175180# 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
    176185osupd du = sudo apt-get update ; sudo apt-get -y install
    177186osupd gen = sudo emerge
     
    182191osupd md = sudo urpmi.update -a ; sudo urpmi --auto
    183192osupd novell = export TERM=linux ; export PATH=\$PATH:/sbin:/usr/sbin ; sudo yast2 -i
    184 osupd unknown = unknown
    185193
    186194# From the most generic to the most specialized, in term of granularity,
     
    189197# .osname and version
    190198# osname being as defined upper as the keys of osrelfile and osrelambfile
     199# depends on granularity, value is install command
    191200
    192201ossuffix slackware = slack
     
    199208
    200209# For that OS no need to keep the version
     210# Key depends on granularity, value is boolean
    201211osnover gentoo = true
    202212
    203 #  For that OS no need to keep the . in the version release
     213# For that OS no need to keep the . in the version release
     214# Key depends on granularity, value is boolean
    204215osremovedotinver mandrake = true
    205216osremovedotinver redhat = true
Note: See TracChangeset for help on using the changeset viewer.