Changeset 873 in ProjectBuilder
- Timestamp:
- Oct 21, 2009, 7:59:55 PM (16 years ago)
- Location:
- devel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r749 r873 383 383 chomp($arch); 384 384 $arch =~ s/i.86/i386/; 385 # For Solaris 386 $arch =~ s/i86pc/i386/; 385 387 386 388 return($arch); -
devel/pb/bin/pb
r872 r873 1028 1028 pb_system("sudo /sbin/makepkg -p -l y -c y $pbpkg","Packaging $pbpkg","verbose"); 1029 1029 } 1030 } elsif ($dtype eq " sol") {1030 } elsif ($dtype eq "pkg") { 1031 1031 # Solaris 1032 1032 $made="$made $dtype/"; 1033 my $ soldestdir="/usr/pb/$pbpkg";1033 my $pkgdestdir="$ENV{'PBBUILDDIR'}/install"; 1034 1034 1035 1035 chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}"; 1036 1036 # Will host resulting packages 1037 1037 pb_mkdir_p("$dtype"); 1038 pb_system("tar xfz $src","Extracting sources"); 1039 pb_system("tar xfz $src2","Extracting pbconf"); 1038 pb_mkdir_p("$pkgdestdir"); 1039 pb_system("tar xfz $src","Extracting sources under $ENV{'PBBUILDDIR'}"); 1040 pb_system("tar xfz $src2","Extracting pbconf under $ENV{'PBBUILDDIR'}"); 1040 1041 chdir "$pbpkg-$pbver" || die "Unable to chdir to $pbpkg-$pbver"; 1041 1042 symlink "pbconf/$ddir-$dver-$arch","install" || die "Unable to symlink to pbconf/$ddir-$dver-$arch"; … … 1044 1045 die "Unable to find pkginfo file in pbconf/$ddir-$dver-$arch" if (! -f "install/pkginfo"); 1045 1046 # Build 1046 pb_system("install/pbbuild $ soldestdir","Building software");1047 pb_system("install/pbbuild $pkgdestdir","Building software"); 1047 1048 # Copy complementary files 1048 1049 if (-f "install/prototype") { 1049 copy("install/prototype", $ soldestdir)1050 copy("install/prototype", $pkgdestdir) 1050 1051 } else { 1051 1052 # No prototype provided, calculating it … … 1053 1054 print PROTO "i pkginfo\n"; 1054 1055 print PROTO "i depend\n" if (-f "install/depend"); 1055 find(\&create_solaris_prototype, $ soldestdir);1056 find(\&create_solaris_prototype, $pkgdestdir); 1056 1057 } 1057 copy("install/depend", $ soldestdir) if (-f "install/depend");1058 copy("install/pkginfo", $ soldestdir);1059 pb_system("pkgmk -o -r $ soldestdir -d $ENV{'PBBUILDDIR'}/$dtype","Packaging $pbpkg","verbose");1058 copy("install/depend", $pkgdestdir) if (-f "install/depend"); 1059 copy("install/pkginfo", $pkgdestdir); 1060 pb_system("pkgmk -o -r $pkgdestdir -d $ENV{'PBBUILDDIR'}/$dtype","Packaging $pbpkg","verbose"); 1060 1061 pb_system("pkgtrans -s $ENV{'PBBUILDDIR'}/$dtype $pbpkg-$pbver.pkg $pbpkg","Transformaing $pbpkg","verbose"); 1061 1062 pb_system("rm -rf $ENV{'PBBUILDDIR'}/$dtype"); … … 1095 1096 sub create_solaris_protype { 1096 1097 1097 my $ui ggid = "bin bin";1098 my $uidgid = "bin bin"; 1098 1099 1099 1100 print PROTO "d none $_ 0755 $uidgid\n" if (-d $_); -
devel/pb/lib/ProjectBuilder/CMS.pm
r822 r873 600 600 } elsif ($dtype eq "ebuild") { 601 601 $pbpkgreal = $pbpkg; 602 } elsif ($dtype eq "pkg") { 603 $pbpkgreal = "PB$pbpkg"; 602 604 } else { 603 605 die "pb_cms_get_real_pkg not implemented for $dtype yet";
Note:
See TracChangeset
for help on using the changeset viewer.