Reference

dh_createclipolicy(1)

created the CLI policy files for a package

NAME

dh_createclipolicy - created the CLI policy files for a package

SYNOPSIS

dh_createclipolicy [debhelper options] [-n]

DESCRIPTION

dh_createclipolicy is a debhelper program that is responsible for creating, compiling, and installing policy files for a Debian package. This automatically includes postinst and prerum commands needed to install these policies into the system.

OPTIONS

-n, --noscripts

Do not modify postinst/prerm scripts.

FILE FORMAT

This file uses the policyassemblies files (either policyassemblies or packagename.policyassemblies) to generate the policy file. It supports multiple versions of the policy, including mapping multiple versions to a single file.

The file format of the policyassemblies file is:

path/to/Assembly.dll <Version Range> <Key File>

The fields can be separated with spaces or tabs. Comments start the line with # characters.

Version Range can be a single four-part version, such as =1.2.3.4, or a full range, such as 1.2.3.4-1.2.6.7. For a single line, =the first two numbers must be identical. To have an assembly apply to =multiple versions, such as 1.2.0.0 to 2.4.0.0, there needs to be one =line for each version range.
Key File: The path to the .snk or key file used to sign the =assembly. Policy files have to be compiled with the same key, so this =is required.

NOTES

Note that this command is not idempotent. "dh_clean -k" should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts.

SEE ALSO

debhelper(7)

This program is a part of cli-common-dev.

AUTHOR

Dylan R. E. Moonfire <[email protected]>