Changeset 1039


Ignore:
Timestamp:
Jan 6, 2007, 6:12:54 PM (13 years ago)
Author:
bruno
Message:

Work on FreeBSD's mindi

Location:
branches/stable
Files:
6 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/restore-scripts/mondo/hack-fstab

    r567 r1039  
    11#!/bin/sh
    22#
     3# $Id$
    34#
    4 #
    5 #
    6 #
    7 # 2003/08/04
    8 # - added some logging
    9 #
    10 # mid-2002 --- created
    11 ################################################
    12 
    135
    146LogIt() {
    157    echo "$1" >> /dev/stderr
    168}
    17 
    18 
    199
    2010
     
    3323#    echo "original_fstab_line = $original_fstab_line" >> /dev/stderr
    3424    if [ "`grep "LABEL=" $old_fstab`" != "" ] ; then
    35     if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
    36         device="LABEL=$mountpoint"
    37     fi
     25        if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
     26            device="LABEL=$mountpoint"
     27        fi
    3828    fi
    3929
     
    4434    if [ "$original_fstab_line" != "" ] ; then
    4535#   echo $original_fstab_line | gawk '{i=index($0,$4); print substr($0,i);}'
    46     echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '
     36        echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '
    4737    else
    48     echo -e "defaults 0 0"
     38        echo -e "defaults 0 0"
    4939    fi
    5040}
    51 
    5241
    5342
  • branches/stable/tools/build2pkg

    r1028 r1039  
    125125        export pkg="$pkg $p-${PVER}.deb"
    126126        # Et voila !
     127    elif [  _"$dtype" = _"freebsd" ]; then
    127128    elif [  _"$dfam" = _"slackware" ]; then
    128129        mkdir -p $TOPBUILDDIR/build-${p}/install
  • branches/stable/tools/distro-env

    r1028 r1039  
    6161            export dver = "sid"
    6262        fi
     63    elif [ -e /etc/motd && grep -q FreeBSD /etc/motd ]; then
     64        export ddir="freebsd"
     65        export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
    6366    else
    6467        export ddir="unknown"
     
    109112    dtype="rpm"
    110113    suf=".`echo $dver | sed 's/\.//'`mdv"
     114elif [ $ddir = "freebsd" ]; then
     115    dfam="freebsd"
     116    dtype="port"
     117    suf=".`echo $dver | sed 's/\.//'`fbsd"
    111118else
    112119    dfam="unknown"
  • branches/stable/tools/pkg2mdv

    r1034 r1039  
    7575    # Use mkrel for mdv
    7676    perl -pi -e "s/^Release:[ \t]+..*/Release:  %mkrel $TAG/" SPECS/$p.spec
    77     perl -pi -e "s/^Release:/Packager:  Bruno Cornec <bcornec@mandriva.org>\nRelease:/" SPECS/$p.spec
     77    perl -pi -e "s/^Release:/Packager:  Bruno Cornec <bcornec\@mandriva.org>\nRelease:/" SPECS/$p.spec
    7878    perl -pi -e 's/mindi >= ..*,/mindi/' SPECS/$p.spec
    7979    $TOOLHOME/mdv-changelog.pl SPECS/$p.spec
  • branches/stable/tools/svn2build

    r1028 r1039  
    8686        elif [ "$dtype" = "tgz" ]; then
    8787            m4 $MONDOTMP/mondorescue.mc $dest/distributions/$dfam/slack-desc > $dest/distributions/${ddir}-$dver/slack-desc
     88        elif [ "$dtype" = "port" ]; then
     89            m4 $MONDOTMP/mondorescue.mc $dest/distributions/$dfam/Makefile > $dest/distributions/${ddir}-$dver/Makefile
    8890        elif [ "$dtype" = "deb" ]; then
    8991            cp -a $dest/distributions/$ddir/* $dest/distributions/${ddir}-$dver
Note: See TracChangeset for help on using the changeset viewer.