Annotation of htdocs/docs/pkgsrc/binary.html, revision 1.30

1.20      sevan       1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
1.1       dsieger     2: <html>
                      3: <head>
                      4: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1.24      rillig      5: <title>Chapter 7. Creating binary packages</title>
1.9       spz         6: <link rel="stylesheet" type="text/css" href="/global.css">
1.1       dsieger     7: <meta name="generator" content="DocBook XSL Stylesheets VX.X.X">
1.7       rillig      8: <link rel="home" href="index.html" title="The pkgsrc guide">
1.1       dsieger     9: <link rel="up" href="users-guide.html" title="Part I. The pkgsrc user's guide">
1.24      rillig     10: <link rel="prev" href="configuring.html" title="Chapter 6. Configuring pkgsrc">
                     11: <link rel="next" href="bulk.html" title="Chapter 8. Creating binary packages for everything in pkgsrc (bulk builds)">
1.1       dsieger    12: </head>
                     13: <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
                     14: <div class="navheader">
                     15: <table width="100%" summary="Navigation header">
1.24      rillig     16: <tr><th colspan="3" align="center">Chapter 7. Creating binary packages</th></tr>
1.1       dsieger    17: <tr>
                     18: <td width="20%" align="left">
                     19: <a accesskey="p" href="configuring.html">Prev</a> </td>
                     20: <th width="60%" align="center">Part I. The pkgsrc user's guide</th>
1.5       rillig     21: <td width="20%" align="right"> <a accesskey="n" href="bulk.html">Next</a>
1.1       dsieger    22: </td>
                     23: </tr>
                     24: </table>
                     25: <hr>
                     26: </div>
1.11      asau       27: <div class="chapter">
1.1       dsieger    28: <div class="titlepage"><div><div><h2 class="title">
1.24      rillig     29: <a name="binary"></a>Chapter 7. Creating binary packages</h2></div></div></div>
1.1       dsieger    30: <div class="toc">
                     31: <p><b>Table of Contents</b></p>
1.18      leot       32: <dl class="toc">
1.24      rillig     33: <dt><span class="sect1"><a href="binary.html#building-a-single-binary-package">7.1. Building a single binary package</a></span></dt>
                     34: <dt><span class="sect1"><a href="binary.html#settings-for-creationg-of-binary-packages">7.2. Settings for creation of binary packages</a></span></dt>
1.1       dsieger    35: </dl>
                     36: </div>
1.11      asau       37: <div class="sect1">
1.1       dsieger    38: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
1.24      rillig     39: <a name="building-a-single-binary-package"></a>7.1. Building a single binary package</h2></div></div></div>
1.1       dsieger    40: <p>Once you have built and installed a package, you can create
                     41:     a <span class="emphasis"><em>binary package</em></span> which can be installed on
1.30    ! leot       42:     another system with <a class="citerefentry" href="//man.NetBSD.org/NetBSD-9.1/i386/pkg_add.1"><span class="citerefentry"><span class="refentrytitle">pkg_add</span>(1)</span></a>. This saves having to build
1.1       dsieger    43:     the same package on a group of hosts and wasting CPU time. It also
                     44:     provides a simple means for others to install your package, should
                     45:     you distribute it.</p>
                     46: <p>To create a binary package, change into the appropriate
1.6       hubertf    47:     directory in pkgsrc, and run <span class="command"><strong>make
1.1       dsieger    48:     package</strong></span>:</p>
                     49: <pre class="screen">
1.19      rillig     50: <code class="prompt">$</code> <strong class="userinput"><code>cd misc/figlet</code></strong>
                     51: <code class="prompt">$</code> <strong class="userinput"><code>make package</code></strong>
                     52: </pre>
1.1       dsieger    53: <p>This will build and install your package (if not already done),
                     54:     and then build a binary package from what was installed. You can
1.6       hubertf    55:     then use the <span class="command"><strong>pkg_*</strong></span> tools to manipulate
1.1       dsieger    56:     it. Binary packages are created by default in
                     57:     <code class="filename">/usr/pkgsrc/packages</code>, in the form of a
1.6       hubertf    58:     gzipped tar file. See <a class="xref" href="logs.html#logs.package" title="B.2. Packaging figlet">Section B.2, &#8220;Packaging figlet&#8221;</a> for a
1.22      leot       59:     continuation of the above <a href="https://cdn.NetBSD.org/pub/pkgsrc/current/pkgsrc/misc/figlet/README.html" target="_top"><code class="filename">misc/figlet</code></a> example.</p>
1.24      rillig     60: <p>See <a class="xref" href="submit.html" title="Chapter 23. Submitting and Committing">Chapter 23, <i>Submitting and Committing</i></a> for information on how to submit
1.1       dsieger    61:     such a binary package.</p>
                     62: </div>
1.11      asau       63: <div class="sect1">
1.1       dsieger    64: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
1.24      rillig     65: <a name="settings-for-creationg-of-binary-packages"></a>7.2. Settings for creation of binary packages</h2></div></div></div>
1.28      rillig     66: <p>See <a class="xref" href="build.html#build.helpful-targets" title="13.17. Other helpful targets">Section 13.17, &#8220;Other helpful targets&#8221;</a>.</p>
1.1       dsieger    67: </div>
                     68: </div>
                     69: <div class="navfooter">
                     70: <hr>
                     71: <table width="100%" summary="Navigation footer">
                     72: <tr>
                     73: <td width="40%" align="left">
                     74: <a accesskey="p" href="configuring.html">Prev</a> </td>
                     75: <td width="20%" align="center"><a accesskey="u" href="users-guide.html">Up</a></td>
1.5       rillig     76: <td width="40%" align="right"> <a accesskey="n" href="bulk.html">Next</a>
1.1       dsieger    77: </td>
                     78: </tr>
                     79: <tr>
1.24      rillig     80: <td width="40%" align="left" valign="top">Chapter 6. Configuring pkgsrc </td>
1.1       dsieger    81: <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
1.24      rillig     82: <td width="40%" align="right" valign="top"> Chapter 8. Creating binary packages for everything in pkgsrc (bulk
1.5       rillig     83: builds)</td>
1.1       dsieger    84: </tr>
                     85: </table>
                     86: </div>
                     87: </body>
                     88: </html>

CVSweb <webmaster@jp.NetBSD.org>