pkg_install-20210410

This commit is contained in:
nia 2021-04-10 19:26:03 +00:00
parent 59b3da74bf
commit c19a16131a
55 changed files with 140 additions and 145 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: add.h,v 1.1.1.7 2011/02/18 22:32:27 aymeric Exp $ */
/* $NetBSD: add.h,v 1.1.1.8 2021/04/10 19:26:03 nia Exp $ */
/* from FreeBSD Id: add.h,v 1.8 1997/02/22 16:09:15 peter Exp */

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.1.1.11 2017/04/20 13:12:46 joerg Exp $ */
/* $NetBSD: main.c,v 1.1.1.12 2021/04/10 19:26:03 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: main.c,v 1.1.1.11 2017/04/20 13:12:46 joerg Exp $");
__RCSID("$NetBSD: main.c,v 1.1.1.12 2021/04/10 19:26:03 nia Exp $");
/*
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: perform.c,v 1.1.1.25 2020/12/12 10:59:12 wiz Exp $ */
/* $NetBSD: perform.c,v 1.1.1.26 2021/04/10 19:26:03 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
@ -6,7 +6,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: perform.c,v 1.1.1.25 2020/12/12 10:59:12 wiz Exp $");
__RCSID("$NetBSD: perform.c,v 1.1.1.26 2021/04/10 19:26:03 nia Exp $");
/*-
* Copyright (c) 2003 Grant Beattie <grant@NetBSD.org>
@ -128,54 +128,46 @@ static const struct pkg_meta_desc {
static int pkg_do(const char *, int, int);
static int
end_of_version(const char *opsys, const char *version_end)
{
if (*version_end == '\0')
return 1;
if (strcmp(opsys, "NetBSD") == 0) {
if (strncmp(version_end, "_ALPHA", 6) == 0
|| strncmp(version_end, "_BETA", 5) == 0
|| strncmp(version_end, "_RC", 3) == 0
|| strncmp(version_end, "_STABLE", 7) == 0
|| strncmp(version_end, "_PATCH", 6) == 0)
return 1;
}
return 0;
}
static int
compatible_platform(const char *opsys, const char *host, const char *package)
{
int i = 0;
const char *loc;
size_t majorlen = 0;
/*
* If the user has set the CHECK_OS_VERSION variable to "no" then skip any
* uname version checks and assume they know what they are doing. This can
* be useful on OS where the kernel version is not a good indicator of
* userland compatibility, or differs but retains ABI compatibility.
*/
if (strcasecmp(check_os_version, "no") == 0)
return 1;
/*
* If the user has set the CHECK_OS_VERSION variable to "no" then skip any
* uname version checks and assume they know what they are doing. This can
* be useful on OS where the kernel version is not a good indicator of
* userland compatibility, or differs but retains ABI compatibility.
*/
if (strcasecmp(check_os_version, "no") == 0)
return 1;
/* returns 1 if host and package operating system match */
if (strcmp(host, package) == 0)
return 1;
/* accept, if host version is a minor release of package version */
if (strncmp(host, package, strlen(package)) == 0)
return 1;
/* find offset of first difference */
for (i=0; (host[i] != '\0') && (host[i] == package[i]);)
i++;
if (end_of_version(opsys, host+i) && end_of_version(opsys, package+i))
return 1;
return 0;
/* returns 1 if host and package operating system match */
if (strcmp(opsys, "NetBSD") == 0) {
/*
* warn about -current package on a stable release and
* the reverse
*/
if ((strstr(host, ".99.") != NULL &&
strstr(package, ".99.") == NULL) ||
(strstr(package, ".99.") != NULL &&
strstr(host, ".99.") == NULL)) {
return 0;
}
/* compare the major version only */
loc = strchr(host, '.');
if (loc != NULL) {
majorlen = loc - host;
if (majorlen != (strchr(package, '.') - package))
return 0;
if (strncmp(host, package, majorlen) == 0)
return 1;
}
}
if (strcmp(host, package) == 0)
return 1;
return 0;
}
static int

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_add.1,v 1.1.1.14 2018/03/27 23:08:43 joerg Exp $
.\" $NetBSD: pkg_add.1,v 1.1.1.15 2021/04/10 19:26:03 nia Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.
@ -17,7 +17,7 @@
.\"
.\" @(#)pkg_add.1
.\"
.Dd March 21, 2018
.Dd March 8, 2021
.Dt PKG_ADD 1
.Os
.Sh NAME
@ -189,7 +189,7 @@ URL pointing at a file available on an ftp or web site.
Thus you may extract files directly from their anonymous ftp or WWW
locations (e.g.,
.Nm
ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/3.1_2007Q2/shells/bash-3.2.9.tgz
http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All/bash-5.0.18.tgz
or
.Nm
http://www.example.org/packages/screen-4.0.tbz).
@ -376,7 +376,20 @@ In all cases,
.Nm
will try to install binary packages listed in dependencies list.
.Pp
You can specify a compiled binary package explicitly on the command line.
You can grab a compiled binary package from remote location by specifying
a URL:
.Bd -literal
# pkg_add http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All/firefox-84.0.tgz
.Ed
.Pp
The base URL can also be provided by the configuration variable,
.Dv PKG_PATH :
.Bd -literal
# export PKG_PATH=http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All
# pkg_add firefox
.Ed
.Pp
You can also specify a compiled binary package by filesystem path:
.Bd -literal
# pkg_add /usr/pkgsrc/packages/All/tcsh-6.14.00.tgz
.Ed
@ -387,21 +400,10 @@ will install the latest version available.
With
.Fl v ,
.Nm
emits more messages to terminal.
emits more messages to terminal:
.Bd -literal
# pkg_add -v /usr/pkgsrc/packages/All/unzip
.Ed
.Pp
You can grab a compiled binary package from remote location by specifying
a URL.
The base URL can also be provided by the configuration variable,
.Dv PKG_PATH .
.Bd -literal
# pkg_add -v ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/3.1_2007Q2/All/firefox-2.0.0.4.tgz
# export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/3.1_2007Q2/All
# pkg_add -v firefox
.Ed
.Sh SEE ALSO
.Xr pkg_admin 1 ,
.Xr pkg_create 1 ,

View File

@ -1,4 +1,4 @@
.\" $NetBSD: audit-packages.8,v 1.1.1.1 2010/04/23 20:54:06 joerg Exp $
.\" $NetBSD: audit-packages.8,v 1.1.1.2 2021/04/10 19:26:03 nia Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: audit.c,v 1.1.1.10 2018/03/27 23:08:43 joerg Exp $ */
/* $NetBSD: audit.c,v 1.1.1.11 2021/04/10 19:26:03 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: audit.c,v 1.1.1.10 2018/03/27 23:08:43 joerg Exp $");
__RCSID("$NetBSD: audit.c,v 1.1.1.11 2021/04/10 19:26:03 nia Exp $");
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
/* $NetBSD: check.c,v 1.1.1.5 2020/12/02 13:49:25 wiz Exp $ */
/* $NetBSD: check.c,v 1.1.1.6 2021/04/10 19:26:03 nia Exp $ */
#ifdef HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#endif
#endif
__RCSID("$NetBSD: check.c,v 1.1.1.5 2020/12/02 13:49:25 wiz Exp $");
__RCSID("$NetBSD: check.c,v 1.1.1.6 2021/04/10 19:26:03 nia Exp $");
/*-
* Copyright (c) 1999-2008 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: download-vulnerability-list.8,v 1.1.1.1 2010/04/23 20:54:06 joerg Exp $
.\" $NetBSD: download-vulnerability-list.8,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.1.1.19 2020/12/02 13:49:25 wiz Exp $ */
/* $NetBSD: main.c,v 1.1.1.20 2021/04/10 19:26:04 nia Exp $ */
#ifdef HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#endif
#endif
__RCSID("$NetBSD: main.c,v 1.1.1.19 2020/12/02 13:49:25 wiz Exp $");
__RCSID("$NetBSD: main.c,v 1.1.1.20 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 1999-2019 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_admin.1,v 1.1.1.17 2020/12/02 13:49:25 wiz Exp $
.\" $NetBSD: pkg_admin.1,v 1.1.1.18 2021/04/10 19:26:04 nia Exp $
.\"
.\" Copyright (c) 1999-2019 The NetBSD Foundation, Inc.
.\" All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: build.c,v 1.1.1.9 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: build.c,v 1.1.1.10 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: build.c,v 1.1.1.9 2017/04/20 13:12:47 joerg Exp $");
__RCSID("$NetBSD: build.c,v 1.1.1.10 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
/* $NetBSD: create.h,v 1.1.1.6 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: create.h,v 1.1.1.7 2021/04/10 19:26:04 nia Exp $ */
/* from FreeBSD Id: create.h,v 1.13 1997/10/08 07:46:19 charnier Exp */

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.1.1.8 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: main.c,v 1.1.1.9 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: main.c,v 1.1.1.8 2017/04/20 13:12:47 joerg Exp $");
__RCSID("$NetBSD: main.c,v 1.1.1.9 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: perform.c,v 1.1.1.7 2020/12/02 13:49:26 wiz Exp $ */
/* $NetBSD: perform.c,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: perform.c,v 1.1.1.7 2020/12/02 13:49:26 wiz Exp $");
__RCSID("$NetBSD: perform.c,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_create.1,v 1.1.1.9 2017/04/20 13:12:47 joerg Exp $
.\" $NetBSD: pkg_create.1,v 1.1.1.10 2021/04/10 19:26:04 nia Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pl.c,v 1.1.1.6 2020/12/02 13:49:26 wiz Exp $ */
/* $NetBSD: pl.c,v 1.1.1.7 2021/04/10 19:26:04 nia Exp $ */
#ifdef HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
@ -11,7 +11,7 @@
#include <sys/cdefs.h>
#endif
#endif
__RCSID("$NetBSD: pl.c,v 1.1.1.6 2020/12/02 13:49:26 wiz Exp $");
__RCSID("$NetBSD: pl.c,v 1.1.1.7 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_delete.1,v 1.1.1.9 2017/04/20 13:12:46 joerg Exp $
.\" $NetBSD: pkg_delete.1,v 1.1.1.10 2021/04/10 19:26:04 nia Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.

View File

@ -34,7 +34,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: pkg_delete.c,v 1.1.1.10 2018/03/27 23:08:44 joerg Exp $");
__RCSID("$NetBSD: pkg_delete.c,v 1.1.1.11 2021/04/10 19:26:04 nia Exp $");
#if HAVE_ERR_H
#include <err.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: info.h,v 1.1.1.6 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: info.h,v 1.1.1.7 2021/04/10 19:26:04 nia Exp $ */
/* from FreeBSD Id: info.h,v 1.10 1997/02/22 16:09:40 peter Exp */

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.1.1.10 2019/04/05 23:41:59 sevan Exp $ */
/* $NetBSD: main.c,v 1.1.1.11 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: main.c,v 1.1.1.10 2019/04/05 23:41:59 sevan Exp $");
__RCSID("$NetBSD: main.c,v 1.1.1.11 2021/04/10 19:26:04 nia Exp $");
/*
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: perform.c,v 1.1.1.15 2020/12/02 13:49:26 wiz Exp $ */
/* $NetBSD: perform.c,v 1.1.1.16 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: perform.c,v 1.1.1.15 2020/12/02 13:49:26 wiz Exp $");
__RCSID("$NetBSD: perform.c,v 1.1.1.16 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_info.1,v 1.1.1.7 2017/04/20 13:12:47 joerg Exp $
.\" $NetBSD: pkg_info.1,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $
.\"
.\" FreeBSD install - a package for the installation and maintenance
.\" of non-core utilities.

View File

@ -1,4 +1,4 @@
/* $NetBSD: show.c,v 1.1.1.9 2012/02/21 18:34:03 wiz Exp $ */
/* $NetBSD: show.c,v 1.1.1.10 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: show.c,v 1.1.1.9 2012/02/21 18:34:03 wiz Exp $");
__RCSID("$NetBSD: show.c,v 1.1.1.10 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: automatic.c,v 1.1.1.2 2009/02/02 20:44:05 joerg Exp $ */
/* $NetBSD: automatic.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: automatic.c,v 1.1.1.2 2009/02/02 20:44:05 joerg Exp $");
__RCSID("$NetBSD: automatic.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $");
#if HAVE_ASSERT_H
#include <assert.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: conflicts.c,v 1.1.1.4 2010/01/30 21:33:43 joerg Exp $ */
/* $NetBSD: conflicts.c,v 1.1.1.5 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2007 Roland Illig <rillig@NetBSD.org>.
@ -48,7 +48,7 @@
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: conflicts.c,v 1.1.1.4 2010/01/30 21:33:43 joerg Exp $");
__RCSID("$NetBSD: conflicts.c,v 1.1.1.5 2021/04/10 19:26:04 nia Exp $");
#if HAVE_ERR_H
#include <err.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: defs.h,v 1.1.1.3 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: defs.h,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 1999,2000,2009 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
/* $NetBSD: dewey.c,v 1.1.1.3 2009/03/08 14:51:37 joerg Exp $ */
/* $NetBSD: dewey.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $ */
/*
* Copyright © 2002 Alistair G. Crooks. All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: dewey.h,v 1.1.1.1 2008/09/30 19:00:27 joerg Exp $ */
/* $NetBSD: dewey.h,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $ */
#ifndef _INST_LIB_DEWEY_H_
#define _INST_LIB_DEWEY_H_

View File

@ -1,4 +1,4 @@
/* $NetBSD: fexec.c,v 1.1.1.3 2009/08/06 16:55:26 joerg Exp $ */
/* $NetBSD: fexec.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -59,7 +59,7 @@
#include "lib.h"
__RCSID("$NetBSD: fexec.c,v 1.1.1.3 2009/08/06 16:55:26 joerg Exp $");
__RCSID("$NetBSD: fexec.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $");
static int vfcexec(const char *, int, const char *, va_list);

View File

@ -1,4 +1,4 @@
/* $NetBSD: file.c,v 1.1.1.7 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: file.c,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -10,7 +10,7 @@
#if HAVE_SYS_QUEUE_H
#include <sys/queue.h>
#endif
__RCSID("$NetBSD: file.c,v 1.1.1.7 2017/04/20 13:12:47 joerg Exp $");
__RCSID("$NetBSD: file.c,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: global.c,v 1.1.1.2 2009/02/02 20:44:06 joerg Exp $ */
/* $NetBSD: global.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: global.c,v 1.1.1.2 2009/02/02 20:44:06 joerg Exp $");
__RCSID("$NetBSD: global.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: gpgsig.c,v 1.1.1.3 2017/04/20 13:12:48 joerg Exp $ */
/* $NetBSD: gpgsig.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: gpgsig.c,v 1.1.1.3 2017/04/20 13:12:48 joerg Exp $");
__RCSID("$NetBSD: gpgsig.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
/* $NetBSD: iterate.c,v 1.1.1.5 2020/12/02 13:49:26 wiz Exp $ */
/* $NetBSD: iterate.c,v 1.1.1.6 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
/* $NetBSD: lib.h,v 1.1.1.19 2020/12/12 10:59:13 wiz Exp $ */
/* $NetBSD: lib.h,v 1.1.1.20 2021/04/10 19:26:04 nia Exp $ */
/* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */

View File

@ -1,4 +1,4 @@
/* $NetBSD: license.c,v 1.1.1.18 2020/12/02 13:49:26 wiz Exp $ */
/* $NetBSD: license.c,v 1.1.1.19 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -78,6 +78,7 @@ const char *default_acceptable_licenses =
"mit "
"mpl-1.0 mpl-1.1 mpl-2.0 "
"mplusfont "
"odbl-v1 "
"ofl-v1.0 ofl-v1.1 "
"openssl "
"original-bsd modified-bsd 2-clause-bsd "

View File

@ -1,4 +1,4 @@
/* $NetBSD: lpkg.c,v 1.1.1.2 2009/02/02 20:44:06 joerg Exp $ */
/* $NetBSD: lpkg.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $ */
/*
* Copyright (c) 1999 Christian E. Hopps

View File

@ -1,4 +1,4 @@
/* $NetBSD: opattern.c,v 1.1.1.3 2012/02/19 17:46:47 tron Exp $ */
/* $NetBSD: opattern.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: opattern.c,v 1.1.1.3 2012/02/19 17:46:47 tron Exp $");
__RCSID("$NetBSD: opattern.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: parse-config.c,v 1.1.1.13 2020/12/12 10:59:12 wiz Exp $ */
/* $NetBSD: parse-config.c,v 1.1.1.14 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: parse-config.c,v 1.1.1.13 2020/12/12 10:59:12 wiz Exp $");
__RCSID("$NetBSD: parse-config.c,v 1.1.1.14 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pkcs7.c,v 1.1.1.6 2019/04/05 23:42:00 sevan Exp $ */
/* $NetBSD: pkcs7.c,v 1.1.1.7 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
#endif
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: pkcs7.c,v 1.1.1.6 2019/04/05 23:42:00 sevan Exp $");
__RCSID("$NetBSD: pkcs7.c,v 1.1.1.7 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 2004, 2008 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_install.conf.5.in,v 1.1.1.15 2020/12/12 10:59:13 wiz Exp $
.\" $NetBSD: pkg_install.conf.5.in,v 1.1.1.16 2021/04/10 19:26:04 nia Exp $
.\"
.\" Copyright (c) 2008, 2009, 2012 The NetBSD Foundation, Inc.
.\" All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pkg_io.c,v 1.1.1.11 2018/02/04 08:20:47 maya Exp $ */
/* $NetBSD: pkg_io.c,v 1.1.1.12 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
* All rights reserved.
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: pkg_io.c,v 1.1.1.11 2018/02/04 08:20:47 maya Exp $");
__RCSID("$NetBSD: pkg_io.c,v 1.1.1.12 2021/04/10 19:26:04 nia Exp $");
#include <archive.h>
#include <archive_entry.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: pkg_signature.c,v 1.1.1.8 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: pkg_signature.c,v 1.1.1.9 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: pkg_signature.c,v 1.1.1.8 2017/04/20 13:12:47 joerg Exp $");
__RCSID("$NetBSD: pkg_signature.c,v 1.1.1.9 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkg_summary.5,v 1.1.1.4 2012/02/19 17:46:47 tron Exp $
.\" $NetBSD: pkg_summary.5,v 1.1.1.5 2021/04/10 19:26:04 nia Exp $
.\"
.\" Copyright (c) 2006 The NetBSD Foundation
.\"

View File

@ -1,4 +1,4 @@
/* $NetBSD: pkgdb.c,v 1.1.1.11 2020/12/18 17:19:17 maya Exp $ */
/* $NetBSD: pkgdb.c,v 1.1.1.12 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: pkgdb.c,v 1.1.1.11 2020/12/18 17:19:17 maya Exp $");
__RCSID("$NetBSD: pkgdb.c,v 1.1.1.12 2021/04/10 19:26:04 nia Exp $");
/*-
* Copyright (c) 1999-2010 The NetBSD Foundation, Inc.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pkgsrc.7,v 1.1.1.1 2008/09/30 19:00:27 joerg Exp $
.\" $NetBSD: pkgsrc.7,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $
.\"
.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
.\" All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: plist.c,v 1.1.1.7 2020/12/18 17:19:17 maya Exp $ */
/* $NetBSD: plist.c,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: plist.c,v 1.1.1.7 2020/12/18 17:19:17 maya Exp $");
__RCSID("$NetBSD: plist.c,v 1.1.1.8 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: remove.c,v 1.1.1.2 2009/08/06 16:55:29 joerg Exp $ */
/* $NetBSD: remove.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: remove.c,v 1.1.1.2 2009/08/06 16:55:29 joerg Exp $");
__RCSID("$NetBSD: remove.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $");
#if HAVE_DIRENT_H
#include <dirent.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: str.c,v 1.1.1.2 2009/02/02 20:44:08 joerg Exp $ */
/* $NetBSD: str.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: str.c,v 1.1.1.2 2009/02/02 20:44:08 joerg Exp $");
__RCSID("$NetBSD: str.c,v 1.1.1.3 2021/04/10 19:26:04 nia Exp $");
/*
* FreeBSD install - a package for the installation and maintainance

View File

@ -1,4 +1,4 @@
/* $NetBSD: var.c,v 1.1.1.4 2017/04/20 13:12:47 joerg Exp $ */
/* $NetBSD: var.c,v 1.1.1.5 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2005, 2008 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: var.c,v 1.1.1.4 2017/04/20 13:12:47 joerg Exp $");
__RCSID("$NetBSD: var.c,v 1.1.1.5 2021/04/10 19:26:04 nia Exp $");
#if HAVE_SYS_STAT_H
#include <sys/stat.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: version.c,v 1.1.1.3 2010/02/03 14:24:00 joerg Exp $ */
/* $NetBSD: version.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: version.c,v 1.1.1.3 2010/02/03 14:24:00 joerg Exp $");
__RCSID("$NetBSD: version.c,v 1.1.1.4 2021/04/10 19:26:04 nia Exp $");
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.

View File

@ -1,4 +1,4 @@
/* $NetBSD: version.h,v 1.1.1.42 2020/12/18 17:19:17 maya Exp $ */
/* $NetBSD: version.h,v 1.1.1.43 2021/04/10 19:26:04 nia Exp $ */
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
@ -27,6 +27,6 @@
#ifndef _INST_LIB_VERSION_H_
#define _INST_LIB_VERSION_H_
#define PKGTOOLS_VERSION 20201218
#define PKGTOOLS_VERSION 20210410
#endif /* _INST_LIB_VERSION_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vulnerabilities-file.c,v 1.1.1.8 2020/12/02 13:49:26 wiz Exp $ */
/* $NetBSD: vulnerabilities-file.c,v 1.1.1.9 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2008, 2010 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -38,7 +38,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: vulnerabilities-file.c,v 1.1.1.8 2020/12/02 13:49:26 wiz Exp $");
__RCSID("$NetBSD: vulnerabilities-file.c,v 1.1.1.9 2021/04/10 19:26:04 nia Exp $");
#if HAVE_SYS_STAT_H
#include <sys/stat.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: xwrapper.c,v 1.1.1.1 2009/02/02 20:44:09 joerg Exp $ */
/* $NetBSD: xwrapper.c,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $ */
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -36,7 +36,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
__RCSID("$NetBSD: xwrapper.c,v 1.1.1.1 2009/02/02 20:44:09 joerg Exp $");
__RCSID("$NetBSD: xwrapper.c,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $");
#if HAVE_ERR_H
#include <err.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: pkgsrc.cnf,v 1.1.1.1 2009/02/02 20:44:09 joerg Exp $
# $NetBSD: pkgsrc.cnf,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $
#
# OpenSSL sample configuration file for use by pkgsrc.sh
#

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: pkgsrc.sh,v 1.1.1.1 2009/02/02 20:44:09 joerg Exp $
# $NetBSD: pkgsrc.sh,v 1.1.1.2 2021/04/10 19:26:04 nia Exp $
#
CA="openssl ca -config pkgsrc.cnf"