On Sunday 07 October 2007, Ulrich Mueller wrote:
> 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

these packages need to get shot in the head ... those will cause package 
collisions

> Which leads me to the question: What is the recommended way to add a
> service to /etc/services?

have the port properly registered with IANA and then baselayout will integrate 
the updates

> And shouldn't "getent" (or even "egetent") 
> be used to determine if it already exists?

no, because that implies it's ok having anything other than baselayout or the 
user modify the file
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to