Changeset 753


Ignore:
Timestamp:
Aug 6, 2006, 1:43:13 PM (13 years ago)
Author:
bruno
Message:
  • Qemu doc updated for SLES 10
  • creation of tar file with -p to preserve directory modes
  • mindi's version now handled correctly in svn2build
Location:
branches/stable/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2pkg

    r733 r753  
    5555    src=${TOPDIR}/${VER}-$TAG/$p-[1-9st]*.tar.gz
    5656    pv=`basename $src .tar.gz`
     57    PVER=`echo $pv | sed "s|^$p-||" | cut -d- -f1`
    5758
    5859    if [  _"$dtype" = _"rpm" ]; then
     
    7778        echo "Generating $p RPMS"
    7879        cd SPECS
    79         tar xfz $src $p-${VER}/distributions/${ddir}-$dver/$p.spec
    80         mv $p-${VER}/distributions/${ddir}-$dver/$p.spec .
    81         rm -rf $p-${VER}
     80        tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$p.spec
     81        mv $p-${PVER}/distributions/${ddir}-$dver/$p.spec .
     82        rm -rf $p-${PVER}
    8283
    8384        rpmbuild -ba $p.spec 2> $log 1> $log
     
    9798    elif [  _"$dtype" = _"ebuild" ]; then
    9899        log=$TMP/$p-gentoo.log
    99         tar xfz $src $p-${VER}/distributions/${ddir}-$dver/$p-${VER}.ebuild
     100        tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$p-${VER}.ebuild
    100101        if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then
    101102            echo "Adding $TOPBUILDDIR/portage to /etc/make.conf"
     
    104105
    105106        mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$p
    106         mv $p-${VER}/distributions/${ddir}-$dver/$p-${VER}.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p/$p-${VER}.ebuild
    107         rm -rf $p-${VER}
     107        mv $p-${PVER}/distributions/${ddir}-$dver/$p-${PVER}.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p/$p-${PVER}.ebuild
     108        rm -rf $p-${PVER}
    108109
    109110        cd ${TOPBUILDDIR}/portage/sys-apps/$p
    110         ebuild $p-${VER}.ebuild digest 2> $log 1> $log
     111        ebuild $p-${PVER}.ebuild digest 2> $log 1> $log
    111112        if [ $? != 0 ]; then
    112113            cat $log
    113114            status=-1
    114115        fi
    115         ebuild $p-${VER}.ebuild install 2>> $log 1>> $log
     116        ebuild $p-${PVER}.ebuild install 2>> $log 1>> $log
    116117        if [ $? != 0 ]; then
    117118            cat $log
     
    123124        cd $TOPBUILDDIR
    124125        tar xfz $src
    125         cd ${p}-${VER}
     126        cd ${p}-${PVER}
    126127        # point to the right debian conf
    127128        ln -s distributions/${ddir}-$dver debian
  • branches/stable/tools/qemu-vm.txt

    r629 r753  
    1 Booting CD
     1#Booting CD
    22qemu-img create -f qcow image.qemu 3G
    33qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
    44
    55# RPM based : urpmi, yum install, yast2
    6     neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch
     6urpmi neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gvim/vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo
    77
    88# gentoo
    9 Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
     9#Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
    1010emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue
    1111
    12 Changing CD during install:
     12#Changing CD during install:
    1313Ctrl-Alt-2
    1414eject cdrom
     
    1616change cdrom /dev/cdrom
    1717
    18 Boot single user pour change passwd root
    19 Clavier fr:
     18# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
    2019
    21 loadkeys fr
    22 perl -pi -e 's/"us"/"fr"/' /etc/sysconfig/keyboard
    23 perl -pi -e 's/"us"/"fr"/' /etc/X11/XF86Config
    24 perl -pi -e 's/"us"/"fr"/' /etc/X11/xorg.conf
    25 Slack: put loadkeys fr in /etc/rc.d/rc.keymap
    26 
    27 Conf IP:
    28     Ajout machine dans DNS interne (/usr/local/etc/named/etc/db.mondo.*)
    29     Reload named
    30 
    31 Clé SSH:
    32     Ajout clé ssh pour root:
     20#Clé SSH:
     21#   Ajout clé ssh pour root:
    3322mkdir /root/.ssh
    3423chmod 700 /root/.ssh
     
    3625chmod 600 /root/.ssh/authorized_keys
    3726
    38 Install packages manquant pour mondo:
    39     afio buffer
    40 
    41 Créer compte bruno avec répertoires nécéssaires + env necessaire
     27#Créer compte bruno avec répertoires nécéssaires + env necessaire
    4228mkdir /users
    4329useradd bruno -d /users/bruno
     
    6046chmod 700 ~/.ssh
    6147scp -p victoria2.home.musique-ancienne.org:.ssh/id'*' ~/.ssh
     48# Passwd asked above
    6249cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
    6350chmod 600 ~/.ssh/authorized_keys
     
    6855EOF
    6956
    70 rebuild paquets necessaires mondo:
     57#rebuild paquets necessaires mondo:
    7158wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
    7259wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
    7360rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
    74 mkdir -p build/BUILD build/RPMS/i386
     61mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
    7562rpmbuild -ba build/SPECS/afio.spec
    7663rpmbuild -ba build/SPECS/buffer.spec
    7764chmod 644 build/RPMS/i386/*
    78 scp -p build/RPMS/i386/afio-[0-9]* build/RPMS/i386/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/
     65scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/
    7966
    8067
    8168root:
    82 rpm -ivh ~bruno/RPMS/RPMS/i386/afio-[0-9]* ~bruno/RPMS/RPMS/i386/buffer-[0-9]*
     69rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
     70# In case
     71scp bruno@10.0.2.2:/usr/bin/man2dvi /usr/local/bin
    8372
    84 pour gentoo
     73#for gentoo
    8574chown bruno /etc/make.conf
    8675bruno in portage group
  • branches/stable/tools/svn2build

    r731 r753  
    136136    # Finally creates the tar files
    137137    echo "Creating $p tar files"
    138     tar cfhz ${DEST}/$p-$v-$TAG.tar.gz $dest
     138    tar cfphz ${DEST}/$p-$v-$TAG.tar.gz $dest
    139139    #gzip -cd ${DEST}/$p-$v-$TAG.tar.gz | bzip2 -c3 > ${DEST}/$p-$v-$TAG.tar.bz2
    140140    #tar cfhj ${DEST}/$p-$v-$TAG.tar.bz2 $dest
Note: See TracChangeset for help on using the changeset viewer.