Changeset 2337 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
Nov 9, 2017, 8:54:07 PM (6 years ago)
Author:
Bruno Cornec
Message:

More alpine improvements (but still not done yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2336 r2337  
    19811981
    19821982            # Build
     1983            my $keyfile = pb_ssh_get(1);
     1984            pb_mkdir_p("$ENV{'HOME'}/.abuild");
     1985            open(CONF,"> $ENV{'HOME'}/.abuild/abuild.conf") || confess "Unable to create the abuild conf file";
     1986            print CONF "PACKAGER_PRIVKEY=\"$keyfile\"\n" if (defined $keyfile);
     1987            close(CONF);
    19831988            foreach my $f (@apkfile) {
    1984                 if ($f =~ /^APKBUILD$/) {
    1985                     pb_system("abuild unpack ; abuild checksum ; abuild -r -P .. build ; abuild -P .. root-pkg ; abuild -P pkg index","verbose");
     1989                if ($f =~ /APKBUILD$/) {
     1990                    pb_system("ls -al $ENV{'HOME'}/.ssh ; pwd ; ls -alR ../.. ; sh -x /usr/bin/abuild checksum ; abuild unpack ; abuild -r -P .. build ; abuild -P .. rootpkg ; abuild -P pkg index","verbose");
    19861991                }
     1992            }
    19871993            # Get the name of the generated packages
    19881994            open(LOG,"$ENV{'PBTMP'}/system.$$.log") || die "Unable to open $ENV{'PBTMP'}/system.$$.log";
     
    19942000            }
    19952001            close(LOG);
    1996 
    1997 }
    19982002
    19992003        } elsif ($pbos->{'type'} eq "tgz") {
     
    35063510    print SCRIPT "export PBPROJTAG=$ENV{'PBPROJTAG'}\n";
    35073511    print SCRIPT "export PBPACKAGER=\"$ENV{'PBPACKAGER'}\"\n";
     3512    # TODO: setup apk pkg/keys here
    35083513
    35093514    # We may need to do some other tasks before building. Read a script here to finish setup
     
    51965201    my $debsigncmd = pb_check_req("debsign",1);
    51975202    pb_system("$debsigncmd -m\'$ENV{'PBPACKAGER'}\' $changes","Signing DEB packages as $ENV{'PBPACKAGER'}...","mayfail") if (($changes ne "") && (defined $debsigncmd));
     5203} elsif ($pbos->{'type'} eq "apk") {
     5204    pb_log(1,"Packages apk already signed during build phase\n");
    51985205} else {
    51995206    pb_log(0,"I don't know yet how to sign packages for type $pbos->{'type'}.\nPlease give feedback to dev team\n");
Note: See TracChangeset for help on using the changeset viewer.