Hi,

I've found the following interesting piece of code in src_install
of both app-emacs/lookup and net-misc/ndptd:

        if ! $(grep 2010/tcp /etc/services >/dev/null 2>&1) ; then
                cp /etc/services ${T}/services
                cat >>${T}/services<<-EOF
                ndtp            2010/tcp                        # Network 
Dictionary Transfer Protocol
                EOF
                insinto /etc
                doins ${T}/services
        fi

Which leads me to the question: What is the recommended way to add a
service to /etc/services? And shouldn't "getent" (or even "egetent")
be used to determine if it already exists?

Ulrich
-- 
[EMAIL PROTECTED] mailing list

Reply via email to