CPANPLUS::Dist::Debora::Package::Debian - Create Debian packages
version 0.012
use CPANPLUS::Dist::Debora::Package::Debian; my $package = CPANPLUS::Dist::Debora::Package::Debian->new(module => $module); my $ok = $package->create(verbose => 0|1); my $ok = $package->install(verbose => 0|1);
This CPANPLUS::Dist::Debora::Package subclass creates Debian packages from Perl distributions.
my $priority = CPANPLUS::Dist::Debora::Package::Debian->format_priority;
Checks if the Debian package tools are available and if the system uses Debian packages.
my $ok = $package->create(verbose => 0|1);
Creates a package.
my $ok = $package->install(verbose => 0|1);
Installs the package.
Returns the package filename, for example ~/.cpanplus/5.36.1/build/XXXX/libsome-module-perl_1.0-1cpanplus_all.deb.
my $arch = $package->arch;
Returns "all" if the Perl distribution is hardware independent. Otherwise the hardware architecture is returned, for example "amd64".
my $version = $package->version_with_epoch;
Returns the version with the epoch prepended if there is an epoch. The epochs are read from /var/lib/dpkg/available or the environment variable EPOCH.
EPOCH
my $revision = $package->revision;
Returns the package revision, which is composed of the build number and the suffix 'cpanplus'.
my $debiandir = $package->debiandir;
Returns the path to the debian subdirectory, e.g. ~/.cpanplus/5.36.1/build/XXXX/Some-Module-1.0/debian.
for my $package_name (@{$package->provides}) { say $package_name; }
Returns virtual packages that are provided by this package.
my $text = $package->changelog;
Fills in a template and returns a changelog file.
my $text = $package->control;
Fills in a template and returns a control file.
my $text = $package->copyright;
Fills in a template and returns a copyright file.
my $text = $package->docs;
Returns a docs file.
my $text = $package->rules;
Fills in a template and returns a rules file.
See CPANPLUS::Dist::Debora for diagnostics.
See CPANPLUS::Dist::Debora for supported files and environment variables.
Requires the Perl modules CPANPLUS and Text::Template from CPAN.
Requires the operating system packages "perl", "build-essential", "debhelper", "fakeroot" and "sudo". The minimum supported debhelper version is 12.
None.
None known.
dpkg(1), dpkg-buildpackage(1), debhelper(7)
Andreas Vögele <voegelas@cpan.org>
Copyright (C) 2023 Andreas Vögele
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CPANPLUS::Dist::Debora, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPANPLUS::Dist::Debora
CPAN shell
perl -MCPAN -e shell install CPANPLUS::Dist::Debora
For more information on module installation, please visit the detailed CPAN module installation guide.