Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

alien::package::deb(3pm) [linux man page]

Alien::Package::Deb(3pm)				User Contributed Perl Documentation				  Alien::Package::Deb(3pm)

NAME
Alien::Package::Deb - an object that represents a deb package DESCRIPTION
This is an object class that represents a deb package. It is derived from Alien::Package. FIELDS
have_dpkg_deb Set to a true value if dpkg-deb is available. dirtrans After the build stage, set to a hash reference of the directories we moved files from and to, so these moves can be reverted in the cleantree stage. fixperms If this is set to true, the generated debian/rules will run dh_fixperms. METHODS
init Sets have_dpkg_deb if dpkg-deb is in the path. I prefer to use dpkg-deb, if it is available since it is a lot more future-proof. checkfile Detect deb files by their extention. install Install a deb with dpkg. Pass in the filename of the deb to install. test Test a deb with lintian. Pass in the filename of the deb to test. getcontrolfile Helper method. Pass it the name of a control file, and it will pull it out of the deb and return it. scan Implement the scan method to read a deb file. unpack Implement the unpack method to unpack a deb file. getpatch This method tries to find a patch file to use in the prep stage. If it finds one, it returns it. Pass in a list of directories to search for patches in. prep Adds a populated debian directory the unpacked package tree, making it ready for building. This can either be done automatically, or via a patch file. build Build a deb. cleantree Delete the entire debian/ directory. package Set/get package name. Always returns the packge name in lowercase with all invalid characters rmoved. The name is however, stored unchanged. version Set/get package version. When the version is set, it will be stripped of any epoch. If there is a release, the release will be stripped away and used to set the release field as a side effect. Otherwise, the release will be set to 1. More sanitization of the version is done when the field is retrieved, to make sure it is a valid debian version field. release Set/get package release. Always returns a sanitized release version. The release is however, stored unchanged. description Set/get description Although the description is stored internally unchanged, this will always return a sanitized form of it that is compliant with Debian standards. date Returns the date, in rfc822 format. email Returns an email address for the current user. username Returns the user name of the real uid. postinst Returns the postinst. This may include generated shell code to set owners and groups from the owninfo field, and update modes from the modeinfo field. AUTHOR
Joey Hess <joey@kitenet.net> perl v5.12.3 2011-06-11 Alien::Package::Deb(3pm)

Check Out this Related Man Page

dpkg-name(1)							  dpkg utilities						      dpkg-name(1)

NAME
dpkg-name - rename Debian packages to full package names SYNOPSIS
dpkg-name [option...] [--] file... DESCRIPTION
This manual page documents the dpkg-name program which provides an easy way to rename Debian packages into their full package names. A full package name consists of package_version_architecture.package-type as specified in the control file of the package. The version part of the filename consists of the upstream version information optionally followed by a hyphen and the revision information. The package-type part comes from that field if present or fallbacks to deb. OPTIONS
-a, --no-architecture The destination filename will not have the architecture information. -k, --symlink Create a symlink, instead of moving. -o, --overwrite Existing files will be overwritten if they have the same name as the destination filename. -s, --subdir [dir] Files will be moved into a subdirectory. If the directory given as argument exists the files will be moved into that directory oth- erwise the name of the target directory is extracted from the section field in the control part of the package. The target directory will be `unstable/binary-architecture/section'. If the section is not found in the control, then `no-section' is assumed, and in this case, as well as for sections `non-free' and `contrib' the target directory is `section/binary-architecture'. The section field isn't required so a lot of packages will find their way to the `no-section' area. Use this option with care, it's messy. -c, --create-dir This option can used together with the -s option. If a target directory isn't found it will be created automatically. Use this option with care. -?, --help Show the usage message and exit. -v, --version Show the version and exit. EXAMPLES
dpkg-name bar-foo.deb The file `bar-foo.deb' will be renamed to bar-foo_1.0-2_i386.deb or something similar (depending on whatever information is in the control part of `bar-foo.deb'). find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name -a All files with the extension `deb' in the directory /root/debian and its subdirectory's will be renamed by dpkg-name if required into names with no architecture information. find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s -c Don't do this. Your archive will be messed up completely because a lot of packages don't come with section information. Don't do this. dpkg-deb --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb This can be used when building new packages. BUGS
Some packages don't follow the name structure package_version_architecture.deb. Packages renamed by dpkg-name will follow this structure. Generally this will have no impact on how packages are installed by dselect(1)/dpkg(1), but other installation tools might depend on this naming structure. SEE ALSO
deb(5), deb-control(5), dpkg(1), dpkg-deb(1), find(1), xargs(1). Debian Project 2012-04-15 dpkg-name(1)
Man Page