Scroll to navigation

DH_CLIGACPOLICY(1) Debhelper for CLI (Common Language Infrastructure) DH_CLIGACPOLICY(1)

NAME

dh_cligacpolicy - creates and installs a CLI policy file for a package

SYNOPSIS

dh_cligacpolicy [debhelper options] [-n]

DESCRIPTION

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

OPTIONS

Do not modify postinst/prerm scripts.

FILE FORMAT

This file uses the debian/cligacpolicy files (either policyassemblies or debian/packagename.cligacpolicy) 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 cligacpolicy file consists of five properties per line, each one separated by whitespace.

The fields can be separated with spaces or tabs. Comments start the line with # characters and blank lines are ignored.

NOTES

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

EXAMPLE

For the log4net 1.2.10.0 version, a policy file is used to map all versions from 1.2.8.0 to 1.2.9.99 into the current version.

debian/log4net.snk log4net 1.2.8.0-1.2.9.99 1.2.10.0 10

SEE ALSO

debhelper(7)

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

AUTHOR

Dylan R. E. Moonfire <debian@mfgames.com>

2024-03-24 perl v5.38.2