Commit graph

833 commits

Author SHA1 Message Date
joerg
3d1452b99c pkg_install-20180425: correctly detect package names in PKG_DBDIR
If PKG_DBDIR is /foo and a path like /foobar is given, it is not below
PKG_DBDIR, so don't translate it into a package name look up. The old
logic for giving a path to PKG_DBDIR remains for legacy compat.
2018-04-25 12:20:53 +00:00
jperkin
80b9bc0769 pkg_install: Update to 20180417.
Fix an issue in pkg_create where we may have been using corrupted owner and
group information.  Noticed on macOS where libarchive would complain about
the owner entry being too long.  Reviewed by joerg.

Also includes some manual page improvements committed recently.
2018-04-17 12:52:35 +00:00
sevan
fd36e12c89 X509_get_extended_key_usage and X509_get_extension_flags definitions are also
needed for LibreSSL.


Tested on OpenBSD/amd64 6.3
2018-04-05 21:19:32 +00:00
sevan
08fcbf11f4 regen catalog files using mandoc. 2018-03-27 22:38:04 +00:00
sevan
86a6aac4d8 Switch from nroff to using mandoc for updating catalog file in the update-catpages
target. This results in closer resemblence to the actual mdoc manuals.

Reviewed by <wiz>
2018-03-27 22:29:38 +00:00
sevan
5210fe357c Bump version for commits earlier this week.
pkg_install-20180325
- pkg_add(1): Documentation fixes
- pkg_delete: Add missing -A to usage()
2018-03-25 03:56:28 +00:00
sevan
c34b2e0d6f List options alphabetically. 2018-03-21 17:32:44 +00:00
sevan
3486b6c44a Document -h option. 2018-03-21 17:26:58 +00:00
sevan
218c21e89e Add missing -A to usage() 2018-03-21 14:35:35 +00:00
ginsbach
c0031b705a pkg_install-20180226:
- add option to include IGNORE_URL pkg_install.conf entries in audit
  but flagged as "ignored".
- bump version to 20180226
2018-02-26 23:45:01 +00:00
kamil
432700fb0d pkg_install: Recognize the happy license as acceptable
Noted by <wiz>
2018-02-05 00:07:56 +00:00
rillig
c77d3c5335 pkgtools/*: Realign variables in Makefiles
Mainly done by pkglint, manually reviewed and improved in some few cases.
2018-01-27 19:07:46 +00:00
jperkin
0a2e49d194 pkg_install: Bump version to 20171030 for netpgpverify fixes. 2017-10-30 12:03:50 +00:00
maya
7bada3c053 pkg_install: Fix OpenSSL 1.1.0 build
OpenSSL 1.1.0 makes xkusage and ex_flags opaque.

Use X509_check_ca rather than a custom and nearly identical implementation.
This is available since OpenSSL 0.9.8 (even in RHEL5).

This is also done because we cannot implement it identically under
OpenSSL 1.1.0 due to missing getters.

Test EXFLAG_XKUSAGE rather than zero xkusage test no usage to avoid openssl
1.1.0 getter returning a different code on this case.

Use getter for xkusage in the non-zero test case.

Provide fallback definitions for getters.

PR pkg/52298, PR pkg/52648
2017-10-24 15:54:31 +00:00
tnn
c1cabe0f9e Consolidate openssl handling to options.mk. In particular, do not
pass --with-ssl to configure when the option is actually disabled.
2017-07-27 18:54:44 +00:00
joerg
627d49c3b0 Undef bootstrap hack. 2017-07-16 16:51:48 +00:00
jperkin
61cb3cd803 Add zsh to default_acceptable_licenses. 2017-05-11 15:15:21 +00:00
joerg
be58ddee57 Drop PKG_REVISION. Should never be set here in first place. 2017-04-20 14:38:40 +00:00
joerg
f0b1ff36d9 pkg_install-20170419:
- Convert to libarchive 3.x interfaces, avoiding the legacy glue.
- Rename local copy of netpgpverify to match installed headers.
- Shuffle bootstrap code to reduce special cases in pkg_add.
- Always read/write file names in tar archives as binary. While they are
  supposed to be UTF-8, locale conversion creates more problems than it
  solves here.
- Fix const correctness in gpg_verify.
- Add format string annotation for xasprintf for GCC-like compilers.
- Restrict supported archive formats for binary packages to ar (signed
  packages) and tar (actual content) with uncompressed/gzip/bzip2/xz as
  compression choices. This reduces the exposed libarchive surface.
- The pkg-vulnerability file correspondingly supports only the same
  compression choices.
2017-04-19 21:42:50 +00:00
sevan
a699bc814e Update message to match the "Checking for security vulnerabilities in installed packages"
section in the pkgsrc guide.
2017-01-09 07:01:33 +00:00
jperkin
5067dbcc65 Pass --without-lz4 to libarchive bootstrap, avoids issues on Gentoo where
the native lz4 is found.
2017-01-03 17:53:14 +00:00
spz
5a1d0ee4bd add unicode to DEFAULT_ACCEPTABLE_LICENSES 2016-11-18 09:43:39 +00:00
wiz
59c4a9f6b5 Allow sissl-1.1 per default
See
https://opensource.org/licenses/sisslpl
2016-10-03 11:49:31 +00:00
wiz
577e1cde9e ibm-public-license-1.0 -> ipl-1.0 2016-10-03 08:30:20 +00:00
agc
b5419701b7 catch up with the new opaque pgpv_t and pgpv_cursor_t structures in libnetpgpverify. 2016-07-06 21:00:04 +00:00
wiz
6d90854bd9 Remove last traces of bmp here too.
Was not installed for a long time and recently removed from NetBSD base.
2016-06-30 17:42:04 +00:00
joerg
f1950d6871 Disable maintainer mode for libarchive. 2016-06-21 12:23:01 +00:00
leot
cf2c59f74f Add hpnd to DEFAULT_ACCEPTABLE_LICENSES and *default_acceptable_licenses.
Discussed in tech-pkg@:
http://mail-index.netbsd.org/tech-pkg/2016/04/20/msg016755.html

Thanks to Memnon Anon!
2016-04-21 07:51:51 +00:00
joerg
4e86439aac pkg_install-20160410:
Remove pkgdb handling logic from pkg_create, where it should have never
been in first place. Ignore former -U option as new default.
2016-04-10 19:01:19 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
jperkin
d05cac7252 Use OPSYSVARS. 2016-02-25 17:25:05 +00:00
agc
b1e09097a6 make the name of the header file correct here too 2016-02-14 08:37:25 +00:00
agc
ae9504f186 Fix a small typo to ensure the name of the header file is correct. 2016-02-14 08:06:54 +00:00
wiz
2a9c8e31cf Add paratype to default-allowed licenses, since it is basically ofl-v1.1. 2016-02-10 10:50:18 +00:00
tron
1f01e1f5ac Fix syntax error 2016-01-21 21:32:22 +00:00
joerg
5304860a3e Explicitly disable libarchive's LZMA support if no builtin XZ was found
or if the user requested it to be disabled. Helps on systems with lzma.h
and no usable library.
2016-01-21 18:11:31 +00:00
joerg
f2f381c43b Prepare for multiple users of LIBARCHIVE_CONFIGURE_ARGS by using append. 2016-01-21 18:10:19 +00:00
joerg
63f9c9b7cc Include basic package creation logic in the bootstrap version of
pkg_install. Use this with PKG_COMPRESSION=none to convert all of the
bootstrap to USE_DESTDIR=yes.
2015-12-27 12:36:42 +00:00
joerg
b67e0b390e Refactor Makefiles slightly to remove redundancy between normal and
bootstrap build.
2015-12-27 12:18:20 +00:00
jperkin
dcdecb80a0 OpenBSD and derivatives define MACHINE_ARCH in sys/param.h to "amd64" which
overrides our attempt to set it to "x86_64" and ensure consistency across
platforms.  Work around this by setting it using PKGSRC_MACHINE_ARCH.

Confirmed to fix the issue and not break a variety of other platforms by
Sevan, and approved under duress by Joerg.
2015-10-20 08:18:12 +00:00
sevan
e8f50eac16 Do not check for or include sys/param.h
This resolves issues on platforms which MACHINE & MACHINE_ARCH is explicitly
defined, such as OpenBSD/amd64 & Bitrig/amd64 where we would like to build with
MACHINE_ARCH=x86_64 but can't as a platform check fails when installing
packages after bootstrap
pkg_add: Warning: package `digest-20121220' was built for a platform:
pkg_add: OpenBSD/x86_64 5.8 (pkg) vs. OpenBSD/amd64 5.8 (this host)

Tested on
Mac OS X Tiger/PowerPC
OpenBSD
Bitrig
Solaris 10/SPARC
FreeBSD 10.2-RELEASE & 11-CURRENT
DragonFlyBSD
Debian 8
OmniOS

Reviewed by joerg@
2015-10-15 13:31:27 +00:00
leot
b61484a30e Add vera-ttf-license and (previously forgotten) info-zip to reflect
pkgsrc/mk/license.mk current DEFAULT_ACCEPTABLE_LICENSES.
2015-09-13 11:25:52 +00:00
jperkin
edfd9dba4a Explicitly link against -lbz2 and -lz to satisfy libnetpgpverify
dependencies, we can no longer rely on implicit linking from libarchive
on certain platforms.  Fixes build on FreeBSD and DragonFlyBSD.
2015-09-07 09:06:04 +00:00
jperkin
112e171d27 Ensure netpgpverify configure is called with CONFIG_SHELL. Fixes
build on legacy Solaris.
2015-09-06 18:38:21 +00:00
jperkin
747bcb0822 Implement inline package signature verification.
This replaces calling out to an external gpg command for verification
with inline verification using the security/netpgpverify library.

Bump version to 20150901.
2015-09-01 12:14:05 +00:00
wiz
d12016c572 Add lppl-1.0 here as well. 2015-08-02 07:25:15 +00:00
khorben
69374e98f9 Remove the "-s" option from the usage screen of pkg_add(1)
It is not available anymore (since 1.17).
2015-07-20 13:59:44 +00:00
wiz
2f30023e84 Rename zpl to zpl-2.0 to make space for zpl-2.1.
Switch all packages currently referencing zpl to zpl-2.0.
Add zpl-2.1.
Add zpl-2.1 to default-allowed per FSF.
2015-07-15 18:19:54 +00:00
agc
3f1bdca4aa Fix format string in pkg_add's help message - from J. Lewis Muir
Bump version number for pkg_install to 20150508
2015-05-08 16:29:37 +00:00
wiz
2000d3d19c Add lppl-1.2, an older version of lppl-1.3c, and add it to default-allowed
like the 1.3c version.
2015-05-08 10:37:32 +00:00