Bugzilla – Bug 3230
rpm should add service entries to /etc/services
Last modified: 2019-01-25 10:41:23 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...
any chance you could go as far as providing a diff for the .spec file?
Retargetting for post 6.5 assessment.
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.
Unassigned bugs cannot have a priority.