#!@l_prefix@/bin/openpkg rc
##
##  rc.ant -- Run-Commands
##

%config
    ant_enable="$openpkg_rc_def"
    ant_home=`. @l_prefix@/etc/ant/ant.conf; echo $ANT_HOME`

%status -u root -o
    ant_usable="unknown"
    ant_active="no"
    @l_prefix@/bin/ant -version >/dev/null 2>&1 &&
    ant_usable="yes"
    echo "ant_enable=\"$ant_enable\""
    echo "ant_usable=\"$ant_usable\""
    echo "ant_active=\"$ant_active\""

%env
    rcService ant enable yes || exit 0
    ANT_HOME="$ant_home"
    export ANT_HOME

