Ignore:
Timestamp:
May 8, 2006, 5:31:14 PM (14 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

File:
1 copied

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.