Commit graph

817 commits

Author SHA1 Message Date
wiz
fb598306db Fix typo in variable name. From dieter roelants in private email.
Bump date.
2012-02-22 23:56:03 +00:00
wiz
afe04b932a Revert unintended commits. 2012-02-22 15:39:43 +00:00
wiz
10b42eef42 Mention putty-devel successor. 2012-02-22 15:31:34 +00:00
wiz
a34c1a6627 Merge changes from src/external/bsd/pkg_install. 2012-02-21 18:32:14 +00:00
wiz
8c0f095251 Bump version for pkg_add bug fix. 2012-02-21 14:54:41 +00:00
wiz
8be7062f27 Fix PR 46068 using the patch by Nicolas Thauvin:
pkg_add fails to install a package when subdiretories are missing
in the path to package directory in /var/db/pkg.
2012-02-21 13:32:24 +00:00
joerg
3ce4880b5c 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.
2012-01-28 12:33:04 +00:00
wiz
12f39f9fab Add zlib license. 2012-01-28 10:46:08 +00:00
wiz
89d519c651 Add Mozilla Public License v2.0 (mpl-2.0) and mark it as default-acceptable. 2012-01-04 11:53:38 +00:00
joerg
97d1fcc178 Fix license list. 2011-12-19 12:57:16 +00:00
ryoon
a072f2596b Add lppl-1.3c and epl-v1.0 to default_acceptable_licenses. 2011-12-15 22:16:55 +00:00
ryoon
270a0b35a2 Remove gnu-agpl-v3 from hardcoded default acceptable list.
Sync with DEFAULT_ACCEPTABLE_LICENSES in mk/license.mk.
See http://mail-index.netbsd.org/tech-pkg/2011/11/30/msg008081.html .
2011-12-01 22:07:21 +00:00
ryoon
826e7ec8cd Add gnu-agpl-v3 to the default list. 2011-11-26 19:19:42 +00:00
cheusov
8249841c62 Workaround for PR 45491 again. 2011-10-28 21:19:42 +00:00
cheusov
c552f46850 Document optional variable FILE_CKSUM. Approved by wiz@. 2011-10-19 21:15:39 +00:00
wiz
c919268d4e pkg_delete -R does not remove all leaves.
Fix from Anthony Mallet on tech-pkg.

While here, fix a typo in a comment.
2011-09-29 23:30:21 +00:00
agc
e5061b6f81 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
2011-08-05 07:04:28 +00:00
taca
f87fcdb5d8 Add "php" to default_acceptable_licenses.
* Why DEFAULT_ACCEPTABLE_LICENSES is hardcoded here?
* Should I update pkg_install's version?
2011-06-29 03:16:27 +00:00
ryoon
65d0907fb6 Add mplusfont and cc-by-sa-v3.0 to the default list. 2011-05-08 10:53:22 +00:00
obache
cae9dbcdea net/libfetch is USE_BSD_MAKEFILE, pass ${BSD_MAKE_ENV} additionally for
building libfetch.

Fixes PR#44881, it will be happend with groff from pkgsrc.
2011-04-26 12:17:51 +00:00
adam
2c35b05632 Added postgresql-license 2011-04-22 08:16:42 +00:00
morr
d9213b73d6 Add linux to list for retaining the numeric OS version.
Fixes PR pkg/43622.
2011-04-20 09:57:25 +00:00
wiz
8ad22f5cfd Allow GNU GPL v1 by default. 2011-04-01 13:11:07 +00:00
bad
77c589a414 Add unlicense to default_acceptable_licenses. Per advice by wiz. 2011-03-17 23:07:52 +00:00
aymeric
39ed5d2ec1 . fix audit-history subcommand to include patterns making use of [x-y] notation
. bump version to 20110215
2011-02-18 15:59:52 +00:00
schnoebe
9183be950b Bring in boost-license, 1.0. Certified by OSI as an Open Source
license.
2011-02-06 18:54:49 +00:00
agc
3d2906b41f This package needs someone to look after it - I'll do that for just now. 2011-01-31 07:25:03 +00:00
agc
9891855ef3 Protect against de-referencing a pointer which might be NULL.
Fixes PR pkg/44476 from Uwe Klaus
2011-01-31 07:22:15 +00:00
wiz
61eb916759 Add png-license and add it to the default-allowed licenses.
(very similar to mit or modified-bsd, but different)
2011-01-13 13:25:56 +00:00
wiz
7eaf427383 Don't warn about _ALPHA, _BETA, _PATCH, _RC, _STABLE mismatches
when pkg_add'ing on NetBSD. Bump version to 20101212.

Ok jym, gdt
2010-12-12 13:18:38 +00:00
joerg
e1f372d84e pkg_install-20101122: Fix crash in pkg_info -X on hand-written packages 2010-11-22 09:00:12 +00:00
christos
2187770975 mention that lists are space-separated. 2010-11-13 20:07:01 +00:00
wiz
f862ee827f Reset maintainer. 2010-09-15 13:55:15 +00:00
joerg
bb63d1cfd3 pkg_install-20100915: Allow https URLs. From mbalmer.
Reset maintainership.
2010-09-15 13:18:01 +00:00
gdt
23b6cd52c9 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@.
2010-09-14 22:26:18 +00:00
joerg
d041bec600 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.
2010-06-16 23:02:48 +00:00
obache
8956c4ec26 Add isc license as default acceptable license. 2010-05-06 13:16:59 +00:00
obache
ebe456dbe4 + ipafont to default_acceptable_license. 2010-04-26 11:54:31 +00:00
joerg
eaec97cc87 pkg_install-20100421:
Fix an off-by-one in the check for properly sized pkgdb entries.
It rejected perfectly valid entries.
2010-04-20 21:22:38 +00:00
joerg
9ebc608c9d 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.
2010-04-20 00:39:12 +00:00
tron
25f25e824c Link using the "-search_paths_first" option under Mac OS X to make
sure that the linker uses our static "libarchive.a" instead of
the outdated dynamic library "/usr/lib/libarchive.dylib".
2010-04-15 22:25:11 +00:00
joerg
89c516b24c 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.
2010-04-14 18:24:58 +00:00
joerg
48ba2fe9fb Require zlib 1.2 for now, as zlib 1.1 doesn't like gzip headers and
would fail in the decompression code for pkg-vulnerabilities.
2010-03-26 17:04:45 +00:00
wiz
541b5cfa8d 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.
2010-03-19 12:49:53 +00:00
obache
7eb6b4491b Also need to overwrite config.sub, at least on Haiku OS. 2010-03-17 08:19:38 +00:00
joerg
b05f5e85bc Make sure to overwrite the config.guess script in libarchive for the
sake of Interix.
2010-03-08 17:20:40 +00:00
wiz
9f97006922 Mention that '_' is the same as '.'.
Noted missing by Aleksey Cheusov in PR 41148.
2010-02-27 21:02:01 +00:00
wiz
ec820a7195 Remove "also" for Slader_LB. 2010-02-25 06:56:23 +00:00
wiz
6627a92929 Fix option order in SYNOPSIS. From Slader_LB. 2010-02-24 22:07:28 +00:00
wiz
4d6a73e427 Refer to pkg_admin from -f flag.
Make chroot reference an Xr.
Downcase Package Database.

Suggested by Slader_LB.
2010-02-24 22:06:21 +00:00
wiz
18d25b4b1f Downcase Package Database. 2010-02-24 22:05:31 +00:00
wiz
762436db6b Describe -A more clearly. 2010-02-24 21:13:23 +00:00
wiz
64ce57b13c Improve wording, remove unneeded Bk/Ek, various minor fixes. 2010-02-24 21:11:27 +00:00
joerg
f42651b305 Sync with libarchive 2.8.0. 2010-02-20 20:24:24 +00:00
joerg
244acbc253 pkg_install-20100220:
Try harder to give the user an idea which file failed.
Addresses PR 42223.
2010-02-20 04:40:03 +00:00
joerg
2e9750982f Regen. 2010-02-18 13:43:47 +00:00
joerg
895bc6c259 Reflect reality that pkg_add -uu == pkg_add -u. 2010-02-18 13:43:11 +00:00
joerg
cd48ffa77c pkg_install-20100204:
Fix an enum to prevent crashes later (PR 42734)
2010-02-03 19:28:30 +00:00
joerg
109a0744e9 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
2010-02-03 14:20:14 +00:00
joerg
d091a3d775 G/C left over. 2010-01-30 21:35:08 +00:00
joerg
598ab1bc84 Regen. 2010-01-30 20:10:04 +00:00
joerg
17bdd9ea74 pkg_install-20100130:
Add -U for pkg_add.  It works similar to -u, but replaces an already
installed version.
2010-01-30 20:09:34 +00:00
joerg
da2786e36d pkg_install-20100126: Actually support IPv6. 2010-01-26 15:48:13 +00:00
joerg
7242ffd9ba Update config.guess/config.sub as they are used during bootstrap. 2010-01-23 23:43:58 +00:00
joerg
7d65252df2 Check -lnetwork for gethostbyname on Haiku. From PR 42665. 2010-01-23 22:41:43 +00:00
joerg
9262c6cdf9 Fix linkage for create/delete. 2010-01-23 11:02:58 +00:00
joerg
dc81ba6cfa Regen. 2010-01-22 13:33:30 +00:00
joerg
dbd95db262 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.
2010-01-22 13:30:41 +00:00
jmmv
71f907bf00 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.
2010-01-21 21:58:05 +00:00
joerg
4a525d6349 I guess actually being OWNER is the only way to get a sensible time to
review patches and complain...
2010-01-20 23:17:12 +00:00
jmmv
4e900517d4 Revert previous, testing change committed by mistake. 2010-01-20 23:14:23 +00:00
jmmv
89c510d67e 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?!
2010-01-20 22:34:47 +00:00
tron
da16132153 Undo unnecessary revision bump of this package. It doesn't require "jpeg",
has never required "jpeg" and will hopefully never require "jpeg".
2010-01-17 13:24:27 +00:00
wiz
579796a3e5 Recursive PKGREVISION bump for jpeg update to 8. 2010-01-17 12:02:03 +00:00
joerg
effa69a9d7 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.
2009-11-05 16:22:32 +00:00
wiz
64adf0c850 Add 2-clause-bsd to DEFAULT_ACCEPTABLE_LICENSES. 2009-10-25 21:32:17 +00:00
joerg
671e489141 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.
2009-10-22 22:51:29 +00:00
joerg
fb51cb65a3 pkg_install-20091021:
Add support to query arbitrary variables with pkg_admin config-var.
2009-10-21 17:10:36 +00:00
joerg
c78fbe9399 pkg_install-20091015:
Use directory index caching by default.
2009-10-15 12:41:41 +00:00
joerg
84329fdd40 pkg_install-20091008:
- Fix German accent
- Don't dereference a null pointer for pkg_admin add
2009-10-08 16:16:12 +00:00
joerg
465c648578 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
2009-10-07 12:53:26 +00:00
joerg
c419b4e0c6 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.
2009-09-11 18:00:12 +00:00
wiz
ac81690e2d Mark up PKG_PATH. 2009-08-17 05:06:38 +00:00
joerg
d374fd0840 Don't leak the config file. 2009-08-16 21:10:53 +00:00
joerg
a44d636e1d 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.
2009-08-16 21:10:14 +00:00
joerg
ae84d2dc25 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.
2009-08-16 14:26:46 +00:00
wiz
dc4ee19bc7 regen. 2009-08-06 18:16:57 +00:00
wiz
f562b816f7 Bump date for CHECK_LICENSE. 2009-08-06 18:16:33 +00:00
wiz
c4f91c4a43 regen. 2009-08-06 18:15:41 +00:00
wiz
42ac050037 Bump date for -k. 2009-08-06 18:15:27 +00:00
wiz
24a8ca8027 regen. 2009-08-06 18:14:48 +00:00
wiz
531a02fc44 Bump date for previous. 2009-08-06 18:14:15 +00:00
joerg
1feca87cdb pkg_install-20090806:
- pkg_add: add support to check license conditions before installation
- pkg_delete: add -k option to skip over preserve packages.
2009-08-06 16:53:34 +00:00
joerg
3587185961 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.
2009-08-02 17:56:44 +00:00
wiz
dcc7e8e6e1 Add mpl-1.0 (Mozilla Public License), and allow it by default.
(We already had version 1.1 in pkgsrc, this is needed for at least ptlib.)
2009-07-26 09:18:29 +00:00
joerg
e322a401bc 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.
2009-07-24 19:06:45 +00:00
tron
76437887cd Add "mpl-1.1" and "zpl" to the license which are accepted by default. 2009-07-15 10:24:13 +00:00
joerg
71d359d9d3 Never run the license check for this package to allow a proper update
path.
2009-06-14 15:08:45 +00:00
joerg
413e163ddb pkg_install-20090610:
Improve diagnostic around license handling.
2009-06-10 20:15:11 +00:00
joerg
0f6bbfec73 Fix typo. 2009-06-03 20:03:40 +00:00
ahoka
8f598fa767 Add miros to the default accepted licenses. 2009-06-03 16:45:17 +00:00
joerg
1435cf330d pkg_install-20090528:
I can't remember why the original pkg_install-renovation code disabled
extraction of ownership from packages, so reenable that.
2009-05-28 08:59:59 +00:00
joerg
bf2cff01f3 Sync license list with mk/license.mk. 2009-05-27 21:56:11 +00:00
joerg
c4f4275600 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.
2009-05-27 20:26:03 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
wiz
12239df3b8 Sync default-accepted licenses with pkgsrc/mk/licenses.mk.
Bump version to 20090518.
2009-05-18 10:01:37 +00:00
wiz
9f06c66cbd regen. 2009-05-13 10:52:56 +00:00
wiz
6975c2b3fb usage: match man page more closely. 2009-05-13 10:51:46 +00:00
wiz
a13f8b378f Sort options in SYNOPSIS. 2009-05-13 10:51:33 +00:00
joerg
5b3521a978 Regen. 2009-05-13 03:35:36 +00:00
joerg
6156ed74c0 pkg_install-20090513:
Add pkg_create -F, which explicitly provides the compression type.
2009-05-13 03:33:50 +00:00
joerg
ac97e66040 G/C PlayPen and PlayPenSize. 2009-05-13 03:18:05 +00:00
joerg
34ca7f8f1b Fix spelling. 2009-05-10 21:11:43 +00:00
reed
93688a0e21 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.
2009-05-02 16:14:37 +00:00
joerg
2f64176828 Regen. 2009-04-25 21:32:45 +00:00
joerg
28926842fa 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.
2009-04-25 21:31:13 +00:00
joerg
5baf67d213 Regen. 2009-04-24 14:13:06 +00:00
joerg
dbe6fb0a8c 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.
2009-04-24 14:00:25 +00:00
joerg
76d122cd42 Constify. 2009-04-24 01:03:41 +00:00
joerg
3a4f443ed9 If the plist doesn't have a @name tag in it, fake one up based on the
directory name.
2009-04-23 22:13:00 +00:00
joerg
ee93491f09 Require all plist commands to be in lower case. Nothing depends on that
and it was never documented that it worked either way, so being strict
doesn't hurt.
2009-04-23 19:53:52 +00:00
joerg
3748569021 Remove support to spell of @cwd as @cd. 2009-04-23 19:38:14 +00:00
joerg
6dc281ec17 Remove remaining parts of @mtree support. 2009-04-23 19:35:52 +00:00
joerg
7216c47ead Remove support and documentation for @ignore_inst. 2009-04-23 19:34:04 +00:00
joerg
4d7ee3338c 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.
2009-04-22 19:18:06 +00:00
joerg
9ee86af3f2 Regen. 2009-04-22 19:14:16 +00:00
joerg
831ff9838f Document pkg_admin fetch-pkg-vulnerabilities -u. 2009-04-22 19:13:54 +00:00
reed
00b6b96445 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.
2009-04-10 04:03:11 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
joerg
d0076c3403 Remove the remaining NO_MTREE definitions, it has been a nop for a
while.
2009-04-08 22:43:23 +00:00
joerg
3238d0ace2 pkg_install-20090406:
Remove premature return that broke dependency tracking for pkg_add -u.
Fixes PR 41143.
2009-04-06 14:34:15 +00:00
joerg
2218854d15 Remove trailing \n in warnx call. Pointed out by seb@ 2009-03-30 19:26:39 +00:00
joerg
375837bf0b pkg_install-20090326:
Fix diagnostic message to be less confusing to read.
2009-03-26 14:32:39 +00:00
joerg
0e28d608e9 Improve markup. 2009-03-22 23:42:35 +00:00
tnn
b2e981665d pkg_delete: add missing setprogname(argv[0]); 2009-03-21 16:43:50 +00:00
joerg
91e5d9ff5a Specify width for tag list. 2009-03-10 20:33:43 +00:00
joerg
8de13e20ef Use archive_read_finish and avoid double-free if the archive couldn't be
opened.
2009-03-09 20:01:22 +00:00
joerg
4b68a2dafa pkg_install-20090309:
Fix a double free. Reported by seb.
2009-03-09 19:58:45 +00:00
joerg
fcc1963a3e If writing to the archive failed, tell user the file it tried to write. 2009-03-08 17:26:23 +00:00
joerg
b02e7e47c4 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.
2009-03-08 14:50:36 +00:00
joerg
2901543f5b Avoid sign comparision issues. 2009-03-06 15:18:42 +00:00
joerg
fbb7f3e773 Explicitly build local libarchive without ACL support, I don't want to
get into the mess of needing to figure out linkage on Linux.
2009-03-04 19:47:20 +00:00
joerg
9eb91efbb3 pkg_install-20090302:
Add new option -r to pkg_info, which works like -R, but expands it
recursively.
2009-03-02 17:13:49 +00:00
joerg
35f74daf9a Remove a close(-1) as hinted by wiz. 2009-03-02 15:30:45 +00:00
joerg
9b9d6a3ce9 Be nice to stupid version of TAILQ_INSERT_TAIL on Linux, that doesn't
create a block context.
2009-03-02 15:15:06 +00:00
joerg
af07339813 pkg_install-20090301:
Plug a number of file descriptor leaks.
2009-03-02 14:59:14 +00:00
wiz
1bb6451a10 regen 2009-02-28 16:25:46 +00:00
wiz
1f3593dd09 Fix typo. 2009-02-28 16:20:50 +00:00
wiz
f629212fdd Remove trailing whitespace. 2009-02-28 16:19:17 +00:00
joerg
5bdcb8f520 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
2009-02-28 16:03:56 +00:00