Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: Makefile.in,v 1.27 2013/09/12 11:03:10 jperkin Exp $
# $NetBSD: Makefile.in,v 1.28 2015/01/22 09:19:47 jperkin Exp $
srcdir= @srcdir@
@@ -17,7 +17,7 @@ SSL_SUPPORT= @ssl_support@
CC= @CC@
CCLD= $(CC)
.if empty(BOOTSTRAP)
LIBS= -linstall -lfetch @LIBS@
LIBS= -linstall -larchive -lfetch @LIBS@
.if !empty(SSL_SUPPORT)
LIBS+= -lssl -lcrypto
.endif

View File

@@ -1,4 +1,4 @@
/* $NetBSD: info.h,v 1.21 2009/09/11 18:00:13 joerg Exp $ */
/* $NetBSD: info.h,v 1.22 2014/12/30 15:13:20 wiz Exp $ */
/* from FreeBSD Id: info.h,v 1.10 1997/02/22 16:09:40 peter Exp */
@@ -68,7 +68,6 @@ struct pkg_meta {
char *meta_install;
char *meta_deinstall;
char *meta_preserve;
char *meta_views;
char *meta_installed_info;
int is_installed;
};

View File

@@ -1,4 +1,4 @@
/* $NetBSD: perform.c,v 1.61 2010/02/20 04:40:03 joerg Exp $ */
/* $NetBSD: perform.c,v 1.62 2014/12/30 15:13:20 wiz Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -13,7 +13,7 @@
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
__RCSID("$NetBSD: perform.c,v 1.61 2010/02/20 04:40:03 joerg Exp $");
__RCSID("$NetBSD: perform.c,v 1.62 2014/12/30 15:13:20 wiz Exp $");
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -110,9 +110,8 @@ __RCSID("$NetBSD: perform.c,v 1.61 2010/02/20 04:40:03 joerg Exp $");
#define LOAD_SIZE_PKG (1 << 9)
#define LOAD_SIZE_ALL (1 << 10)
#define LOAD_PRESERVE (1 << 11)
#define LOAD_VIEWS (1 << 12)
#define LOAD_REQUIRED_BY (1 << 13)
#define LOAD_INSTALLED_INFO (1 << 14)
#define LOAD_REQUIRED_BY (1 << 12)
#define LOAD_INSTALLED_INFO (1 << 13)
static const struct pkg_meta_desc {
size_t entry_offset;
@@ -144,8 +143,6 @@ static const struct pkg_meta_desc {
LOAD_SIZE_ALL, 0 },
{ offsetof(struct pkg_meta, meta_preserve), PRESERVE_FNAME,
LOAD_PRESERVE, 0 },
{ offsetof(struct pkg_meta, meta_views), VIEWS_FNAME,
LOAD_VIEWS, 0 },
{ offsetof(struct pkg_meta, meta_required_by), REQUIRED_BY_FNAME,
LOAD_REQUIRED_BY, 0 },
{ offsetof(struct pkg_meta, meta_installed_info), INSTALLED_INFO_FNAME,

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: pkg_info.1,v 1.32 2012/12/17 04:34:02 agc Exp $
.\" $NetBSD: pkg_info.1,v 1.34 2015/01/11 22:53:44 wiz Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.
@@ -17,7 +17,7 @@
.\"
.\" @(#)pkg_info.1
.\"
.Dd December 14, 2012
.Dd January 11, 2015
.Dt PKG_INFO 1
.Os
.Sh NAME
@@ -47,7 +47,7 @@ command.
.Pp
The
.Ar pkg-name
may be the name of an installed package (with our without version), a
may be the name of an installed package (with or without version), a
pattern matching several installed packages (see the
.Sx PACKAGE WILDCARDS
section for a description of possible patterns),
@@ -226,7 +226,7 @@ The filename is resolved to a package name using the package database.
The filename must be absolute, as in the output of
.Dl pkg_info -aF .
For example,
.Dl pkg_info -eF /path/to/file
.Dl pkg_info -Fe /path/to/file
can be used to display the package the given file belongs to, and
.Dl pkg_info -LF /path/to/file
can be used to display all files belonging to the package the given

View File

@@ -1,10 +1,10 @@
PKG_INFO(1) NetBSD General Commands Manual PKG_INFO(1)
PKG_INFO(1) General Commands Manual PKG_INFO(1)
NNAAMMEE
ppkkgg__iinnffoo -- a utility for displaying information on software packages
SSYYNNOOPPSSIISS
ppkkgg__iinnffoo [--BBbbccDDddFFffhhIIiikkLLmmNNnnppqqrrRRSSssVVvvXX] [--ee _p_a_c_k_a_g_e] [--EE _p_a_c_k_a_g_e]
ppkkgg__iinnffoo [--BBbbccDDddFFffhhIIiikkLLmmNNnnppqqRRrrSSssVVvvXX] [--EE _p_k_g_-_n_a_m_e] [--ee _p_k_g_-_n_a_m_e]
[--KK _p_k_g___d_b_d_i_r] [--ll _p_r_e_f_i_x] _p_k_g_-_n_a_m_e _._._.
ppkkgg__iinnffoo [--aa | --uu] [flags]
ppkkgg__iinnffoo [--QQ _v_a_r_i_a_b_l_e] _p_k_g_-_n_a_m_e _._._.
@@ -14,16 +14,16 @@ DDEESSCCRRIIPPTTIIOONN
may be either packed up in files or already installed on the system with
the pkg_create(1) command.
The _p_k_g_-_n_a_m_e may be the name of an installed package (with our without
The _p_k_g_-_n_a_m_e may be the name of an installed package (with or without
version), a pattern matching several installed packages (see the _P_A_C_K_A_G_E
_W_I_L_D_C_A_R_D_S section for a description of possible patterns), the pathname
to a binary package, a filename belonging to an installed package (if --FF
is also given), or a URL to an ftp-available package.
to a binary package, a filename belonging to an installed package (with
--FF), or a URL to an FTP-available package.
The following command-line options are supported:
The following command line options are available:
--aa Show information for all currently installed packages. See also
--uu.
--uu. When neither --aa nor --uu is given, the former is assumed.
--BB Show some of the important definitions used when building the
binary package (the ``Build information'') for each package.
@@ -31,10 +31,10 @@ DDEESSCCRRIIPPTTIIOONN
can be queried, too. In particular, _a_u_t_o_m_a_t_i_c tells if a package
was installed automatically as a dependency of another package.
--bb Show the NetBSD RCS Id strings from the files used in the con-
struction of the binary package (the "Build version") for each
package. These files are the package Makefile, any patch files,
any checksum files, and the packing list file.
--bb Show the NetBSD RCS Id strings from the files used in the
construction of the binary package (the ``Build version'') for
each package. These files are the package Makefile, any patch
files, any checksum files, and the packing list file.
--cc Show the one-line comment field for each package.
@@ -43,29 +43,32 @@ DDEESSCCRRIIPPTTIIOONN
--dd Show the long-description field for each package.
--EE _p_k_g_-_n_a_m_e
This option allows you to test for the existence of a given pack-
age. If a package identified by _p_k_g_-_n_a_m_e is currently installed,
return code is 0, otherwise 1. The name of the best matching
package found installed is printed to stdout unless turned off
using the --qq option. _p_k_g_-_n_a_m_e can contain wildcards (see the
_P_A_C_K_A_G_E _W_I_L_D_C_A_R_D_S section below).
This option allows you to test for the existence of a given
package. If a package identified by _p_k_g_-_n_a_m_e is currently
installed, return code is 0, otherwise 1. The name of the best
matching package found installed is printed to stdout unless
turned off using the --qq option. _p_k_g_-_n_a_m_e can contain wildcards
(see the _P_A_C_K_A_G_E _W_I_L_D_C_A_R_D_S section below).
--ee _p_k_g_-_n_a_m_e
This option allows you to test for the existence of a given pack-
age. If a package identified by _p_k_g_-_n_a_m_e is currently installed,
return code is 0, otherwise 1. The names of any package(s) found
installed are printed to stdout unless turned off using the --qq
option. _p_k_g_-_n_a_m_e can contain wildcards (see the _P_A_C_K_A_G_E
_W_I_L_D_C_A_R_D_S section below).
This option allows you to test for the existence of a given
package. If a package identified by _p_k_g_-_n_a_m_e is currently
installed, return code is 0, otherwise 1. The names of any
package(s) found installed are printed to stdout unless turned
off using the --qq option. _p_k_g_-_n_a_m_e can contain wildcards (see the
_P_A_C_K_A_G_E _W_I_L_D_C_A_R_D_S section below).
--FF Interpret any pkg-name given as filename, and translate it to a
package name using the Package Database. This can be used to
query information on a per-file basis, e.g. in conjunction with
the --ee flag to find out which package a file belongs to.
--FF Interpret any _p_k_g_-_n_a_m_e given as filename, and query information
on the package that file belongs to. This can be used to query
information on a per-file basis. See the _T_E_C_H_N_I_C_A_L _D_E_T_A_I_L_S
section below for more information.
--ff Show the packing list instructions for each package.
--II Show the index entry for each package.
--hh Print usage message and exit.
--II Show the index entry for each package. This option is assumed
when no arguments or relevant flags are specified.
--ii Show the install script (if any) for each package.
@@ -77,26 +80,28 @@ DDEESSCCRRIIPPTTIIOONN
--LL Show the files within each package. This is different from just
viewing the packing list, since full pathnames for everything are
generated. Files that were created dynamically during installa-
tion of the package are not listed.
generated. Files that were created dynamically during
installation of the package are not listed.
--ll _s_t_r Prefix each information category header (see --qq) shown with _s_t_r.
This is primarily of use to front-end programs that want to
request a lot of different information fields at once for a pack-
age, but don't necessary want the output intermingled in such a
way that they can't organize it. This lets you add a special
--ll _p_r_e_f_i_x
Prefix each information category header (see --qq) shown with
_p_r_e_f_i_x. This is primarily of use to front-end programs that want
to request a lot of different information fields at once for a
package, but don't necessary want the output intermingled in such
a way that they can't organize it. This lets you add a special
token to the start of each field.
--mm Show the mtree file (if any) for each package.
--NN Show which packages each package was built with (exact dependen-
cies), if any.
--NN Show which packages each package was built with (exact
dependencies), if any.
--nn Show which packages each package needs (depends upon), if any.
--pp Show the installation prefix for each package.
--QQ Show the definition of _v_a_r_i_a_b_l_e from the build information for
--QQ _v_a_r_i_a_b_l_e
Show the definition of _v_a_r_i_a_b_l_e from the build information for
each package. An empty string is returned if no such variable
definition is found for the package(s).
@@ -114,7 +119,7 @@ DDEESSCCRRIIPPTTIIOONN
--ss Show the size of this package in bytes. The size is calculated
by adding up the size of each file of the package.
--uu Show information for all user-installed packages. Automatically
--uu Show information for all user-installed packages: automatically
installed packages (as dependencies of other packages) are not
displayed. See also --aa.
@@ -132,40 +137,52 @@ TTEECCHHNNIICCAALL DDEETTAAIILLSS
line, or from already installed package information in
_<_P_K_G___D_B_D_I_R_>_/_<_p_k_g_-_n_a_m_e_>.
A filename can be given instead of a (installed) package name to query
information on the package this file belongs to. This filename is then
resolved to a package name using the Package Database. For this transla-
tion to take place, the --FF flag must be given. The filename must be
absolute, compare the output of pkg_info --aaFF.
When the --FF option is used, a filename can be given instead of a package
name to query information on the (installed) package that file belongs
to. The filename is resolved to a package name using the package
database. The filename must be absolute, as in the output of
pkg_info -aF.
For example,
pkg_info -eF /path/to/file
can be used to display the package the given file belongs to, and
pkg_info -LF /path/to/file
can be used to display all files belonging to the package the given file
belongs to.
PPAACCKKAAGGEE WWIILLDDCCAARRDDSS
In the places where a package name/version is expected, e.g. for the --ee
switch, several forms can be used. Either use a package name with or
In the places where a package name/version is expected, e.g., for the --ee
option, several forms can be used. Either use a package name with or
without version, or specify a package wildcard that gets matched against
all installed packages.
Package wildcards use fnmatch(3). In addition, csh(1) style {,} alter-
nates have been implemented. Package version numbers can also be matched
in a relational manner using the _>_=, _<_=, _>, and _< operators. For exam-
ple, _p_k_g___i_n_f_o _-_e _'_n_a_m_e_>_=_1_._3_' will match versions 1.3 and later of the
_n_a_m_e package. Additionally, ranges can be defined by giving a lower
bound with > or >= and an upper bound with < or <=. The lower bound has
to come first. For example, _p_k_g___i_n_f_o _-_e _'_n_a_m_e_>_=_1_._3_<_2_._0_' will match ver-
sions 1.3 (inclusive) to 2.0 (exclusive) of package _n_a_m_e.
Package wildcards use fnmatch(3). In addition, csh(1) style {,}
alternates have been implemented. Package version numbers can also be
matched in a relational manner using the ``>='', ``<='', ``>'', and ``<''
operators. For example,
pkg_info -e 'name>=1.3'
will match versions 1.3 and later of the ``name'' package. (Make sure to
use shell quoting.) Additionally, ranges can be defined, by giving both
a lower bound (with ``>'' or ``>='') as well as an upper bound (with
``<'' or ``<=''). The lower bound has to come first. For example,
pkg_info -e 'name>=1.3<2.0'
will match versions 1.3 (inclusive) to 2.0 (exclusive) of package
``name''.
The collating sequence of the various package version numbers is unusual,
but strives to be consistent. The magic string ``alpha'' equates to
_a_l_p_h_a _v_e_r_s_i_o_n and sorts before a beta version. The magic string ``beta''
equates to _b_e_t_a _v_e_r_s_i_o_n and sorts before a release candidate. The magic
string ``rc'' equates to _r_e_l_e_a_s_e _c_a_n_d_i_d_a_t_e and sorts before a release.
The magic string ``pre'', short for ``pre-release'', is a synonym for
``rc''. For example, _n_a_m_e_-_1_._3_r_c_3 will sort before _n_a_m_e_-_1_._3 and after
_n_a_m_e_-_1_._2_._9. Similarly _n_a_m_e_-_1_._3_a_l_p_h_a_2 will sort before _n_a_m_e_-_1_._3_b_e_t_a_1 and
they both sort before _n_a_m_e_-_1_._3_r_c_1. In addition, alphabetic characters
sort in the same place as their numeric counterparts, so that _n_a_m_e_-_1_._2_e
has the same sorting value as _n_a_m_e_-_1_._2_._5 The magic string ``pl'' equates
to a _p_a_t_c_h _l_e_v_e_l and has the same value as a dot in the dewey-decimal
ordering schemes.
``alpha version'', and sorts before a beta version. The magic string
``beta'' equates to ``beta version'', and sorts before a release
candidate. The magic string ``rc'' equates to ``release candidate'', and
sorts before a release. The magic string ``pre'', short for
``pre-release'', is a synonym for ``rc''. For example,
``name-1.3alpha2'' will sort before ``name-1.3beta1'', and they both sort
before ``name-1.3rc1''. Similarly, ``name-1.3rc3'' will sort before
``name-1.3'', and after ``name-1.2.9''. The magic string ``pl'' equates
to ``patch level'', and has the same value as a dot (`.') in the dewey-
decimal ordering schemes, as does the underscore (`_'). Additionally,
alphabetic characters sort in the same place as their numeric
counterparts, so that ``name-1.2e'' has the same sorting value as
``name-1.2.5''.
EENNVVIIRROONNMMEENNTT
See pkg_install.conf(5) for options, that can also be specified using the
@@ -182,6 +199,6 @@ AAUUTTHHOORRSS
refined it for NetBSD
Hubert Feyrer
NetBSD wildcard dependency processing, pkgdb, depends displaying,
pkg size display etc.
pkg size display, and more.
NetBSD 5.0 January 22, 2010 NetBSD 5.0
pkgsrc December 14, 2012 pkgsrc