Annotation of htdocs/docs/pkgsrc/binary.html, revision 1.5
1.1 dsieger 1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2: <html>
3: <head>
4: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5: <title>Chapter 6. Creating binary packages</title>
1.2 rillig 6: <link rel="stylesheet" href="/global.css" type="text/css">
1.1 dsieger 7: <meta name="generator" content="DocBook XSL Stylesheets VX.X.X">
8: <link rel="start" href="index.html" title="The pkgsrc guide">
9: <link rel="up" href="users-guide.html" title="Part I. The pkgsrc user's guide">
10: <link rel="prev" href="configuring.html" title="Chapter 5. Configuring pkgsrc">
1.5 ! rillig 11: <link rel="next" href="bulk.html" title="Chapter 7. 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">
16: <tr><th colspan="3" align="center">Chapter 6. Creating binary packages</th></tr>
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>
27: <div class="chapter" lang="en">
28: <div class="titlepage"><div><div><h2 class="title">
29: <a name="binary"></a>Chapter 6. Creating binary packages</h2></div></div></div>
30: <div class="toc">
31: <p><b>Table of Contents</b></p>
32: <dl>
33: <dt><span class="sect1"><a href="binary.html#building-a-single-binary-package">6.1. Building a single binary package</a></span></dt>
34: <dt><span class="sect1"><a href="binary.html#settings-for-creationg-of-binary-packages">6.2. Settings for creation of binary packages</a></span></dt>
35: </dl>
36: </div>
37: <div class="sect1" lang="en">
38: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
39: <a name="building-a-single-binary-package"></a>6.1. Building a single binary package</h2></div></div></div>
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
42: another system with <a href="http://netbsd.gw.com/cgi-bin/man-cgi?pkg_add+1+NetBSD-current"><span class="citerefentry"><span class="refentrytitle">pkg_add</span>(1)</span></a>. This saves having to build
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
47: directory in pkgsrc, and run <span><strong class="command">make
48: package</strong></span>:</p>
49: <pre class="screen">
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>
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
55: then use the <span><strong class="command">pkg_*</strong></span> tools to manipulate
56: it. Binary packages are created by default in
57: <code class="filename">/usr/pkgsrc/packages</code>, in the form of a
58: gzipped tar file. See <a href="logs.html#logs.package" title="B.2. Packaging figlet">Section B.2, “Packaging figlet”</a> for a
59: continuation of the above <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/misc/figlet/README.html" target="_top"><code class="filename">misc/figlet</code></a> example.</p>
1.5 ! rillig 60: <p>See <a href="submit.html" title="Chapter 21. Submitting and Committing">Chapter 21, <i>Submitting and Committing</i></a> for information on how to submit
1.1 dsieger 61: such a binary package.</p>
62: </div>
63: <div class="sect1" lang="en">
64: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
65: <a name="settings-for-creationg-of-binary-packages"></a>6.2. Settings for creation of binary packages</h2></div></div></div>
1.5 ! rillig 66: <p>See <a href="build.html#build.helpful-targets" title="17.17. Other helpful targets">Section 17.17, “Other helpful targets”</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>
80: <td width="40%" align="left" valign="top">Chapter 5. Configuring pkgsrc </td>
81: <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
1.5 ! rillig 82: <td width="40%" align="right" valign="top"> Chapter 7. Creating binary packages for everything in pkgsrc (bulk
! 83: builds)</td>
1.1 dsieger 84: </tr>
85: </table>
86: </div>
87: </body>
88: </html>
CVSweb <webmaster@jp.NetBSD.org>