<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see &lt;https://www.gnu.org/licenses/&gt;.

=encoding utf8

=head1 NAME

Dpkg - module with core variables

=head1 DESCRIPTION

The Dpkg module provides a set of variables with information concerning
this system installation.

It is also the entry point to the Dpkg module hierarchy.

=cut

package Dpkg 2.00;

use strict;
use warnings;

our @EXPORT_OK = qw(
    $PROGNAME
    $PROGVERSION
    $PROGMAKE
    $PROGTAR
    $PROGPATCH
    $CONFDIR
    $ADMINDIR
    $LIBDIR
    $DATADIR
);

use Exporter qw(import);

=head1 VARIABLES

=over 4

=item $Dpkg::PROGNAME

Contains the name of the current program.

=item $Dpkg::PROGVERSION

Contains the version of the dpkg suite.

=item $Dpkg::PROGMAKE

Contains the name of the system GNU make program.

=item $Dpkg::PROGTAR

Contains the name of the system GNU tar program.

=item $Dpkg::PROGPATCH

Contains the name of the system GNU patch program (or another implementation
that is directory traversal resistant).

=item $Dpkg::CONFDIR

Contains the path to the dpkg system configuration directory.

=item $Dpkg::ADMINDIR

Contains the path to the dpkg database directory.

=item $Dpkg::LIBDIR

Contains the path to the dpkg methods and plugins directory.

=item $Dpkg::DATADIR

Contains the path to the dpkg architecture tables directory.

=back

=cut

our ($PROGNAME) = $0 =~ m{(?:.*/)?([^/]*)};

# The following lines are automatically fixed at install time
our $PROGVERSION = '1.22.6';
our $PROGMAKE = 'make';
our $PROGTAR = 'tar';
our $PROGPATCH = 'patch';

our $CONFDIR = '/etc/dpkg';
our $ADMINDIR = '/var/lib/dpkg';
our $LIBDIR = '/usr/lib/dpkg';
our $DATADIR = '/usr/share/dpkg';

$DATADIR = $ENV{DPKG_DATADIR} if defined $ENV{DPKG_DATADIR};

=head1 MODULES

The following is the list of public modules within the Dpkg hierarchy. Only
modules with versions 1.00 or higher, and only the interfaces documented in
their POD are considered public.

=over

=item L&lt;Dpkg&gt;

This module, core variables.

=item L&lt;Dpkg::Arch&gt;

Architecture handling functions.

=item L&lt;Dpkg::BuildFlags&gt;

Set, modify and query compilation build flags.

=item L&lt;Dpkg::BuildInfo&gt;

Build information functions.

=item L&lt;Dpkg::BuildOptions&gt;

Parse and manipulate B&lt;DEB_BUILD_OPTIONS&gt;.

=item L&lt;Dpkg::BuildProfiles&gt;

Parse and manipulate build profiles.

=item L&lt;Dpkg::Changelog&gt;

Parse changelogs.

=item L&lt;Dpkg::Changelog::Entry&gt;

Represents a changelog entry.

=item L&lt;Dpkg::Changelog::Parse&gt;

Generic changelog parser for F&lt;dpkg-parsechangelog&gt;.

=item L&lt;Dpkg::Checksums&gt;

Generate and parse checksums.

=item L&lt;Dpkg::Compression&gt;

Simple database of available compression methods.

=item L&lt;Dpkg::Compression::FileHandle&gt;

Transparently compress and decompress files.

=item L&lt;Dpkg::Compression::Process&gt;

Wrapper around compression tools.

=item L&lt;Dpkg::Conf&gt;

Parse F&lt;dpkg&gt; configuration files.

=item L&lt;Dpkg::Control&gt;

Parse and manipulate Debian control information (F&lt;.dsc&gt;, F&lt;.changes&gt;,
F&lt;Packages&gt;/F&lt;Sources&gt; entries, etc.).

=item L&lt;Dpkg::Control::Changelog&gt;

Represent fields output by F&lt;dpkg-parsechangelog&gt;.

=item L&lt;Dpkg::Control::Fields&gt;

Manage (list of known) control fields.

=item L&lt;Dpkg::Control::Hash&gt;

Parse and manipulate a stanza of deb822 fields.

=item L&lt;Dpkg::Control::Info&gt;

Parse files like F&lt;debian/control&gt;.

=item L&lt;Dpkg::Control::Tests&gt;

Parse files like F&lt;debian/tests/control&gt;.

=item L&lt;Dpkg::Control::Tests::Entry&gt;

Represents a F&lt;debian/tests/control&gt; stanza.

=item L&lt;Dpkg::Deps&gt;

Parse and manipulate dependencies.

=item L&lt;Dpkg::Deps::Simple&gt;

Represents a single dependency statement.

=item L&lt;Dpkg::Deps::Multiple&gt;

Base module to represent multiple dependencies.

=item L&lt;Dpkg::Deps::Union&gt;

List of unrelated dependencies.

=item L&lt;Dpkg::Deps::AND&gt;

List of AND dependencies.

=item L&lt;Dpkg::Deps::OR&gt;

List of OR dependencies.

=item L&lt;Dpkg::Deps::KnownFacts&gt;

List of installed and virtual packages.

=item L&lt;Dpkg::Exit&gt;

Push, pop and run exit handlers.

=item L&lt;Dpkg::Gettext&gt;

Wrapper around L&lt;Locale::gettext&gt;.

=item L&lt;Dpkg::IPC&gt;

Spawn sub-processes and feed/retrieve data.

=item L&lt;Dpkg::Index&gt;

Collections of L&lt;Dpkg::Control&gt; (F&lt;Packages&gt;/F&lt;Sources&gt; files for example).

=item L&lt;Dpkg::Interface::Storable&gt;

Base object serializer.

=item L&lt;Dpkg::Path&gt;

Common path handling functions.

=item L&lt;Dpkg::Source::Format&gt;

Parse and manipulate debian/source/format files.

=item L&lt;Dpkg::Source::Package&gt;

Extract Debian source packages.

=item L&lt;Dpkg::Substvars&gt;

Substitute variables in strings.

=item L&lt;Dpkg::Vendor&gt;

Identify current distribution vendor.

=item L&lt;Dpkg::Version&gt;

Parse and manipulate Debian package versions.

=back

=head1 CHANGES

=head2 Version 2.00 (dpkg 1.20.0)

Remove variables: $version, $progname, $admindir, $dpkglibdir and $pkgdatadir.

=head2 Version 1.03 (dpkg 1.18.24)

New variable: $PROGPATCH.

=head2 Version 1.02 (dpkg 1.18.11)

New variable: $PROGTAR, $PROGMAKE.

=head2 Version 1.01 (dpkg 1.17.0)

New variables: $PROGNAME, $PROGVERSION, $CONFDIR, $ADMINDIR, $LIBDIR and
$DATADIR.

Deprecated variables: $version, $admindir, $dpkglibdir and $pkgdatadir.

=head2 Version 1.00 (dpkg 1.15.6)

Mark the module as public.

=head1 LICENSE

See the header comment on each module for their particular license.

=cut

1;
</pre></body></html>