The NetBSD Project

CVS log for pkgsrc/pkgtools/pkg_install/files/lib/version.h

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / lib

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.192 / (download) - annotate - [select for diffs], Thu Mar 7 12:27:28 2024 UTC (6 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, HEAD
Changes since 1.191: +2 -2 lines
Diff to previous 1.191 (colored)

pkg_install: Bump version to 20240307.

Revision 1.191 / (download) - annotate - [select for diffs], Fri Jan 26 12:40:04 2024 UTC (2 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.190: +2 -2 lines
Diff to previous 1.190 (colored)

pkg_install: Fix mistake in previous: this is strchr, not strchrnul.

Either

	if ((q = strchr(p, '/')) == NULL)

or

	if (*(q = strchrnul(p, '/')) == '\0')

will work, but not

	if (*(q = strchr(p, '/')) == '\0')

which will crash with a null pointer dereference.  Let's get the
right version of this committed, not the wrong one!  Oops.

While here, reset PKGREVISION like I meant to do yesterday.

Revision 1.190 / (download) - annotate - [select for diffs], Fri Jan 26 03:24:49 2024 UTC (2 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.189: +2 -2 lines
Diff to previous 1.189 (colored)

pkg_install-20240125: Extend `-m' syntax to allow OPSYS too.

- If there's no slash `/', take it all as ${MACHINE_ARCH}.

- If there is a slash, then split it by `/' and ` ' into:

        ${OPSYS}/${MACHINE_ARCH} ${OPSYS_VERSION}

  For example:

        NetBSD/aarch64 10.0

All the variables are restricted to lie in a safe set [a-zA-Z0-9._-],
so the notation can be extended later.

No change to existing syntax (no MACHINE_ARCH has `/' in it, or
anything outside the safe set), and `-m' is generally only used with
cross builds anyway, so this shouldn't break existing cross builds
and should have no impact on native builds.

Proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2024/01/13/msg028825.html

Revision 1.189 / (download) - annotate - [select for diffs], Mon Nov 15 12:48:23 2021 UTC (2 years, 5 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.188: +2 -2 lines
Diff to previous 1.188 (colored)

pkg_install: Switch to posix_spawn() on newer macOS.

vfork() no longer works on Monterey and causes serious intermittent issues
when upgrading pkg_install.  Forking the INSTALL and DEINSTALL scripts can
sometimes fail, due to the underlying pkg_add/pkg_delete binaries having
been changed or removed, leaving the system broken with no package tools.

The manual page suggests using posix_spawn() instead and that appears to
work correctly.  The code has been laid out so that it's easy enough to
switch other platforms to posix_spawn() too if required, or for improved
performance, and has been verified to work successfully on SmartOS.

Bump pkg_install version to 20211115.

Revision 1.188 / (download) - annotate - [select for diffs], Thu Oct 21 13:05:25 2021 UTC (2 years, 5 months ago) by jperkin
Branch: MAIN
Changes since 1.187: +2 -2 lines
Diff to previous 1.187 (colored)

pkg_install: Update to 20211021.

Apply patch from Michal Maruska in NetBSD/pkgsrc#95 to ensure package files
are correctly cleaned up should the POST-INSTALL script phase fail.

Revision 1.187 / (download) - annotate - [select for diffs], Sat Apr 10 11:36:56 2021 UTC (3 years ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.186: +2 -2 lines
Diff to previous 1.186 (colored)

pkg_install-20210410: simplify checking for netbsd versions

only care about the first number, unless it's -current

Revision 1.186 / (download) - annotate - [select for diffs], Mon Mar 8 15:25:47 2021 UTC (3 years, 1 month ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.185: +2 -2 lines
Diff to previous 1.185 (colored)

pkg_install-20210308

- update pkg_add's examples in its man page for 2021 compliance.

Revision 1.185 / (download) - annotate - [select for diffs], Fri Dec 18 17:10:54 2020 UTC (3 years, 4 months ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.184: +2 -2 lines
Diff to previous 1.184 (colored)

pkg_install-20201218

- Support continuing to install to /var/db/pkg if it exists and the
new pkgdb doesn't.
In the future, we can warn about this once we have tested advice that
we can give to users who want to move the location of pkgdb.

- Don't do anything about /var/db/pkg on non-NetBSD-base.
This creates conflicts with other package managers that also install to
/var/db/pkg.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Dec 11 15:55:35 2020 UTC (3 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.183: +2 -2 lines
Diff to previous 1.183 (colored)

pkg_install-20201212: handle error case better

When pkg_delete fails, report it and error out.

Revision 1.183 / (download) - annotate - [select for diffs], Fri Dec 11 10:06:53 2020 UTC (3 years, 4 months ago) by jperkin
Branch: MAIN
Changes since 1.182: +2 -2 lines
Diff to previous 1.182 (colored)

pkg_install: Introduce support for CHECK_OS_VERSION.

When set to "no", pkg_add will not issue a warning if the host OS version does
not exactly match the OS version the package was built on.  This can be useful
on many OS where the kernel release version has nothing to do with userland
compatibility, or where it may differ without being ABI incompatible.

Ultimately it would be ideal if the version checks were smart enough across all
our supported OS to not need this, but until then this is useful for users who
know what they're doing.

Bump version to 20201211.

Revision 1.182 / (download) - annotate - [select for diffs], Sun Dec 6 17:23:09 2020 UTC (3 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.181: +2 -2 lines
Diff to previous 1.181 (colored)

pkg_install: update to 20201206

Convert a core dump I've been seeing into an error abort.

Revision 1.181 / (download) - annotate - [select for diffs], Sat Dec 5 16:17:41 2020 UTC (3 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.180: +2 -2 lines
Diff to previous 1.180 (colored)

pkg_install: update to 20201205

Improve warning about old database to mention moving the refcount db too.

Revision 1.180 / (download) - annotate - [select for diffs], Wed Dec 2 10:22:39 2020 UTC (3 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.179: +2 -2 lines
Diff to previous 1.179 (colored)

*: move default database directory from /var/db/pkg to ${PREFIX}/pkgdb

As discussed in August 2020 and previously on pkgsrcCon 2019.

Ok pkgsrc-pmc@

Revision 1.179 / (download) - annotate - [select for diffs], Wed Jul 1 10:15:20 2020 UTC (3 years, 9 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.178: +2 -2 lines
Diff to previous 1.178 (colored)

pkg_install: Update version to 20200701.

Includes fixes to +REQUIRED_BY generation, performance improvements,
build fixes against newer libnetpgpverify, and better error messages.

When combined with newer pkgin releases, this should now eliminate the
various "pkg_add: Can't open +CONTENTS of depending package ..." errors
that users had frequently observed during upgrades (joyent/pkgsrc#158,
joyent/pkgsrc#190, joyent/pkgsrc#256, and many IRC logs).

Revision 1.178 / (download) - annotate - [select for diffs], Fri Oct 11 11:57:41 2019 UTC (4 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.177: +2 -2 lines
Diff to previous 1.177 (colored)

pkg_install-20191008: Add pkg_admin digest command

Revision 1.177 / (download) - annotate - [select for diffs], Fri Apr 5 22:53:29 2019 UTC (5 years ago) by sevan
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.176: +2 -2 lines
Diff to previous 1.176 (colored)

Bump date for switch to cdn.NetBSD.org

Revision 1.176 / (download) - annotate - [select for diffs], Wed Apr 25 12:20:54 2018 UTC (5 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2
Changes since 1.175: +2 -2 lines
Diff to previous 1.175 (colored)

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.

Revision 1.175 / (download) - annotate - [select for diffs], Tue Apr 17 12:52:35 2018 UTC (6 years ago) by jperkin
Branch: MAIN
Changes since 1.174: +2 -2 lines
Diff to previous 1.174 (colored)

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.

Revision 1.174 / (download) - annotate - [select for diffs], Sun Mar 25 03:56:28 2018 UTC (6 years ago) by sevan
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.173: +2 -2 lines
Diff to previous 1.173 (colored)

Bump version for commits earlier this week.

pkg_install-20180325
- pkg_add(1): Documentation fixes
- pkg_delete: Add missing -A to usage()

Revision 1.173 / (download) - annotate - [select for diffs], Mon Feb 26 23:45:02 2018 UTC (6 years, 1 month ago) by ginsbach
Branch: MAIN
Changes since 1.172: +2 -2 lines
Diff to previous 1.172 (colored)

pkg_install-20180226:
- add option to include IGNORE_URL pkg_install.conf entries in audit
  but flagged as "ignored".
- bump version to 20180226

Revision 1.172 / (download) - annotate - [select for diffs], Mon Oct 30 12:03:50 2017 UTC (6 years, 5 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4
Changes since 1.171: +2 -2 lines
Diff to previous 1.171 (colored)

pkg_install: Bump version to 20171030 for netpgpverify fixes.

Revision 1.171 / (download) - annotate - [select for diffs], Wed Apr 19 21:42:50 2017 UTC (7 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Changes since 1.170: +2 -2 lines
Diff to previous 1.170 (colored)

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.

Revision 1.170 / (download) - annotate - [select for diffs], Sun Apr 10 19:01:19 2016 UTC (8 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2
Changes since 1.169: +2 -2 lines
Diff to previous 1.169 (colored)

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.

Revision 1.169 / (download) - annotate - [select for diffs], Tue Sep 1 12:14:06 2015 UTC (8 years, 7 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.168: +2 -2 lines
Diff to previous 1.168 (colored)

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.

Revision 1.167.2.1 / (download) - annotate - [select for diffs], Sat May 9 15:17:50 2015 UTC (8 years, 11 months ago) by tron
Branch: pkgsrc-2015Q1
Changes since 1.167: +2 -2 lines
Diff to previous 1.167 (colored) next main 1.168 (colored)

Pullup ticket #4709 - requested by agc
pkgtools/pkg_install: bug fix update

Revisions pulled up:
- pkgtools/pkg_install/files/add/main.c                         1.29
- pkgtools/pkg_install/files/lib/version.h                      1.168

---
   Module Name:	pkgsrc
   Committed By:	agc
   Date:		Fri May  8 16:29:37 UTC 2015

   Modified Files:
   	pkgsrc/pkgtools/pkg_install/files/add: main.c
   	pkgsrc/pkgtools/pkg_install/files/lib: version.h

   Log Message:
   Fix format string in pkg_add's help message - from J. Lewis Muir

   Bump version number for pkg_install to 20150508

Revision 1.168 / (download) - annotate - [select for diffs], Fri May 8 16:29:37 2015 UTC (8 years, 11 months ago) by agc
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.167: +2 -2 lines
Diff to previous 1.167 (colored)

Fix format string in pkg_add's help message - from J. Lewis Muir

Bump version number for pkg_install to 20150508

Revision 1.167 / (download) - annotate - [select for diffs], Tue Dec 30 15:13:21 2014 UTC (9 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base
Branch point for: pkgsrc-2015Q1
Changes since 1.166: +2 -2 lines
Diff to previous 1.166 (colored)

Remove pkg_views support, second part: infrastructure.

Revision 1.166 / (download) - annotate - [select for diffs], Mon Sep 2 10:28:44 2013 UTC (10 years, 7 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Changes since 1.165: +2 -2 lines
Diff to previous 1.165 (colored)

pkg_install-20130902: Fix 'pkg_add -f'.

Remove incorrect return value when in force mode, which was causing pkg_add
to exit with failure even though the operation completed successfully.  This
also fixes the case where 'pkg_add -uf' would leave an update in an
inconsistent state.

Revision 1.165 / (download) - annotate - [select for diffs], Thu Jan 31 10:25:30 2013 UTC (11 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1
Changes since 1.164: +2 -2 lines
Diff to previous 1.164 (colored)

Shut up warnings about 6.0 packages on 6.0.1 (and similar).
Welcome to 20130131.

Revision 1.164 / (download) - annotate - [select for diffs], Tue Feb 21 14:54:41 2012 UTC (12 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.163: +2 -2 lines
Diff to previous 1.163 (colored)

Bump version for pkg_add bug fix.

Revision 1.163 / (download) - annotate - [select for diffs], Sat Jan 28 12:33:05 2012 UTC (12 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.162: +2 -2 lines
Diff to previous 1.162 (colored)

pkg_install-20120128:
- Explicitly stat(2) if mkdir failed. errno detection doesn't work e.g.
on Solaris (PR 45289)
- Provide a stable order for package names that only differe in the base
name, not the version number.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Aug 5 07:04:28 2011 UTC (12 years, 8 months ago) by agc
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3
Changes since 1.161: +2 -2 lines
Diff to previous 1.161 (colored)

Fix for pkg_delete on NFS from Anthony Mallet.

Problem analysis from Anthony:

	On Wednesday, at 23:52, Anthony Mallet wrote:
	> # rm -rf ~tmp && mkdir ~/tmp
	> # pkg_add -K ~/tmp/var/db/pkg -p ~/tmp /usr/pkgsrc/packages/All/digest-20080510.tgz
	> # pkg_add -U -K ~/tmp/var/db/pkg -p ~/tmp /usr/pkgsrc/packages/All/digest-20080510.tgz
	> pkg_delete: Couldn't remove package directory in `/home/tho/tmp/var/db/pkg/digest-20080510'
	> Also, the dir var/db/pkg/digest-20080510.xxxxxxx is never cleaned.
	>
	> The problem apparently is that pkg_delete finds some stalled NFS entries
	> (.nfs*) in the var/db/pkg/digest-20080510 dir, so it does not delete the
	> directory. Is this due to pkg_add not correctly closing file descriptors before
	> exec'ing pkg_delete? For instance, I really don't understand the logic in
	> check_already_installed() (add/perform.c:375) regarding the open() of +CONTENTS
	> which is almost never closed (and never used as well...). Shouldn't this be
	> closed before running pkg_delete?

	ktrace shows that the +CONTENTS file is open() by pkg_add, I believe this is in
	check_already_installed(), add/perform.c:381. Then pkg_delete is run and when
	it comes to deleting the pkgdir entry, it finds that .nfs file and aborts.

Bump version to 20110805

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Sun Feb 20 21:41:59 2011 UTC (13 years, 2 months ago) by spz
Branch: pkgsrc-2010Q4
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (colored) next main 1.161 (colored)

Pullup ticket 3356 - requested by aymeric
functionality fix

Revisions pulled up:
- pkgsrc/pkgtools/pkg_install/files/admin/audit.c	1.17
- pkgsrc/pkgtools/pkg_install/files/lib/version.h	1.161

-----------------------------------------------------------------------------
   Module Name:	pkgsrc
   Committed By:	aymeric
   Date:		Fri Feb 18 15:59:52 UTC 2011

   Modified Files:
   	pkgsrc/pkgtools/pkg_install/files/admin: audit.c
   	pkgsrc/pkgtools/pkg_install/files/lib: version.h

   Log Message:
   . fix audit-history subcommand to include patterns making use of [x-y] notation
   . bump version to 20110215


   To generate a diff of this commit:
   cvs rdiff -u -r1.16 -r1.17 pkgsrc/pkgtools/pkg_install/files/admin/audit.c
   cvs rdiff -u -r1.160 -r1.161 pkgsrc/pkgtools/pkg_install/files/lib/version.h

Revision 1.161 / (download) - annotate - [select for diffs], Fri Feb 18 15:59:52 2011 UTC (13 years, 2 months ago) by aymeric
Branch: MAIN
CVS Tags: pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (colored)

. fix audit-history subcommand to include patterns making use of [x-y] notation
. bump version to 20110215

Revision 1.160 / (download) - annotate - [select for diffs], Sun Dec 12 13:18:38 2010 UTC (13 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2010Q4-base
Branch point for: pkgsrc-2010Q4
Changes since 1.159: +2 -2 lines
Diff to previous 1.159 (colored)

Don't warn about _ALPHA, _BETA, _PATCH, _RC, _STABLE mismatches
when pkg_add'ing on NetBSD. Bump version to 20101212.

Ok jym, gdt

Revision 1.159 / (download) - annotate - [select for diffs], Mon Nov 22 09:00:13 2010 UTC (13 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.158: +2 -2 lines
Diff to previous 1.158 (colored)

pkg_install-20101122: Fix crash in pkg_info -X on hand-written packages

Revision 1.158 / (download) - annotate - [select for diffs], Wed Sep 15 13:18:02 2010 UTC (13 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q3-base, pkgsrc-2010Q3
Changes since 1.157: +2 -2 lines
Diff to previous 1.157 (colored)

pkg_install-20100915: Allow https URLs. From mbalmer.

Reset maintainership.

Revision 1.157 / (download) - annotate - [select for diffs], Tue Sep 14 22:26:19 2010 UTC (13 years, 7 months ago) by gdt
Branch: MAIN
Changes since 1.156: +2 -2 lines
Diff to previous 1.156 (colored)

Add -D flag to pkg_install, to override the "pkg_add -U" check that
all depending packages have their dependencies satisfied by the new
package.  Essentially, split off this particular behavior as a special
case of -f, so that -f works as before, unforced works as before, and
one can give -D to override exactly this check, leaving all other
checks intact.

The -D flag is in support of make replace, as the workflow for make
replace is that inter-package dependencies are sometimes violated (but
then one must replace the depending packages, which is what
pkg_rolling-replace does via the unsafe_depends flags).

Bump PKGTOOLS_VERSION.

Add missing break statement in option parsing of "pkg_add -C", riding
the version bump.

Discussed extensively on tech-pkg@ over the summer.
OK pkgsrc-pmc@.

Revision 1.156 / (download) - annotate - [select for diffs], Wed Jun 16 23:02:49 2010 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q2-base, pkgsrc-2010Q2
Changes since 1.155: +2 -2 lines
Diff to previous 1.155 (colored)

pkg_install-20100616:
- Recognize -C for pkg_add like the rest of the tools do
- Do the existing check for pkg_add -f, it makes the combination of
  -f and -U a bit less surprising
- Fix option handling for CHECK_VULNERABILITIES (from spz@)
- Make end-of-life check the default. pkg_install.conf(5) can be used to
  override the default. The existing admin -e & co continue to work as
  before.

Revision 1.155 / (download) - annotate - [select for diffs], Tue Apr 20 21:22:38 2010 UTC (14 years ago) by joerg
Branch: MAIN
Changes since 1.154: +2 -2 lines
Diff to previous 1.154 (colored)

pkg_install-20100421:
Fix an off-by-one in the check for properly sized pkgdb entries.
It rejected perfectly valid entries.

Revision 1.154 / (download) - annotate - [select for diffs], Tue Apr 20 00:39:13 2010 UTC (14 years ago) by joerg
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153 (colored)

pkg_install-20100420:
Extract dependencies of libarchive from the pkgconfig file and thereby
drop knowledge of the needed libraries.

At least some versions of HP-UX are known to not support %zu, add a
workaround. This is using the black list approach for now.

Recognize xz as compression type for pkg_create.

The first time an error is hit while fetching packages, try to reget
from the same position. This works around the server closing the
connection while fetching dependencies.

Revision 1.153 / (download) - annotate - [select for diffs], Wed Apr 14 18:24:58 2010 UTC (14 years ago) by joerg
Branch: MAIN
Changes since 1.152: +2 -2 lines
Diff to previous 1.152 (colored)

pkg_install-20100405:
- Try to detect common forms of pkgdb corruption and issue a warning in
  that case.
- Refactor the pkg_vulnerabilities logic to use the compression support
  from libarchive. This reduces the amount zlib/bzip2 interaction to the
  linkage.

Revision 1.152 / (download) - annotate - [select for diffs], Fri Mar 19 12:49:53 2010 UTC (14 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.151: +2 -2 lines
Diff to previous 1.151 (colored)

Add man pages for audit-packages and download-vulnerability-list which
point to pkg_admin and notes that the scripts are obsolete.

Bump version to 20100319.

Revision 1.151 / (download) - annotate - [select for diffs], Sat Feb 20 04:40:03 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored)

pkg_install-20100220:
Try harder to give the user an idea which file failed.
Addresses PR 42223.

Revision 1.150 / (download) - annotate - [select for diffs], Wed Feb 3 19:28:30 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.149: +2 -2 lines
Diff to previous 1.149 (colored)

pkg_install-20100204:
Fix an enum to prevent crashes later (PR 42734)

Revision 1.149 / (download) - annotate - [select for diffs], Wed Feb 3 14:20:14 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored)

pkg_install-20100203:
- Restore PKG_PREFIX in pkg_delete (PR 42731)
- Ensure that the current pkg_install version is at least as new as
  the version used to build the package

Revision 1.148 / (download) - annotate - [select for diffs], Sat Jan 30 20:09:34 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.147: +2 -2 lines
Diff to previous 1.147 (colored)

pkg_install-20100130:
Add -U for pkg_add.  It works similar to -u, but replaces an already
installed version.

Revision 1.147 / (download) - annotate - [select for diffs], Tue Jan 26 15:48:13 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored)

pkg_install-20100126: Actually support IPv6.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Jan 22 13:30:42 2010 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.145: +2 -2 lines
Diff to previous 1.145 (colored)

pkg_install-20100122:
- Refactor man pages:
  - Move description of environmental variables into pkg_install.conf(5)
  - Remove a bunch of dead references
  - Avoid using hard-coded path names that can easily be overridden by
    the user.
- Refactor pkgdb related logic, so that -K behaves consistently.
- Add some helper functions to isolate more places from the pkgdb
  layout.
- Sync license list.
- Handle PKG_REFCOUNT_DBDIR consistently as option too.
- Utilize connection cache from libfetch.
- Add helper target for cat pages updates.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Jan 21 21:58:06 2010 UTC (14 years, 2 months ago) by jmmv
Branch: MAIN
Changes since 1.144: +2 -2 lines
Diff to previous 1.144 (colored)

Stick the correct value of PKG_DBDIR into the manpages instead of
pointing the user to /var/db/pkg, which may not be the right value if
it was customized.  Bump version to 20100121.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Jan 20 22:34:47 2010 UTC (14 years, 3 months ago) by jmmv
Branch: MAIN
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 (colored)

Update to 20100120:

- Make PKG_DBDIR customizable through pkg_install.conf.

Things seem to work fine after a few tests but... where are the tests for
these tools?!

Revision 1.143 / (download) - annotate - [select for diffs], Thu Nov 5 16:22:32 2009 UTC (14 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4
Changes since 1.142: +2 -2 lines
Diff to previous 1.142 (colored)

pkg_install-20091115:
Completely ignore @src in pkg_create. Silently ignore the -L option.
The combination of -I and -p are used by pkgsrc for the same result.

Revision 1.139.2.1 / (download) - annotate - [select for diffs], Fri Oct 23 10:28:23 2009 UTC (14 years, 5 months ago) by tron
Branch: pkgsrc-2009Q3
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored) next main 1.140 (colored)

Pullup ticket #2921 - requested by joerg
pkg_install: bug fix

Revisions pulled up:
- pkgtools/pkg_install/files/lib/pkgdb.c	1.36
- pkgtools/pkg_install/files/lib/version.h	1.142
---
Module Name:	pkgsrc
Committed By:	joerg
Date:		Thu Oct 22 22:51:29 UTC 2009

Modified Files:
	pkgsrc/pkgtools/pkg_install/files/lib: pkgdb.c version.h

Log Message:
pkg_install-20091009:
Do not overwrite a string with itself using snprintf. This breaks
setting the pkgdb directory internally on Linux. Explicitly check
if the string is the same and otherwise just use xstrdup.

Revision 1.142 / (download) - annotate - [select for diffs], Thu Oct 22 22:51:29 2009 UTC (14 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored)

pkg_install-20091022:
Do not overwrite a string with itself using snprintf. This breaks
setting the pkgdb directory internally on Linux. Explicitly check
if the string is the same and otherwise just use xstrdup.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Oct 21 17:10:36 2009 UTC (14 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.140: +2 -2 lines
Diff to previous 1.140 (colored)

pkg_install-20091021:
Add support to query arbitrary variables with pkg_admin config-var.

Revision 1.140 / (download) - annotate - [select for diffs], Thu Oct 15 12:41:41 2009 UTC (14 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored)

pkg_install-20091015:
Use directory index caching by default.

Revision 1.139 / (download) - annotate - [select for diffs], Thu Oct 8 16:16:12 2009 UTC (14 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base
Branch point for: pkgsrc-2009Q3
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored)

pkg_install-20091008:
- Fix German accent
- Don't dereference a null pointer for pkg_admin add

Revision 1.138 / (download) - annotate - [select for diffs], Wed Oct 7 12:53:27 2009 UTC (14 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored)

pkg_install-20091006:
- restore pkg_add -f functionality for missing dependencies (PR 42001)
- pkg_admin rebuild should count packages correctly (he@), also count @pkgdb
- fix gpg-sign-package syntax in pkg_admin(1)
- change default URL for pkg-vulnerabilities to use HTTP

Revision 1.137 / (download) - annotate - [select for diffs], Fri Sep 11 18:00:13 2009 UTC (14 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored)

pkg_install-20090911:
- Cleanup configure.ac to not check for headers and functions not used
- Always use nbcompat/db.h on !NetBSD (PR 41865)
- Don't bother setting termwidth in pkg_info, it is never used.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Aug 16 21:10:15 2009 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

pkg_install-20090817:
Add a new command for pkg_admin: findbest. It takes one or more patterns
and searches for the best match in PKG_PATH, just like pkg_add would.
It prints the URLs of the best match for each pattern to stdout.

Rewrite the config file parser to read the file only once.

Revision 1.135 / (download) - annotate - [select for diffs], Sun Aug 16 14:26:46 2009 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.134: +2 -2 lines
Diff to previous 1.134 (colored)

Fix a bug in pkg_add's -P handling. For dependencies the pkgdb path was
computed incorrectly and included destdir more than once.

Fix the ACTIVE_FTP option to actually set the "a" flag and not the old
"p" flag.

Revision 1.134 / (download) - annotate - [select for diffs], Thu Aug 6 16:53:34 2009 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored)

pkg_install-20090806:
- pkg_add: add support to check license conditions before installation
- pkg_delete: add -k option to skip over preserve packages.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Aug 2 17:56:45 2009 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.132: +2 -2 lines
Diff to previous 1.132 (colored)

pkg_install-20090727:
Make pkg_install WARNS=4 clean and fix a number of lint warnings.
Based on reports from veego about warnings with older GCC releases in
pkg_delete, where a variable is potentially used uninitialized.

Revision 1.131.2.1 / (download) - annotate - [select for diffs], Sat Jul 25 19:20:05 2009 UTC (14 years, 8 months ago) by tron
Branch: pkgsrc-2009Q2
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

Pullup ticket #2836 - requested by joerg
pkg_install: bug fix

Revisions pulled up:
- pkgtools/pkg_install/files/info/perform.c			1.58
- pkgtools/pkg_install/files/lib/license.c			1.7
- pkgtools/pkg_install/files/lib/pkg_install.conf.5.in		1.7
- pkgtools/pkg_install/files/lib/pkg_install.conf.cat5.in	1.7
- pkgtools/pkg_install/files/lib/version.h			1.132
---
Module Name:	pkgsrc
Committed By:	joerg
Date:		Fri Jul 24 19:06:45 UTC 2009

Modified Files:
	pkgsrc/pkgtools/pkg_install/files/info: perform.c
	pkgsrc/pkgtools/pkg_install/files/lib: license.c pkg_install.conf.5.in
	    pkg_install.conf.cat5.in version.h

Log Message:
pkg_install-20070724:
- license handling: accept upper case letters. Keep license checks
  case-sensitive as done in the older pkgsrc logic. Document this.
  OK dillo@, schmonz@, wiz@
- pkg_info:
  - fix handling of non-packages, that are valid archives
  - invert order of pkg_info -r to better match the expectations of
    make update.

Revision 1.132 / (download) - annotate - [select for diffs], Fri Jul 24 19:06:45 2009 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

pkg_install-20070724:
- license handling: accept upper case letters. Keep license checks
  case-sensitive as done in the older pkgsrc logic. Document this.
  OK dillo@, schmonz@, wiz@
- pkg_info:
  - fix handling of non-packages, that are valid archives
  - invert order of pkg_info -r to better match the expectations of
    make update.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Jun 10 20:15:11 2009 UTC (14 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q2-base
Branch point for: pkgsrc-2009Q2
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored)

pkg_install-20090610:
Improve diagnostic around license handling.

Revision 1.130 / (download) - annotate - [select for diffs], Thu May 28 08:59:59 2009 UTC (14 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.129: +2 -2 lines
Diff to previous 1.129 (colored)

pkg_install-20090528:
I can't remember why the original pkg_install-renovation code disabled
extraction of ownership from packages, so reenable that.

Revision 1.129 / (download) - annotate - [select for diffs], Wed May 27 20:26:03 2009 UTC (14 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.128: +2 -2 lines
Diff to previous 1.128 (colored)

pkg_install-20090527:
Try harder to mimic the old pkg_delete behavior and provide a
topologically sorted output for pkg_info -r. Bail out on dependency
cycles based on recursion depth, currently 64K.

Revision 1.128 / (download) - annotate - [select for diffs], Mon May 18 10:01:37 2009 UTC (14 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored)

Sync default-accepted licenses with pkgsrc/mk/licenses.mk.
Bump version to 20090518.

Revision 1.127 / (download) - annotate - [select for diffs], Wed May 13 03:33:50 2009 UTC (14 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.126: +2 -2 lines
Diff to previous 1.126 (colored)

pkg_install-20090513:
Add pkg_create -F, which explicitly provides the compression type.

Revision 1.126 / (download) - annotate - [select for diffs], Sat May 2 16:14:37 2009 UTC (14 years, 11 months ago) by reed
Branch: MAIN
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored)

Add new metadata: PREV_PKGPATH and SUPERSEDES.
These will be available from pkg_summary(5) database.
To be used to find previous packages when a package is moved
or renamed. (Even though that is not recommended.)

Documented in pkgsrc Guide and in the pkg_summary(5) manual page.

Upcoming commit will have some packages modified to add them.

Revision 1.125 / (download) - annotate - [select for diffs], Sat Apr 25 21:31:14 2009 UTC (14 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.124: +2 -2 lines
Diff to previous 1.124 (colored)

pkg_install-20090425:
Add logic to evaluate license conditions. As frontend for pkgsrc,
pkg_admin gets two new commands (check-license and
check-single-license), which can be used to evaluate a given condition.
pkg_add will be changed to honour licenses at a later point.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Apr 24 14:00:26 2009 UTC (14 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.123: +2 -2 lines
Diff to previous 1.123 (colored)

pkg_install-20090424:
Make pkg_delete -d the default behavior, remove the option.
Remove pkg_create -R support (reorder @dirrm entries).
Introduce new plist command @pkgdir, which makes pkg_add add
this directory if it doesn't exist already and pkg_delete remove it
only if no other package has a @pkgdir entry for it. Otherwise
directories are pruned when the last file or directory in them is
removed. @dirrm is now a pure hint, if the directory doesn't exist, it
will be silently skipped.

Revision 1.123 / (download) - annotate - [select for diffs], Wed Apr 22 19:18:06 2009 UTC (15 years ago) by joerg
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

pkg_install-20090422:
Consider EOF during signature scan a fatal error. At the very least, the
package is missing the +CONTENTS file at that point. Correctly reset the
entry pointer in that case and make the meta data extraction stricter,
avoiding NULL dereferences for invalid archives.
Fixes pkg_info -X crash on empty files as reported by Daniel Horecki.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Sat Apr 11 17:38:49 2009 UTC (15 years ago) by spz
Branch: pkgsrc-2009Q1
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Pullup ticket 2732 - requested by joerg
Bug fix

Revisions pulled up:
- pkgsrc/pkgtools/pkg_install/files/add/perform.c	1.85
- pkgsrc/pkgtools/pkg_install/files/lib/version.h	1.121

   Module Name:	pkgsrc
   Committed By:	joerg
   Date:		Mon Apr  6 14:34:15 UTC 2009

   Modified Files:
   	pkgsrc/pkgtools/pkg_install/files/add: perform.c
   	pkgsrc/pkgtools/pkg_install/files/lib: version.h

   Log Message:
   pkg_install-20090406:
   Remove premature return that broke dependency tracking for pkg_add -u.
   Fixes PR 41143.


   To generate a diff of this commit:
   cvs rdiff -u -r1.84 -r1.85 pkgsrc/pkgtools/pkg_install/files/add/perform.c
   cvs rdiff -u -r1.120 -r1.121 pkgsrc/pkgtools/pkg_install/files/lib/version.h

Revision 1.122 / (download) - annotate - [select for diffs], Fri Apr 10 04:03:11 2009 UTC (15 years ago) by reed
Branch: MAIN
Changes since 1.121: +2 -2 lines
Diff to previous 1.121 (colored)

Remove mention to install security/audit-packages (which no longer
exists) and suggest audit capabilities of pkg_admin instead.
Update version.
Regeneration of cat page also caught up with some previous cleanups.

Revision 1.121 / (download) - annotate - [select for diffs], Mon Apr 6 14:34:15 2009 UTC (15 years ago) by joerg
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

pkg_install-20090406:
Remove premature return that broke dependency tracking for pkg_add -u.
Fixes PR 41143.

Revision 1.120 / (download) - annotate - [select for diffs], Thu Mar 26 14:32:39 2009 UTC (15 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base
Branch point for: pkgsrc-2009Q1
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

pkg_install-20090326:
Fix diagnostic message to be less confusing to read.

Revision 1.119 / (download) - annotate - [select for diffs], Mon Mar 9 19:58:45 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.118: +2 -2 lines
Diff to previous 1.118 (colored)

pkg_install-20090309:
Fix a double free. Reported by seb.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Mar 8 14:50:37 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

pkg_install-20090307:
Simplify archive handling by depending on archive_read_finish and the
close callback where needed. Fixes a file descriptor leak as side
effect as reported by wiz.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Mar 2 17:13:49 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.116: +2 -2 lines
Diff to previous 1.116 (colored)

pkg_install-20090302:
Add new option -r to pkg_info, which works like -R, but expands it
recursively.

Revision 1.116 / (download) - annotate - [select for diffs], Mon Mar 2 14:59:14 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored)

pkg_install-20090301:
Plug a number of file descriptor leaks.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Feb 28 16:03:56 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (colored)

pkg_install-20090228:
Integrate the PKG_PATH logic for tightly with the find_archive logic:
- remember initial current working directory from the time PKG_PATH is
  processed, it will be used as reference for all relative entries
- remove now redundant fchdir dance in pkg_add
- pass down to find_archive if this is a top-level package (e.g.
  requested on the command line) or not; the location of top-level
  packages is searched for packages first and for URLs or path names the
  PKG_PATH itself is not processed (e.g. pkg_add foo/bar not look into
  PKG_PATH for bar). This addresses PR 33884 in a different way.
- document the rules for finding packages more explicitly
- allow specifying PKG_PATH in pkg_install.conf as well; environment
  takes precendence.
- remove PKG_PATH related logic in pkg_info(1), it doesn't deal with
  PKG_PATH anyway
- remove PKG_PATH, PKG_TMPDIR and TMPDIR description in pkg_info(1),
  they are no longer used

Revision 1.114 / (download) - annotate - [select for diffs], Thu Feb 26 12:52:43 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.113: +2 -2 lines
Diff to previous 1.113 (colored)

pkg_install-20090226:
Always try to preserve the +PRESERVE file from the old package, even
when the new one has one as well. This fixes the update case for the
special case of pkg_install itself as reported by tron@.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Feb 25 16:29:08 2009 UTC (15 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

pkg_install-20090225:
Rewrite pkg_delete to expand the list of packages to delete first and
reorder it if necessary. It will bail out if it knows in advance that it
can't remove a package. It will also fail for errors while removing one
package, unless forced. Add an option to remove automatically installed
packages that are no longer used.

The pkgviews support is kept, but untested. The error handling for
pkgviews most of all is as weak as before.

Basic review from hubertf@, man page changes by bad@.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Feb 14 17:08:05 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored)

Tag as pkg_install-20090214 in preparation for updating NetBSD current.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Feb 13 01:31:42 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored)

pkg_install-20090213:
Fix pkg_delete -d:
- ignore @dirrm commands, directories are removed already on demand
- use local copy of dir before changing it, the caller expects it
unmodified for the call to pkgdb_remove

Revision 1.110 / (download) - annotate - [select for diffs], Wed Feb 11 23:42:42 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored)

pkg_install-20090212:
Print the error about missing build information even when the
+BUILD_INFO file is missing instead of segfaulting. The problem is from
PR 30276, a solution in the form of just installing it will not be
implemented.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Feb 5 17:22:19 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

pkg_install-20090205:
- Restrict audit related commands to the documented set and/or fix the
  documention.
- Add support for conditional fetch-pkg-vulnerabilities via -u option.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Feb 2 12:35:01 2009 UTC (15 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

Merge pkg_install-20090201 from pkg_install-renovation branch.

- DB support is always included from libnbcompat if needed
- pkg_view and linkfarm are not installed any more; they are not moved
into the attic yet, so they can easily be installed as separte package
- common configuration file to customise the behavior of various
components; this supersedes the old audit-packages.conf
- support for PKSC7 signatures (using X509 certs) and GPG signatures for
packages in a secure way. See pkg_admin(8) for how to create them and
pkg_install.conf(5) for the options to use them
- audit-packages and download-vulnerability-list are wrapper scripts
  around pkg_admin. They try to mimic the classic options if used sanely.
  "pkg_admin audit" is now an order of magnitude faster than before
- pkg_add uses libarchive and libfetch instead of external ftp and tar:
  - progress bar is currently missing for downloads
  - "pkg_add -" is no longer supported
  - no adhoc check for conficts between dependencies and already
    installed packages
  - "pkg_add -s" has been replaced with an option in pkg_install.conf,
    verification of plain detached GPG signatures is no longer supported
  - optional check for vulnerabilities before adding a package
  - if /var and /usr/pkg are on different fileystems it is twice as fast
    now
  - conflicts due to overlapping plists are checked before installation
  - pkg_add no longer plays with the process limits
- pkg_add and pkg_delete have a new destdir option; scripts have to
  either be modified to use PKG_DESTDIR or should be disabled
- pkg_add -u for now can't be used to update to the exact same version
- internal "rm -rf" and "mkdir_p" code
- all memory allocation failures are not explicitly fatal
- if a file is not removed due to a failed checksum, still remove the
  entry from pkgdb

Revision 1.102.2.22 / (download) - annotate - [select for diffs], Mon Feb 2 11:55:16 2009 UTC (15 years, 2 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.21: +2 -2 lines
Diff to previous 1.102.2.21 (colored) next main 1.103 (colored)

pkg_install-20090201:
- sync DESCR and MESSAGE with HEAD and the branch state
- sync Makefile
- regen configure
- cleanup __RCSID
- merge audit logic in pkg_add and pkg_admin into new audit_packages
function. As side effect, pkg_add will list all vulnerabilities before
asking the user whether it should continue
- sort config_variable array

Revision 1.102.2.21 / (download) - annotate - [select for diffs], Tue Jan 27 22:24:06 2009 UTC (15 years, 2 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.20: +2 -2 lines
Diff to previous 1.102.2.20 (colored)

pkg_install-20090127:
Add options to specify user-id and keyrings for GPG operations.

Revision 1.102.2.20 / (download) - annotate - [select for diffs], Thu Jan 8 00:01:31 2009 UTC (15 years, 3 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.19: +2 -2 lines
Diff to previous 1.102.2.19 (colored)

pkg_install-20090108:
pkg_add optionally checks for vulnerable packages and bails out.

Revision 1.102.2.19 / (download) - annotate - [select for diffs], Tue Dec 30 15:55:57 2008 UTC (15 years, 3 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.18: +2 -2 lines
Diff to previous 1.102.2.18 (colored)

pkg_install-20081230:
Add initial support for secure GPG signatures.

Revision 1.102.2.18 / (download) - annotate - [select for diffs], Thu Nov 27 19:24:13 2008 UTC (15 years, 4 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.17: +2 -2 lines
Diff to previous 1.102.2.17 (colored)

pkg_install-20081127:
Correctly deal with short reads from fetchIO_read when loading
pkg-vulnerabilities.

Revision 1.107 / (download) - annotate - [select for diffs], Mon Oct 13 15:54:24 2008 UTC (15 years, 6 months ago) by erh
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4
Changes since 1.106: +2 -2 lines
Diff to previous 1.106 (colored)

Fix strip_txz() so it actually works even when the extension found isn't
 going to be returned.  This fixes some issues with automatic installation
 of dependencies.

Revision 1.102.2.17 / (download) - annotate - [select for diffs], Thu Oct 2 20:51:41 2008 UTC (15 years, 6 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.16: +2 -2 lines
Diff to previous 1.102.2.16 (colored)

Merge time_t fix from HEAD and call it pkg_install-20081003.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Oct 2 20:46:56 2008 UTC (15 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3
Changes since 1.105: +2 -2 lines
Diff to previous 1.105 (colored)

pkg_install-20081002:
Explicitly cast time_t values to long and print them as such.
Reported by bjs@.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Sep 17 15:21:30 2008 UTC (15 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

pkg_install-20080916:
Merge from changes for read_plist from pkg_install-renovation to always
initialize the plist and add append_plist for the one case where this is
not desired. Fixes PR 39276.

Revision 1.102.2.16 / (download) - annotate - [select for diffs], Tue Sep 16 19:03:54 2008 UTC (15 years, 7 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.15: +2 -2 lines
Diff to previous 1.102.2.15 (colored)

pkg_install-20080916:
Quote arguments of @exec and @unexec correctly.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Sep 16 13:32:58 2008 UTC (15 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

20080915:
Merge a number of bugfixes from the pkg_install-renovation branch:
- explicit include of nbcompat/md5.h
- use errx when dealing with libfetch as it doesn't set errno
- avoid optind = 0 as GNUish getopt will reset itself otherwise

Revision 1.102.2.15 / (download) - annotate - [select for diffs], Mon Aug 25 19:15:11 2008 UTC (15 years, 7 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.14: +2 -2 lines
Diff to previous 1.102.2.14 (colored)

pkg_install-20080825:
Fix an inverted test for fake mode. The check stopped +REQUIRED_BY and
friends from being moved to the new package, thereby breaking both the
delete and the dependency tree.

Fix a fexec to fexec_skipempty to silence
pkg_delete: package '' is not installed, /var/db/pkg//+CONTENTS missing
when updating packages with prefix or destdir being set.

Revision 1.102.2.14 / (download) - annotate - [select for diffs], Thu Aug 21 16:04:39 2008 UTC (15 years, 8 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.13: +2 -2 lines
Diff to previous 1.102.2.13 (colored)

pkg_install-20080821:
- Recognize file:// urls to prevent double quoting.
- Fix some err/errx botchups.
- Add configuration options for verbose logging of net IO, enabling of
active FTP (switching to passive FTP as default) and for ignoring proxy
settings.
- When iterating over PACKAGES to find a match, warn if an entry can't
processed (e.g. bad URL).

Revision 1.102.2.13 / (download) - annotate - [select for diffs], Tue Aug 5 22:56:24 2008 UTC (15 years, 8 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.12: +2 -2 lines
Diff to previous 1.102.2.12 (colored)

pkg_install-20080806:
Provide and use internal implementation of rm -rf.

Revision 1.102.2.12 / (download) - annotate - [select for diffs], Tue Aug 5 20:42:54 2008 UTC (15 years, 8 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.11: +2 -2 lines
Diff to previous 1.102.2.11 (colored)

Bump to pkg_install-20080805 for today's chdir related changes.

Revision 1.102.2.11 / (download) - annotate - [select for diffs], Wed Jul 30 15:38:37 2008 UTC (15 years, 8 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.10: +2 -2 lines
Diff to previous 1.102.2.10 (colored)

pkg_install-20080730:
Add destdir installation support for pkg_add and pkg_delete.
This does not chroot install/deinstall scripts, they have to
support it directly (using PKG_DESTDIR) or they have to be disabled.

Revision 1.102.2.10 / (download) - annotate - [select for diffs], Sun Jul 27 16:22:53 2008 UTC (15 years, 8 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.9: +2 -2 lines
Diff to previous 1.102.2.9 (colored)

pkg_install-20080727:
When using the libnbcompat version of getopt, make sure to not use
optind = 0. For GNU getopt compatibility, it does a partial reset.
This fixes PR 39181.

Revision 1.102.2.9 / (download) - annotate - [select for diffs], Fri Jul 18 19:48:41 2008 UTC (15 years, 9 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.8: +2 -2 lines
Diff to previous 1.102.2.8 (colored)

pkg_install-20080718:
Fix OpenSSL usage so that the key usage check can actually work.
Teach pkg_info about signed packages.

Revision 1.102.2.8 / (download) - annotate - [select for diffs], Sat Jul 5 17:26:40 2008 UTC (15 years, 9 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.7: +2 -2 lines
Diff to previous 1.102.2.7 (colored)

pkg_install-20080705:
Based on a discussion with tls@, make the key validation stricter.
Don't allow CA keys for packages or pkg-vulnerabilities.
Require CODE SIGN as key usage attribute for packages.
Require that no key usage attribute is set for pkg-vulnerabilities.
The latter is not finalised and might change again.

Revision 1.102.2.7 / (download) - annotate - [select for diffs], Fri Jun 27 15:25:52 2008 UTC (15 years, 9 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.6: +2 -2 lines
Diff to previous 1.102.2.6 (colored)

pkg_install-20080627:
Restore current directory before processing a package on the command
line to allow installing more than one package with full filename.

Revision 1.102.2.6 / (download) - annotate - [select for diffs], Wed Jun 4 17:28:48 2008 UTC (15 years, 10 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.5: +2 -2 lines
Diff to previous 1.102.2.5 (colored)

pkg_install-20080604:
As reminded by an old make replace commit, keep +INSTALLED_INFO around
for pkg_add -u. Refactor the code a bit.

Revision 1.102.2.5 / (download) - annotate - [select for diffs], Wed Jun 4 11:23:14 2008 UTC (15 years, 10 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.4: +2 -2 lines
Diff to previous 1.102.2.4 (colored)

pkg_install-20080603:
pkg_admin check-signature exits with 0 only if all given packages have a
valid signature.
pkg_add will keep the preserve state of a package when updating.

Revision 1.102.2.4 / (download) - annotate - [select for diffs], Mon May 26 15:29:03 2008 UTC (15 years, 10 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.3: +2 -2 lines
Diff to previous 1.102.2.3 (colored)

pkg_install-20080526:
Add pkg_install.conf.5 man page from Thomas Klausner, reference it from
pkg_add and pkg_admin. Fix a build issue for the !SSL case.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Sat May 24 21:54:22 2008 UTC (15 years, 10 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.2: +2 -2 lines
Diff to previous 1.102.2.2 (colored)

pkg_install-20080524:
Stop installation the pkg_view and linkform script as part of
pkg_install. They are the only remaining user of the pax dependency.
This was discussed was agc@ and the consensus is that if someone really
wants them, they should be pulled into a separate less essential
package.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Fri May 23 15:57:04 2008 UTC (15 years, 10 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102.2.1: +1 -7 lines
Diff to previous 1.102.2.1 (colored)

Merge license changes from the HEAD.

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sun May 11 20:20:38 2008 UTC (15 years, 11 months ago) by joerg
Branch: pkg_install-renovation
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

Add support PKCS7 signatures in packages and pkg-vulnerabilities.
The support for non-native OpenSSL still needs to be done, e.g.
ensure static linkage for that. Documentation is essentially missing.

Revision 1.103 / (download) - annotate - [select for diffs], Thu May 8 15:30:38 2008 UTC (15 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkg_install-renovation-base, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.102: +1 -7 lines
Diff to previous 1.102 (colored)

2-clause my license.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Apr 23 16:58:07 2008 UTC (15 years, 11 months ago) by joerg
Branch: MAIN
Branch point for: pkg_install-renovation
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored)

pkg_install-20080423:
Make the linkresolver code more robust.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Apr 22 13:47:08 2008 UTC (16 years ago) by joerg
Branch: MAIN
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)

pkg_install-20080422:
Make use of the linkresolver from libarchive and thereby fix the
permissions of hardlinks in archives.  This wasn't a problem so far
as nbpax is (incorrectly) ignoring the permissions of the other entries.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Apr 16 00:53:06 2008 UTC (16 years ago) by joerg
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

pkg_install-20080415:
Add audit-history subcommand for pkg_admin, that lists all known
vulnerabilities for a given base package name. E.g. if you run a web
server, don't run "pkg_admin audit-history php" before going to bed.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Apr 7 13:07:14 2008 UTC (16 years ago) by joerg
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)

pkg_install-20080407:
Add command to print effective value of configuration variables.
Remove FETCH_CMD variable from pkg_admin, it is not used.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Apr 4 15:21:32 2008 UTC (16 years ago) by joerg
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

pkg_install-20080404:
Switch pkg_info to use libfetch for remote access.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Mar 13 16:35:31 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

pkg_install-20080313:
Audit functionality for pkg_admin. This uses the backend in
libpkg_install and will be extended to check for vulnerabilities at
pkg_add time later.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Mar 11 18:01:35 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

pkg_install-20080311:
If the package db directory doesn't exist, handle it like an empty
pkgdb and just return.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Mar 9 18:03:46 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored)

pkg_install-20080309:
- When loading meta data for a package and a file is needed for the
  current operation and is a required file, complain.
- Include the name of the package the meta data could not be loaded
  from.

This addresses PR 38166.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Feb 22 21:58:16 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

pkg_install-20080223:
Redo the check for incomplete packages by annotating which meta data
field are required and count which were found during reading the binary
package. The original approach didn't work as loads from pkgdb are
reduced to the minimal set.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Feb 22 15:53:52 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored)

pkg_install-20080222:
Free libarchive's side of the package before closing the file descriptor.
This stops leaking up to 1MB / package when using bzip2 and addresses
PR 38082. Check that at least +COMMENTS, +CONTENTS and +DESC can be
extracted, otherwise skip the entry. This stops pkg_info -X from dumping
core on non-package files.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Feb 19 15:16:24 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

pkg_install-20080219:
Add new parser for pkg_vulnerabilities, that handles decompress
transparently and internally. Preliminary tests with a modified
audit-packages show a speed increase by 2 for common operations
like listening all vulnerable installed packages.

Revision 1.91 / (download) - annotate - [select for diffs], Thu Feb 7 23:40:52 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

pkg_install-20080208:
Explicitly check in show_var that the buffer is non-NULL.
This can stops pkg_info -Q foo from segfaulting for explicitly
installed packages. Reported by Stoned Elipot.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Feb 4 14:03:10 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

pkg_install-20080204:
Try to remove all +* files from the pkgdb first. If the log directory is
not empty afterwards, be noisy, but try rm -rf on it for the force case.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Feb 2 16:21:46 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

pkg_install-20080202:
Convert pkg_info to use libarchive instead of tar for binary package
handling. As a side effect pkg_info on remote packages will use
one FTP instance per argument, but will try to fetch only the meta data.
This reduces time for pkg_info -X on a full binary repository from 36.9s
to 18.1s for the cache hot case (PKG_TMPDIR on tmpfs for the old
pkg_info). Thanks to tnn@ for testing.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jan 26 23:30:24 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

pkg_install-20080126: Make pkg_add pass down -I and -m when recursively
adding packages.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Dec 23 23:58:27 2007 UTC (16 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

Prepare for update of NetBSD and pkgsrc-2007Q4 by tagging current state
as 20071224. Changes include:
- better diagnostic for conflicting packages
- explicitly check already installed packages for conflicts with
to-be-installed package
- document pkg_admin rebuild-tree in usage
- man page fixes
- forcefully remove pkgdb entries (needed for user-usage in some cases)

Revision 1.86 / (download) - annotate - [select for diffs], Thu Nov 8 23:24:56 2007 UTC (16 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

Don't use the build time version to find packages, we want to pick up
the newest version. Bump version to 20071109.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Nov 8 19:39:42 2007 UTC (16 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

Bump version or revision of all packages that have a runtime dependency
on gzip.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Nov 3 13:54:14 2007 UTC (16 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

Tag pkg_install as 20071103.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Sep 27 13:30:28 2007 UTC (16 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

- Be less aggressive when resizing the version field, just resize if
  the old size is not enough. Fixes PR 37031.
- Disable dependency tracking in libarchive build. Supposed to address
  PR 36953.

Bump version to 20070927.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Sep 16 19:03:52 2007 UTC (16 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

Fix a major memory leak in Dewey that existed sine ~forever.
This was made a lot more critical with the changes to use the iteration
API, as that is running a lot more Dewey comparisions.

Thanks to adrianp and wiz for the reports.

Bump to 20070916.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Sep 11 14:55:52 2007 UTC (16 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Bump to 20070911 for pkg_add -u fixes.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Aug 29 15:42:39 2007 UTC (16 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

* When adding or checking a package using pkg_admin(1), give a more
  meaningful warning if the file is a symlink whose target doesn't exist.
  The message has now been changed from:

    pkg_admin: netbsd32_compat30-extras: File `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' is in +CONTENTS but not on filesystem!

  to:

    pkg_admin: Symlink `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' exists and is in +CONTENTS but target does not exist!

* Pass values for --sysconfdir (and --prefix) to the configure script
  instead of passing them through CPPFLAGS.  Both SYSCONFDIR and PREFIX
  are only used by audit-packages, and the audit-packages Makefile
  already handles passing these values inherited from the configure
  script.  This avoids compiler warnings that, e.g. SYSCONFDIR has been
  redefined on the command line.

* Fix quoting for arguments to the configure script -- :Q instead of
  \"\".

Bump version to 20070828.  Reviewed by <joerg>.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Aug 21 07:11:42 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

When looking for a package with a wildcard pattern, don't add the
suffix. find_best_matching_file does that already and doing it twice
is actually counterproductive. Bump to 20070821.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Aug 14 22:47:52 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

Add new option -m to pkg_add. This allows to override MACHINE_ARCH
for the purpose of installing a package and enables cross-compiled
pkgsrc to not use -f all the time.

Bump version to 20070815.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Aug 12 22:09:02 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

pkg_admin: when retrying with a wildcard pattern, use the computed
pattern and not the base name.
pkg_info: add -E option to return the best matching installed package.

Bump to 20070813.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Aug 12 16:47:19 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

- Introduce find_best_matching_file and match_local_files. This replace
  the functionality offered by findmatchingname and findbestmatching
  name. They optionally strip the suffix from the filename before
  matching it, instead of modifying the pattern directly.
  Drop the old functions.
- Fix a bug in pkg_order where the version strings where inverted
- Make pkg_admin lsbest and lsall use the new functions.
- Make ftpio use pkg_order directly.

Bump version to 20070812.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Aug 10 21:18:32 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

Add "rebuild-tree" command to pkg_admin. It recomputes the dependencies
and builds the +REQUIRED_BY files from that.

Bump to 20070810.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Aug 9 18:03:38 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

Fix segmentation fault when the package has no variables set and
no info file. Patch from Dieter Baron in pkg/36741.
Bump version to 20070809 for today's fixes.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 8 22:33:40 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

Replace note_whats_installed, add_to_list_fn and generally most
users of findbestmatchingname and findmatching name with more
descriptive and easier to use iterator functions. This functions
are a first step to abstract away pkgdb layout from most parts of
the code. It also helps to reduce side effects and point out potential
bugs in this code.

Fix a potential, but practically irrelevant buffer overflow.

No longer allow symbolic links directly in pkgdb to store the meta
data of individual packages outside. E.g. /var/db/pkg/atk-1.18.0
must be a directory and not point to it. This is not yet enforced in
all parts of the code, more changes will follow.

Bump version to 20070808.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Aug 5 14:58:49 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

Correctly handle ordering NULL -- this greatly simplifies using it
in iteration functions. Fix a major thinko that prevented the actual
order rules from being used. Bump to 20070804.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Aug 3 13:16:00 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

- only build pkg_admin, pkg_create and pkg_info for --enable-bootstrap
- for pkg_create, split-off the package creation from the plist
  processing. package creation is disabled for --enable-bootstrap
- change package creation to use libarchive
- add two options (-u and -g) to override file system ownership
- pkg_create now creates files in the tarball with correct owner/group
  based on -u/-g or @owner/@group
- add a function to compute the +CONTENTS file in memory

Bump version to 20070802.
Review of a slightly older version by jlam@

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jul 30 08:09:15 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Remove first obstactle in pkg_add for switching to libarchive:
MASTER/SLAVE mode is gone now.

Bump version to 20070730.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jul 25 15:01:47 2007 UTC (16 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Mostly deorbit mtree support:
- pkg_create bails out with -m
- pkg_add ignores mtree specs in packages and prints a warning.
  It does not remove the file like before.
- remove now obsolete documentation.

pkg_info still prints the information and pkg_admin ignores the files.
Make the dependency on the tools a runtime dependency.
Take maintainership of pkg_install and bump version to 20070725.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sat Jul 21 01:19:08 2007 UTC (16 years, 9 months ago) by salo
Branch: pkgsrc-2007Q2
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Pullup ticket 2142 - requested by joerg
remove PKG_TOOLS_PREFIX handling from bootstrap tools

Revisions pulled up:
- pkgsrc/pkgtools/mtree/Makefile				1.22
- pkgsrc/pkgtools/mtree/Makefile.common				1.3
- pkgsrc/pkgtools/pax/Makefile					1.15
- pkgsrc/pkgtools/pkg_install/Makefile				1.131
- pkgsrc/pkgtools/pkg_install/files/lib/version.h		1.65
- pkgsrc/pkgtools/tnftp/Makefile				1.3

   Module Name:		pkgsrc
   Committed By:	joerg
   Date:		Tue Jul 10 15:19:18 UTC 2007

   Modified Files:
   	pkgsrc/pkgtools/mtree: Makefile Makefile.common
   	pkgsrc/pkgtools/pax: Makefile
   	pkgsrc/pkgtools/pkg_install: Makefile
   	pkgsrc/pkgtools/pkg_install/files/lib: version.h
   	pkgsrc/pkgtools/tnftp: Makefile

   Log Message:
   Remove PKG_TOOLS_PREFIX handling for mtree, pax, pkg_install and
   tnftp. Modifying files and possibly removing them from the base system
   is doing more harm than use. Bump revision or version of each
   package.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jul 20 22:22:53 2007 UTC (16 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Split pattern related functions from lib/str.c off into lib/opattern.c.
Rename pmatch to pkg_match and add new function pkg_order that
implements the order logic used by pkg_add internally.

Change the interface of findmatchingname's callback to take the pattern
used for the matching as first argument. The new pkg_order function
takes it and it doesn't hurt in other cases. Adjust callers and
corresponding callbacks accordingly.

Remove an unused matchfn typedef in dewey.c.

Bump to 20070720. OK jlam@

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jul 14 22:57:15 2007 UTC (16 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Merge 1.75 of lib/ftpio.c from NetBSD:

When fixing vsftpd, other FTP server were broken as they return
different error codes for unmatching glob patterns. Basically ignore the
error code and just try the other pattern. chdir errors are still
considered fatal.

Bump version to 20070715.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Jul 14 20:19:48 2007 UTC (16 years, 9 months ago) by adrianp
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

Bump pkg_install

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jul 10 15:19:18 2007 UTC (16 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Remove PKG_TOOLS_PREFIX handling for mtree, pax, pkg_install and
tnftp. Modifying files and possibly removing them from the base system
is doing more harm than use. Bump revision or version of each
package.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Apr 16 12:55:35 2007 UTC (17 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q2-base
Branch point for: pkgsrc-2007Q2
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Sync with NetBSD base:
Some FTP server don't expand [] in NLIST, most noticable is vsftpd.
Avoid this by splitting the wildcard search pattern into two commands.
Sync some other minor changes.

Bump to 20070416.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Mar 11 22:05:03 2007 UTC (17 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Sync with NetBSD base version:
- obsolete support for require scripts
- nuke support for the following options of pkg_create:
  -X (excludefile)
  -r (require script)
  -h (Force follow symlink)
- add option for pkg_create to specify additional @blddep packages.

This brings us to version 20070308.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Nov 3 09:35:14 2006 UTC (17 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2006Q4-base, pkgsrc-2006Q4
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Merge add/extract.c, rev 1.39:
  If a plist contains @owner or @group entries and first rename failed,
  pushout was called with NULL argument. This has the semantic of using a
  working directory of "/", even though already read plist entries are
  relative to prefix. The calls to chown and chgrp therefore end up with
  the wrong arguments for the current directory. To compensate for this,
  don't pushout the first time. As plists are not supposed to have
  multiple @cwd entries anymore, this could most likely be simplified, but
  that is outside the scope of this commit.

Merge lib/plist.c, rev 1.51:
  When processing symlinks in pkg_delete and the call to readlink failed,
  it often helps to know why, so use warn instead of warnx.

Bump version to 20061103.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jul 20 11:29:48 2006 UTC (17 years, 9 months ago) by gson
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Import the following change to add/perform.c from src to pkgsrc:

 Fix uninitialized variable which was causing pkg_add -u to randomly
 dump core.  This may fix PR pkg/30292.

Also bump the pkgsrc PKGTOOLS_VERSION to 20060720.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jul 1 19:37:25 2006 UTC (17 years, 9 months ago) by dillo
Branch: MAIN
CVS Tags: pkgsrc-2006Q2-base, pkgsrc-2006Q2
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Pull across from source:
Fix pkg_info -Q on binary packages; noted by rillig.
Bump version to 20060701.

Okayed during freeze by wiz.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Apr 24 13:52:05 2006 UTC (17 years, 11 months ago) by dillo
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Sync with src, version 20060424:
	Add support for creating summary file containing all information
	about a package repository needed by package managing software.
	This allows better use of remote binary package repositories.

	Discussed on tech-pkg.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Apr 18 20:41:45 2006 UTC (18 years ago) by hubertf
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Sync with NetBSD's src/usr.sbin/pkg_install Version 20060418,
mostly for the timeout fix in ftpio.c.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 6 06:49:30 2006 UTC (18 years ago) by reed
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Welcome to version 20060405.

pkg_add also check for USE_ABI_DEPENDS.

Check if USE_ABI_DEPENDS or IGNORE_RECOMMENDED was set
when this package was built. IGNORE_RECOMMENDED is now historical.

For the cat man page, I manually made it say "pkgsrc" instead of
"NetBSD".

I committed to NetBSD's src/usr.sbin/pkg_install/ first :)

Revision 1.56 / (download) - annotate - [select for diffs], Tue Apr 4 06:38:29 2006 UTC (18 years ago) by wiz
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Bump date, so that version in src and pkgsrc have the same
version _and_ the same code.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Mar 13 22:08:22 2006 UTC (18 years, 1 month ago) by erh
Branch: MAIN
CVS Tags: pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Fix -uu handling so recursive updates of already installed packages work,
even if the initial package to install isn't installed yet.
Bump the version to 20060313.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jan 25 00:20:09 2006 UTC (18 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Add conditional code to ignore the non-numeric part of an OS version
for the sake of compatibility tests in pkg_add.
E.g. DragonFly versions like
        1.4.0-RELEASE
are reduced to
        1.4.0

This code is currently enabled for DragonFly only.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jan 4 23:33:23 2006 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Handle newer versions of Berkeley DB. Our algorithm is:

- if you have > db1 the probably you have db_185.h which means
  that dbopen is really __db185_open, and we'll prefer that.
- else if you have db1, then you have db1/db.h and dbopen
- else if you have db.h, then this is either the one from db1 and it will
  work with -ldb having dbopen, or it will not.

Note that the compatibility option on __db185_open() will actually not create
or update db1.85/1.86 files, but it will use the current format of the db
library. This compatibility layer is source code only.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Nov 22 15:44:59 2005 UTC (18 years, 5 months ago) by ben
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Reduce the use of the system() function in pkg_install to avoid quoting
problems.  Instead, use exec*() functions.

Replace PUSHOUT() macro and string buffers with a function that
operates on data structures.

If it is necessary to copy files into place from staging area, then use
pax to copy them.

Add functions in pexec.c to create a pipe for sending data to a child
process.  Replace pipe code in create/perform.c with these functions.
Use these functions instead of command-line arguments when copying files
into place from staging area.

Three system() references remain: @exec, @unexec, and vsystem().

Revision 1.51 / (download) - annotate - [select for diffs], Mon Nov 14 09:42:39 2005 UTC (18 years, 5 months ago) by dillo
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Sync with src/usr.sbin/pkg_install:

Fix first part of PR 32068: pkg_info -Q broken for local binary packages
        Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
Bump version.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Nov 7 23:51:14 2005 UTC (18 years, 5 months ago) by dillo
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Update to 20051107: Fix pkg_info -B against binary packages.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Nov 5 13:20:09 2005 UTC (18 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

Sync with base system as of Sat Nov  5 13:19:32 UTC 2005.
Welcome to 20051103!
Now with "automatic" support.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Oct 30 21:27:47 2005 UTC (18 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jul 18 09:14:04 2005 UTC (18 years, 9 months ago) by hubertf
Branch: MAIN
CVS Tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Sync over files from src/usr.sbin/pkg_install to fix PR pkg/30658:
Warn, but don't error out on pkgs that were built with IGNORE_RECOMMENDED.

Bump version to 20050718.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jun 10 01:37:21 2005 UTC (18 years, 10 months ago) by dmcmahill
Branch: MAIN
CVS Tags: pkgsrc-2005Q2-base, pkgsrc-2005Q2
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

add autoconf test for missing (like in openbsd-3.6) or broken (like
in AIX-4.3.2) PRIu64.  If it is missing or broken, provide one.  Should
address PR30375.  Welcome to pkg_install-20050607

Revision 1.45 / (download) - annotate - [select for diffs], Mon May 30 13:23:32 2005 UTC (18 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Update to 20050530:
Sync with base system: Ranges support and some other stuff that wasn't
pulled over.

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 29 19:20:53 2005 UTC (18 years, 10 months ago) by minskim
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Sync with 20050529 in src/.

If a pattern does not have any suffix, assume that it matches both
".tbz" and ".tgz".  This allows to install binary package dependencies
that are not exact matches, but satisfy requirements.

Revision 1.43 / (download) - annotate - [select for diffs], Sat May 28 02:50:46 2005 UTC (18 years, 10 months ago) by dmcmahill
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

- pull in the changes from usr.sbin which prevent an over flow
  of a 32 bit signed number when pkg_add-ing a binary package
  file larger than 512 Mb.

- Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050527

Revision 1.42 / (download) - annotate - [select for diffs], Sun Mar 20 15:55:54 2005 UTC (19 years, 1 month ago) by hubertf
Branch: MAIN
CVS Tags: pkgsrc-2005Q1-base, pkgsrc-2005Q1
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Address PR pkg/24744 by Jarmo Jaakkola <jarmo.jaakkola@iki.fi>:
 * ftp.fi.netbsd.org returns "257" in return to a "cd" command, accept that
   (in addition to 250 and 550). Seems to be allowed per RFC 959.
 * Make buffer for reply bigger (not too big, as it may hit performance).
 * Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050318

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Feb 15 13:59:21 2005 UTC (19 years, 2 months ago) by salo
Branch: pkgsrc-2004Q4
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pullup ticket 272 - requested by Robert T. Retzlaff
pkg_add preserve modes of entries in binary packages

Revisions pulled up:
- pkgsrc/pkgtools/pkg_install/files/lib/ftpio.c   1.14
- pkgsrc/pkgtools/pkg_install/files/lib/version.h 1.39

   Module Name:    pkgsrc
   Committed By:   agc
   Date:           Fri Jan  7 11:58:12 UTC 2005

   Modified Files:
           pkgsrc/pkgtools/pkg_install/files/lib: ftpio.c version.h

   Log Message:
   Sync changes with src/:

   + extract files on ftp pkg_adds with the 'p' flag to tar, to preserve
     modes of entries in the binary package.  (Addresses PR 28826 from
     Tyler Retzlaff)

   Bump version to 20050106

Revision 1.41 / (download) - annotate - [select for diffs], Thu Feb 10 23:51:18 2005 UTC (19 years, 2 months ago) by grant
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

pull in binary pkg handling changes from src:

rework pkg_info(8) operating on binary packages, deprecating the `-.'
argument as it is no longer required (but is retained as a no-op for
backward compatibility).

the behaviour is now what is expected and intended:

        - when the pkg argument is path (absolute or relative) to a
          binary pkg, pkg_info operates on it.
        - when no pkg argument is given, or the argument is not a
          binary pkg path, pkg_info operates on the installed packages.

`pkg_info foo-1.0.tgz', `pkg_info /path/to/foo-1.0.tgz', etc. now work
correctly when foo-1.0.tgz is in the cwd.

bump PKGTOOLS_VERSION to 20050210.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 4 09:10:13 2005 UTC (19 years, 2 months ago) by jlam
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Update pkgtools/pkg_install to 20050204 (latest release from the HEAD
branch of src).  Changes from version 20050106:

  Teach pkg_add(1) and pkg_delete(1) to pass PKG_METADATA_DIR and
  PKG_REFCOUNT_DBDIR in the environment when running the +* scripts.
  PKG_METADATA_DIR is the location of the +* files after the package is
  registered.  PKG_REFCOUNT_DBDIR is the location of the reference counts
  database directory.  If PKG_REFCOUNT_DBDIR is left unset, then it
  defaults the the location of the package database directory with
  ".refcount" appended to the path, e.g. /var/db/pkg.refcount.

  pkgviews users should explicitly set PKG_REFCOUNT_DBDIR in the shell
  environment to ensure that all packages will use the same refcount
  database.

  These changes allow the +INSTALL and +DEINSTALL script to keep state
  in +* files within ${PKG_METADATA_DIR}, and to store reference counts
  in ${PKG_REFCOUNT_DBDIR} to handle usage of resources outside of
  ${LOCALBASE}.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 7 11:58:12 2005 UTC (19 years, 3 months ago) by agc
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Sync changes with src/:

+ always echo the command which is about to be executed during a pkg_add
  or pkg_delete, not just when verbose mode is on.

+ extract files on ftp pkg_adds with the 'p' flag to tar, to preserve
  modes of entries in the binary package.  (Addresses PR 28826 from
  Tyler Retzlaff)

Bump version to 20050106

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 29 12:16:56 2004 UTC (19 years, 3 months ago) by agc
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Pull in portability changes from src, and bump version to 20041226:

	Introduce a new abstraction in the C code, called MaxPathSize.  All
	previous occurrences of MAXPATHLEN and FILENAME_MAX have been changed
	to use MaxPathSize instead.

	If MAXPATHLEN is not defined, then assume a default value of 1024
	(this is primarily for use on the Hurd).

	The reason for this is that some older platforms define FILENAME_MAX
	to be 14, although MAXPATHLEN is 1024. On BSD-derived systems,
	FILENAME_MAX And MAXPATHLEN are both 1024.

	Bump pkg_install version to 20041226.

	These modifications have been tested so far on a NetBSD-current bulk
	build.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Dec 10 21:14:40 2004 UTC (19 years, 4 months ago) by erh
Branch: MAIN
CVS Tags: pkgsrc-2004Q4-base
Branch point for: pkgsrc-2004Q4
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Document the double "-u" option for updating dependant packages.
Bump the version to 20041210.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Nov 10 16:50:39 2004 UTC (19 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Recognize "pre" as pre-release version. Bump version to 20041110.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 2 00:10:15 2004 UTC (19 years, 5 months ago) by erh
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Add a -N option to pkg_delete to delete registration information for a package
but not its files.
Override PKG_DELETE when building this package so -N can be used to
upgrade an existing install.
Bump version to 20041101.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Oct 31 02:48:12 2004 UTC (19 years, 5 months ago) by grant
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

sync with src:

don't explicitly call gunzip, just pass the right arguments to tar.

fixes package decompression on Solaris where gunzip is not available
(but gzip is), and also decompression of bzip2 packages on non-NetBSD.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 20 20:09:53 2004 UTC (19 years, 8 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2004Q3-base, pkgsrc-2004Q3
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Update pkgtools/pkg_install to 20040813 (latest release from the HEAD
branch of src).  Changes from version 20040730 include:

Modify pkg_info so that it will only print information on uninstalled
binary packages in the current working directory if -. is given on
the command line. If no -. is given, pkg_info will look for its
information in the ${PKG_DBDIR}.  This addresses a long-held gripe on
the part of a number of people, including myself (agc), which completely
violated the POLS.

Add a -q switch to pkg_admin, which allows it to work in a quiet
manner.  Fixes the change request in PR 26583, but in a different
manner, preserving existing behaviour and making the new behaviour
dependent upon a command line option.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Aug 6 16:57:03 2004 UTC (19 years, 8 months ago) by jlam
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Sync with version 20040730 from src/usr.sbin/pkg_install on the HEAD:

> Re-work the code which checks the recorded build versions of a binary
> package to make pkg_add work properly when no +BUILD_INFO file exists.
>
> Modify the return value from read_buildinfo() to return 1 for success
> and 0 for failure.
>
> Use symbolic constants, rather than integers.
>
> If we can't read the build information, always tell of this fact.
>
> Bump version to 20040730
>
> Addresses PR 26429; a different version of these mods were verified to
> allow a +BUILD_INFO-less binary package to be added by Martin Husemann.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 1 17:32:21 2004 UTC (19 years, 10 months ago) by minskim
Branch: MAIN
CVS Tags: pkgsrc-2004Q2-base, pkgsrc-2004Q2
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Import 20040601.
  - Handle symlinks in a view correctly.
  - Remove superfluous escapes in BRE.

This closes PR pkg/24190.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 8 14:51:23 2004 UTC (19 years, 11 months ago) by jlam
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Import pkg_install-20040508.  Fixes the -N flag to not cause the -Q
codepath to be executed by correcting the SHOW_* macro definitions.  Also
fix up some function prototypes so this builds with -Wall.  Fixes from
pkg/25494.

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 7 16:40:41 2004 UTC (19 years, 11 months ago) by jlam
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Import pkg_install-20040507 from src/usr.sbin/pkg_install:

Add a new flag -Q (for "query") to pkg_info(1) to query the build
information for the definitions of specific variables that were saved
from build time, e.g.

	$ pkg_info -Q PKGPATH glib
	devel/glib
	$ pkg_info -Q PROVIDES glib
	/usr/pkg/lib/libglib.so.13
	/usr/pkg/lib/libgmodule.so.13
	/usr/pkg/lib/libgthread.so.13

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 28 15:38:17 2004 UTC (19 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

20040428: In pkg_add, set the umask nice and early, and remove an absolute
setting of mode in a mkdir command.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 21 20:11:55 2004 UTC (20 years ago) by tv
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Sync to 20040421: fix an uninitialized array member access in pkg_add.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 11 06:56:11 2004 UTC (20 years ago) by rh
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Update pkg_install to 20040411, pulling up the changes in the NetBSD source
tree:

Make pkg_add recognise binary packages built with ignored recommendations
(IGNORE_RECOMMENDED set in the presence of RECOMMENDED pre-requisites).
This change is fully backward-compatible: binary packages have set the
corresponding BUILD_INFO since RECOMMENDED was implemented.  Packages
built before that time will install as before.
Bump PKGTOOLS_VERSION to 20040411.
This closes PR pkg/24712 by Thomas Klausner.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 9 18:38:12 2004 UTC (20 years ago) by tv
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Merge 20040409: Parameterize the umask calls so that defs.*.mk can change
it on a per-opsys basis (and so that mk.conf can override it to match what
the pkgsrc builder is using).

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 30 15:28:08 2004 UTC (20 years ago) by tv
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Sync with 20040330.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 7 10:37:53 2004 UTC (20 years, 2 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2004Q1-base, pkgsrc-2004Q1
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

sync with NetBSD-current's pkg_install from 20040207.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 14 23:55:29 2004 UTC (20 years, 3 months ago) by jlam
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Update pkgtools/pkg_install to 20040114.  Changes from version 20040106
include:

* use ${MACHINE_ARCH} instead of what uname() puts into utsname.machine.
  the former represents the CPU architecture, which is what is recorded
  in binary packages; also allow the OS name to be overridden, as pkgsrc
  doesn't always use the value of utsname.sysname.

* allow adding depoted packages if another package with the same
  ${PKGBASE} is already installed as this is explicitly allowed for in
  pkgviews.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jan 6 15:53:41 2004 UTC (20 years, 3 months ago) by hubertf
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

pkg_install now prints post-install message by default, if available.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 4 01:49:38 2004 UTC (20 years, 3 months ago) by hubertf
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

In the "quick depends pre-scan", first print all bad matching depends,
then exit (instead printing one conflicting pkg/version on each run).

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 20 04:23:05 2003 UTC (20 years, 4 months ago) by grant
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Sync pkgtools/pkg_install with src/usr.sbin/pkg_install from 20031220.
New features include OS/arch/version checking and a large speed
improvement to pkg_info.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 8 13:50:50 2003 UTC (20 years, 4 months ago) by grant
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Sync pkgtools/pkg_install with src/usr.sbin/pkg_install from 20031121.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 29 23:00:28 2003 UTC (20 years, 5 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2003Q4-base, pkgsrc-2003Q4
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Sync pkgtools/pkg_install with src/usr.sbin/pkg_install from 20031003.
New features include fetching binary packages using HTTP (thanks wiz!)
and some minor speed optimizations for pkg_delete.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Sep 23 07:13:54 2003 UTC (20 years, 7 months ago) by grant
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

sync with NetBSD-current's pkg_install-20030923.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 14 04:58:32 2003 UTC (20 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Update pkg_install to 20030914.  Changes from version 20030913 are
ensuring that recursive pkg_delete'ing works by using the correct
pkg_dbdir to find packages.  This fixes recursive deleting if the
-K flag is passed to pkg_delete(1), and the named dbdir differs from
the default dbdir (/var/db/pkg).

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 13 09:24:22 2003 UTC (20 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Update pkg_install to 20030913.  Changes from version 20020912 are quieting
the file removal when deleting linkfarms if the expected file doesn't
exist.  Since the symlink isn't there, the mission is already accomplished,
so why bother with the warning?

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 13 05:50:26 2003 UTC (20 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

Update pkg_install to version 20030912.  Changes from 200230907 are
adding two new options to pkg_admin(1) to simply using this utility to
list the bare package names that match patterns when looking in PKG_DBDIR:

      -b      Print only the basenames when matching package names for
              lsall and lsbest.

      -d lsdir
              Set lsdir as the path to the directory in which to find
              matching package names for lsall and lsbest.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 9 13:34:21 2003 UTC (20 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Bump version to 20030907.  Changes from previous version include:

    * Teaching pkg_add(1) to be smarter about how to add a depoted packge.

    * "pkg_delete foo" only deletes foo if it's a unique package.

    * Make "pkg_delete -O foo" for delete file entries for foo from
      pkgdb.byfile.db actually work.

    * Teach pkg_admin(1) two new commands "add" and "delete" for working
      with pkgdb.byfile.db.

    * pkg_view(1) uses the new pkg_admin(1) commands to keep the
      pkgdb.byfile.db files consistent in each view.

    * Man page fixes.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 3 14:06:00 2003 UTC (20 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Update to pkg_install-20030824.  Changes from the previous version include:

    * Check for errors in reading from the file descriptor for the ftp
      process, and correct the error messages.

    * Nuke some code for older NetBSDs that's better handled in
      pkgtools/libnbcompat.

    * Don't prevent user from using views other than the default view.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 1 16:27:16 2003 UTC (20 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Update pkg_install to 20030823, which has the changes to support
package views.  Pkgsrc changes include:

* Convert to use pkgtools/libnbcompat so that it's easier to keep
  this in sync with src/usr.sbin/pkg_install.

* Add a src2nbcompat script that converts src/usr.sbin/pkg_install
  into an appropriate start for pkgtools/pkg_install.  The script
  removes the Makefiles, adds CPP inclusion guards around each
  #include <...> line, and includes <nbcompat.h> at the top of each
  *.c file.  This should make it even easier to keep sources in
  sync with the HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 23 10:27:40 2003 UTC (21 years ago) by seb
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Update to version 20030423 via patch from src/usr.sbin/pkg_install.

>Log Message:
>pkg_add fix:
>When doing quick pre-check if any conflicting dependencies are installed
>and a dependency is not found installed do not try to search for a wildcarded
>(-[0-9]* suffix) package if the dependency was already wildcarded.
>
>This prevent something like 'p5-Net-DNS-0.33' reported as an already
>installed version of 'p5-Net-[0-9]*' as a dependency.
>Before this fix 'p5-Net-[0-[0-9]*' would have been incorrectly searched for.
>
>Reviewed by hubertf@.
>
>Bump PKGTOOLS_VERSION to 20030423.
>
>
>To generate a diff of this commit:
>cvs rdiff -r1.81 -r1.82 src/usr.sbin/pkg_install/add/perform.c
>cvs rdiff -r1.26 -r1.27 src/usr.sbin/pkg_install/lib/version.h

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 17 14:00:55 2003 UTC (21 years ago) by grant
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

sync with bootstrap and -current:

- pkg_admin getcwd() fix.
- pkg_delete checksum mismatch warning.
- crank PKGTOOLS_VERSION.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 11 14:40:37 2003 UTC (21 years ago) by grant
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

catch up to bootstrap.

bump PKGTOOLS_VERSION to 20030411.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 29 18:41:57 2003 UTC (21 years ago) by jschauma
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Synch with main sources:

Changes by hubertf and seb; these changes tested on NetBSD, Linux and Irix.

Modified Files:
	src/usr.sbin/pkg_install/add: perform.c pkg_add.1

Log Message:
Implement remaining TODO item in pkg upgrade (pkg_add -u):
* Upgrade step 1/4: Check if the new version is ok with all pkgs
* (from +REQUIRED_BY) that require this pkg

Inspired by bsd.pkg.mk's upgrade(?) target.

Modified Files:
	src/usr.sbin/pkg_install/admin: main.c
	src/usr.sbin/pkg_install/info: main.c perform.c

Log Message:
Consistently check findmatchingname() return value for error condition.
Among other this fixes 'pkg_info -e whateverpkg' exit status when
/var/db/pkg is missing: it is now 1 and not 0.

Modified Files:
	src/usr.sbin/pkg_install/lib: version.h

Log Message:
Bump to "20030325" after today's changes from seb and me

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 16 19:44:10 2003 UTC (21 years, 1 month ago) by jschauma
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Sync with main sources:

Date:           Sat Mar 15 20:49:27 UTC 2003
Introduce a pkgdb_dump() function, which dumps the cache file of
(filename, package) pairs.
Modify calling functions to use pkgdb_dump() directly, rather than
sequences of
	pkgdb_open
	{ pkgdb_iter, pkgdb_retrieve }
	pkgdb_close
calls.
Remove the now unnecessary pkgdb_iter function.

Date:           Sat Mar 15 20:50:15 UTC 2003
Bump version string for pkgdb_dump changes.

Date:           Sat Mar 15 20:54:26 UTC 2003
Catch one more place that could result in Current not being set properly
(and thus in the execution of "rm -fr /") if ^C is pressed at the wrong time.
See also PR 19436.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 11 16:42:07 2003 UTC (21 years, 2 months ago) by grant
Branch: MAIN
CVS Tags: netbsd-1-6-1-base, netbsd-1-6-1
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

belatedly sync with src:
Allow '%D' to be used when no last_file available. Fixes binary package
installation of gnome-dirs.

crank PKGTOOLS_VERSION to 20030202.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 11 07:52:19 2003 UTC (21 years, 3 months ago) by schmonz
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

On NetBSD, man pages were getting installed into /usr/man. That's,
like, so 80's! Pass a value more appropriate for the current decade
to --mandir via CONFIGURE_ARGS, and let ./configure set this in
the Makefiles.

Install catted man pages with the suffix ".0" rather than ".1".

Bump PKGTOOLS_VERSION.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 9 13:13:05 2003 UTC (21 years, 3 months ago) by schmonz
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Define NO_PKGTOOLS_REQD_CHECK, which will mean something in a moment.

Rather than override LOCALBASE, set PREFIX (after including bsd.pkg.mk).

Bump PKGTOOLS_VERSION (many changes since 20021123).

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Dec 20 18:14:05 2002 UTC (21 years, 4 months ago) by schmonz
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import autoconf'd pkg_install source from
othersrc/bootstrap-pkgsrc/pkg_install into ${FILESDIR}.

Using autoconf greatly simplifies maintenance of this package across
multiple platforms. Placing the extracted source under ${FILESDIR}
will eventually let us use the same source for bootstrapping as
well, though we're not ready for this yet.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 20 18:14:05 2002 UTC (21 years, 4 months ago) by schmonz
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>