Bug 3230 - rpm should add service entries to /etc/services
: rpm should add service entries to /etc/services
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: RPM
: 6.2.1
: PC RedHat Linux
: -- enhancement (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-02 03:06 UTC by Adam Spiers
Modified: 2019-01-25 10:41 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Spiers 2006-04-02 03:06:43 UTC
On install, the %post section of the slimserver rpm should ensure the following entries are 
in /etc/services on all UNIX-like platforms:

slimweb         9000/tcp
slimcli         9090/tcp
slimctl         3483/tcp
slimdiscovery   3483/udp

This can aid firewall configuration, and improves the output from any tool which
analyses the network, such as netstat, lsof, iftop, tcpdump, ethereal etc. etc.

%postun should corresponding remove the entries, but only if the rpm is being erased, not 
upgraded!  Don't forget to check $1 for this:

http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html

Thanks...
Comment 1 KDF 2006-04-02 11:23:23 UTC
any chance you could go as far as providing a diff for the .spec file?
Comment 2 Dan Sully 2006-08-04 17:19:22 UTC
Retargetting for post 6.5 assessment.
Comment 3 Mark Miksis 2006-12-24 12:30:35 UTC
FWIW, according to IANA these ports are officially registered as follows:

slim-devices    3483/tcp   Slim Devices Protocol
slim-devices    3483/udp   Slim Devices Protocol
cslistener      9000/tcp    CSlistener
cslistener      9000/udp    CSlistener
websm           9090/tcp    WebSM
websm           9090/udp    WebSM

A quick review reveals that ALL of the above ports are listed as-is in the /etc/services file for Fedora while NONE of them are listed in Debian.  

I don't know what CSlistener and WebSM are, but I'm not sure we want RPM or some other installer mucking around with a /etc/services file that may or may not contain entries for ports used by slimserver but registered by other apps.

It seems to me that the best solution is for SlimDevices to get all used ports properly registered and then figure out how to get them included in upstream distribution's /etc/services files.
Comment 4 Alan Young 2011-11-06 23:24:14 UTC
Unassigned bugs cannot have a priority.