Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How to add a service to /etc/services?
Date: Sun, 07 Oct 2007 15:00:32
Message-Id: b41005390710070748n4cf5174eha8c78aaea433983f@mail.gmail.com
In Reply to: [gentoo-dev] How to add a service to /etc/services? by Ulrich Mueller
1 On 10/7/07, Ulrich Mueller <ulm@g.o> wrote:
2 > Hi,
3 >
4 > I've found the following interesting piece of code in src_install
5 > of both app-emacs/lookup and net-misc/ndptd:
6 >
7 > if ! $(grep 2010/tcp /etc/services >/dev/null 2>&1) ; then
8 > cp /etc/services ${T}/services
9 > cat >>${T}/services<<-EOF
10 > ndtp 2010/tcp # Network Dictionary Transfer Protocol
11 > EOF
12 > insinto /etc
13 > doins ${T}/services
14 > fi
15 >
16 > Which leads me to the question: What is the recommended way to add a
17 > service to /etc/services? And shouldn't "getent" (or even "egetent")
18 > be used to determine if it already exists?
19
20 Ask upstream to add it in a future version?
21
22 -Alec
23 --
24 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] How to add a service to /etc/services? Ulrich Mueller <ulm@g.o>