Changeset 530


Ignore:
Timestamp:
May 8, 2006, 5:31:14 PM (13 years ago)
Author:
bcornec
Message:

Build process reviewed once more :
gentoo integration
slackware integration
mkqemu should only work with tar files, and not SVN (ease VM build and time in build process)
To be continued

DOES NOT WORK AT THE MOMENT

Location:
branches/stable
Files:
10 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/distributions/gentoo/mindi.ebuild

    r308 r530  
    11# Copyright 1999-2005 Gentoo Foundation
    22# Distributed under the terms of the GNU General Public License v2
    3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/mindi/mindi-1.04.ebuild,v 1.1 2005/01/22 10:29:25 wschlich Exp $
     3# $Id$
    44
    55DESCRIPTION="A program that creates emergency boot disks/CDs using your kernel, tools and modules."
    66HOMEPAGE="http://www.mondorescue.org"
    7 SRC_URI="ftp://ftp.berlios.de/pub/mondorescue/src/${P}.tgz"
     7SRC_URI="ftp://ftp.mondorescue.org/src/${P}.tgz"
    88
    99LICENSE="GPL-2"
     
    1515RDEPEND=">=app-arch/bzip2-0.9
    1616        >=sys-apps/mindi-kernel-1.0-r1
    17         app-cdr/cdrtools
    1817        sys-libs/ncurses
    1918        sys-devel/binutils
     
    2322src_unpack() {
    2423    unpack ${A} || die "Failed to unpack ${A}"
    25     cd ${S}/rootfs || die
    26     tar xzf symlinks.tgz || die "Failed to unpack symlinks.tgz"
    27 
    28     # This will need to change when IA64 is tested. Obviously.
    29     rm -f bin/busybox-ia64 sbin/parted2fdisk-ia64
    30     mv bin/busybox-i386 bin/busybox
    3124}
    3225
    3326src_install() {
     27    export PREFIX="/usr"
     28    export CONFDIR="/etc"
     29    export RPMBUILDMINDI="true"
    3430    ./install.sh
    3531}
  • branches/stable/mondo/distributions/gentoo/mondo.ebuild

    r307 r530  
    77DESCRIPTION="The premier GPL disaster recovery solution."
    88HOMEPAGE="http://www.mondorescue.org"
    9 SRC_URI="ftp://ftp.berlios.de/pub/mondorescue/src/${PN/-rescue/}-${PV}.tgz"
     9SRC_URI="ftp://ftp.mondorecue.org/src/${PN/-rescue/}-${PV}.tgz"
    1010
    1111LICENSE="GPL-2"
     
    2222    >=app-arch/bzip2-0.9
    2323    app-cdr/cdrtools
    24     >=sys-apps/mindi-1.06
     24    >=sys-apps/mindi-1.0.7
    2525    >=dev-libs/newt-0.50
    2626    >=sys-libs/slang-1.4.1
  • branches/stable/tools/deb-env

    r319 r530  
    1919dname=`dirname $0`
    2020
     21
    2122# TBD
    2223export TOPDIR=${BASE}/debs
    2324mkdir -p ${TOPDIR}
     25export opt=""
     26export pkg=""
     27export ARCH=""
    2428
    2529if [ -e /etc/debian-release ]; then
     30    export dfam="debian"
    2631    export ddir="debian"
    2732    export dver=`awk '{print $4}' /etc/debian-release`
  • branches/stable/tools/gentoo-env

    r528 r530  
    11#!/bin/bash
    22#
    3 # Creates RPMs environment from SVN repository
     3# Creates Gentoo environment from SVN repository
    44#
    55# $Id$
     
    1616. $TOOLHOME/common-env
    1717
    18 export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
     18#export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    1919
    2020# Should not be modified below
    2121export pkg=""
    2222export opt=""
     23export ARCH=""
    2324
    24 if [ -f ${HOME}/.rpmmacros ]; then
    25     export TOPDIR=`egrep '^%_topdir' ${HOME}/.rpmmacros | awk '{print $2}'`
    26 else
    27     export TOPDIR=${BASE}/RPMS
    28 fi
     25export TOPDIR=${BASE}/ebuild
    2926mkdir -p ${TOPDIR}
    30 cd ${TOPDIR}
    31 mkdir -p RPMS SRPMS SPECS SOURCES BUILD
    3227
    33 if [ -e /etc/mandriva-release ]; then
    34     export dfam="mandriva"
    35     export ddir="mandriva"
    36     export dver=`awk '{print $4}' /etc/mandriva-release`
    37     export suf=".`echo $dver | sed 's/\.//'`mdk"
    38 elif [ -e /etc/mandrake-release ]; then
    39     export dfam="mandriva"
    40     export ddir="mandrake"
    41     export dver=`awk '{print $3}' /etc/mandrake-release`
    42     export suf=".`echo $dver | sed 's/\.//'`mdk"
    43 elif [ -e /etc/redhat-release ]; then
    44     grep -q Enterprise /etc/redhat-release
    45     if [ $? -eq 0 ]; then
    46         export dfam="redhat"
    47         export ddir="rhel"
    48         export dver=`awk '{print $7}' /etc/redhat-release`
    49     elif grep -q Fedora /etc/redhat-release ; then
    50         export dfam="redhat"
    51         export ddir="fedora"
    52         export dver=`awk '{print $4}' /etc/redhat-release`
    53         export suf=".fc${dver}"
    54     else
    55         export dfam="redhat"
    56         export ddir="redhat"
    57         dver=`awk '{print $5}' /etc/redhat-release`
    58         export dver=`echo ${dver} | sed "s/\.//"`
    59         export suf=".rh${dver}"
    60     fi
    61 elif [ -e /etc/SuSE-release ]; then
    62     grep -q Enterprise /etc/SuSE-release
    63     if [ $? -eq 0 ]; then
    64         export dfam="suse"
    65         export ddir="sles"
    66         export dver=`head -1 /etc/SuSE-release | awk '{print $5}'`
    67     else
    68         export dfam="suse"
    69         export ddir="suse"
    70         export dver=`head -1 /etc/SuSE-release | awk '{print $3}'`
    71     fi
    72 else
    73     export dfam="generic"
    74     export dver=""
    75     export ddir="generic"
    76 fi
     28export dfam="gentoo"
     29export ddir="gentoo"
     30export dver=`awk '{print $4}' /etc/gentoo-release`
     31export suf=".`echo $dver | sed 's/\.//'`"
    7732
    7833if [ _"$suf" = _"" ]; then
  • branches/stable/tools/mkcommon

    r423 r530  
    22#
    33# Prepare build env common for all packages build process from SVN repository
     4# Also prepare the documentation which is common
    45#
    56# $Id$
     
    89umask 022
    910
     11cd $TOOLHOME/..
    1012echo "Generating SVN log file ..."
    11 cd $TOOLHOME/..
    1213svn log -v > /tmp/mondorescue-svn.log
    1314
    1415if [ "$1" = "" ]; then
    15     c="mindi mondo"
     16        c="mondo-doc mindi mondo"
    1617else
    17     c=$1
     18    if [ "$1" = "all" ]; then
     19            c="mindi-kernel mondo-doc mindi mondo"
     20    else
     21        c=$1
     22    fi
    1823fi
    1924if [ "`echo $c | grep mindi-kernel`" != "" ]; then
     
    2833    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
    2934fi
     35
     36#
     37# Should be done before mindi
     38#
     39if [ "`echo $c | grep mondo-doc`" != "" ]; then
     40    cd ${BASE}/svn
     41    echo "Management of mondo-doc ${MONDO_VER}-$REVISION"
     42    rm -rf mondo-doc-${MONDO_VER}
     43    svn export ${VER}/documentation mondo-doc-${MONDO_VER}
     44    svn log -v ${VER}/documentation > mondo-doc-${MONDO_VER}/svn.log
     45    echo "$REVISION" > mondo-doc-${MONDO_VER}/REVISION
     46    cd mondo-doc-${MONDO_VER}
     47    $TOOLHOME/expandver mondorescue-howto.sgml *8
     48    make -f Makefile.howto install INSTALLDIR=../mondo-docgen-${MONDO_VER}/docs/en
     49    if [ $? != 0 ]; then
     50        exit -1
     51    fi
     52    make -f Makefile.man install-mondo INSTALLDIR=../mondo-docgen-${MONDO_VER}/docs/man
     53    if [ $? != 0 ]; then
     54        exit -1
     55    fi
     56    cd ..
     57
     58    echo "Creating mondo-doc tar files"
     59    tar cfhz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz mondo-doc-${MONDO_VER}
     60    tar cfhj ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 mondo-doc-${MONDO_VER}
     61fi
    3062if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    3163    cd ${BASE}/svn
     
    3466    svn export ${VER}/mindi mindi-${MINDI_VER}
    3567    cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log
    36     cp -a ${VER}/documentation/mindi.8 mindi-${MINDI_VER}
    37     rm -rf documentation-${MONDO_VER}
    38     svn export ${VER}/documentation documentation-${MONDO_VER}
    39     cd documentation-${MONDO_VER}
    40     $TOOLHOME/expandver mindi*8
    41     make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER}
    42     cd ..
     68    (cd mondo-doc-${MONDO_VER} ; make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER})
    4369    echo "$REVISION" > mindi-${MINDI_VER}/REVISION
    4470    rm -f mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
     
    4975    rm -f ${TMP}/mindi-*-root
    5076fi
    51 if [ "`echo $c | grep mondo`" != "" ]; then
     77if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then
    5278    cd ${BASE}/svn
    5379    echo "Management of mondo ${MONDO_VER}-$REVISION"
     
    5682    cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log
    5783    echo "$REVISION" > mondo-${MONDO_VER}/REVISION
    58     rm -rf documentation-${MONDO_VER}
    59     svn export ${VER}/documentation documentation-${MONDO_VER}
    60     cd documentation-${MONDO_VER}
    61     $TOOLHOME/expandver mondorescue-howto.sgml mondo*8
    62     make -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/docs/en
    63     if [ $? != 0 ]; then
    64         exit -1
    65     fi
    66     make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man
    67     if [ $? != 0 ]; then
    68         exit -1
    69     fi
    70     cd ../mondo-${MONDO_VER}
    71     echo "Bootstraping mondo ... "
    72     ./bootstrap
    73     cd ..
     84    (cd mondo-doc-${MONDO_VER} ; make -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/docs/en ; make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man)
     85    (cd mondo-${MONDO_VER} ; echo "Bootstraping mondo ... " ; ./bootstrap)
    7486
    7587    echo "Creating mondo tar files"
  • branches/stable/tools/mkdeb

    r464 r530  
    6060cd ${TOPDIR}/SPECS
    6161status=0
    62 if [ "`echo $c | grep kernel`" != "" ]; then
    63     echo "Generating mindi-kernel RPMS"
    64     log=/tmp/mindi-kernel-rpm.log
    65     rpmbuild -ba mindi-kernel.spec 2> $log 1> $log
    66     if [ $? != 0 ]; then
    67         cat $log
    68         status=-1
    69     fi
    70 fi
    71 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    72     echo "Generating mindi RPMS"
    73     log=/tmp/mindi-rpm.log
    74     rpmbuild -ba mindi.spec 2> $log 1> $log
    75     if [ $? != 0 ]; then
    76         cat $log
    77         status=-1
    78     fi
    79 fi
    80 if [ "`echo $c | grep mondo`" != "" ]; then
    81     echo "Generating mondo RPMS"
    82     log=/tmp/mondo-rpm.log
    83     rpmbuild -ba mondo.spec 2> $log 1> $log
     62for p in "$c"; do
     63    echo "Generating $p deb"
     64    log=/tmp/$p-deb.log
     65    #rpmbuild -ba $p.spec 2> $log 1> $log
    8466    if [ $? != 0 ]; then
    8567        cat $log
     
    8870fi
    8971if [ $status = 0 ]; then
    90     echo "Installing RPMS as root ($pkg)"
     72    echo "Installing deb as root ($pkg)"
    9173    su - -c "$opt rpm -Uvh --force $pkg"
    9274fi
  • branches/stable/tools/mkdeliv

    r440 r530  
    2828
    2929if [ "$1" = "" ]; then
    30     c="mindi mondo"
     30        c="mondo-doc mindi mondo"
    3131else
    3232    c=$1
     
    3939    srpms="$srpms ${TOPDIR}/SRPMS/mindi-${MINDI_VER}-${rev}${suf}.src.rpm"
    4040fi
    41 if [ "`echo $c | grep  mondo`" != "" ]; then
     41if [ "`echo $c | grep mondo-doc`" != "" ]; then
     42    cp -a ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz
     43    cp -a ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2
     44    tgz="$tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2"
     45    rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"
     46    srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"
     47fi
     48if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then
    4249    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz
    4350    cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2
  • branches/stable/tools/mkgentoo

    r528 r530  
    11#!/bin/bash
    22#
    3 # Creates RPMs packages from SVN repository for local tests
     3# Creates Gentoo packages from SVN repository
    44#
    55# $Id$
     
    1515fi
    1616
    17 . $TOOLHOME/rpm-env
     17. $TOOLHOME/gentoo-env
    1818
    1919if [ "$1" = "" ]; then
     
    2828    cd ${BASE}/svn
    2929    mkdir -p ${TOPDIR}/SOURCES
    30     $TOOLHOME/mkspec ${MINDI_VER} mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec
    31     chmod 644 ${TOPDIR}/SPECS/mindi-kernel.spec
    32     pkg1="${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
     30    $TOOLHOME/mkebuild ${MINDI_VER} mindi-kernel-${MINDI_VER}/mindi-kernel.ebuild > ${TOPDIR}/ebuild/mindi-kernel.ebuild
     31    chmod 644 ${TOPDIR}/ebuild/mindi-kernel.ebuild
     32    pkg1="${TOPDIR}/ebuild/mindi-kernel-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
    3333    pkg="$pkg $pkg1"
    3434    rm -f $pkg1
     
    3636if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    3737    cd ${BASE}/svn
    38     $TOOLHOME/mkspec ${MINDI_VER} mindi-${MINDI_VER}/distributions/rpm/mindi.spec > ${TOPDIR}/SPECS/mindi.spec
    39     cat mindi-${MINDI_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mindi.spec
    40     chmod 644 ${TOPDIR}/SPECS/mindi.spec
     38    $TOOLHOME/mkebuild ${MINDI_VER} mindi-${MINDI_VER}/distributions/rpm/mindi.ebuild > ${TOPDIR}/ebuild/mindi.ebuild
     39    cat mindi-${MINDI_VER}/distributions/$dfam/changelog >> ${TOPDIR}/ebuild/mindi.ebuild
     40    chmod 644 ${TOPDIR}/ebuild/mindi.ebuild
    4141    rm -rf mindi-${MINDI_VER}/distributions
    4242    mkdir -p ${TOPDIR}/SOURCES
    4343
    44     pkg1="${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
     44    pkg1="${TOPDIR}/ebuild/mindi-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"
    4545    pkg="$pkg $pkg1"
    4646    rm -f $pkg1
     
    5050if [ "`echo $c | grep  mondo`" != "" ]; then
    5151    cd ${BASE}/svn
    52     $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.spec > ${TOPDIR}/SPECS/mondo.spec
    53     cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mondo.spec
    54     chmod 644 ${TOPDIR}/SPECS/mondo.spec
     52    $TOOLHOME/mkebuild ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.ebuild > ${TOPDIR}/ebuild/mondo.ebuild
     53    cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/ebuild/mondo.ebuild
     54    chmod 644 ${TOPDIR}/ebuild/mondo.ebuild
    5555    rm -rf mondo-${MONDO_VER}/distributions
    5656
    57     pkg1="${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm"
     57    pkg1="${TOPDIR}/ebuild/mondo-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm"
    5858    pkg="$pkg $pkg1"
    5959    rm -f $pkg1
    6060fi
    6161
    62 cd ${TOPDIR}/SPECS
     62cd ${TOPDIR}/ebuild
    6363status=0
    6464if [ "`echo $c | grep kernel`" != "" ]; then
    65     echo "Generating mindi-kernel RPMS"
    66     log=/tmp/mindi-kernel-rpm.log
    67     rpmbuild -ba mindi-kernel.spec 2> $log 1> $log
     65    echo "Generating mindi-kernel ebuild"
     66    log=/tmp/mindi-kernel-ebuild.log
     67    rpmbuild -ba mindi-kernel.ebuild 2> $log 1> $log
    6868    if [ $? != 0 ]; then
    6969        cat $log
     
    7272fi
    7373if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    74     echo "Generating mindi RPMS"
    75     log=/tmp/mindi-rpm.log
    76     rpmbuild -ba mindi.spec 2> $log 1> $log
     74    echo "Generating mindi ebuild"
     75    log=/tmp/mindi-ebuild.log
     76    rpmbuild -ba mindi.ebuild 2> $log 1> $log
    7777    if [ $? != 0 ]; then
    7878        cat $log
     
    8181fi
    8282if [ "`echo $c | grep mondo`" != "" ]; then
    83     echo "Generating mondo RPMS"
    84     log=/tmp/mondo-rpm.log
    85     rpmbuild -ba mondo.spec 2> $log 1> $log
     83    echo "Generating mondo ebuild"
     84    log=/tmp/mondo-ebuild.log
     85    rpmbuild -ba mondo.ebuild 2> $log 1> $log
    8686    if [ $? != 0 ]; then
    8787        cat $log
     
    9090fi
    9191if [ $status = 0 ]; then
    92     echo "Installing RPMS as root ($pkg)"
     92    echo "Installing ebuild as root ($pkg)"
    9393    su - -c "$opt rpm -Uvh --force $pkg"
    9494fi
  • branches/stable/tools/mkqemu

    r466 r530  
    1212
    1313if [ _"$2" == _"" ]; then
    14     export SVN_VM="mdk101 mdk102 mdv2006 rh73 rh9 fc4 fc5 rhel3 rhel4 suse10 sles9 debian31"
     14    export SVN_VM="mdk101 mdk102 mdv2006 rh73 rh9 fc4 fc5 rhel3 rhel4 suse10 sles9 debian31 slackware102 gentoo"
    1515else
    1616    export SVN_VM="$2"
     
    4747    \$SVN_HOME/$1/tools/mkdeb < /dev/null
    4848else
    49     \$SVN_HOME/$1/tools/mkrpm < /dev/null
     49    echo \$SVN_VM | grep -q "slack"
     50    if [ \$? -eq 0 ]; then
     51        \$SVN_HOME/$1/tools/mkslack < /dev/null
     52    else
     53        echo \$SVN_VM | grep -q "gentoo"
     54        if [ \$? -eq 0 ]; then
     55            \$SVN_HOME/$1/tools/mkemerge < /dev/null
     56        else
     57            \$SVN_HOME/$1/tools/mkrpm < /dev/null
     58        fi
     59    fi
    5060fi
    5161\$SVN_HOME/$1/tools/mkdeliv
     
    5363
    5464ipvm=10.0.2.15
    55 
    5665
    5766for m in $SVN_VM; do
  • branches/stable/tools/mkrpm

    r424 r530  
    1818
    1919if [ "$1" = "" ]; then
    20     c="mindi mondo"
     20    c="mondo-doc mindi mondo"
    2121else
    22     c=$1
     22    if [ "$1" = "all" ]; then
     23        c="mindi-kernel mondo-doc mindi mondo"
     24    else
     25        c=$1
     26    fi
    2327fi
    2428
     
    4852    opt="rm -rf /usr/lib/mindi ;"
    4953fi
    50 if [ "`echo $c | grep  mondo`" != "" ]; then
     54if [ "`echo $c | grep mondo-doc`" != "" ]; then
     55    cd ${BASE}/svn
     56    $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo-doc.spec > ${TOPDIR}/SPECS/mondo-doc.spec
     57    cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mondo-doc.spec
     58    chmod 644 ${TOPDIR}/SPECS/mondo-doc.spec
     59
     60    pkg1="${TOPDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm"
     61    pkg="$pkg $pkg1"
     62    rm -f $pkg1
     63fi
     64
     65if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then
    5166    cd ${BASE}/svn
    5267    $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.spec > ${TOPDIR}/SPECS/mondo.spec
     
    6277cd ${TOPDIR}/SPECS
    6378status=0
    64 if [ "`echo $c | grep kernel`" != "" ]; then
    65     echo "Generating mindi-kernel RPMS"
    66     log=/tmp/mindi-kernel-rpm.log
    67     rpmbuild -ba mindi-kernel.spec 2> $log 1> $log
    68     if [ $? != 0 ]; then
    69         cat $log
    70         status=-1
    71     fi
    72 fi
    73 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    74     echo "Generating mindi RPMS"
    75     log=/tmp/mindi-rpm.log
    76     rpmbuild -ba mindi.spec 2> $log 1> $log
    77     if [ $? != 0 ]; then
    78         cat $log
    79         status=-1
    80     fi
    81 fi
    82 if [ "`echo $c | grep mondo`" != "" ]; then
    83     echo "Generating mondo RPMS"
    84     log=/tmp/mondo-rpm.log
    85     rpmbuild -ba mondo.spec 2> $log 1> $log
     79
     80for p in $c; do
     81    echo "Generating $p RPMS"
     82    log=/tmp/$p-rpm.log
     83    rpmbuild -ba $p.spec 2> $log 1> $log
    8684    if [ $? != 0 ]; then
    8785        cat $log
  • branches/stable/tools/qemu-vm.txt

    r466 r530  
    33qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
    44
     5# RPM based : urpmi, yum install, yast2
    56    neon newt-devel slang-devel autoconf automake subversion libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man docbook-dtd41-sgml groff lynx
     7
     8# gentoo
     9Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
     10emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue
    611
    712Changing CD during install:
     
    1823perl -pi -e 's/"us"/"fr"/' /etc/X11/XF86Config
    1924perl -pi -e 's/"us"/"fr"/' /etc/X11/xorg.conf
     25Slack: put loadkeys fr in /etc/rc.d/rc.keymap
    2026
    2127Conf IP:
  • branches/stable/tools/rpm-env

    r442 r530  
    99prem=`echo $dname |cut -c1`
    1010if [ ${prem} == "/" ]; then
    11         export TOOLHOME=$dname
     11    export TOOLHOME=$dname
    1212else
    1313    export TOOLHOME=${PWD}/$dname
Note: See TracChangeset for help on using the changeset viewer.