head	1.8;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.8
	OPENPKG_E1_MP:1.8
	OPENPKG_E1_MP_2_STABLE:1.8.2.2
	OPENPKG_E1_FP:1.8.2.2
	OPENPKG_2_STABLE_MP:1.8
	OPENPKG_2_STABLE_20061018:1.8.2.2
	OPENPKG_2_STABLE:1.8.0.2
	OPENPKG_CW_FP:1.6
	OPENPKG_1_STABLE_MP:1.6;
locks; strict;
comment	@# @;


1.8
date	2006.08.25.19.15.53;	author rse;	state Exp;
branches
	1.8.2.1;
next	1.7;
commitid	Tvsj1UyQ8rQ89gKr;

1.7
date	2005.05.09.21.40.55;	author ms;	state Exp;
branches;
next	1.6;

1.6
date	2003.07.22.08.10.37;	author rse;	state Exp;
branches;
next	1.5;

1.5
date	2003.07.19.17.05.42;	author rse;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.17.21.34.30;	author thl;	state Exp;
branches;
next	1.3;

1.3
date	2003.07.10.07.50.13;	author rse;	state Exp;
branches;
next	1.2;

1.2
date	2003.06.24.12.07.38;	author thl;	state Exp;
branches;
next	1.1;

1.1
date	2002.10.10.09.38.48;	author cs;	state Exp;
branches;
next	;

1.8.2.1
date	2006.08.25.19.15.53;	author rse;	state dead;
branches;
next	1.8.2.2;
commitid	iZxwRSmmWscPXUQr;

1.8.2.2
date	2006.10.16.14.47.33;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.8
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@#!@@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

@


1.8.2.1
log
@file rc.ant was added on branch OPENPKG_2_STABLE on 2006-10-16 14:47:33 +0000
@
text
@d1 23
@


1.8.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 23
#!@@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

@


1.7
log
@integrate idea from Matthias KURZ to install docs, correct the ANT_HOME path, and tag config files, also add %status section to run command script
@
text
@d1 1
a1 1
#!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc
@


1.6
log
@cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies
@
text
@d8 10
a17 1
    ant_home="@@l_prefix@@"
@


1.5
log
@replace opXXXX with rcXXXX (PR#207)
@
text
@d10 1
a10 1
%env -p 999
@


1.4
log
@migrate opServiceEnabled to opService ... enable yes; use new bootstrap feature and apply opService short circuit to %env
@
text
@d11 1
a11 1
    opService ant enable yes || exit 0
@


1.3
log
@use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable
@
text
@d11 3
a13 4
    if opServiceEnabled ant; then
        ANT_HOME="$ant_home"
        export ANT_HOME
    fi
@


1.2
log
@cosmetics: align/fix/unify rc header comment
@
text
@d7 1
a7 1
    ant_enable="yes"
@


1.1
log
@New package: Apache Ant
@
text
@d3 1
a3 1
##  rc.ant -- Run-Commands for Apache Ant build tool
@

