mirror of https://github.com/bazelbuild/rules_pkg
9.0 KiB
Executable File
9.0 KiB
Executable File
pkg_deb_impl
pkg_deb_impl(name, architecture, architecture_file, breaks, built_using, built_using_file, conffiles, conffiles_file, config, conflicts, data, depends, depends_file, description, description_file, distribution, enhances, homepage, maintainer, out, package, package_file_name, package_variables, postinst, postrm, predepends, preinst, prerm, priority, provides, recommends, replaces, section, suggests, templates, triggers, urgency, version, version_file)
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this target. | Name | required | |
architecture | Package architecture. Must not be used with architecture_file. | String | optional | "all" |
architecture_file | File that contains the package architecture. Must not be used with architecture. | Label | optional | None |
breaks | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
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). | String | optional | "" |
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). | Label | optional | None |
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. | List of strings | optional | [] |
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. | Label | optional | None |
config | config file used for debconf integration. See https://www.debian.org/doc/debian-policy/ch-binary.html#prompting-in-maintainer-scripts. | Label | optional | None |
conflicts | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
data | A tar file that contains the data for the debian package. | Label | required | |
depends | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
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. |
Label | optional | None |
description | The package description. Must not be used with description_file . |
String | optional | "" |
description_file | The package description. Must not be used with description . |
Label | optional | None |
distribution | TBD | String | optional | "unstable" |
enhances | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
homepage | The homepage of the project. | String | optional | "" |
maintainer | The maintainer of the package. | String | required | |
out | See Common Attributes | Label | required | |
package | The name of the package | String | required | |
package_file_name | See Common Attributes. Default: "%{package}-%{version}-%{architecture}.deb | String | optional | "" |
package_variables | See Common Attributes | Label | optional | None |
postinst | The post-install script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html. | Label | optional | None |
postrm | The post-remove script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html. | Label | optional | None |
predepends | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
preinst | "The pre-install script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html. | Label | optional | None |
prerm | The pre-remove script for the package. See http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html. | Label | optional | None |
priority | The priority of the package. See http://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities. | String | optional | "" |
provides | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
recommends | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
replaces | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
section | The section of the package. See http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections. | String | optional | "" |
suggests | See http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps. | List of strings | optional | [] |
templates | templates file used for debconf integration. See https://www.debian.org/doc/debian-policy/ch-binary.html#prompting-in-maintainer-scripts. | Label | optional | None |
triggers | triggers file for configuring installation events exchanged by packages. See https://wiki.debian.org/DpkgTriggers. | Label | optional | None |
urgency | TBD | String | optional | "medium" |
version | Package version. Must not be used with version_file . |
String | optional | "" |
version_file | File that contains the package version. Must not be used with version . |
Label | optional | None |
pkg_deb
pkg_deb(name, archive_name, kwargs)
Creates a deb file. See pkg_deb_impl.
PARAMETERS
Name | Description | Default Value |
---|---|---|
name | - |
none |
archive_name | - |
None |
kwargs | - |
none |