Changeset 191


Ignore:
Timestamp:
Oct 10, 2007, 1:49:59 AM (12 years ago)
Author:
bruno
Message:

Debian fixes

Location:
devel/pb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r188 r191  
    2323use lib qw (lib);
    2424use ProjectBuilder::Distribution qw (pb_distro_init);
    25 use ProjectBuilder::Changelog qw (pb_changelog);
    2625use ProjectBuilder::Version qw (pb_version_init);
    2726use ProjectBuilder::Base qw (pb_conf_read pb_conf_get pb_cms_init pb_mkdir_p pb_system pb_rm_rf pb_get_filters pb_filter_file pb_filter_file_pb pb_cms_export pb_cms_log);
     
    335334        # Suse < 10.2 forces tar.bz2 usage :-(
    336335        if ($ddir eq "suse") {
     336            print "SuSE needs bz2 type of packages so recompressing...\n";
    337337            my $newsrc="$ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.bz2";
    338338            system "gzip -cd $src | bzip2 -c6 > $newsrc";
  • devel/pb/contrib/pbsetupqemu

    r188 r191  
    109109        system "yum -y $opt install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs ntp perl-AppConfig perl-DateManip";
    110110    }
    111 } elsif (($ddir eq "suse") && (($dver eq "10.2") || ($dver eq "10.3"))) {
    112     system "export TERM=linux ; liste="" ; for i in neon newt-devel slang-devel autoconf automake libtool gcc wget gcc-c++ docbook-utils ImageMagick man patch mkisofs perl-DateManip perl-AppConfig perl-File-HomeDir xntp; do rpm -q \$i; if [ \$\? ne 0 ]; then liste=\"\$liste \$i\"; fi; done; yast2 -i \$liste";
    113111} elsif (( $dfam eq "rh" ) || ($ddir eq "sles") || (($ddir eq "suse") && (($dver eq "10.1") || ($dver eq "10.0"))) || (($ddir eq "mandrake") && ($dver eq "10.1"))) {
    114112    # Suppose pkg are installed already
    115113    system "rpm -e lsb";
    116114    system "rm -rf AppConfig-* ; wget http://search.cpan.org/CPAN/authors/id/A/AB/ABW/AppConfig-1.66.tar.gz ; tar xvfz AppConfig-1.66.tar.gz ; cd AppConfig* ; perl Makefile.PL ; make ; make install ; cd .. ; rm -rf DateManip* ; wget http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/Date-Manip-5.46.tar.gz ; tar xvfz Date-Manip-5.46.tar.gz ; cd Date-Manip* ; perl Makefile.PL ; make ; make install ; cd .. ";
     115} elsif ($ddir eq "suse") {
     116    # New OpenSuSE
     117    system "export TERM=linux ; liste=\"\" ; for i in neon newt-devel slang-devel autoconf automake libtool gcc wget gcc-c++ docbook-utils ImageMagick man patch mkisofs perl-DateManip perl-AppConfig perl-File-HomeDir xntp; do rpm -q \$i 1> /dev/null 2> /dev/null ; if [ \$\? != 0 ]; then liste=\"\$liste \$i\"; fi; done; echo \"Liste: \$liste\" ; if [ \"\$liste\" != \"\" ]; then yast2 -i \$liste ; fi";
    117118} elsif ( $dfam eq "md" ) {
    118119    if (( $dver eq "2006.0" ) || ( $dver eq "10.2" )) {
     
    123124    }
    124125} elsif ( $dfam eq "du" ) {
    125     system "apt-get install autoconf automake libtool g++ wget patch mondo groff imagemagick docbook-utils docbook2x docbook-to-man openssh-server dpkg-dev debian-builder dh-make fakeroot libnewt-dev ntp-client libncurses5-dev";
     126    system "apt-get update; apt-get -y install autoconf automake libtool g++ wget patch mondo groff imagemagick docbook-utils docbook2x docbook-to-man openssh-server dpkg-dev debian-builder dh-make fakeroot libnewt-dev ntpdate libncurses5-dev libdate-manip-perl libappconfig-perl";
    126127} elsif ( $dfam eq "gen" ) {
    127128    system "emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue cdrecord mkisofs ntp-client";
     
    134135
    135136# Patch AppConfig
    136 my $module=`find /usr/lib/perl5 -type f -name File.pm | grep AppConfig/File.pm`;
     137my $module=`find /usr/*/perl5 -type f -name File.pm | grep AppConfig/File.pm`;
    137138chomp($module);
    138139$found = 0;
  • devel/pb/lib/ProjectBuilder/Distribution.pm

    r188 r191  
    159159# Tested
    160160    'gentoo'                => '.* version (.+)',
    161     'debian'                => '([^/]+)[/]*.*',
     161    'debian'                => '(.+)',
    162162    'slackware'             => 'S[^ ]* (.+)$',
    163163# There should be no ambiguity between potential ambiguous distro
Note: See TracChangeset for help on using the changeset viewer.