Changeset 992


Ignore:
Timestamp:
Mar 3, 2010, 8:24:08 PM (9 years ago)
Author:
bruno
Message:

r3713@localhost: bruno | 2010-03-02 23:13:29 +0100

  • Adds support for mandriva in rpmbootstrap - Not finished yet. chroot should be able to call urpmi
Location:
devel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r991 r992  
    269269rbsmindep opensuse-11.2 = ConsoleKit,cracklib-dict-small,PolicyKit,aaa_base,audit-libs,bash,boost-license,bzip2,coreutils,coreutils-lang,cpio,cpio-lang,cracklib,cyrus-sasl,dbus-1,dbus-1-glib,device-mapper,diffutils,dirmngr,e2fsprogs,ethtool,expat,filesystem,fillup,findutils,gawk,gdbm,glib2,glib2-branding-upstream,glib2-lang,glibc,gpg2,gpg2-lang,grep,gzip,hal,info,insserv,keyutils-libs,krb5,libacl,libattr,libboost_signals1_36_0,libbz2-1,libcom_err2,libcurl4,libdb-4_5,libexpat1,libgcc43,libgcrypt11,libglib-2_0-0,libgobject-2_0-0,libgthread-2_0-0,libgpg-error0,libidn,libksba,libldap-2_4-2,libncurses5,libnscd,libopenssl0_9_8,libreadline5,libreiserfs,libselinux1,libsepol1,libsmbios2,libstdc++43,libusb-0_1-4,libuuid1,libvolume_id1,libxcrypt,libxml2,libxml2-python,libzio,libzypp,login,mingetty,module-init-tools,ncurses-utils,neon,net-tools,openSUSE-release,openSUSE-release-ftp,openslp,pam,pam-config,pam-modules,parted,pciutils,pcre,perl-base,permissions,pinentry,pm-utils,pmtools,popt,procps,psmisc,pth,pwdutils,python,python-urlgrabber,rpm,rpm-python,satsolver-tools,sed,setserial,sysvinit,termcap,terminfo-base,udev,util-linux,uuid-runtime,zlib,zypper
    270270#
    271 rbsmindep mandriva-2009.1 = MAKEDEV,ConsoleKit-libs,audit-libs,basesystem,bash,beecrypt,bzip2-libs,chkconfig,compat-db45,coreutils,cpio,cracklib,cracklib-dicts,crontabs,cyrus-sasl-lib,db4,dbus,dbus-libs,device-mapper,device-mapper-libs,dhclient,dirmngr,e2fsprogs,e2fsprogs-libs,elfutils-libelf,ethtool,expat,file,file-libs,filesystem,findutils,gamin,gawk,gdbm,glib2,glibc,glibc-common,gnupg2,gpgme,grep,info,initscripts,iproute,iputils,keyutils-libs,krb5-libs,libacl,libattr,libcap,libcurl,libgcc,libgcrypt,libgpg-error,libidn,libksba,liblzma,libselinux,libsepol,libstdc++,libusb,libvolume_id,libxml2,linux-atm-libs,logrotate,lua,mingetty,module-init-tools,ncurses,ncurses-base,ncurses-libs,net-tools,nspr,nss,openldap,openssl,pam,passwd,pcre,pinentry,popt,procps,psmisc,pth,pygpgme,python,python-iniparse,python-libs,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,rsyslog,sed,setup,shadow-utils,sqlite,sysvinit-tools,tzdata,udev,upstart,util-linux-ng,vim-minimal,yum,yum-metadata-parser,zlib
    272 #
    273 rbsmindep mandriva-2010.0 = MAKEDEV,ConsoleKit-libs,audit-libs,basesystem,bash,beecrypt,bzip2-libs,chkconfig,compat-db45,coreutils,cpio,cracklib,cracklib-dicts,crontabs,cyrus-sasl-lib,db4,dbus,dbus-libs,device-mapper,device-mapper-libs,dhclient,dirmngr,e2fsprogs,e2fsprogs-libs,elfutils-libelf,ethtool,expat,file,file-libs,filesystem,findutils,gamin,gawk,gdbm,glib2,glibc,glibc-common,gnupg2,gpgme,grep,info,initscripts,iproute,iputils,keyutils-libs,krb5-libs,libacl,libattr,libcap,libcurl,libgcc,libgcrypt,libgpg-error,libidn,libksba,liblzma,libselinux,libsepol,libstdc++,libusb,libvolume_id,libxml2,linux-atm-libs,logrotate,lua,mingetty,module-init-tools,ncurses,ncurses-base,ncurses-libs,net-tools,nspr,nss,openldap,openssl,pam,passwd,pcre,pinentry,popt,procps,psmisc,pth,pygpgme,python,python-iniparse,python-libs,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,rsyslog,sed,setup,shadow-utils,sqlite,sysvinit-tools,tzdata,udev,upstart,util-linux-ng,vim-minimal,yum,yum-metadata-parser,zlib
     271rbsmindep mandriva-2009.1 = MAKEDEV,ConsoleKit-libs,audit-libs,basesystem,bash,beecrypt,bzip2-libs,chkconfig,compat-db45,coreutils,cpio,cracklib,cracklib-dicts,crontabs,cyrus-sasl-lib,db4,dbus,dbus-libs,device-mapper,device-mapper-libs,dhclient,dirmngr,e2fsprogs,e2fsprogs-libs,elfutils-libelf,ethtool,expat,file,file-libs,filesystem,findutils,gamin,gawk,gdbm,glib2,glibc,glibc-common,gnupg2,gpgme,grep,info,initscripts,iproute,iputils,keyutils-libs,krb5-libs,libacl,libattr,libcap,libcurl,libgcc,libgcrypt,libgpg-error,libidn,libksba,liblzma,libselinux,libsepol,libstdc++,libusb,libvolume_id,libxml2,linux-atm-libs,logrotate,lua,mingetty,module-init-tools,ncurses,ncurses-base,ncurses-libs,net-tools,nspr,nss,openldap,openssl,pam,passwd,pcre,pinentry,popt,procps,psmisc,pth,pygpgme,python,python-iniparse,python-libs,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,rsyslog,sed,setup,shadow-utils,sqlite,sysvinit-tools,tzdata,udev,upstart,urpmi,util-linux-ng,vim-minimal,zlib
     272#
     273rbsmindep mandriva-2010.0 = basesystem,bash,chkconfig,coreutils,cpio,cracklib,cracklib-dicts,crontabs,dbus,dhcp-client,dirmngr,e2fsprogs,ethtool,expat,file,filesystem,findutils,gamin,gawk,glibc,gnupg2,grep,info,initscripts,iputils,libacl1,libattr1,libblkid1,libbzip2_1,libcap2,libcurl4,libdb4.7,libelfutils1,libgcc1,libgcrypt11,libgpg-error0,libidn11,libksba8,liblua5.1,liblzma2,libmagic1,libncurses5,libnspr4,libnss3,libpopt0,libreadline6,librpm4,libsqlite3_0,libstdc++6,libtermcap2,libusb1.0_0,libuuid1,libxml2_2,logrotate,lua,mingetty,module-init-tools,ncurses,net-tools,nss,openldap,openssl,pam,passwd,pcre,perl,perl-base,perl-Config-IniFiles,perl-Locale-gettext,perl-MDV-Distribconf,perl-URPM,procps,psmisc,python,rpm,sed,setup,shadow-utils,sysvinit-tools,udev,urpmi,util-linux-ng,vim-minimal,zlib1
    274274
    275275# Where to store packages downloaded temporarily by rpmbootstrap
  • devel/rpmbootstrap/bin/rpmbootstrap

    r991 r992  
    250250my $response = $ua->get($mirror);
    251251if (! $response->is_success) {
    252     die "Unable to download packages from $mirror for $ddir-$dver-$darch";
     252    if ($mirror =~ /i386/) {
     253        # Some distro have an i586 or i686 mirror dir instead for i386
     254        warn "Unable to download packages from $mirror for $ddir-$dver-$darch.";
     255        $mirror =~ s|/i386/|/i586/|;
     256        $response = $ua->get($mirror);
     257        if (! $response->is_success) {
     258            die "Unable to download packages from $mirror for $ddir-$dver-$darch";
     259        }
     260    }
    253261}
    254262pb_log(3,"Mirror $mirror gave answer: ".Dumper($response->dump(maxlength => 0))."\n");
     
    298306    $osupdname = "Zypper";
    299307} elsif ($pbupd =~ /urpmi/) {
    300     $oscachedir = "$vepath/var/cache/zypp/packages/opensuse/suse/$darch";
    301     $osupdname = "Zypper";
     308    $oscachedir = "$vepath/var/cache/urpmi/rpms";
     309    $osupdname = "URPMI";
    302310}
    303311pb_log(1,"Setting up $osupdname cache in VE\n");
     
    402410# Some devices may be needed
    403411#
     412pb_mkdir_p("$vepath/dev");
    404413pb_system("mknod -m 644 $vepath/dev/random c 1 8","Creating $vepath/dev/random") if (! -c "$vepath/dev/random");
    405414pb_system("mknod -m 644 $vepath/dev/urandom c 1 9","Creating $vepath/dev/urandom") if (! -c "$vepath/dev/urandom");
     
    429438    open(REPO,"> $vepath/etc/zypp/repos.d/$ddir-$dver") || die "Unable to create repo file";
    430439    my $baseurl = dirname(dirname($mirror));
     440    # Setup the repo
    431441    print REPO << 'EOF';
    432442[opensuse]
     
    437447
    438448EOF
     449    close(REPO);
    439450    $minipkglist = "zypper vim-minimal dhclient";
    440451    # Bootstraping zypper
     
    442453        pb_system("chroot $vepath /bin/bash -c \"yes | /usr/bin/zypper sa $baseurl $ddir-$dver\"","Bootstrapping Zypper");
    443454    }
     455} elsif ($pbupd =~ /urpmi/) {
     456    # Setup the repo
     457    open(REPO,"> $vepath/etc/urpmi/urpmi.cfg") || die "Unable to create repo file";
     458    print REPO << "EOF";
     459Main\ (mdv1) $mirror/media/main/release {
     460  key-ids: 70771ff3
     461}
     462
     463Main\ Updates\ (mdv2) $mirror/media/main/updates {
     464  key-ids: 22458a98
     465  update
     466}
     467
     468Contrib\ (mdv9) $mirror/media/contrib/release {
     469  key-ids: 78d019f5
     470}
     471
     472Contrib\ Updates\ (mdv10) $mirror/media/contrib/updates {
     473  key-ids: 26752624
     474  update
     475}
     476EOF
     477    close(REPO);
     478    $minipkglist = "ldconfig urpmi passwd vim-minimal dhcp-client authconfig";
    444479}
    445480
Note: See TracChangeset for help on using the changeset viewer.