On 10/7/07, Ulrich Mueller <[EMAIL PROTECTED]> wrote:
> 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?

Ask upstream to add it in a future version?

-Alec
-- 
[EMAIL PROTECTED] mailing list

Reply via email to