157 lines
3.5 KiB
HTML
157 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Dpkg::Vendor</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Dpkg::Vendor</H1>
|
|
Section: libdpkg-perl (3perl)<BR>Updated: 2020-03-23<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Dpkg::Vendor - get access to some vendor specific information
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
The files in <TT>$Dpkg::CONFDIR</TT>/origins/ can provide information about various
|
|
vendors who are providing Debian packages. Currently those files look like
|
|
this:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
Vendor: Debian
|
|
Vendor-URL: <A HREF="https://www.debian.org/">https://www.debian.org/</A>
|
|
Bugs: debbugs://bugs.debian.org
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
If the vendor derives from another vendor, the file should document
|
|
the relationship by listing the base distribution in the Parent field:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
Parent: Debian
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
The file should be named according to the vendor name. The usual convention
|
|
is to name the vendor file using the vendor name in all lowercase, but some
|
|
variation is permitted. Namely, spaces are mapped to dashes ('-'), and the
|
|
file can have the same casing as the Vendor field, or it can be capitalized.
|
|
<A NAME="lbAD"> </A>
|
|
<H2>FUNCTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">$dir = <B>get_vendor_dir()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns the current dpkg origins directory name, where the vendor files
|
|
are stored.
|
|
<DT id="2">$fields = get_vendor_info($name)<DD>
|
|
|
|
|
|
|
|
|
|
Returns a Dpkg::Control object with the information parsed from the
|
|
corresponding vendor file in <TT>$Dpkg::CONFDIR</TT>/origins/. If <TT>$name</TT> is omitted,
|
|
it will use <TT>$Dpkg::CONFDIR</TT>/origins/default which is supposed to be a symlink
|
|
to the vendor of the currently installed operating system. Returns undef
|
|
if there's no file for the given vendor.
|
|
<DT id="3">$name = get_vendor_file($name)<DD>
|
|
|
|
|
|
|
|
|
|
Check if there's a file for the given vendor and returns its
|
|
name.
|
|
<DT id="4">$name = <B>get_current_vendor()</B><DD>
|
|
|
|
|
|
|
|
|
|
Returns the name of the current vendor. If <FONT SIZE="-1">DEB_VENDOR</FONT> is set, it uses
|
|
that first, otherwise it falls back to parsing <TT>$Dpkg::CONFDIR</TT>/origins/default.
|
|
If that file doesn't exist, it returns undef.
|
|
<DT id="5">$object = get_vendor_object($name)<DD>
|
|
|
|
|
|
|
|
|
|
Return the Dpkg::Vendor::* object of the corresponding vendor.
|
|
If <TT>$name</TT> is omitted, return the object of the current vendor.
|
|
If no vendor can be identified, then return the Dpkg::Vendor::Default
|
|
object.
|
|
<DT id="6">run_vendor_hook($hookid, @params)<DD>
|
|
|
|
|
|
|
|
|
|
Run a hook implemented by the current vendor object.
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>CHANGES</H2>
|
|
|
|
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Version 1.01 (dpkg 1.17.0)</H3>
|
|
|
|
|
|
|
|
New function: <B>get_vendor_dir()</B>.
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Version 1.00 (dpkg 1.16.1)</H3>
|
|
|
|
|
|
|
|
Mark the module as public.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+deb-origin">deb-origin</A></B>(5).
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="8"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAD">FUNCTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAE">CHANGES</A><DD>
|
|
<DL>
|
|
<DT id="11"><A HREF="#lbAF">Version 1.01 (dpkg 1.17.0)</A><DD>
|
|
<DT id="12"><A HREF="#lbAG">Version 1.00 (dpkg 1.16.1)</A><DD>
|
|
</DL>
|
|
<DT id="13"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:39 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|