Scroll to navigation

DH_CRUFT(1) User Contributed Perl Documentation DH_CRUFT(1)

NAME

dh_cruft - install cruft files into package build directories

SYNOPSIS

dh_cruft [debhelper options]

DESCRIPTION

dh_cruft is a debhelper program that is responsible for installing information files used by cruft(-ng) into package build directories.

FILES

Installed into usr/share/cruft/rules/package in the package build directory. This file is used to register runtime files as belonging to this package. For clarity, directories should end with a '/'.
Appended to usr/share/cruft/rules/package in the package build directory. This file is used to register runtime files as belonging to this package. For claririty, directories should end with a '/'.

Also, a snippet is appended to postrm with the needed rm -rf commands to remove these files on purge phase.

Some basic templating is implemented: the #VERSION# tag will be replaced by the basic upstream version.

This should be a POSIX shell script that dynamically generate a list of files owned by this package.

This script is installed as usr/libexec/cruft/pkg/package in the package build directory.

These script should not be used for simplistic cases that can be handler by .cruft files.

The output of the scripts can contain three kind of records:
* /PATH : the files matched (mandatory)
* @/PATH: this allow indirect ownership lookup,
i.e. the following files belong to the package owning this one file
* package: all following files belongs to package

SEE ALSO

debhelper(1)

This program is a part of debhelper.

cruft(8)

AUTHOR

Alexandre Detiste <alexandre.detiste@gmail.com>

2026-06-17 perl v5.40.1