Import of pkgsrc-2015Q3
This commit is contained in:
+5
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2004,v 1.22 2014/12/30 09:31:08 obache Exp $
|
||||
$NetBSD: CHANGES-2004,v 1.23 2015/08/03 12:26:06 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2004:
|
||||
|
||||
@@ -4082,6 +4082,9 @@ Changes to the packages collection and infrastructure in 2004:
|
||||
Added xmlsec1-1.2.6 [drochner 2004-08-27]
|
||||
Added vp-1.5 [drochner 2004-08-27]
|
||||
Added boaconstructor-0.2.3 [drochner 2004-08-27]
|
||||
Added geography/xrmap-factbook_html version 2002 [drochner 2004-08-27]
|
||||
Added geography/xrmap-flags version 1.1 [drochner 2004-08-27]
|
||||
Added geography/xrmap-hymns version 1.2 [drochner 2004-08-27]
|
||||
Updated mstream to 1.0 [kim 2004-08-27]
|
||||
Updated getmail to 4.1.1 [schmonz 2004-08-27]
|
||||
Updated mono to 1.0.1 [recht 2004-08-27]
|
||||
@@ -5482,6 +5485,7 @@ Changes to the packages collection and infrastructure in 2004:
|
||||
Updated gnuserv to 3.12.7 [epg 2004-11-27]
|
||||
Updated xlockmore to 5.14.1 [hubertf 2004-11-26]
|
||||
Updated xlockmore-lite to 5.14.1 [hubertf 2004-11-26]
|
||||
Moved devel/libavl to devel/avl [wiz 2004-11-26]
|
||||
Updated wmpload to 0.9.5 [abs 2004-11-27]
|
||||
Updated apachetop to 0.12.5 [sketch 2004-11-27]
|
||||
Updated p5-Getopt-Simple to 1.48 [wiz 2004-11-27]
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2011,v 1.3394 2015/01/16 21:08:58 adam Exp $
|
||||
$NetBSD: CHANGES-2011,v 1.3395 2015/08/03 12:26:06 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2011:
|
||||
|
||||
@@ -785,6 +785,7 @@ Changes to the packages collection and infrastructure in 2011:
|
||||
Updated net/mldonkey-gui to 3.0.7 [wiz 2011-02-26]
|
||||
Updated pkgtools/x11-links to 0.65 [wiz 2011-02-26]
|
||||
Added net/p5-Net-DNS-Zone-Parser version 0.02 [obache 2011-02-26]
|
||||
Added graphics/p5-Barcode-Code128 version 2.01 [abs 2011-02-26]
|
||||
Updated multimedia/avidemux to 2.5.4nb1 [wiz 2011-02-26]
|
||||
Updated print/chktex to 1.6.3nb2 [wiz 2011-02-26]
|
||||
Updated print/p5-LaTeX-Driver to 0.08nb2 [wiz 2011-02-26]
|
||||
|
||||
+3
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2012,v 1.4034 2014/10/04 12:29:01 wiz Exp $
|
||||
$NetBSD: CHANGES-2012,v 1.4036 2015/08/10 16:08:29 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2012:
|
||||
|
||||
@@ -564,6 +564,7 @@ Changes to the packages collection and infrastructure in 2012:
|
||||
Updated devel/gconfmm to 2.28.3 [drochner 2012-02-03]
|
||||
Updated lang/racket to 5.2.1 [asau 2012-02-03]
|
||||
Updated lang/racket-textual to 5.2.1 [asau 2012-02-03]
|
||||
Added security/p11-kit version 0.10 [drochner 2012-02-03]
|
||||
Updated print/py-reportlab to 2.5nb2 [obache 2012-02-04]
|
||||
Updated news/hellanzb to 0.14.1087nb3 [obache 2012-02-04]
|
||||
Updated textproc/py-gnosis-utils to 1.2.2 [obache 2012-02-04]
|
||||
@@ -876,6 +877,7 @@ Changes to the packages collection and infrastructure in 2012:
|
||||
Updated x11/qt4-libs to 4.8.0nb2 [reinoud 2012-02-27]
|
||||
Updated games/scummvm to 1.4.1 [adam 2012-02-27]
|
||||
Added cad/openscad version 2011.12 [reinoud 2012-02-27]
|
||||
Added math/cgal version 3.9 [reinoud 2012-02-27]
|
||||
Updated pkgtools/pkg_comp to 1.36 [jmmv 2012-02-27]
|
||||
Updated databases/py-ldap to 2.4.8 [adam 2012-02-28]
|
||||
Updated graphics/opencsg to 1.3.2nb1 [reinoud 2012-02-28]
|
||||
|
||||
+5
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2013,v 1.4627 2015/06/14 18:14:41 wiz Exp $
|
||||
$NetBSD: CHANGES-2013,v 1.4628 2015/08/03 12:26:06 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2013:
|
||||
|
||||
@@ -1623,6 +1623,7 @@ Changes to the packages collection and infrastructure in 2013:
|
||||
Updated misc/tmux to 1.8 [fhajny 2013-04-02]
|
||||
Added audio/py-audioread version 1.0.0 [drochner 2013-04-02]
|
||||
Added audio/chromaprint version 0.7 [drochner 2013-04-02]
|
||||
Added audio/mutagen-tools version 1.21 [drochner 2013-04-02]
|
||||
Updated textproc/saxon to 9.4.0.7j [rodent 2013-04-03]
|
||||
Updated www/p5-Plack to 1.0022 [wen 2013-04-03]
|
||||
Updated devel/p5-Moose to 2.0801 [wen 2013-04-03]
|
||||
@@ -2284,6 +2285,7 @@ Changes to the packages collection and infrastructure in 2013:
|
||||
Updated devel/meld to 1.7.2 [wiz 2013-04-21]
|
||||
Updated mail/getmail to 4.40.0 [schmonz 2013-04-21]
|
||||
Added sysutils/cuisine version 0.5.8 [imil 2013-04-21]
|
||||
Added mail/p5-Mail-POP3Client version 2.18 [ryoon 2013-04-21]
|
||||
Updated devel/p5-Tree-DAG_Node to 1.11 [hiramatsu 2013-04-22]
|
||||
Removed multimedia/ns-flash [marino 2013-04-22]
|
||||
Added sysutils/monitoring version 0.9.5 [imil 2013-04-22]
|
||||
@@ -6150,6 +6152,7 @@ Changes to the packages collection and infrastructure in 2013:
|
||||
Updated x11/libdrm to 2.4.49 [wiz 2013-11-23]
|
||||
Added textproc/hyphen version 2.8.6 [jaapb 2013-11-23]
|
||||
Added cad/ghdl version 0.29 [ryoon 2013-11-23]
|
||||
Added audio/quodlibet2 version 2.6.3 [drochner 2013-11-23]
|
||||
Updated textproc/source-highlight to 3.1.7 [gls 2013-11-23]
|
||||
Updated textproc/asciidoc to 8.6.9 [gls 2013-11-23]
|
||||
Updated x11/x3270 to 3.3.13ga7 [gls 2013-11-23]
|
||||
@@ -6359,6 +6362,7 @@ Changes to the packages collection and infrastructure in 2013:
|
||||
Added graphics/tex-pstools-doc version 1.68 [minskim 2013-12-04]
|
||||
Added print/tex-cyrillic-bin version 2013 [minskim 2013-12-04]
|
||||
Added print/tex-cyrillic-bin-doc version 2013 [minskim 2013-12-04]
|
||||
Added devel/py-serpent version 1.4 [drochner 2013-12-04]
|
||||
Removed print/texlive-tetex [minskim 2013-12-04]
|
||||
Added databases/dbfsak version 4.5 [adam 2013-12-05]
|
||||
Added meta-pkgs/suse131 version 13.1 [obache 2013-12-05]
|
||||
|
||||
+1650
-1
File diff suppressed because it is too large
Load Diff
@@ -1,3 +0,0 @@
|
||||
$NetBSD: CHANGES-pkgsrc-2015Q2,v 1.1.2.1 2015/06/29 09:23:22 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure on the 2015Q2 branch:
|
||||
@@ -0,0 +1,4 @@
|
||||
$NetBSD: CHANGES-pkgsrc-2015Q3,v 1.1.2.1 2015/09/24 22:18:58 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure on the 2015Q3 branch:
|
||||
|
||||
+12
-45
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: build.xml,v 1.72 2015/05/08 20:26:19 bsiegert Exp $ -->
|
||||
<!-- $NetBSD: build.xml,v 1.76 2015/08/31 11:54:29 leot Exp $ -->
|
||||
|
||||
<chapter id="build">
|
||||
<title>The build process</title>
|
||||
@@ -82,54 +82,19 @@
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>X11-based packages are special in that they may be
|
||||
installed in either <varname>X11BASE</varname> or
|
||||
<para>X11-based packages using imake must set
|
||||
<varname>USE_IMAKE</varname> to be installed correctly under
|
||||
<varname>LOCALBASE</varname>.</para>
|
||||
|
||||
<para>Usually, X11 packages should be installed under
|
||||
<varname>LOCALBASE</varname> whenever possible. Note that you
|
||||
will need to include
|
||||
<filename>../../mk/x11.buildlink3.mk</filename> in them to
|
||||
request the presence of X11 and to get the right compilation
|
||||
flags.</para>
|
||||
|
||||
<para>Even though, there are some packages that cannot be installed
|
||||
under <varname>LOCALBASE</varname>: those that come with app-defaults
|
||||
files. These packages are special and they must be placed under
|
||||
<varname>X11BASE</varname>. To accomplish this, set either
|
||||
<varname>USE_X11BASE</varname> or <varname>USE_IMAKE</varname> in
|
||||
your package.</para>
|
||||
|
||||
<para>Some notes: If you need
|
||||
to find includes or libraries installed by a pkg that has
|
||||
<varname>USE_IMAKE</varname> or <varname>USE_X11BASE</varname> in
|
||||
its pkg <filename>Makefile</filename>, you need to look in
|
||||
<emphasis>both</emphasis> <filename>${X11BASE}</filename> and
|
||||
<filename>${LOCALBASE}</filename>. To force installation of
|
||||
all X11 packages in <varname>LOCALBASE</varname>, the
|
||||
<filename role="pkg">pkgtools/xpkgwedge</filename> package
|
||||
is enabled by default.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><varname>X11PREFIX</varname> should be used to refer to
|
||||
the installed location of an X11
|
||||
package. <varname>X11PREFIX</varname> will be set to
|
||||
<varname>X11BASE</varname> if xpkgwedge is not installed, and
|
||||
to <varname>LOCALBASE</varname> if xpkgwedge is
|
||||
installed.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>If xpkgwedge is installed, it is possible to have some
|
||||
packages installed in <varname>X11BASE</varname> and some in
|
||||
<varname>LOCALBASE</varname>. To determine the prefix of an
|
||||
<para>To determine the prefix of an
|
||||
installed package, the <varname>EVAL_PREFIX</varname>
|
||||
definition can be used. It takes pairs in the format
|
||||
<quote>DIRNAME=<package></quote>, and the &man.make.1;
|
||||
variable <varname>DIRNAME</varname> will be set to the prefix
|
||||
of the installed package <package>, or
|
||||
<quote>${X11PREFIX}</quote> if the package is not
|
||||
<quote>${PREFIX}</quote> if the package is not
|
||||
installed.</para>
|
||||
|
||||
<para>This is best illustrated by example.</para>
|
||||
@@ -341,12 +306,12 @@ ${MASTER_SITE_MOZILLA_ESR}
|
||||
${MASTER_SITE_MYSQL}
|
||||
${MASTER_SITE_NETLIB}
|
||||
${MASTER_SITE_OPENOFFICE}
|
||||
${MASTER_SITE_OSDN}
|
||||
${MASTER_SITE_PERL_CPAN}
|
||||
${MASTER_SITE_PGSQL}
|
||||
${MASTER_SITE_RUBYGEMS}
|
||||
${MASTER_SITE_R_CRAN}
|
||||
${MASTER_SITE_SOURCEFORGE}
|
||||
${MASTER_SITE_SOURCEFORGE_JP}
|
||||
${MASTER_SITE_SUNSITE}
|
||||
${MASTER_SITE_SUSE}
|
||||
${MASTER_SITE_TEX_CTAN}
|
||||
@@ -619,10 +584,8 @@ ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${site}${file} ${FETCH_AFTER_ARGS}
|
||||
<para>If the program uses an <filename>Imakefile</filename>
|
||||
for configuration, the appropriate steps can be invoked by
|
||||
setting <varname>USE_IMAKE</varname> to
|
||||
<quote>yes</quote>. (If you only want the package installed in
|
||||
<varname>${X11PREFIX}</varname> but xmkmf not being run, set
|
||||
<varname>USE_X11BASE</varname> instead.) You can add variables to
|
||||
xmkmf's environment by adding them to the
|
||||
<quote>yes</quote>. If you only need xmkmf, add it to <varname>USE_TOOLS</varname>.
|
||||
You can add variables to xmkmf's environment by adding them to the
|
||||
<varname>SCRIPTS_ENV</varname> variable.</para>
|
||||
|
||||
<para>If the program uses <filename>cmake</filename>
|
||||
@@ -746,6 +709,10 @@ ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${site}${file} ${FETCH_AFTER_ARGS}
|
||||
<listitem><para>directories that contain man
|
||||
pages</para></listitem></varlistentry>
|
||||
|
||||
<varlistentry><term><varname>INSTALL_GAME_DIR</varname></term>
|
||||
<listitem><para>directories that contain data files for games
|
||||
</para></listitem></varlistentry>
|
||||
|
||||
<varlistentry><term><varname>INSTALL_PROGRAM</varname></term>
|
||||
<listitem><para>binaries that can be stripped from debugging
|
||||
symbols</para></listitem></varlistentry>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: components.xml,v 1.50 2014/11/28 12:11:24 bsiegert Exp $ -->
|
||||
<!-- $NetBSD: components.xml,v 1.51 2015/07/04 16:12:54 joerg Exp $ -->
|
||||
|
||||
<chapter id="components"> <?dbhtml filename="components.html"?>
|
||||
<title>Package components - files, directories and contents</title>
|
||||
@@ -591,8 +591,7 @@ MESSAGE_SUBST+= SOMEVAR="somevalue"
|
||||
<filename>MESSAGE</filename>. By default, substitution is
|
||||
performed for <varname>PKGNAME</varname>,
|
||||
<varname>PKGBASE</varname>, <varname>PREFIX</varname>,
|
||||
<varname>LOCALBASE</varname>, <varname>X11PREFIX</varname>,
|
||||
<varname>X11BASE</varname>,
|
||||
<varname>LOCALBASE</varname>, <varname>X11BASE</varname>,
|
||||
<varname>PKG_SYSCONFDIR</varname>,
|
||||
<varname>ROOT_GROUP</varname>, and
|
||||
<varname>ROOT_USER</varname>.</para>
|
||||
|
||||
+33
-19
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: fixes.xml,v 1.131 2015/04/25 11:31:01 wiz Exp $ -->
|
||||
<!-- $NetBSD: fixes.xml,v 1.133 2015/08/31 11:54:29 leot Exp $ -->
|
||||
|
||||
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
|
||||
<title>Making your package work</title>
|
||||
@@ -444,20 +444,6 @@ DEPENDS+= ImageMagick>=6.0:../../graphics/ImageMagick
|
||||
linkend="security-handling"/> for more
|
||||
information.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>If the package depends on either one of two (or more)
|
||||
packages, specify the <quote>pre-req-package-name</quote> as a
|
||||
comma-separated list between curly braces.</para>
|
||||
|
||||
<para>As an example, take a package that depends on the Perl
|
||||
<quote>version</quote> module, which has been part of Perl
|
||||
itself since version 5.10.0. This either/or dependency is
|
||||
expressed as:</para>
|
||||
|
||||
<programlisting>
|
||||
DEPENDS+= {perl>=5.10.0,p5-version-[0-9]*}:../../devel/p5-version
|
||||
</programlisting>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>If your package needs files from another package to build,
|
||||
@@ -1445,12 +1431,40 @@ ${INSTALL_DATA_DIR} ${PREFIX}/dir2
|
||||
<filename>mk/defaults/mk.conf</filename>, control this
|
||||
behaviour: <varname>GAMEDATAMODE</varname>,
|
||||
<varname>GAMEDIRMODE</varname>, <varname>GAMES_GROUP</varname>,
|
||||
<varname>GAMEMODE</varname>, <varname>GAME_USER</varname>.</para>
|
||||
<varname>GAMEMODE</varname>, <varname>GAME_USER</varname>.
|
||||
Other useful variables are: <varname>GAMEDIR_PERMS</varname>,
|
||||
<varname>GAMEDATA_PERMS</varname> and
|
||||
<varname>SETGID_GAMES_PERMS</varname>.</para>
|
||||
|
||||
<para>An example that illustrates some of the variables described above is
|
||||
<filename>games/moon-buggy</filename>. <varname>OWN_DIRS_PERMS</varname> is
|
||||
used to properly set directory permissions of the directory where the
|
||||
scorefile is saved, <varname>REQD_FILES_PERMS</varname> is used to create a
|
||||
dummy scorefile (<filename>mbscore</filename>) with the proper permissions
|
||||
and <varname>SPECIAL_PERMS</varname> is used to install setgid the game
|
||||
binary:</para>
|
||||
|
||||
<programlisting>
|
||||
USE_GAMESGROUP= yes
|
||||
|
||||
BUILD_DEFS+= VARBASE
|
||||
|
||||
OWN_DIRS_PERMS+= ${VARBASE}/games/moon-buggy ${GAMEDIR_PERMS}
|
||||
REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/moon-buggy/mbscore ${GAMEDATA_PERMS}
|
||||
SPECIAL_PERMS+= ${PREFIX}/bin/moon-buggy ${SETGID_GAMES_PERMS}
|
||||
</programlisting>
|
||||
|
||||
<para>Various <varname>INSTALL_*</varname> variables are also available:
|
||||
<varname>INSTALL_GAME</varname> to install setgid game binaries,
|
||||
<varname>INSTALL_GAME_DIR</varname> to install game directories that are
|
||||
needed to be accessed by setgid games and
|
||||
<varname>INSTALL_GAME_DATA</varname> to install scorefiles.</para>
|
||||
|
||||
<para>A package should therefore never hard code file ownership or
|
||||
access permissions but rely on <varname>INSTALL_GAME</varname> and
|
||||
<varname>INSTALL_GAME_DATA</varname> to set these
|
||||
correctly.</para>
|
||||
access permissions but rely on <varname>*_PERMS</varname> as described above
|
||||
or alternatively on <varname>INSTALL_GAME</varname>,
|
||||
<varname>INSTALL_GAME_DATA</varname> and
|
||||
<varname>INSTALL_GAME_DIR</varname> to set these correctly.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="destdir-support">
|
||||
|
||||
+87
-110
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="chapter"><a href="#introduction">1. What is pkgsrc?</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect1"><a href="#introduction-section">1.1. Introduction</a></span></dt>
|
||||
@@ -484,7 +484,7 @@ source packages</a></span></dt>
|
||||
<a name="introduction"></a>Chapter 1. What is pkgsrc?</h1></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#introduction-section">1.1. Introduction</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#why-pkgsrc">1.1.1. Why pkgsrc?</a></span></dt>
|
||||
@@ -695,11 +695,6 @@ minutes!</p>
|
||||
<td align="center">Jul 2013</td>
|
||||
<td><a class="ulink" href="http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/bootstrap/README.GNUkFreeBSD" target="_top">README.GNUkFreeBSD</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="ulink" href="http://www.bitrig.org/" target="_top">Bitrig</a></td>
|
||||
<td align="center">Jun 2014</td>
|
||||
<td><a class="ulink" href="http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/bootstrap/README.Bitrig" target="_top">README.Bitrig</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
@@ -816,7 +811,7 @@ minutes!</p>
|
||||
<a name="users-guide"></a>Part I. The pkgsrc user's guide</h1></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="chapter"><a href="#getting">2. Where to get pkgsrc and how to keep it up-to-date</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect1"><a href="#getting-first">2.1. Getting pkgsrc for the first time</a></span></dt>
|
||||
@@ -930,7 +925,7 @@ builds)</a></span></dt>
|
||||
<a name="getting"></a>Chapter 2. Where to get pkgsrc and how to keep it up-to-date</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#getting-first">2.1. Getting pkgsrc for the first time</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#getting-via-tar">2.1.1. As tar archive</a></span></dt>
|
||||
@@ -1116,7 +1111,7 @@ release -d
|
||||
<a name="platforms"></a>Chapter 3. Using pkgsrc on systems other than NetBSD</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#binarydist">3.1. Binary distribution</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bootstrapping-pkgsrc">3.2. Bootstrapping pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#platform-specific-notes">3.3. Platform-specific notes</a></span></dt>
|
||||
@@ -1693,7 +1688,7 @@ WRAPPER_SHELL= ${LOCALBASE}/bin/bash
|
||||
<a name="using"></a>Chapter 4. Using pkgsrc</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#using-pkg">4.1. Using binary packages</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#finding-binary-packages">4.1.1. Finding binary packages</a></span></dt>
|
||||
@@ -2130,7 +2125,7 @@ Version mismatch: 'tcsh' 6.09.00 vs 6.10.00
|
||||
<a name="configuring"></a>Chapter 5. Configuring pkgsrc</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#general-configuration">5.1. General configuration</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#variables-affecting-build">5.2. Variables affecting the build process</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#variables-affecting-installation">5.3. Variables affecting the installation process</a></span></dt>
|
||||
@@ -2524,7 +2519,7 @@ PKG_OPTIONS.apache= suexec </pre>
|
||||
<a name="binary"></a>Chapter 6. Creating binary packages</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#building-a-single-binary-package">6.1. Building a single binary package</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#settings-for-creationg-of-binary-packages">6.2. Settings for creation of binary packages</a></span></dt>
|
||||
</dl>
|
||||
@@ -2567,7 +2562,7 @@ PKG_OPTIONS.apache= suexec </pre>
|
||||
builds)</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#bulk.pre">7.1. Preparations</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bulk.pbulk">7.2. Running a pbulk-style bulk build</a></span></dt>
|
||||
<dd><dl><dt><span class="sect2"><a href="#bulk.pbulk.conf">7.2.1. Configuration</a></span></dt></dl></dd>
|
||||
@@ -2746,7 +2741,7 @@ temporary filesystems, others must survive a sudden reboot.</p>
|
||||
<a name="files"></a>Chapter 8. Directory layout of the installed files</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#files.localbase">8.1. File system layout in <code class="literal">${LOCALBASE}</code></a></span></dt>
|
||||
<dt><span class="sect1"><a href="#files.varbase">8.2. File system layout in <code class="literal">${VARBASE}</code></a></span></dt>
|
||||
</dl>
|
||||
@@ -2887,7 +2882,7 @@ currently running.</p></dd>
|
||||
<a name="faq"></a>Chapter 9. Frequently Asked Questions</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#mailing-list-pointers">9.1. Are there any mailing lists for pkg-related discussion?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq-pkgtools">9.2. Utilities for package management (pkgtools)</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#non-root-pkgsrc">9.3. How to use pkgsrc as non-root</a></span></dt>
|
||||
@@ -3329,7 +3324,7 @@ anymore, you can remove that file and run <span class="command"><strong>cvs -q u
|
||||
like a reference manual for pkgsrc.</p>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="chapter"><a href="#creating">10. Creating a new pkgsrc package from scratch</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect1"><a href="#creating.common">10.1. Common types of packages</a></span></dt>
|
||||
@@ -3564,7 +3559,7 @@ anymore, you can remove that file and run <span class="command"><strong>cvs -q u
|
||||
<a name="creating"></a>Chapter 10. Creating a new pkgsrc package from scratch</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#creating.common">10.1. Common types of packages</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#creating.perl-module">10.1.1. Perl modules</a></span></dt>
|
||||
@@ -3963,7 +3958,7 @@ everything worked.</p>
|
||||
<a name="components"></a>Chapter 11. Package components - files, directories and contents</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#components.Makefile">11.1. <code class="filename">Makefile</code></a></span></dt>
|
||||
<dt><span class="sect1"><a href="#components.distinfo">11.2. <code class="filename">distinfo</code></a></span></dt>
|
||||
<dt><span class="sect1"><a href="#components.patches">11.3. patches/*</a></span></dt>
|
||||
@@ -4465,8 +4460,7 @@ MESSAGE_SUBST+= SOMEVAR="somevalue"
|
||||
<code class="filename">MESSAGE</code>. By default, substitution is
|
||||
performed for <code class="varname">PKGNAME</code>,
|
||||
<code class="varname">PKGBASE</code>, <code class="varname">PREFIX</code>,
|
||||
<code class="varname">LOCALBASE</code>, <code class="varname">X11PREFIX</code>,
|
||||
<code class="varname">X11BASE</code>,
|
||||
<code class="varname">LOCALBASE</code>, <code class="varname">X11BASE</code>,
|
||||
<code class="varname">PKG_SYSCONFDIR</code>,
|
||||
<code class="varname">ROOT_GROUP</code>, and
|
||||
<code class="varname">ROOT_USER</code>.</p>
|
||||
@@ -4571,7 +4565,7 @@ FILESDIR=${.CURDIR}/../xemacs/files
|
||||
<a name="makefile"></a>Chapter 12. Programming in <code class="filename">Makefile</code>s</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#makefile.style">12.1. Caveats</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#makefile.variables">12.2. <code class="filename">Makefile</code> variables</a></span></dt>
|
||||
<dd><dl><dt><span class="sect2"><a href="#makefile.variables.names">12.2.1. Naming conventions</a></span></dt></dl></dd>
|
||||
@@ -4897,7 +4891,7 @@ VAR:= ${VAR:N${_othervar_:C/-//}}
|
||||
<a name="plist"></a>Chapter 13. PLIST issues</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#rcs-id">13.1. RCS ID</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#automatic-plist-generation">13.2. Semi-automatic <code class="filename">PLIST</code> generation</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#print-PLIST">13.3. Tweaking output of <span class="command"><strong>make print-PLIST</strong></span></a></span></dt>
|
||||
@@ -5117,7 +5111,7 @@ ${PLIST.foo}share/bar/foo.data
|
||||
<a name="buildlink"></a>Chapter 14. Buildlink methodology</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#converting-to-buildlink3">14.1. Converting packages to use buildlink3</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#creating-buildlink3.mk">14.2. Writing <code class="filename">buildlink3.mk</code> files</a></span></dt>
|
||||
<dd><dl>
|
||||
@@ -5605,7 +5599,7 @@ PREFER_NATIVE= getopt skey tcp_wrappers
|
||||
<a name="pkginstall"></a>Chapter 15. The pkginstall framework</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#files-and-dirs-outside-prefix">15.1. Files and directories outside the installation prefix</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#dirs-outside-prefix">15.1.1. Directory manipulation</a></span></dt>
|
||||
@@ -6008,7 +6002,7 @@ environment variable to <code class="literal">NO</code>.</p>
|
||||
<a name="options"></a>Chapter 16. Options handling</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#global-default-options">16.1. Global default options</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#converting-to-options">16.2. Converting packages to use <code class="filename">bsd.options.mk</code></a></span></dt>
|
||||
<dt><span class="sect1"><a href="#option-names">16.3. Option Names</a></span></dt>
|
||||
@@ -6249,7 +6243,7 @@ details.</p>
|
||||
<a name="build"></a>Chapter 17. The build process</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#build.intro">17.1. Introduction</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#build.prefix">17.2. Program location</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#build.builddirs">17.3. Directories used during the build process</a></span></dt>
|
||||
@@ -6333,48 +6327,17 @@ details.</p>
|
||||
distribution (from xsrc, etc.) is installed. When looking for
|
||||
<span class="emphasis"><em>standard</em></span> X11 includes (not those
|
||||
installed by a package), use <span class="quote">“<span class="quote">${X11BASE}</span>”</span>.</p></li>
|
||||
<li class="listitem"><p>X11-based packages using imake must set
|
||||
<code class="varname">USE_IMAKE</code> to be installed correctly under
|
||||
<code class="varname">LOCALBASE</code>.</p></li>
|
||||
<li class="listitem">
|
||||
<p>X11-based packages are special in that they may be
|
||||
installed in either <code class="varname">X11BASE</code> or
|
||||
<code class="varname">LOCALBASE</code>.</p>
|
||||
<p>Usually, X11 packages should be installed under
|
||||
<code class="varname">LOCALBASE</code> whenever possible. Note that you
|
||||
will need to include
|
||||
<code class="filename">../../mk/x11.buildlink3.mk</code> in them to
|
||||
request the presence of X11 and to get the right compilation
|
||||
flags.</p>
|
||||
<p>Even though, there are some packages that cannot be installed
|
||||
under <code class="varname">LOCALBASE</code>: those that come with app-defaults
|
||||
files. These packages are special and they must be placed under
|
||||
<code class="varname">X11BASE</code>. To accomplish this, set either
|
||||
<code class="varname">USE_X11BASE</code> or <code class="varname">USE_IMAKE</code> in
|
||||
your package.</p>
|
||||
<p>Some notes: If you need
|
||||
to find includes or libraries installed by a pkg that has
|
||||
<code class="varname">USE_IMAKE</code> or <code class="varname">USE_X11BASE</code> in
|
||||
its pkg <code class="filename">Makefile</code>, you need to look in
|
||||
<span class="emphasis"><em>both</em></span> <code class="filename">${X11BASE}</code> and
|
||||
<code class="filename">${LOCALBASE}</code>. To force installation of
|
||||
all X11 packages in <code class="varname">LOCALBASE</code>, the
|
||||
<a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/xpkgwedge/README.html" target="_top"><code class="filename">pkgtools/xpkgwedge</code></a> package
|
||||
is enabled by default.</p>
|
||||
</li>
|
||||
<li class="listitem"><p><code class="varname">X11PREFIX</code> should be used to refer to
|
||||
the installed location of an X11
|
||||
package. <code class="varname">X11PREFIX</code> will be set to
|
||||
<code class="varname">X11BASE</code> if xpkgwedge is not installed, and
|
||||
to <code class="varname">LOCALBASE</code> if xpkgwedge is
|
||||
installed.</p></li>
|
||||
<li class="listitem">
|
||||
<p>If xpkgwedge is installed, it is possible to have some
|
||||
packages installed in <code class="varname">X11BASE</code> and some in
|
||||
<code class="varname">LOCALBASE</code>. To determine the prefix of an
|
||||
<p>To determine the prefix of an
|
||||
installed package, the <code class="varname">EVAL_PREFIX</code>
|
||||
definition can be used. It takes pairs in the format
|
||||
<span class="quote">“<span class="quote">DIRNAME=<package></span>”</span>, and the <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?make+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">make</span>(1)</span></a>
|
||||
variable <code class="varname">DIRNAME</code> will be set to the prefix
|
||||
of the installed package <package>, or
|
||||
<span class="quote">“<span class="quote">${X11PREFIX}</span>”</span> if the package is not
|
||||
<span class="quote">“<span class="quote">${PREFIX}</span>”</span> if the package is not
|
||||
installed.</p>
|
||||
<p>This is best illustrated by example.</p>
|
||||
<p>The following lines are taken from
|
||||
@@ -6551,12 +6514,12 @@ ${MASTER_SITE_MOZILLA_ESR}
|
||||
${MASTER_SITE_MYSQL}
|
||||
${MASTER_SITE_NETLIB}
|
||||
${MASTER_SITE_OPENOFFICE}
|
||||
${MASTER_SITE_OSDN}
|
||||
${MASTER_SITE_PERL_CPAN}
|
||||
${MASTER_SITE_PGSQL}
|
||||
${MASTER_SITE_RUBYGEMS}
|
||||
${MASTER_SITE_R_CRAN}
|
||||
${MASTER_SITE_SOURCEFORGE}
|
||||
${MASTER_SITE_SOURCEFORGE_JP}
|
||||
${MASTER_SITE_SUNSITE}
|
||||
${MASTER_SITE_SUSE}
|
||||
${MASTER_SITE_TEX_CTAN}
|
||||
@@ -6773,10 +6736,8 @@ ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${site}${file} ${FETCH_AFTER_ARGS}
|
||||
<p>If the program uses an <code class="filename">Imakefile</code>
|
||||
for configuration, the appropriate steps can be invoked by
|
||||
setting <code class="varname">USE_IMAKE</code> to
|
||||
<span class="quote">“<span class="quote">yes</span>”</span>. (If you only want the package installed in
|
||||
<code class="varname">${X11PREFIX}</code> but xmkmf not being run, set
|
||||
<code class="varname">USE_X11BASE</code> instead.) You can add variables to
|
||||
xmkmf's environment by adding them to the
|
||||
<span class="quote">“<span class="quote">yes</span>”</span>. If you only need xmkmf, add it to <code class="varname">USE_TOOLS</code>.
|
||||
You can add variables to xmkmf's environment by adding them to the
|
||||
<code class="varname">SCRIPTS_ENV</code> variable.</p>
|
||||
<p>If the program uses <code class="filename">cmake</code>
|
||||
for configuration, the appropriate steps can be invoked by
|
||||
@@ -6880,6 +6841,9 @@ ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${site}${file} ${FETCH_AFTER_ARGS}
|
||||
<dt><span class="term"><code class="varname">INSTALL_MAN_DIR</code></span></dt>
|
||||
<dd><p>directories that contain man
|
||||
pages</p></dd>
|
||||
<dt><span class="term"><code class="varname">INSTALL_GAME_DIR</code></span></dt>
|
||||
<dd><p>directories that contain data files for games
|
||||
</p></dd>
|
||||
<dt><span class="term"><code class="varname">INSTALL_PROGRAM</code></span></dt>
|
||||
<dd><p>binaries that can be stripped from debugging
|
||||
symbols</p></dd>
|
||||
@@ -7309,7 +7273,7 @@ builds)</i></a>).
|
||||
<a name="tools"></a>Chapter 18. Tools needed for building or running</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#pkgsrc-tools">18.1. Tools for pkgsrc builds</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#package-tools">18.2. Tools needed by packages</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#platform-tools">18.3. Tools provided by platforms</a></span></dt>
|
||||
@@ -7389,7 +7353,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div>
|
||||
<div class="qandaset">
|
||||
<a name="idp2133919204"></a><dl>
|
||||
<a name="idm79382608"></a><dl>
|
||||
<dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a>
|
||||
</dt>
|
||||
<dt>18.4.2. <a href="#tools.listall">How do I get a list of all available
|
||||
@@ -7408,7 +7372,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
<tbody>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="tools.new"></a><a name="idp2133919540"></a><p><b>18.4.1.</b></p>
|
||||
<a name="tools.new"></a><a name="idm79382224"></a><p><b>18.4.1.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>How do I add a new tool?</p></td>
|
||||
</tr>
|
||||
@@ -7418,7 +7382,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="tools.listall"></a><a name="idp2133920276"></a><p><b>18.4.2.</b></p>
|
||||
<a name="tools.listall"></a><a name="idm79381200"></a><p><b>18.4.2.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>How do I get a list of all available
|
||||
tools?</p></td>
|
||||
@@ -7429,7 +7393,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="tools.used"></a><a name="idp2133920964"></a><p><b>18.4.3.</b></p>
|
||||
<a name="tools.used"></a><a name="idm79380176"></a><p><b>18.4.3.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>How can I get a list of all the tools that a
|
||||
package is using while being built? I want to know whether it
|
||||
@@ -7450,7 +7414,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
<a name="fixes"></a>Chapter 19. Making your package work</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#general-operation">19.1. General operation</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#portability-of-packages">19.1.1. Portability of packages</a></span></dt>
|
||||
@@ -7893,18 +7857,6 @@ DEPENDS+= ImageMagick>=6.0:../../graphics/ImageMagick
|
||||
vulnerabilities file. See <a class="xref" href="#security-handling" title="19.1.10. Handling packages with security problems">Section 19.1.10, “Handling packages with security problems”</a> for more
|
||||
information.</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<p>If the package depends on either one of two (or more)
|
||||
packages, specify the <span class="quote">“<span class="quote">pre-req-package-name</span>”</span> as a
|
||||
comma-separated list between curly braces.</p>
|
||||
<p>As an example, take a package that depends on the Perl
|
||||
<span class="quote">“<span class="quote">version</span>”</span> module, which has been part of Perl
|
||||
itself since version 5.10.0. This either/or dependency is
|
||||
expressed as:</p>
|
||||
<pre class="programlisting">
|
||||
DEPENDS+= {perl>=5.10.0,p5-version-[0-9]*}:../../devel/p5-version
|
||||
</pre>
|
||||
</li>
|
||||
</ol></div>
|
||||
<p>If your package needs files from another package to build,
|
||||
add the relevant distribution files to
|
||||
@@ -8796,11 +8748,36 @@ ${INSTALL_DATA_DIR} ${PREFIX}/dir2
|
||||
<code class="filename">mk/defaults/mk.conf</code>, control this
|
||||
behaviour: <code class="varname">GAMEDATAMODE</code>,
|
||||
<code class="varname">GAMEDIRMODE</code>, <code class="varname">GAMES_GROUP</code>,
|
||||
<code class="varname">GAMEMODE</code>, <code class="varname">GAME_USER</code>.</p>
|
||||
<code class="varname">GAMEMODE</code>, <code class="varname">GAME_USER</code>.
|
||||
Other useful variables are: <code class="varname">GAMEDIR_PERMS</code>,
|
||||
<code class="varname">GAMEDATA_PERMS</code> and
|
||||
<code class="varname">SETGID_GAMES_PERMS</code>.</p>
|
||||
<p>An example that illustrates some of the variables described above is
|
||||
<code class="filename">games/moon-buggy</code>. <code class="varname">OWN_DIRS_PERMS</code> is
|
||||
used to properly set directory permissions of the directory where the
|
||||
scorefile is saved, <code class="varname">REQD_FILES_PERMS</code> is used to create a
|
||||
dummy scorefile (<code class="filename">mbscore</code>) with the proper permissions
|
||||
and <code class="varname">SPECIAL_PERMS</code> is used to install setgid the game
|
||||
binary:</p>
|
||||
<pre class="programlisting">
|
||||
USE_GAMESGROUP= yes
|
||||
|
||||
BUILD_DEFS+= VARBASE
|
||||
|
||||
OWN_DIRS_PERMS+= ${VARBASE}/games/moon-buggy ${GAMEDIR_PERMS}
|
||||
REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/moon-buggy/mbscore ${GAMEDATA_PERMS}
|
||||
SPECIAL_PERMS+= ${PREFIX}/bin/moon-buggy ${SETGID_GAMES_PERMS}
|
||||
</pre>
|
||||
<p>Various <code class="varname">INSTALL_*</code> variables are also available:
|
||||
<code class="varname">INSTALL_GAME</code> to install setgid game binaries,
|
||||
<code class="varname">INSTALL_GAME_DIR</code> to install game directories that are
|
||||
needed to be accessed by setgid games and
|
||||
<code class="varname">INSTALL_GAME_DATA</code> to install scorefiles.</p>
|
||||
<p>A package should therefore never hard code file ownership or
|
||||
access permissions but rely on <code class="varname">INSTALL_GAME</code> and
|
||||
<code class="varname">INSTALL_GAME_DATA</code> to set these
|
||||
correctly.</p>
|
||||
access permissions but rely on <code class="varname">*_PERMS</code> as described above
|
||||
or alternatively on <code class="varname">INSTALL_GAME</code>,
|
||||
<code class="varname">INSTALL_GAME_DATA</code> and
|
||||
<code class="varname">INSTALL_GAME_DIR</code> to set these correctly.</p>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
@@ -9355,7 +9332,7 @@ PERL5_PACKLIST= auto/Pg/.packlist
|
||||
<a name="submit"></a>Chapter 21. Submitting and Committing</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#submitting-binary-packages">21.1. Submitting binary packages</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#submitting-your-package">21.2. Submitting source packages (for non-NetBSD-developers)</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#general-notes-for-changes">21.3. General notes when adding, updating, or removing packages</a></span></dt>
|
||||
@@ -9577,7 +9554,7 @@ place.</p></li>
|
||||
and if you still don't have the answer, ask on the
|
||||
<code class="literal">pkgsrc-users</code> mailing list.</p>
|
||||
<div class="qandaset">
|
||||
<a name="idp2134262308"></a><dl>
|
||||
<a name="idm80911696"></a><dl>
|
||||
<dt>22.1. <a href="#devfaq.makeflags">What is the difference between
|
||||
MAKEFLAGS, .MAKEFLAGS and
|
||||
MAKE_FLAGS?</a>
|
||||
@@ -9622,7 +9599,7 @@ do?</a>
|
||||
<tbody>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.makeflags"></a><a name="idp2134261236"></a><p><b>22.1.</b></p>
|
||||
<a name="devfaq.makeflags"></a><a name="idm80911312"></a><p><b>22.1.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and
|
||||
@@ -9638,7 +9615,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.make"></a><a name="idp2134265108"></a><p><b>22.2.</b></p>
|
||||
<a name="devfaq.make"></a><a name="idm80907344"></a><p><b>22.2.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and
|
||||
@@ -9656,7 +9633,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.cc"></a><a name="idp2134267908"></a><p><b>22.3.</b></p>
|
||||
<a name="devfaq.cc"></a><a name="idm80902864"></a><p><b>22.3.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">CC</code>, <code class="varname">PKG_CC</code> and
|
||||
@@ -9674,7 +9651,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.bl3flags"></a><a name="idp2134270580"></a><p><b>22.4.</b></p>
|
||||
<a name="devfaq.bl3flags"></a><a name="idm80898768"></a><p><b>22.4.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">BUILDLINK_LDFLAGS</code>,
|
||||
@@ -9687,7 +9664,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.bl3prefix"></a><a name="idp2134272004"></a><p><b>22.5.</b></p>
|
||||
<a name="devfaq.bl3prefix"></a><a name="idm80896592"></a><p><b>22.5.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var
|
||||
VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span>
|
||||
@@ -9703,7 +9680,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.master_sites"></a><a name="idp2134274180"></a><p><b>22.6.</b></p>
|
||||
<a name="devfaq.master_sites"></a><a name="idm80893392"></a><p><b>22.6.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What does
|
||||
<code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I
|
||||
@@ -9727,7 +9704,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.mailinglists"></a><a name="idp2134279444"></a><p><b>22.7.</b></p>
|
||||
<a name="devfaq.mailinglists"></a><a name="idm80885328"></a><p><b>22.7.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>Which mailing lists are there for package
|
||||
developers?</p></td>
|
||||
@@ -9752,7 +9729,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.documentation"></a><a name="idp2134282340"></a><p><b>22.8.</b></p>
|
||||
<a name="devfaq.documentation"></a><a name="idm80881616"></a><p><b>22.8.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>Where is the pkgsrc
|
||||
documentation?</p></td>
|
||||
@@ -9800,7 +9777,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.too-much-time"></a><a name="idp2134287764"></a><p><b>22.9.</b></p>
|
||||
<a name="devfaq.too-much-time"></a><a name="idm80875088"></a><p><b>22.9.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>I have a little time to kill. What shall I
|
||||
do?</p></td>
|
||||
@@ -9834,7 +9811,7 @@ anyway.</p>
|
||||
<a name="gnome"></a>Chapter 23. GNOME packaging and porting</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#meta-packages">23.1. Meta packages</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#new-package">23.2. Packaging a GNOME application</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#full-update">23.3. Updating GNOME to a newer version</a></span></dt>
|
||||
@@ -10135,7 +10112,7 @@ details.</p>
|
||||
need anything from this part.</p>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="chapter"><a href="#infr.design">24. Design of the pkgsrc infrastructure</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect1"><a href="#infr.vardef">24.1. The meaning of variable definitions</a></span></dt>
|
||||
@@ -10180,7 +10157,7 @@ details.</p>
|
||||
<a name="infr.design"></a>Chapter 24. Design of the pkgsrc infrastructure</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#infr.vardef">24.1. The meaning of variable definitions</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#infr.vardef.problems">24.2. Avoiding problems before they arise</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#infr.var">24.3. Variable evaluation</a></span></dt>
|
||||
@@ -10453,7 +10430,7 @@ CFLAGS+= -Wall
|
||||
<a name="regression"></a>Chapter 25. Regression tests</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#regression.descr">25.1. The regression tests framework</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#regression.run">25.2. Running the regression tests</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#regression.new">25.3. Adding a new regression test</a></span></dt>
|
||||
@@ -10548,7 +10525,7 @@ CFLAGS+= -Wall
|
||||
<a name="porting"></a>Chapter 26. Porting pkgsrc</h2></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#porting.opsys">26.1. Porting pkgsrc to a new operating system</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#porting.compiler">26.2. Adding support for a new compiler</a></span></dt>
|
||||
</dl>
|
||||
@@ -10602,7 +10579,7 @@ CFLAGS+= -Wall
|
||||
<a name="examples"></a>Appendix A. A simple example package: bison</h1></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#example-files">A.1. files</a></span></dt>
|
||||
<dd><dl>
|
||||
<dt><span class="sect2"><a href="#example-Makefile">A.1.1. Makefile</a></span></dt>
|
||||
@@ -10793,7 +10770,7 @@ Creating gzip'd tar ball in '/u/pkgsrc/lang/bison/bison-1.25.tgz'</pre>
|
||||
<a name="logs"></a>Appendix B. Build logs</h1></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#logs.building">B.1. Building figlet</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#logs.package">B.2. Packaging figlet</a></span></dt>
|
||||
</dl>
|
||||
@@ -10908,7 +10885,7 @@ Registering depends:.
|
||||
<a name="ftp-layout"></a>Appendix C. Directory layout of the pkgsrc FTP server</h1></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#ftp-distfiles">C.1. <code class="filename">distfiles</code>: The distributed source files</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ftp-misc">C.2. <code class="filename">misc</code>: Miscellaneous things</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ftp-packages">C.3. <code class="filename">packages</code>: Binary packages</a></span></dt>
|
||||
@@ -11016,7 +10993,7 @@ source packages</h2></div></div></div>
|
||||
<a name="editing"></a>Appendix D. Editing guidelines for the pkgsrc guide</h1></div></div></div>
|
||||
<div class="toc">
|
||||
<p><b>Table of Contents</b></p>
|
||||
<dl>
|
||||
<dl class="toc">
|
||||
<dt><span class="sect1"><a href="#targets">D.1. Make targets</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#procedure">D.2. Procedure</a></span></dt>
|
||||
</dl>
|
||||
|
||||
+38
-46
@@ -592,8 +592,6 @@ Table 1.1. Platforms supported by pkgsrc
|
||||
|Cygwin | Mar 2013 |README.Cygwin |
|
||||
|--------------------------------------+---------------+----------------------|
|
||||
|GNU/kFreeBSD | Jul 2013 |README.GNUkFreeBSD |
|
||||
|--------------------------------------+---------------+----------------------|
|
||||
|Bitrig | Jun 2014 |README.Bitrig |
|
||||
+-----------------------------------------------------------------------------+
|
||||
|
||||
|
||||
@@ -3803,7 +3801,7 @@ MESSAGE
|
||||
MESSAGE_SUBST+= SOMEVAR="somevalue"
|
||||
|
||||
replaces "${SOMEVAR}" with "somevalue" in MESSAGE. By default, substitution
|
||||
is performed for PKGNAME, PKGBASE, PREFIX, LOCALBASE, X11PREFIX, X11BASE,
|
||||
is performed for PKGNAME, PKGBASE, PREFIX, LOCALBASE, X11BASE,
|
||||
PKG_SYSCONFDIR, ROOT_GROUP, and ROOT_USER.
|
||||
|
||||
You can display a different or additional files by setting the MESSAGE_SRC
|
||||
@@ -5322,33 +5320,13 @@ When choosing which of these variables to use, follow the following rules:
|
||||
installed. When looking for standard X11 includes (not those installed by a
|
||||
package), use "${X11BASE}".
|
||||
|
||||
* X11-based packages are special in that they may be installed in either
|
||||
X11BASE or LOCALBASE.
|
||||
* X11-based packages using imake must set USE_IMAKE to be installed correctly
|
||||
under LOCALBASE.
|
||||
|
||||
Usually, X11 packages should be installed under LOCALBASE whenever
|
||||
possible. Note that you will need to include ../../mk/x11.buildlink3.mk in
|
||||
them to request the presence of X11 and to get the right compilation flags.
|
||||
|
||||
Even though, there are some packages that cannot be installed under
|
||||
LOCALBASE: those that come with app-defaults files. These packages are
|
||||
special and they must be placed under X11BASE. To accomplish this, set
|
||||
either USE_X11BASE or USE_IMAKE in your package.
|
||||
|
||||
Some notes: If you need to find includes or libraries installed by a pkg
|
||||
that has USE_IMAKE or USE_X11BASE in its pkg Makefile, you need to look in
|
||||
both ${X11BASE} and ${LOCALBASE}. To force installation of all X11 packages
|
||||
in LOCALBASE, the pkgtools/xpkgwedge package is enabled by default.
|
||||
|
||||
* X11PREFIX should be used to refer to the installed location of an X11
|
||||
package. X11PREFIX will be set to X11BASE if xpkgwedge is not installed,
|
||||
and to LOCALBASE if xpkgwedge is installed.
|
||||
|
||||
* If xpkgwedge is installed, it is possible to have some packages installed
|
||||
in X11BASE and some in LOCALBASE. To determine the prefix of an installed
|
||||
package, the EVAL_PREFIX definition can be used. It takes pairs in the
|
||||
format "DIRNAME=<package>", and the make(1) variable DIRNAME will be set to
|
||||
the prefix of the installed package <package>, or "${X11PREFIX}" if the
|
||||
package is not installed.
|
||||
* To determine the prefix of an installed package, the EVAL_PREFIX definition
|
||||
can be used. It takes pairs in the format "DIRNAME=<package>", and the make
|
||||
(1) variable DIRNAME will be set to the prefix of the installed package
|
||||
<package>, or "${PREFIX}" if the package is not installed.
|
||||
|
||||
This is best illustrated by example.
|
||||
|
||||
@@ -5498,12 +5476,12 @@ ${MASTER_SITE_MOZILLA_ESR}
|
||||
${MASTER_SITE_MYSQL}
|
||||
${MASTER_SITE_NETLIB}
|
||||
${MASTER_SITE_OPENOFFICE}
|
||||
${MASTER_SITE_OSDN}
|
||||
${MASTER_SITE_PERL_CPAN}
|
||||
${MASTER_SITE_PGSQL}
|
||||
${MASTER_SITE_RUBYGEMS}
|
||||
${MASTER_SITE_R_CRAN}
|
||||
${MASTER_SITE_SOURCEFORGE}
|
||||
${MASTER_SITE_SOURCEFORGE_JP}
|
||||
${MASTER_SITE_SUNSITE}
|
||||
${MASTER_SITE_SUSE}
|
||||
${MASTER_SITE_TEX_CTAN}
|
||||
@@ -5670,10 +5648,9 @@ module.mk. To set any parameter for Makefile.PL use the MAKE_PARAMS variable
|
||||
(e.g., MAKE_PARAMS+=foo=bar
|
||||
|
||||
If the program uses an Imakefile for configuration, the appropriate steps can
|
||||
be invoked by setting USE_IMAKE to "yes". (If you only want the package
|
||||
installed in ${X11PREFIX} but xmkmf not being run, set USE_X11BASE instead.)
|
||||
You can add variables to xmkmf's environment by adding them to the SCRIPTS_ENV
|
||||
variable.
|
||||
be invoked by setting USE_IMAKE to "yes". If you only need xmkmf, add it to
|
||||
USE_TOOLS. You can add variables to xmkmf's environment by adding them to the
|
||||
SCRIPTS_ENV variable.
|
||||
|
||||
If the program uses cmake for configuration, the appropriate steps can be
|
||||
invoked by setting USE_CMAKE to "yes". You can add variables to cmake's
|
||||
@@ -5760,6 +5737,10 @@ INSTALL_MAN_DIR
|
||||
|
||||
directories that contain man pages
|
||||
|
||||
INSTALL_GAME_DIR
|
||||
|
||||
directories that contain data files for games
|
||||
|
||||
INSTALL_PROGRAM
|
||||
|
||||
binaries that can be stripped from debugging symbols
|
||||
@@ -6606,16 +6587,6 @@ version numbers recognized by pkg_info(1).
|
||||
Section 19.1.10, "Handling packages with security problems" for more
|
||||
information.
|
||||
|
||||
7. If the package depends on either one of two (or more) packages, specify the
|
||||
"pre-req-package-name" as a comma-separated list between curly braces.
|
||||
|
||||
As an example, take a package that depends on the Perl "version" module,
|
||||
which has been part of Perl itself since version 5.10.0. This either/or
|
||||
dependency is expressed as:
|
||||
|
||||
DEPENDS+= {perl>=5.10.0,p5-version-[0-9]*}:../../devel/p5-version
|
||||
|
||||
|
||||
If your package needs files from another package to build, add the relevant
|
||||
distribution files to DISTFILES, so they will be extracted automatically. See
|
||||
the print/ghostscript package for an example. (It relies on the jpeg sources
|
||||
@@ -7319,10 +7290,31 @@ work, the binaries need to be installed setgid and the score files owned by the
|
||||
appropriate group and/or owner (traditionally the "games" user/group). Set
|
||||
USE_GAMESGROUP to yes to support this. The following variables, documented in
|
||||
more detail in mk/defaults/mk.conf, control this behaviour: GAMEDATAMODE,
|
||||
GAMEDIRMODE, GAMES_GROUP, GAMEMODE, GAME_USER.
|
||||
GAMEDIRMODE, GAMES_GROUP, GAMEMODE, GAME_USER. Other useful variables are:
|
||||
GAMEDIR_PERMS, GAMEDATA_PERMS and SETGID_GAMES_PERMS.
|
||||
|
||||
An example that illustrates some of the variables described above is games/
|
||||
moon-buggy. OWN_DIRS_PERMS is used to properly set directory permissions of the
|
||||
directory where the scorefile is saved, REQD_FILES_PERMS is used to create a
|
||||
dummy scorefile (mbscore) with the proper permissions and SPECIAL_PERMS is used
|
||||
to install setgid the game binary:
|
||||
|
||||
USE_GAMESGROUP= yes
|
||||
|
||||
BUILD_DEFS+= VARBASE
|
||||
|
||||
OWN_DIRS_PERMS+= ${VARBASE}/games/moon-buggy ${GAMEDIR_PERMS}
|
||||
REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/moon-buggy/mbscore ${GAMEDATA_PERMS}
|
||||
SPECIAL_PERMS+= ${PREFIX}/bin/moon-buggy ${SETGID_GAMES_PERMS}
|
||||
|
||||
|
||||
Various INSTALL_* variables are also available: INSTALL_GAME to install setgid
|
||||
game binaries, INSTALL_GAME_DIR to install game directories that are needed to
|
||||
be accessed by setgid games and INSTALL_GAME_DATA to install scorefiles.
|
||||
|
||||
A package should therefore never hard code file ownership or access permissions
|
||||
but rely on INSTALL_GAME and INSTALL_GAME_DATA to set these correctly.
|
||||
but rely on *_PERMS as described above or alternatively on INSTALL_GAME,
|
||||
INSTALL_GAME_DATA and INSTALL_GAME_DIR to set these correctly.
|
||||
|
||||
19.6.4. Adding DESTDIR support to packages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user