Changeset 2279 in ProjectBuilder for devel/pb-modules


Ignore:
Timestamp:
Aug 30, 2017, 5:08:03 PM (7 years ago)
Author:
Bruno Cornec
Message:

YAML support working for most distros

  • Fix rebase issues
  • Adds a pbsyncheck script for pre-commit check
  • Fix test deps for centos & fedora
  • update pbcl versions for deb build
Location:
devel/pb-modules
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/Makefile.PL

    r2241 r2279  
    7373    $text .= "\t".'mkdir -p $(DESTDIR)'."$sharedir\n";
    7474    $text .= "\t".'chmod 755 $(DESTDIR)'."$sharedir\n";
    75     $text .= "\t".'cp etc/pb.conf $(DESTDIR)'."$sharedir\n";
     75    $text .= "\t".'cp etc/pb.yml $(DESTDIR)'."$sharedir\n";
    7676
    7777    # Also create a fake version in /etc/pb for sysadmin to modify
    7878    $text .= "\t".'mkdir -p $(DESTDIR)'."$sysconfdir\n";
    7979    $text .= "\t".'chmod 755 $(DESTDIR)'."$sysconfdir\n";
    80     $text .= "\t".'perl -p -e \'s|^|#|\' etc/pb.conf > $(DESTDIR)/'."$sysconfdir/pb.conf\n";
     80    $text .= "\t".'perl -p -e \'s|^|#|\' etc/pb.yml > $(DESTDIR)/'."$sysconfdir/pb.yml\n";
    8181    # Doesn't seem to work in the makefile generated for now :-(
    82     #$text .= "\t".'perl -p -e \'s|^([^#])|#$1|\' etc/pb.conf > $(DESTDIR)/'."$sysconfdir/pb.conf\n";
     82    #$text .= "\t".'perl -p -e \'s|^([^#])|#$1|\' etc/pb.yml > $(DESTDIR)/'."$sysconfdir/pb.yml\n";
    8383
    84     # Produce the man page for pb.conf
     84    # Produce the man page for pb.yml
    8585    $text .= "\t".'mkdir -p $(DESTDIR)'."$mandir/man5\n";
    8686    $text .= "\t".'pod2man --section=5 etc/pb.conf.pod > $(DESTDIR)'."$mandir/man5/pb.conf.5\n";
  • devel/pb-modules/bin/pbdistrocheck

    r2241 r2279  
    9494=head1 CONFIGURATION FILES
    9595
    96 Uses the main /etc/pb/pb.conf (or /usr/local/etc/pb/pb.conf if installed from files) configuration file to give its answers.
     96Uses the main /etc/pb/pb.yml (or /usr/local/etc/pb/pb.yml if installed from files) configuration file to give its answers.
    9797
    9898=head1 AUTHORS
  • devel/pb-modules/bin/pbgetparam

    r2241 r2279  
    7575=head1 CONFIGURATION FILES
    7676
    77 Uses the main /etc/pb/pb.conf (or /usr/local/etc/pb/pb.conf if installed from files) configuration file to give its answers.
     77Uses the main /etc/pb/pb.yml (or /usr/local/etc/pb/pb.yml if installed from files) configuration file to give its answers.
    7878
    7979=head1 AUTHORS
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r2278 r2279  
    2222# Inherit from the "Exporter" module which handles exporting functions.
    2323 
    24 use vars qw($VERSION $REVISION @ISA @EXPORT);
     24use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
    2525use Exporter;
    2626 
     
    184184
    185185# Read the content of the config file and cache it in the %h hash then available for queries
    186 if ($confver < 0.15) {
     186if ($PBCONFVER < 1) {
    187187    open(CONF,$cf) || confess "Unable to open $cf";
    188188    # This is the original conf file format for versions up to 0.14
     
    333333open(CONF,"> $conffile") || confess "Unable to write into $conffile";
    334334
    335 if ($confver < 0.15) {
     335if ($PBCONFVER < 1) {
    336336    # This is the original conf file format for versions up to 0.14
    337337    foreach my $p (sort keys %$h) {
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2261 r2279  
    2626# Inherit from the "Exporter" module which handles exporting functions.
    2727 
    28 use vars qw($VERSION $REVISION @ISA @EXPORT);
     28use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
    2929use Exporter;
    3030 
     
    3434our @ISA = qw(Exporter);
    3535our @EXPORT = qw(pb_distro_init pb_distro_conffile pb_distro_sysconffile pb_distro_get pb_distro_getlsb pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_setuposrepo pb_distro_setuprepo_gen pb_distro_get_param pb_distro_get_context pb_distro_to_keylist pb_distro_conf_print pb_apply_conf_proxy);
    36 ($VERSION,$REVISION) = pb_version_init();
     36($VERSION,$REVISION,$PBCONFVER) = pb_version_init();
    3737
    3838=pod
     
    7777sub pb_distro_conffile {
    7878
    79 return("CCCC/pb.conf");
     79if ($PBCONFVER < 1) {
     80    return("CCCC/pb.conf");
     81} else {
     82    return("CCCC/pb.yml");
     83}
    8084}
    8185
     
    8892sub pb_distro_sysconffile {
    8993
    90 return("SSSS/pb.conf");
     94if ($PBCONFVER < 1) {
     95    return("SSSS/pb.conf");
     96} else {
     97    return("SSSS/pb.yml");
     98}
    9199}
    92100
  • devel/pb-modules/lib/ProjectBuilder/Version.pm

    r2270 r2279  
    3333my $projectbuilderconfver = $PBCONFVER;
    3434
    35 return($projectbuilderver,$projectbuilderrev);
     35return($projectbuilderver,$projectbuilderrev,$projectbuilderconfver);
    3636}
    37371;
Note: See TracChangeset for help on using the changeset viewer.