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 |