pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/doc/guide/files Describe what DESTDIR means and improv...
details: https://anonhg.NetBSD.org/pkgsrc/rev/eac9d4205974
branches: trunk
changeset: 543733:eac9d4205974
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Jun 22 15:22:44 2008 +0000
description:
Describe what DESTDIR means and improve description what to do for packages.
Fix a typo while here.
diffstat:
doc/guide/files/fixes.xml | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 771fcf3d7689 -r eac9d4205974 doc/guide/files/fixes.xml
--- a/doc/guide/files/fixes.xml Sun Jun 22 15:22:43 2008 +0000
+++ b/doc/guide/files/fixes.xml Sun Jun 22 15:22:44 2008 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.93 2008/05/29 08:34:26 abs Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.94 2008/06/22 15:22:44 wiz Exp $ -->
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
<title>Making your package work</title>
@@ -1332,7 +1332,7 @@
disabled; setting <varname>SETGIDGAME=YES</varname> will set all
the other variables accordingly.</para>
- <para>A package should therefor never hard code file ownership or
+ <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>
@@ -1341,7 +1341,20 @@
<sect2 id="destdir-support">
<title>Adding DESTDIR support to packages</title>
+ <para><varname>DESTDIR</varname> support means that a package
+ installs into a staging directory, not the final location of the
+ files. Then a binary package is created which can be used for
+ installation as usual. There are two ways: Either the package must
+ install as root (<quote>destdir</quote>) or the package can
+ install as non-root user (<quote>user-destdir</quote>).</para>
+
<itemizedlist>
+ <listitem><para><varname>PKG_DESTDIR_SUPPORT</varname> has to be
+ set to <quote>destdir</quote> or <quote>user-destdir</quote>. If
+ bsd.prefs.mk is included in the Makefile,
+ <varname>PKG_DESTDIR_SUPPORT</varname> needs to be set before
+ the inclusion.</para></listitem>
+
<listitem><para>All installation operations have to be prefixed with
<filename>${DESTDIR}</filename>.</para></listitem>
Home |
Main Index |
Thread Index |
Old Index