From 5e31a7c571b3717797a02d11e9d57766ec459814 Mon Sep 17 00:00:00 2001
From: wiz Table 3.1. Binary kits and available packages
+
Simply download the binary kit for your platform, and extract it into
www/apache
- The Apache
web serverwww/mozilla
- The Mozilla
+www/firefox
- The Firefox
web browsermeta-pkgs/gnome
- The GNOME
Desktop Environment
+
+
-/
e.g.
pkgsrc
directory to build local
README.html
files for all packages, viewable with any web browser such as
www/lynx
or
-www/mozilla
.
www/firefox
.
The default prefix for installed packages is
/usr/pkg
. If you wish to change this, you should do
so by setting LOCALBASE
in
@@ -2062,7 +2059,7 @@ to your mk.conf
.
You can overwrite some of the major distribution sites to fit to sites
that are close to your own. Have a look at
pkgsrc/mk/defaults/mk.conf
to find some examples
- — in particular, look for the MASTER_SORT
,
+ — in particular, look for the MASTER_SORT
,
MASTER_SORT_REGEX
and
INET_COUNTRY
definitions. This may save some of your
bandwidth and time.
${WRKOBJDIR}
is local to every architecture. (It should be noted that
PKGSRCDIR
should not be set by the user
- — it is an internal definition which refers to the
+ — it is an internal definition which refers to the
root of the pkgsrc tree. It is possible to have many
pkgsrc tree instances.)
LOCALPATCHES
:
@@ -2341,7 +2338,6 @@ You can now enter:
settings used by builds in /usr/src
.
DEPENDS_TARGET
:
By default, dependencies are only installed, and no binary
-
package is created for them. You can set this variable to
package
to automatically create binary
packages after installing dependencies.
/usr/src
(system sources,
- e. g. for sysutils/aperture
):
sysutils/aperture
):
#
ln -s ../disk1/cvs .
#
ln -s cvs/src-2.0 src
No rule without exception—the .for +
No rule without exception—the .for loop does not follow the shell quoting rules but splits at sequences of whitespace.
There are several types of variables that should be handled
@@ -6343,7 +6339,7 @@ of This target generates a Documentation should be installed into
+ In general, documentation should be installed into
Many modern packages using GNU autoconf allow to set the directory
+ where HTML documentation is installed with the “--with-html-dir”
+ option. An exception to the above is that library API
+ documentation generated with the What is the difference between
What is the difference between
What is the difference between
What is the difference between
[FIXME] Why does make show-var
VARNAME=BUILDLINK_PREFIX. For optimization reasons, some variables are only
available in the “wrapper” phase and later. To
“simulate” the wrapper phase, append
@@ -8384,7 +8394,7 @@ place. What does
The Which mailing lists are there for package
developers? This is a list for technical discussions related
@@ -8433,13 +8443,13 @@ place. Where is the pkgsrc
documentation? There are many places where you can find
documentation about pkgsrc: In a traditional imperative programming language some of
the The procedure to edit the pkgsrc guide is: Make sure you have the packages needed to
- re-generate the pkgsrc guide (and other XML-based NetBSD
+ regenerate the pkgsrc guide (and other XML-based NetBSD
documentation) installed. These are Run bmake clean && bmake to
regenerate the output files with the proper RCS
Ids. Run (cd .. && cvs update pkgsrc.*)
- && bmake install-doc to put the generated
- files into Run (cd .. && cvs commit -m
- "regenerated." pkgsrc.{html,txt}) to commit the
- generated documentation. Run (cd
- ../../../htdocs/Documentation/pkgsrc && cvs update)
- && bmake install-htdocs to generate all the
- files for the web server. Run (cd
- ../../../htdocs/Documentation/pkgsrc && cvs commit -m
- "regenerated.") to update the files on the web server.
- If you have added a chapter, don't forget to run cvs
- add *.html before you commit the files. Run bmake regenerate to
+ regenerate the files in both If you have added, removed or renamed some chapters,
+ you need to synchronize them using cvs add or
+ cvs delete in the htdocs
+ directory.MAKEFILE
is “Makefile<
README.html
file, which
can be viewed using a browser such as
- www/mozilla
or
+ www/firefox
or
www/links
.
The generated files contain references to any
packages which are in the PACKAGES
directory on
@@ -7555,10 +7551,24 @@ Changes to the PLIST
${PREFIX}/share/doc/${PKGBASE}
or
${PREFIX}/share/doc/${PKGNAME}
(the latter
includes the version number of the package).textproc/gtk-doc
tools, for use by
+ special browsers (devhelp) should be left at their default
+ location, which is
+ ${PREFIX}/share/gtk-doc
. Such
+ documentation can be recognized from files ending in
+ .devhelp
or
+ .devhelp2
. (It is also acceptable to
+ install such files in
+ ${PREFIX}/share/doc
; no additional
+ subdirectory level is allowed in this case.)
@@ -8265,36 +8275,36 @@ place.
pkgsrc-users
mailing list.
-
@@ -8303,14 +8313,14 @@ place.
-20.1.
+20.1.
MAKEFLAGS
, .MAKEFLAGS
and
MAKE_FLAGS
?
-
+
MAKEFLAGS
are the flags passed
to the pkgsrc-internal invocations of make(1), while
MAKE_FLAGS
are the flags that are passed to
@@ -8319,14 +8329,14 @@ place.
-20.2.
+20.2.
MAKE
, GMAKE
and
MAKE_PROGRAM
?
-
+
MAKE
is the path to the
make(1) program that is used in the pkgsrc
infrastructure. GMAKE
is the path to GNU
@@ -8337,14 +8347,14 @@ place.
-20.3.
+20.3.
CC
, PKG_CC
and
PKGSRC_COMPILER
?
-
+
CC
is the path to the real C
compiler, which can be configured by the pkgsrc user.
PKG_CC
is the path to the compiler wrapper.
@@ -8355,7 +8365,7 @@ place.
-20.4.
+20.4.
BUILDLINK_LDFLAGS
,
@@ -8363,19 +8373,19 @@ place.BUILDLINK_LIBS
?
-
+
-20.5.
+20.5.
foo
say it's empty?
-
+
-20.6.
+20.6.
${MASTER_SITE_SOURCEFORGE:=package/}
mean? I
@@ -8392,7 +8402,7 @@ place.
-
+
:=
is not really an
assignment operator, like you might expect at first sight.
Instead, it is a degenerate form of
@@ -8408,13 +8418,13 @@ place.
-20.7.
+20.7.
-
+
-20.8.
+20.8.
-
+
.mk
files could be described as
- procedures. They take some input parameters and—after
- inclusion—provide a result in output parameters. Since all
+ procedures. They take some input parameters and—after
+ inclusion—provide a result in output parameters. Since all
variables in Makefile
s have global scope
care must be taken not to use parameter names that have already
another meaning. For example, PKGNAME
is a
@@ -9401,7 +9411,7 @@ source packages
meta-pkgs/netbsd-doc
for creating the
ASCII and HTML versions, and meta-pkgs/netbsd-doc-print
for the
PostScript and PDF versions. You will need both packages
@@ -9422,21 +9432,13 @@ source packagespkgsrc/doc
.pkgsrc/doc
and
+ htdocs
.