Changeset 891 in ProjectBuilder for devel/pb-modules


Ignore:
Timestamp:
Oct 28, 2009, 10:25:19 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • setuptvm now uses as well the conf file
  • removal of hardcoded stuff in pb_install_deps
  • conf file updated with new contetn for setupvm
  • Variable for the home dir (not /home on Solaris)
Location:
devel/pb-modules
Files:
3 edited

Legend:

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

    r867 r891  
    191191osupd md = sudo urpmi.update -a ; sudo urpmi --auto
    192192osupd novell = export TERM=linux ; export PATH=\$PATH:/sbin:/usr/sbin ; sudo yast2 -i
     193osupd sol = sudo pkgadd -d
    193194
    194195# From the most generic to the most specialized, in term of granularity,
     
    215216osremovedotinver mandrake = true
    216217osremovedotinver 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
     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
     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
     232osperldep tgz = Date-Manip,Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
     233ospkgdep tgz = wget,make,ntp,patch
     234# Old RedHat
     235osperldep redhat = Date-Manip,Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
     236ospkgdep redhat = wget,make,ntp,patch
     237# Old SuSE
     238osperldep opensuse-10.0 = Date-Manip,Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
     239ospkgdep opensuse-10.0 = wget,make,ntp,patch
     240osperldep opensuse-10.1 = Date-Manip,Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
     241ospkgdep opensuse-10.1 = wget,make,ntp,patch
     242osperldep suse = Date-Manip,Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
     243ospkgdep suse = wget,make,ntp,patch
     244# New OpenSuSE
     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
     263osperldep pkg = Date-Manip,Module-Build,File-MimeInfo,File-BaseDir,Mail-Sendmail
     264ospkgdep pkg = wget,make
     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.2808
     270osperlver File-MimeInfo = 0.15
     271osperlver File-BaseDir = 0.03
     272osperlver Mail-Sendmail = 0.79
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r638 r891  
    2525
    2626# Global list of conf files
    27 our @pbconffiles = ();
     27my @pbconffiles = ();
    2828
    2929=pod
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r869 r891  
    2323 
    2424our @ISA = qw(Exporter);
    25 our @EXPORT = qw(pb_distro_init pb_distro_get pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_get_param);
     25our @EXPORT = qw(pb_distro_conffile pb_distro_init pb_distro_get pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_get_param);
    2626
    2727=pod
     
    6060=over 4
    6161
     62=item B<pb_distro_conffile>
     63
     64This function returns the mandatory configuration file used for distribution/OS detection
     65
     66=cut
     67
     68sub pb_distro_conffile {
     69
     70return("CCCC/pb.conf");
     71}
     72
     73
     74=over 4
     75
    6276=item B<pb_distro_init>
    6377
     
    92106# the location of the conf file is finalyzed at install time
    93107# depending whether we deal with package install or tar file install
    94 pb_conf_add("CCCC/pb.conf");
     108pb_conf_add(pb_distro_conffile());
    95109
    96110# If we don't know which distribution we're on, then guess it
Note: See TracChangeset for help on using the changeset viewer.