OSSP CVS Repository

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

ossp-pkg/snmpdx/devtool.conf 1.9
##
##  devtool.conf -- Development Tool Configuration
##

%autogen
    @autogen shtool   2.0.3 "2.0.*" all
    @autogen autoconf 2.59  "2.5[4-9]*"

%autoclean
    @autoclean shtool
    @autoclean autoconf

%configure
    ./configure \
        --prefix=/tmp/snmpdx \
        --with-openpkg=/openpkg \
        --with-snmp=/openpkg \
        --with-perl=/openpkg/bin/perl \
        "$@"

%release
    ./devtool version
    ./devtool tag
    ./devtool dist
    ./devtool upload

%version
    ./shtool version -ltxt -n "OSSP snmpdx" -p "snmpdx_" -e VERSION
    V=`./shtool version -ltxt -dlong VERSION`
    sed -e "s/  Version .*/  Version $V/g" <README >README.n && mv README.n README

%tag
    V=`./shtool version -ltxt -dshort VERSION | sed -e 's;\.;_;g'`
    echo "+++ tagging CVS sources as SNMPDX_${V}"
    cvs commit -m 'flush pending changes before tagging'
    cvs tag SNMPDX_${V}

%dist
    echo "+++ removing old tarballs"
    rm -f snmpdx-*.tar.gz
    echo "+++ generating"
    ./devtool autoclean
    ./devtool autogen
    echo "+++ configuring"
    ./devtool configure
    echo "+++ building"
    make clean all man
    echo "+++ cleaning"
    make distclean
    echo "+++ fixing"
    ./shtool fixperm -v .
    echo "+++ rolling"
    V=`./shtool version -lc -dshort VERSION`
    ./shtool tarball -o snmpdx-${V}.tar.gz -d snmpdx-${V} -u ossp -g ossp \
                     -e '00*,CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' .
    ls -l snmpdx-${V}.tar.gz
    echo "+++ testing"
    gunzip <snmpdx-${V}.tar.gz | tar tvf - | head -10
    echo "[...]"
    gunzip <snmpdx-${V}.tar.gz | tar tvf - | tail -10

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

%test
    /openpkg/bin/snmpwalk -M /tmp/snmpdx/share/snmpdx:/openpkg/share/snmp/mibs -cpublic -v2c -mALL dv1 .1.3.6.1.4.1.4007.42


CVSTrac 2.0.1