Re: Bug#1182: netbase /etc/inetd.conf is an auto-handled conffile
Peter Tobias writes:
> [...] I've
> written a perl module which provides three different functions:
> 1. add_service($newentry, $group)
> 2. enable_service($service) /* called by add_service */
> 3. disable_service($service)
Oh, good ! Can we have them in a separate command, as well, please ?
How about /usr/sbin/update-inetd ?
> The netbase postinst script will create a base inetd.conf file if that
> file does not exist. I have added a few labels to that base inetd.conf
> file, e.g. STANDARD, BSD, MAIL, INFO, BOOT, RPC and OTHER. If you want
> to add an entry you can specify the location (group) where it should
> appear. This has the advantage that such a file with sorted entries
> looks much better.
> If a package (e.g. smail) wants to add entries to
> inetd.conf it only needs the following lines in the postinst script:
> [ details deleted ]
> If you reinstall that package the add_service function will only
> re-enable that service. If the service was disabled by the user the
> DebianNet function won't touch it.
How does it do this ?
> I've just removed that entry (and the nntp, uucp, comsat, cfingerd and
> kerberos entries). Packages that need such an entry should add them.
> BTW: Where should the netbase package install the DebianNet module
> (/usr/lib/perl5 ?).
This is for the Perl maintainer to answer, I think, but /usr/lib/perl5
is right. Empirically the the search path is
/usr/lib/perl5/i486-linux /usr/lib/perl5 .
(the first entry was added by an environment variable.)
Hmm, should this not include /usr/local/lib/perl5/i486-linux and
/usr/local/lib/perl5 ? (This should of course be documented somewhere
too, and perhaps the Perl package should create /usr/local/lib/perl5).