On Wednesday 06 July 2005 09:55 am, Diego 'Flameeyes' Pettenò wrote:
> On Wednesday 06 July 2005 15:36, Aron Griffis wrote:
> > Diego: what is the content of doxinetd?
>
> Right now? It doesn't exists.
> It was an idea. I think something like:
>
> doxinetd() {
>       if ! hasq xinetd ${IUSE} || use xinetd;
>               insinto /etc/xinetd.d #or whatever the dir is, not sure about it
>               doins $@
>       fi
> }
>
> that's just a quick mockup, sure.

the hasq part is pointless and the insinto is bad form for a do* func

doxinetd() {
    if use xinetd ; then
        INSDESTREE=/etc/xinetd.d doins "$@"
    else
        true
    fi
}

-- 
gentoo-dev@gentoo.org mailing list

Reply via email to