unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (NetBSD-2.0)
Page:
Section:
Apropos / Subsearch:
optional field

PACKAGES(7)          BSD Miscellaneous Information Manual          PACKAGES(7)

NAME
     packages -- NetBSD user package variables

DESCRIPTION
     This manual page describes the variables that users of the NetBSD pack-
     ages system can set to alter the configuration of the package system, and
     individual packages.

COMMON VARIABLES
     This section documents variables that typically apply to all packages.
     Many of these may be set in mk.conf(5).

           ARCH       The architecture, as returned by ``uname -m''.  See
                      uname(1).

           OPSYS      The operating system name, as returned by ``uname -s''.

           LOCALBASE  Where non-X11 based packages will be installed.  The
                      default is /usr/pkg.

           CROSSBASE  Where ``cross'' category packages will be installed.
                      The default is ${LOCALBASE}/cross.

           X11BASE    Where X11 is installed on the system, and where ``X11''
                      category packages will be installed.  The default is
                      /usr/X11R6.

           DISTDIR    Where to get gzip'd, tar-balled copies of original
                      sources.  The default is ${PKGSRCDIR}/distfiles.

           MASTER_SITE_BACKUP
                      Backup location(s) for distribution files and patch
                      files if not found locally and ${MAS-
                      TER_SITES}/${PATCH_SITES}.  The defaults are
                      ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/${DIST_SUBDIR}/
                      and
                      ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/.

           MASTER_SITE_OVERRIDE
                      If set, override the MASTER_SITES setting with this
                      value.

           PACKAGES   A top level directory where all packages go (rather than
                      going locally to each package).  The default is
                      ${PKGSRCDIR}/packages.

           GMAKE      Set to path of GNU make if not in $PATH (default:
                      gmake).

           PKG_FC     Set to the path of the desired Fortran compiler
                      (default: f2c-f77).

           XMKMF      Set to path of ``xmkmf'' if not in $PATH (default: xmkmf
                      -a).

           WRKOBJDIR  A top level directory where, if defined, the separate
                      working directories will get created, and symbolically
                      linked to from ${WRKDIR} (see below).  This is useful
                      for building packages on several architectures, then
                      ${PKGSRCDIR} can be NFS-mounted while ${WRKOBJDIR} is
                      local to every arch.  (It should be noted that
                      ${PKGSRCDIR} should not be set by the user - it is an
                      internal definition which refers to the root of the
                      pkgsrc tree.  It is possible to have many pkgsrc tree
                      instances.)

           PKG_DEVELOPER
                      Run some sanity checks that package developers want:

                      o   make sure patches apply with zero fuzz

                      o   run check-shlibs to see that all binaries will find
                          their shared libs.

           USE_GLX    Says that if Mesa is requested, a package should prefer-
                      ably use a GLX (hardware-accelerated) version of the
                      Mesa library.

           BINPKG_SITES
                      List of sites carrying binary pkgs.

           LOCALPATCHES
                      Directory for local patches that aren't part of pkgsrc.
                      See pkgsrc/Packages.txt for more information.  ``rel''
                      and ``arch'' are replaced with OS release ( ``1.5'',
                      etc.) and architecture ( ``mipsel'', etc.).

           PKGMAKECONF
                      Location of the mk.conf file used by a package's BSD-
                      style Makefile.  If this is not set, MAKECONF is set to
                      /dev/null to avoid picking up settings used by builds in
                      /usr/src.

PACKAGE SPECIFIC VARIABLES
     This section documents variables that typically apply to an individual
     package.  Non-Boolean variables without defaults are *mandatory*.

           ONLY_FOR_PLATFORM
                     If set, it lists the values of OS triples (OS-version-
                     platform) that the package will build under.  It can be a
                     glob-style wildcard.

           NOT_FOR_PLATFORM
                     If set, it lists the values of OS triples (OS-version-
                     platform) that the package will not build under.  It can
                     be a glob-style wildcard.

           MAINTAINER
                     The e-mail address of the contact person for this pack-
                     age.  The person who feels responsible for this package,
                     and who is most likely to look at problems or questions
                     regarding this package which have been reported with
                     send-pr(1).  The right person to contact before making
                     major changes to the package.  The default is tech-
                     pkgATNetBSD.org.

           CATEGORIES
                     A list of descriptive categories into which this package
                     falls.

           COMMENT   A one-line description of the package (should not include
                     the package name).

           MASTER_SITES
                     Primary location(s) for distribution files if not found
                     locally.

           PATCH_SITES
                     Primary location(s) for distribution patch files (see
                     PATCHFILES below) if not found locally.

           PKG_DEBUG_LEVEL
                     The level of debugging output which is displayed whilst
                     making and installing the package.  The default value for
                     this is 0, which will not display the commands as they
                     are executed (normal, default, quiet operation); the
                     value 1 will display all shell commands before their
                     invocation, and the value 2 will display both the shell
                     commands before their invocation, and their actual execu-
                     tion progress with set -x will be displayed.

           WRKDIR    A temporary working directory that gets *clobbered* on
                     clean.  The default is ${.CURDIR}/work or
                     ${.CURDIR}/work.${MACHINE_ARCH} if OBJMACHINE is set.

           WRKSRC    A subdirectory of ${WRKDIR} where the distribution actu-
                     ally unpacks to.  The default is ${WRKDIR}/${DISTNAME}.
                     The value of WRKSRC should be set explicitly if the pack-
                     age does not follow standard conventions and include the
                     package's name as a subdirectory.  Please note that the
                     old NO_WRKSUBDIR definition has been deprecated and
                     should not be used.

           DISTNAME  Name of package or distribution.

           DISTFILES
                     Name(s) of archive file(s) containing distribution.  The
                     default is ${DISTNAME}${EXTRACT_SUFX}.

           PATCHFILES
                     Name(s) of additional files that contain distribution
                     patches.  There is no default.  Make will look for them
                     at PATCH_SITES (see above).  They will automatically be
                     uncompressed before patching if the names end with
                     ``.gz'' or ``.Z''.

           DIST_SUBDIR
                     Suffix to ${DISTDIR}.  If set, all ${DISTFILES} and
                     ${PATCHFILES} will be put in this subdirectory of
                     ${DISTDIR}.

           ALLFILES  All of ${DISTFILES} and ${PATCHFILES}.

           IGNOREFILES
                     If some of the ${ALLFILES} are not checksum-able, set
                     this variable to their names.

           PKGNAME   Name of the package file to create if the ${DISTNAME}
                     isn't really relevant for the package.  The default is
                     ${DISTNAME}.

           SVR4_PKGNAME
                     Name of the package file to create if the ${PKGNAME}
                     isn't unique enough on a SVR4 system.  The default is
                     ${PKGNAME} which may be shortened when you use gensolpkg.
                     Only add SVR4_PKGNAME if ${PKGNAME} does not produce an
                     unique package name on a SVR4 system.  The length of
                     SVR4_PKGNAME is limited to 5 characters.

           PKGREVISION
                     This number indicates the package's revision within the
                     NetBSD Packages Collection (pkgsrc).  If set, this will
                     be attached to the PKGNAME variable separated by a
                     ``nb''.

           EXTRACT_ONLY
                     If defined, a subset of ${DISTFILES} you want to actually
                     extract.

           PATCHDIR  A directory containing any additional patches you made to
                     package this software.  The default is
                     ${.CURDIR}/patches.

           SCRIPTDIR
                     A directory containing any auxiliary scripts.  The
                     default is ${.CURDIR}/scripts.

           FILESDIR  A directory containing any miscellaneous additional
                     files.  The default is ${.CURDIR}/files.

           PKGDIR    A direction containing any package creation files.  The
                     default is ${.CURDIR}/pkg.

           PKG_DBDIR
                     Where package installation is recorded.  The default is
                     /var/db/pkg.

           FORCE_PKG_REGISTER
                     If set, it will overwrite any existing package registra-
                     tion information in ${PKG_DBDIR}/${PKGNAME}.

           NO_MTREE  If set, will not invoke mtree from bsd.pkg.mk from the
                     ``install'' target.

           MTREE_FILE
                     The name of the mtree file.  The default is
                     /etc/mtree/BSD.x11.dist if USE_IMAKE or USE_X11BASE is
                     set, or /etc/mtree/BSD.pkg.dist otherwise.

           USE_X11   Instructs the package system that the package will use
                     headers and libraries from X11BASE and so a check must be
                     made that these are available.  If they are not, an
                     IGNORE message will be displayed, and the package will
                     not be built.

           PLIST_SRC
                     Which file(s) to use to build ${PLIST}.  Default is
                     ${PKGDIR}/PLIST.

           PLIST_SUBST
                     Patterns that get automatically expanded during the PLIST
                     creation.  Takes arguments of the form VARNAME =
                     ``value'' and subsequently replaces every occurrence of
                     ${VARNAME} with value.

           INSTALL_FILE
                     The name of a script which will be invoked when
                     installing binary packages.  If there is a file called
                     ${PKGDIR}/INSTALL, that file will be used.

           DEINSTALL_FILE
                     The name of a script which will be invoked when de-
                     installing binary packages.  If there is a file called
                     ${PKGDIR}/DEINSTALL, that file will be used.

           MESSAGE   The name of a file which will be displayed during the
                     installation of a package.  No substitution according to
                     MESSAGE_SUBST takes place.  Overrides MESSAGE_SRC.
                     Should not be used.

           MESSAGE_SRC
                     The name of a file which will be displayed when
                     installing a package.  If neither MESSAGE_SRC nor MESSAGE
                     are set, and there is a file called ${PKGDIR}/MESSAGE,
                     that file will be used.  Before displaying the file, sub-
                     stitution according to MESSAGE_SUBST takes place.

           MESSAGE_SUBST
                     This variable takes equations of the form VARNAME =
                     ``value'', and replaces all occurrences of ${VARNAME} in
                     MESSAGE_SRC with value.  By default, substitution is per-
                     formed for LOCALBASE, PKGNAME, PREFIX, X11BASE, and
                     X11PREFIX.

           NO_BIN_ON_CDROM
                     Binaries of this package may not be placed on CDROM.  Set
                     this string to ${RESTRICTED}.

           NO_BIN_ON_FTP
                     Binaries of this package may not be made available via
                     ftp.  Set this string to ${RESTRICTED}.

           NO_BUILD  Use a dummy (do-nothing) build target.

           NO_CONFIGURE
                     Use a dummy (do-nothing) configure target.

           NO_INSTALL
                     Use a dummy (do-nothing) install target.

           NO_PACKAGE
                     Use a dummy (do-nothing) package target.

           NO_PKG_REGISTER
                     Don't register a package install as a package.

           NO_SRC_ON_CDROM
                     Distfile(s) of this package may not be placed on CDROM.
                     Set this string to ${RESTRICTED}.

           NO_SRC_ON_FTP
                     Distfile(s) of this package may not be made available via
                     ftp.  Set this string to ${RESTRICTED}.  If this variable
                     is set, the distfile will not be mirrored by ftp.Net-
                     BSD.org.

           NO_DEPENDS
                     Don't verify build of dependencies.

           CHECK_SHLIBS
                     Do not run 'check-shlibs' even if PKG_DEVELOPER is set.
                     This prevents errors on emul/compat packages (e.g., Linux
                     binaries, ...).

           MAKEFILE  Name of the Makefile in ${WRKSRC}, used in the default
                     build and install targets.  Default: ``Makefile''.

           BROKEN    Package is broken.  Set this string to the reason why.

           RESTRICTED
                     Package is restricted.  Set this string to the reason
                     why.

           LICENCE   The package has a non-standard licence, such as share-
                     ware, or non-commercial-use only.  This string should be
                     set to the type of licence the package has, like "share-
                     ware", or "non-commercial-use".  If LICENCE is set, the
                     ACCEPTABLE_LICENCES variable will be searched, if set,
                     for a string matching the licence.

           PASSIVE_FETCH
                     Uses passive ftp(1) to retrieve distribution files.

           REPLACE_PERL
                     Takes a list of files and replaces each occurrence of
                     "/usr/bin/perl", "/usr/local/bin/perl" and
                     "/usr/pkg/bin/perl" in the named files with the value of
                     ${PERL5}.  This can be used to point perl scripts to the
                     proper interpreter that pkgsrc installs.  Note: it looks
                     for the listed files in ${WRKSRC}.

           UNLIMIT_RESOURCES
                     List of process limits which need to be raised to hard
                     limits for building this package.  So far "datasize" and
                     "stacksize" are supported.

           USE_LIBTOOL
                     Says that the package uses libtool to manage building of
                     libraries and shared objects, where applicable.

           LTCONFIG_OVERRIDE
                     If set, override the specified ltconfig for using the
                     libtool package instead of the pkg's own libtool.

           USE_FORTRAN
                     Says that the package uses a Fortran compiler for build-
                     ing.

           USE_GMAKE
                     Says that the package uses gmake.

           USE_JAVA  Says that the package uses a Java virtual machine.

           USE_PERL5
                     Says that the package uses perl5 for building and run-
                     ning.

           PERL5_REQD
                     Sets the minimum perl5 version required.  The default is
                     5.0.

           USE_IMAKE
                     Says that the package uses imake.

           USE_MESA  Says that the package uses the Mesa library.  This will
                     include all Mesa components that are not included in the
                     installed X11 distribution.

           USE_SSL   Says that the package uses a SSL library.  The location
                     of the SSL installation can be found in ${SSLBASE}.

           USE_X11BASE
                     Says that the package installs itself into the X11 base
                     directory ${X11BASE}.  This is necessary for packages
                     that install X11 fonts, application default files or
                     Imake rule or template files.

           USE_XAW   Says that the package uses the Athena widget set.

           USE_XPM   Says that the package uses the Xpm library.  If it is not
                     included in the installed X11 distribution the xpm pack-
                     age will be used.

           USE_GTEXINFO
                     Says that the package uses gtexinfo.

           NO_INSTALL_MANPAGES
                     For imake packages that don't like the install.man tar-
                     get.

           HAS_CONFIGURE
                     Says that the package has its own configure script.

           GNU_CONFIGURE
                     Set if you are using GNU configure (optional).

           CONFIGURE_SCRIPT
                     Name of configure script, defaults to configure.

           CONFIGURE_ARGS
                     Pass these args to configure if ${HAS_CONFIGURE} is set.

           CONFIGURE_ENV
                     Pass these env (shell-like) to configure if
                     ${HAS_CONFIGURE} is set.

           SCRIPTS_ENV
                     Additional environment variables passed to scripts in
                     ${SCRIPTDIR} executed by bsd.pkg.mk.

           MAKE_ENV  Additional environment variables passed to sub-make in
                     build stage.

           CFLAGS    Any CFLAGS you wish passed to the configure script and/or
                     sub-make in build stage.

           LDFLAGS   Any LDFLAGS you wish passed to the configure script
                     and/or sub-make in build stage.  LDFLAGS is pre-loaded
                     with rpath settings for ELF machines depending on the
                     setting of USE_IMAKE or USE_X11BASE.  If you do not wish
                     to override these settings, use LDFLAGS+=.

           MAKE_ENV  Additional environment variables passed to sub-make in
                     build stage.

           INTERACTIVE_STAGE
                     Set this if your package needs to interact with the user
                     during its fetch, configure, build or install stages.
                     Multiple stages may be specified.  The user can then
                     decide to skip this package by setting ${BATCH}.

           FETCH_DEPENDS
                     A list of ``path:dir'' pairs of other packages this pack-
                     age depends upon in the ``fetch'' stage.  ``path'' is the
                     name of a file if it starts with a slash (/), an exe-
                     cutable otherwise.  make will test for the existence (if
                     it is a full pathname) or search for it in your $PATH (if
                     it is an executable) and go into ``dir'' to do a ``make
                     all install'' if it's not found.

           BUILD_DEPENDS
                     A list of ``path:dir'' pairs of other packages this pack-
                     age depends upon to build (between the ``extract'' and
                     ``build'' stages, inclusive).  The test done to determine
                     the existence of the dependency is the same as
                     FETCH_DEPENDS.

           RUN_DEPENDS
                     This definition is deprecated, and is no longer used in
                     the packages collection.  It should be replaced by a sim-
                     ple ``DEPENDS'' definition.

           LIB_DEPENDS
                     This definition is deprecated, and is no longer used in
                     the packages collection.  It should be replaced by a sim-
                     ple ``DEPENDS'' definition.

           DEPENDS   A list of pre-requisite packages.  The format of this
                     entry is ``pkgname:dir''.  If the ``pkgname'' package is
                     not installed, then it will be built and installed from
                     the source package in ``dir''.

           CONFLICTS
                     A list of other ports this package conflicts with.  Use
                     this for packages that install identical set of files.
                     The format of this entry is ``pkgname''.

           RECOMMENDED
                     A list of recommended versions of pre-requisite packages.
                     This should be used together with ``DEPENDS'' to denote
                     which version of a pre-requisite is required and which
                     version is recommended.  The format of this entry is
                     ``pkgname:dir'', the same as for ``DEPENDS''.

           IGNORE_RECOMMENDED
                     If this is set to ``NO'' (the default), then RECOMMENDED
                     pre-requisites will be turned into dependencies.  If set
                     to ``YES'', recommendations will be ignored and a warning
                     will be printed that packages created with this option
                     are not suitable for distribution.

           EXTRACT_CMD
                     Command for extracting archive.  The default is tar(1).

           EXTRACT_SUFX
                     Suffix for archive names.  The default is ``.tar.gz''.

           FETCH_CMD
                     Full path to ftp/http command if not in $PATH.  The
                     default is /usr/bin/ftp.

           NO_IGNORE
                     Set this to ``YES'' (most probably in a ``make fetch'' in
                     ${PKGSRCDIR}) if you want to fetch all distfiles, even
                     for packages not built due to limitation by absent X or
                     Motif.

           __PLATFORM_OK
                     Internal variable set if the package is ok to build on
                     this architecture.  Set to ``YES'' to insist on e.g.
                     fetching all distfiles (for interactive use in
                     ${PKGSRCDIR}, mostly.

           ALL_TARGET
                     The target to pass to make in the package when building.
                     The default is ``all''.

           INSTALL_TARGET
                     The target to pass to make in the package when
                     installing.  The default is ``install''.

           MASTER_SORT
                     List of suffixes for preferred download locations to sort
                     the MASTER_SITES accordingly.

           MASTER_SORT_REGEX
                     Similar to MASTER_SORT, but takes a list of regular
                     expressions for finer grained control.

           OSVERSION_SPECIFIC
                     Used to denote packages, such as LKM's, which are tightly
                     bound to a specific version of the OS.  Such binary pack-
                     ages are not backwards compatible with other versions of
                     the OS, and should be uploaded to a version specific
                     directory on the FTP.  This variable is not currently
                     used by any of the package system internals, but may be
                     used in the future.  Set this to ``YES'' to denote such a
                     package.

MOTIF SUPPORT
     This section documents variables related to the use and installation of
     Motif and/or LessTif.  Also, packages that require a Motif installation
     need to include motif.buildlink.mk.

           USE_MOTIF12
                     Set this in your package if it requires Motif-1.2 headers
                     and/or libraries.  If Motif is not present on your sys-
                     tem, the lesstif12 package will be installed for you.

           MOTIFBASE
                     If set, it points to an existing Motif-2.0 installation.
                     Otherwise, this is set automatically to the directory of
                     the Motif-2.0 installation used.

           MOTIF12BASE
                     If set, it points to an existing Motif-1.2 installation.
                     Otherwise, this is set automatically to the directory of
                     the Motif-1.2 installation used.

           MOTIFLIB  Set automatically to the flags and libraries needed to
                     link the Motif or LessTif library.

PACKAGE DISTFILE REPOSITORIES
     The following variables allow to override the default package reposito-
     ries, they define a space separated list of mirror sites to be used
     instead of the defaults to retrieve packages from (usually if there's a
     closer or cheaper site).

     '%SUBDIR%' and '${DIST_SUBDIR}' are replaced by a package specific
     strings.

     MASTER_SITE_BACKUP
                 Backup sites for packages that are maintained in
                 'ftp.NetBSD.org:/pub/NetBSD/packages/distfiles/${DIST_SUBDIR}'.

     MASTER_SITE_GNU
                 GNU source mirror.

     MASTER_SITE_LOCAL
                 Local package source distributions that are maintained in
                 'ftp.NetBSD.org:/pub/NetBSD/packages/distfiles/LOCAL_PORTS/'.

     MASTER_SITE_PERL_CPAN
                 Perl CPAN mirror.

     MASTER_SITE_SOURCEFORGE
                 download.sourceforge.net mirror.

     MASTER_SITE_SUNSITE
                 sunsite.unc.edu mirror.

     MASTER_SITE_TEX_CTAN
                 TeX CTAN mirror.

     MASTER_SITE_XCONTRIB
                 X Window System contributed source mirror.

SPECIAL VARIABLES
     Variables to change if you want a special behavior:

           ECHO_MSG  Used to print all the ``===>'' style prompts - override
                     this to turn them off.  The default is /bin/echo.

           CLEAR_DIRLIST
                     If set, cause the ``clean-update'' target to completely
                     clean up and lose the list of dependent packages.  Use
                     with care!

           DEPENDS_TARGET
                     The target to execute when a package is calling a depen-
                     dency.  The default depends on the target that is used:
                     ``package'' for ``make package'', ``update'' for ``make
                     update'', and ``reinstall'' for all other targets.

           NOCLEAN   If set, prevent the ``update'' target from cleaning up
                     after itself.

           PKG_VERBOSE
                     If set, print out more information about the automatic
                     manual page handling, and package deletion (see the
                     ``install'', ``deinstall'' and ``update'' targets), and
                     also sets PATCH_DEBUG as well.

           REINSTALL
                     During update, deinstall each package before calling
                     '${DEPENDS_TARGET}' (see the ``update'' target for more
                     information).

           UPDATE_TARGET
                     The target to execute for building a package during
                     ``make update''.  Defaults to ``install''.  Other good
                     targets are ``package'' or ``bin-install''.  Do not set
                     this to ``update'' or you will get stuck in an endless
                     loop!

INSTALL VARIABLES
     This section documents variables that serve as convenient aliases.  for
     your *-install targets.

           INSTALL_PROGRAM
                     A command to install binary executables.  Use these like:
                     ``${INSTALL_PROGRAM} ${WRKSRC}/prog ${PREFIX}/bin''.

           INSTALL_SCRIPT
                     A command to install executable scripts.

           INSTALL_DATA
                     A command to install sharable data.

           INSTALL_MAN
                     A command to install man pages (doesn't compress).

           INSTALL_PROGRAM_DIR
                     Create a directory for storing programs.

           INSTALL_SCRIPT_DIR
                     Create a directory for storing scripts.

           INSTALL_DATA_DIR
                     Create a directory for storing arbitrary data.

           INSTALL_MAN_DIR
                     Create a directory for storing man pages.

MANUAL PAGE VARIABLES
     This section documents variables used to configure the way manual pages
     are installed by this package.

           MANCOMPRESSED
                     Indicates that the package installs man pages in a com-
                     pressed form.  The default package installs man pages
                     uncompressed.

           INFO_FILES
                     set to the base names of the info files you wish to be
                     installed in the info dir file.  Automatically sets
                     USE_GTEXINFO.

PACKAGE TARGETS
     This section documents the default targets and their behaviors.  If any
     target relies on another target for completion (e.g., the ``install''
     target relies on the ``build'' target), then these targets will be exe-
     cuted beforehand.

           fetch     Retrieves ${DISTFILES} and ${PATCHFILES} into ${DISTDIR}
                     as necessary.

           fetch-list
                     Show list of files that would be retrieved by fetch.

           extract   Unpacks ${DISTFILES} into ${WRKDIR}.

           patch     Apply any provided patches to the source.

           configure
                     Runs either GNU configure, one or more local configure
                     scripts or nothing, depending on what's available.

           build     Actually compile the sources.

           install   Install the results of a build.

           bin-install
                     Install a binary package from local disk and via FTP from
                     a list of sites (see ``BINPKG_SITES'' variable), and do a
                     ``make package'' if no binary package is available any-
                     where.  The arguments given to pkg_add(1) can be set via
                     ``BIN_INSTALL_FLAGS'', e.g., to do verbose operation,
                     etc.

           reinstall
                     Install the results of a build, ignoring ``already
                     installed'' flag.

           deinstall
                     Remove the installation.

           update    Update the installation of the current package and all
                     dependent packages that are installed on the system.

           replace   Update the installation of the current package.  This
                     differs from update in that it does not replace dependent
                     packages.  You will need to install
                     pkgsrc/pkgtools/pkg_tarup for this target to work.

           package   Create a binary package other people can use.

           clean     Clean the source tree for a package.

           clean-depends
                     Clean the source tree for a package and the packages it
                     depends upon.

           clean-update
                     Clean the source tree for a package and all dependent
                     packages that are installed on the system.

           describe  Try to generate a one-line description for each package
                     for use in INDEX files and the like.

           checksum  Use files/md5 to ensure that your distfiles are valid.

           makesum   Generate files/md5 (only do this for your own packages!).

           readme    Create a README.html file describing the category or
                     package.  See ${PKGSRCDIR}/Packages.txt for more details.

           mirror-distfiles
                     Mirror the distfile(s) if they are freely re-dis-
                     tributable.  If NO_SRC_ON_FTP is set in the package's
                     Makefile (usually to ${RESTRICTED}) then that reason is
                     printed, and the distfile is not mirrored.

     Default sequence for ``all'' is:  fetch checksum extract patch configure
     build.

     NEVER override the ``regular'' targets unless you want to open a major
     can of worms.

SEE ALSO
     make(1), mk.conf(5), ${PKGSRCDIR}/mk/bsd.pkg.defaults.mk and

     Documentation on the NetBSD Package System.  ${PKGSRCDIR}/Packages.txt

HISTORY
     This manual page is based upon the comments in the bsd.pkg.mk file, as
     distributed with NetBSD.  The sources to this are far and varied across
     all free BSD projects.

BSD                            January 14, 2004                            BSD