OSSP CVS Repository

ossp - ossp-pkg/flow2rrd/devtool.conf
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/flow2rrd/devtool.conf
##
##  devtool.conf -- Development Tool Configuration
##

%autogen
    @autogen autoconf 2.59 "2.5*"
    @autogen shtool 2.0.1  "2.0.*" all

%autoclean
    @autoclean autoconf
    @autoclean shtool

%configure
    ./configure \
        --prefix=/tmp/flow2rrd \
        --with-perl=/usr/opkg/bin/perl \
        --with-pod2man=/usr/opkg/bin/pod2man \
        "$@"

%version
    ./shtool version -l txt -n "OSSP flow2rrd" -e VERSION
    V=`./shtool version -l txt -d long VERSION`
    sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
    mv README.n README

%dist
    echo "+++ generating"
    ./devtool autoclean
    ./devtool autogen
    echo "+++ configuring"
    ./configure
    echo "+++ building"
    make clean all
    echo "+++ cleaning"
    make distclean
    echo "+++ fixing"
    ./shtool fixperm -v .
    echo "+++ rolling"
    V=`./shtool version -l txt -d short VERSION`
    ./shtool tarball -o flow2rrd-${V}.tar.gz -d flow2rrd-${V} -u ossp -g flow2rrd \
                     -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz' -c 'gzip --best' .
    ls -l flow2rrd-${V}.tar.gz
    echo "+++ testing"
    gunzip <flow2rrd-${V}.tar.gz | tar tvf -

%upload
    echo "+++ copying to ftp://ftp.ossp.org/pkg/tool/flow2rrd/"
    V=`./shtool version -ltxt -dshort VERSION`
    scp flow2rrd-${V}.tar.gz master.ossp.org:/e/ossp/ftp/pkg/tool/flow2rrd/


CVSTrac 2.0.1