- Timestamp:
- Dec 23, 2010, 2:01:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1130 r1132 1026 1026 1027 1027 # Additional potential repo 1028 pb_distro_setuprepo($ddir,$dver,$arch,$dtype );1028 pb_distro_setuprepo($ddir,$dver,$arch,$dtype,$dfam,$dos); 1029 1029 foreach my $pbpkg (@pkgs) { 1030 1030 # We need to install the package to test, and deps brought with it … … 1087 1087 1088 1088 # If needed we may add repository to the build env 1089 pb_distro_setuprepo($ddir,$dver,$arch,$dtype );1089 pb_distro_setuprepo($ddir,$dver,$arch,$dtype,$dfam,$dos); 1090 1090 foreach my $f (@specfile) { 1091 1091 if ($f =~ /\.spec$/) { … … 1115 1115 chmod 0755,"debian/rules"; 1116 1116 1117 pb_distro_setuprepo($ddir,$dver,$arch,$dtype );1117 pb_distro_setuprepo($ddir,$dver,$arch,$dtype,$dfam,$dos); 1118 1118 pb_distro_installdeps("debian/control",$dtype,$pbins); 1119 1119 pb_system("dpkg-buildpackage -us -uc -rfakeroot","Building package","verbose"); … … 2704 2704 2705 2705 EOF 2706 my $itype = pb_conf_get("pbinstalltype"); 2707 if ($itype->{$ENV{'PBPROJ'}} =~ /^file/) { 2706 my ($instype) = pb_conf_get("pbinstalltype"); 2707 my $itype = pb_distro_get_param($ddir,$dver,$darch,$instype,$dfam,$dtype,$dos); 2708 if ($itype =~ /^file/) { 2708 2709 print SCRIPT << 'EOF'; 2709 2710 # Then install manually the missing perl modules … … 2721 2722 pb_system("rm -rf ProjectBuilder-* ; wget --passive-ftp ftp://ftp.mondorescue.org/src/ProjectBuilder-latest.tar.gz ; gzip -cd ProjectBuilder-latest.tar.gz | tar xf - ; cd ProjectBuilder-* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf ProjectBuilder-* ; rm -rf project-builder-* ; wget --passive-ftp ftp://ftp.mondorescue.org/src/project-builder-latest.tar.gz ; gzip -cd project-builder-latest.tar.gz | tar xf - ; cd project-builder-* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf project-builder-* ;","Building Project-Builder"); 2722 2723 EOF 2723 } elsif ($itype ->{$ENV{'PBPROJ'}}=~ /^pkg/) {2724 } elsif ($itype =~ /^pkg/) { 2724 2725 # pkg based install. We need to point to the project-builder.org repository 2725 2726 print SCRIPT << 'EOF'; 2726 my ($ pbpkg) = pb_conf_get_if("pbpkg");2727 2728 my $pkgforpb = pb_distro_get_param($ddir,$dver,$darch,$ pbpkg,$dfam,$dtype,$depdos);2729 pb_distro_setup repo($ddir,$dver,$darch,$dtype);2727 my ($ospkg) = pb_conf_get_if("ospkg"); 2728 2729 my $pkgforpb = pb_distro_get_param($ddir,$dver,$darch,$ospkg,$dfam,$dtype,$dos); 2730 pb_distro_setuposrepo($ddir,$dver,$darch,$dtype,$dfam,$dos); 2730 2731 pb_distro_installdeps(undef,$dtype,$pbins,pb_distro_only_deps_needed($dtype,join(' ',split(/,/,$pkgforpb)))); 2731 2732 EOF
Note:
See TracChangeset
for help on using the changeset viewer.