Annotation of htdocs/docs/pkgsrc/binary.html, revision 1.33
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.33 ! leot 42: another system with <a class="citerefentry" href="//man.NetBSD.org/NetBSD-9.3/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.32 gutterid 53: <p>This will build your package (if not already done) and package
54: it into a binary package. You can then use the
55: <span class="command"><strong>pkg_*</strong></span> tools to manipulate it. Binary packages are
56: created in <code class="varname">PACKAGES</code>, which defaults to
57: <code class="filename">/usr/pkgsrc/packages</code>, in the form of a compressed
58: tar file. See <a class="xref" href="logs.html#logs.package" title="C.2. Packaging figlet">Section C.2, “Packaging figlet”</a> for a continuation of
59: the above <a href="https://cdn.NetBSD.org/pub/pkgsrc/current/pkgsrc/misc/figlet/index.html" target="_top"><code class="filename">misc/figlet</code></a>
60: example.</p>
1.24 rillig 61: <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 62: such a binary package.</p>
63: </div>
1.11 asau 64: <div class="sect1">
1.1 dsieger 65: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
1.24 rillig 66: <a name="settings-for-creationg-of-binary-packages"></a>7.2. Settings for creation of binary packages</h2></div></div></div>
1.28 rillig 67: <p>See <a class="xref" href="build.html#build.helpful-targets" title="13.17. Other helpful targets">Section 13.17, “Other helpful targets”</a>.</p>
1.1 dsieger 68: </div>
69: </div>
70: <div class="navfooter">
71: <hr>
72: <table width="100%" summary="Navigation footer">
73: <tr>
74: <td width="40%" align="left">
75: <a accesskey="p" href="configuring.html">Prev</a> </td>
76: <td width="20%" align="center"><a accesskey="u" href="users-guide.html">Up</a></td>
1.5 rillig 77: <td width="40%" align="right"> <a accesskey="n" href="bulk.html">Next</a>
1.1 dsieger 78: </td>
79: </tr>
80: <tr>
1.24 rillig 81: <td width="40%" align="left" valign="top">Chapter 6. Configuring pkgsrc </td>
1.1 dsieger 82: <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
1.24 rillig 83: <td width="40%" align="right" valign="top"> Chapter 8. Creating binary packages for everything in pkgsrc (bulk
1.5 rillig 84: builds)</td>
1.1 dsieger 85: </tr>
86: </table>
87: </div>
88: </body>
89: </html>
CVSweb <webmaster@jp.NetBSD.org>