debian/package.nss
Lists the services to inject into /etc/nsswitch.conf when a package is configured and to remove when a package is removed or purged.
Each line in that file (a directive) should be of the form
db position service action condition
where the fields contain the following pieces of information:
- db
-
The NSS database in which the service will be added. Usually
"hosts".
- position
-
Where to add the NSS service.
Possible values are
"first","last","before=service","after=service", plus the pseudo-positions"remove-only","database-add"and"database-require".The pseudo-position
"remove-only"is used to mark services that are not going to be added during the installation of the package, but that will be removed during its deinstallation (e.g., legacy services).The pseudo-position
"database-add"is used to request the addition of a non-standard NSS database to /etc/nsswitch.conf during the installation of the package and its removal during the deinstallation of the package. When"database-add"is used, all other fields in the directive should be left empty.The pseudo-position
"database-require"is used to announce that one or more services in the nss file will be installed under a non-standard NSS database added by another package. When"database-require"is used, all other fields in the directive should be left empty.
- service
-
The name of the NSS service to add.
- action
-
Optional action specification
"[STATE=ACTION]".
- condition
-
Optional set of conditions to better define when a service should (or should not) be installed.
Only one kind of condition is currently defined:
"skip-if-present=service,service,...".
Additionally, text between a "#" character and the end of line is ignored.