Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpkg::source::package(3) [debian man page]

Dpkg::Source::Package(3)					   libdpkg-perl 					  Dpkg::Source::Package(3)

NAME
Dpkg::Source::Package - manipulate Debian source packages DESCRIPTION
This module provides an object that can manipulate Debian source packages. While it supports both the extraction and the creation of source packages, the only API that is officially supported is the one that supports the extraction of the source package. FUNCTIONS
$p = Dpkg::Source::Package->new(filename => $dscfile, options => {}) Creates a new object corresponding to the source package described by the file $dscfile. The options hash supports the following options: skip_debianization If set to 1, do not apply Debian changes on the extracted source package. skip_patches If set to 1, do not apply Debian-specific patches. This options is specific for source packages using format "2.0" and "3.0 (quilt)". require_valid_signature If set to 1, the check_signature() method will be stricter and will error out if the signature can't be verified. copy_orig_tarballs If set to 1, the extraction will copy the upstream tarballs next the target directory. This is useful if you want to be able to rebuild the source package after its extraction. $p->get_filename() Returns the filename of the DSC file. $p->get_files() Returns the list of files referenced by the source package. The filenames usually do not have any path information. $p->check_checksums() Verify the checksums embedded in the DSC file. It requires the presence of the other files constituting the source package. If any inconsistency is discovered, it immediately errors out. $bool = $p->is_signed() Returns 1 if the DSC files contains an embedded OpenPGP signature. Otherwise returns 0. $p->check_signature() Implement the same OpenPGP signature check that dpkg-source does. In case of problems, it prints a warning or errors out. If the object has been created with the "require_valid_signature" option, then any problem will result in a fatal error. $p->extract($targetdir) Extracts the source package in the target directory $targetdir. Beware that if $targetdir already exists, it will be erased. AUTHOR
Raphael Hertzog, <hertzog@debian.org> 1.16.15 2014-06-05 Dpkg::Source::Package(3)

Check Out this Related Man Page

Dpkg::Vendor::Default(3)					   libdpkg-perl 					  Dpkg::Vendor::Default(3)

NAME
Dpkg::Vendor::Default - default vendor object DESCRIPTION
A vendor object is used to provide vendor specific behaviour in various places. This is the default object used in case there's none for the current vendor or in case the vendor could not be identified (see Dpkg::Vendor documentation). It provides some hooks that are called by various dpkg-* tools. If you need a new hook, please file a bug against dpkg-dev and explain your need. Note that the hook API has no guaranty to be stable over an extended period. If you run an important distribution that makes use of vendor hooks, you'd better submit them for integration so that we avoid breaking your code. FUNCTIONS
$vendor_obj = Dpkg::Vendor::Default->new() Creates the default vendor object. Can be inherited by all vendor objects if they don't need any specific initialization at object creation time. $vendor_obj->run_hook($id, @params) Run the corresponding hook. The parameters are hook-specific. The supported hooks are: before-source-build ($srcpkg) The first parameter is a Dpkg::Source::Package object. The hook is called just before the execution of $srcpkg->build(). keyrings () The hook is called when dpkg-source is checking a signature on a source package. It takes no parameters, but returns a (possibly empty) list of vendor-specific keyrings. register-custom-fields () The hook is called in Dpkg::Control::Fields to register custom fields. You should return a list of arrays. Each array is an operation to perform. The first item is the name of the operation and corresponds to a field_* function provided by Dpkg::Control::Fields. The remaining fields are the parameters that are passed unchanged to the corresponding function. Known operations are "register", "insert_after" and "insert_before". post-process-changelog-entry ($fields) The hook is called in Dpkg::Changelog to post-process a Dpkg::Changelog::Entry after it has been created and filled with the appropriate values. update-buildflags ($flags) The hook is called in Dpkg::BuildFlags to allow the vendor to override the default values set for the various build flags. $flags is a Dpkg::BuildFlags object. 1.16.0.3 2012-04-17 Dpkg::Vendor::Default(3)
Man Page