Changeset 1038


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

Work on FreeBSD

Location:
branches/2.2.1/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.1/tools/build2pkg

    r1027 r1038  
    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/2.2.1/tools/distro-env

    r1024 r1038  
    6464            export dver = "sid"
    6565        fi
     66    elif [ -e /etc/motd && grep -q FreeBSD /etc/motd ]; then
     67        export ddir="freebsd"
     68        export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
    6669    else
    6770        export ddir="unknown"
     
    112115    dtype="rpm"
    113116    suf=".`echo $dver | sed 's/\.//'`mdv"
     117elif [ $ddir = "freebsd" ]; then
     118    dfam="freebsd"
     119    dtype="port"
     120    suf=".`echo $dver | sed 's/\.//'`fbsd"
    114121else
    115122    dfam="unknown"
  • branches/2.2.1/tools/pkg2mdv

    r1033 r1038  
    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/2.2.1/tools/svn2build

    r1024 r1038  
    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.