Rule for creating Debian packages.

Rules

pkg_deb_impl

Example usage (generated)

load("@rules_pkg//pkg/private/deb:deb.bzl", "pkg_deb_impl")

pkg_deb_impl(
    # A unique name for this target.
    name = "",
    # A tar file that contains the data for the debian package.
    data = "",
    # The maintainer of the package.
    maintainer = "",
    # See Common Attributes
    out = "",
    # The name of the package
    package = "",
)

name

A unique name for this target.

architecture

Package architecture. Must not be used with architecture_file.

architecture_file

File that contains the package architecture. Must not be used with architecture.

breaks

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

built_using

The tool that were used to build this package provided either inline (with built_using) or from a file (with built_using_file).

built_using_file

The tool that were used to build this package provided either inline (with built_using) or from a file (with built_using_file).

conffiles

The list of conffiles or a file containing one conffile per line. Each item is an absolute path on the target system where the deb is installed. See https://www.debian.org/doc/debian-policy/ch-files.html#s-config-files.

conffiles_file

The list of conffiles or a file containing one conffile per line. Each item is an absolute path on the target system where the deb is installed. See https://www.debian.org/doc/debian-policy/ch-files.html#s-config-files.

config

config file used for debconf integration. See https://www.debian.org/doc/debian-policy/ch-binary.html#prompting-in-maintainer-scripts.

conflicts

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

data

A tar file that contains the data for the debian package.

depends

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

depends_file

File that contains a list of package dependencies. Must not be used with depends. See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

description

The package description. Must not be used with description_file.

description_file

The package description. Must not be used with description.

distribution

"distribution: See http://www.debian.org/doc/debian-policy.

enhances

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

homepage

The homepage of the project.

maintainer

The maintainer of the package.

out

See Common Attributes

package

The name of the package

package_file_name

See Common Attributes. Default: "{package}-{version}-{architecture}.deb

package_variables

See Common Attributes

postinst

The post-install script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html.

postrm

The post-remove script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html.

predepends

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

preinst

"The pre-install script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html.

prerm

The pre-remove script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html.

priority

The priority of the package. See http://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities.

provides

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

recommends

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

replaces

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

section

The section of the package. See http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections.

suggests

See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps.

templates

templates file used for debconf integration. See https://www.debian.org/doc/debian-policy/ch-binary.html#prompting-in-maintainer-scripts.

triggers

triggers file for configuring installation events exchanged by packages. See https://wiki.debian.org/DpkgTriggers.

urgency

"urgency: See http://www.debian.org/doc/debian-policy.

version

Package version. Must not be used with version_file.

version_file

File that contains the package version. Must not be used with version.