From: | Ulrich Mueller <ulm@g.o> |
---|---|
To: | gentoo-dev@l.g.o |
Subject: | [gentoo-dev] How to add a service to /etc/services? |
Date: | Sun, 07 Oct 2007 10:26:54 |
Message-Id: | 18184.45381.786121.308097@a1ihome1.kph.uni-mainz.de |
1 | Hi, |
2 | |
3 | I've found the following interesting piece of code in src_install |
4 | of both app-emacs/lookup and net-misc/ndptd: |
5 | |
6 | if ! $(grep 2010/tcp /etc/services >/dev/null 2>&1) ; then |
7 | cp /etc/services ${T}/services |
8 | cat >>${T}/services<<-EOF |
9 | ndtp 2010/tcp # Network Dictionary Transfer Protocol |
10 | EOF |
11 | insinto /etc |
12 | doins ${T}/services |
13 | fi |
14 | |
15 | Which leads me to the question: What is the recommended way to add a |
16 | service to /etc/services? And shouldn't "getent" (or even "egetent") |
17 | be used to determine if it already exists? |
18 | |
19 | Ulrich |
20 | -- |
21 | gentoo-dev@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-dev] How to add a service to /etc/services? | "Jan Kundrát" <jkt@g.o> |
Re: [gentoo-dev] How to add a service to /etc/services? | Alec Warner <antarus@g.o> |
Re: [gentoo-dev] How to add a service to /etc/services? | Thomas de Grenier de Latour <degrenier@×××××××××××.fr> |
Re: [gentoo-dev] How to add a service to /etc/services? | Mike Frysinger <vapier@g.o> |