Commit graph

670 commits

Author SHA1 Message Date
joerg
f1cd925f5b -Wall is a non-standard flag, don't use it in a bootstrap package.
Bombed out on by xlC.
2007-07-31 13:32:04 +00:00
joerg
c54865f2f5 Remove a now unused extern declaration. 2007-07-30 10:33:07 +00:00
joerg
ee5d571224 Remove first obstactle in pkg_add for switching to libarchive:
MASTER/SLAVE mode is gone now.

Bump version to 20070730.
2007-07-30 08:09:14 +00:00
joerg
d3a02b798c Don't build a list for a single item, but change the pkg_perform
interface to hand it down directly.
2007-07-30 07:25:10 +00:00
joerg
ba250884a3 Push pkg_perform prototype into the individual packages. 2007-07-30 07:16:21 +00:00
seb
e40571f70c Specify PKG_DBDIR to pkg_admin and pkg_info via their -K argument
instead of environment. This allows mk/flavor/pkg/resolve-dependencies
to execute '${PKG_ADMIN}': you can encounter this problem
on platforms in need of pkgtools/pkg_install because their native
pkg_* tools are older than PKGTOOLS_REQD, id est NetBSD 2.x and earlier.

Ok'ed joerg@.
2007-07-29 17:39:31 +00:00
adrianp
5ca9237032 Remove redundant SUBST_* from package Makefile
OK'ed joerg@
2007-07-29 14:06:44 +00:00
joerg
17c965dcc3 After the obsoletion on March, remove the support for require scripts.
Also remove the documentation of the mtree parts as it is not supported.
2007-07-26 11:30:55 +00:00
joerg
43de2f8a8b As discussed in PR 36662, the include of nbcompat.h takes care of
the need to include sys/cdefs.h. Do include err.h if it exists
or we are not building for pkgsrc, otherwise use nbcompat/err.h.
2007-07-26 11:27:58 +00:00
joerg
64c41eca87 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.
2007-07-25 15:01:45 +00:00
adrianp
2637bfc26b Check we can write to ${PKGVULNDIR} before attempting a download.
Reported by wiz@
2007-07-24 18:57:02 +00:00
adrianp
ae1629c33a Include nbcompat.h to sort out err.h
Add a conditional include for cdefs.h
This resolves the remainder of the issues in PR #36662
Thanks to Stuart Shelton for testing and feedback.
2007-07-23 12:29:32 +00:00
tnn
954b179cfd Move variable declaration to top of function body to make this build with
older versions of gcc. From Anonymous on IRC.
2007-07-22 13:22:21 +00:00
adrianp
39b2b8ef53 Add missed file in last update 2007-07-21 10:21:38 +00:00
adrianp
74d71ced16 Misc man page fixes
Update to autoconf 2.61
Add checks for AC_TYPE_UINT{8,16,32,64}_T
Add checks for stdint.h
Change how config file notification works
If no IGNORE_URLS directive is found then just say that
Check that pkg-vulnerabilities exists before we try any operations on it
Use st_ctime as opposed to st_ctimespec.tv_sec as the former is SUSv3
This update should fix PR #36655 and go part way to fixing PR #36662

Thanks to tnn@ and joerg@ for suggested fixes and Yakovetsky Vladimir and
 Stuart Shelton for testing and patches.
2007-07-21 10:21:04 +00:00
joerg
5fc8c04e5a 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@
2007-07-20 22:22:52 +00:00
wiz
fdfa17436f New sentence, new line. Sort options. 2007-07-18 23:33:19 +00:00
joerg
1e9a4230a4 Change download-vulnerability-list.sh to use exec_prefix in the
sense of pkg_tools_prefix and prefix in the sense of LOCALBASE.
This allows individual overriding for NetBSD.

Add the forgotten part to allow DESTDIR builds and the pkgsrc.7 man
page.
2007-07-16 13:23:02 +00:00
joerg
bc4117d57f Retire helper scripts for merge from src, this is now the authoritive
version.
2007-07-16 11:40:10 +00:00
joerg
9df3e415c9 Merge remaining small changes from NetBSD, most of all the pkgsrc.7 man
page. Fix build on !NetBSD. Rebuild man pages with nroff -mandoc on
NetBSD current for consistency. Make it DESTDIR safe. Remove the note
that src/usr.sbin/pkg_install is the authoritive version, it won't be
any longer.
2007-07-16 09:57:56 +00:00
joerg
289ba68704 Merge r1.37 from NetBSD:
PR/36274: Jukka Salmi: pkg_add(8) -t option broken, template passed in
is treated as a directory. While there simplify and shorten the code...
2007-07-16 09:54:55 +00:00
joerg
ca03bfb945 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.
2007-07-14 22:57:15 +00:00
adrianp
8f09fd52a9 Bump pkg_install 2007-07-14 20:19:48 +00:00
adrianp
16b215dd7e Update to pkg_install-20070714
Merge of audit-packages with various improvements:
* Version 20070714
	Initial release of re-write in C
	Add support for notfication of eol packages (-e)
	Multiple levels of verbosity (e.g. -v -v)
	Specify a custom config file to use (-c)
	Query running config values (-Q)
	Default to download .gz compress pkg-vulnerabilities file
	Support for .bz2 compress pkg-vulnerabilities file
	Verify signature on downloaded files (-s)

Thanks to tron@, jschauma@, agc@, joerg@ and pkgsrc-security@ for feedback
and testing.
2007-07-14 20:17:06 +00:00
joerg
eb66d11868 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.
2007-07-10 15:19:17 +00:00
wiz
c7bc2fe5bf Sync with pkgsrc (1.46). 2007-05-19 14:42:10 +00:00
joerg
bbe0e4e1ae Sync with src: PRIu64 -> MY_PRIu64 + fallback value of PRIu64. 2007-04-20 14:25:13 +00:00
tnn
18f57f251c re-add fix from r1.11 after sync 2007-04-20 13:48:16 +00:00
tnn
f844d8b5e3 re-add fix from r1.42 after sync 2007-04-20 13:36:25 +00:00
joerg
52ba06bdee 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.
2007-04-16 12:55:34 +00:00
joerg
1b6ca55b58 Sync config.{guess,sub} with mk/gnu-configure. 2007-03-12 00:48:28 +00:00
joerg
77305c28ef 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.
2007-03-11 22:05:03 +00:00
wiz
1c7c116e8b Sync with src. 2007-02-07 06:49:22 +00:00
reed
087c665604 Update pkg_summary(5) man page to mention how it can
be generated (from NetBSD).
Add a PKGREVISION.
2007-02-06 01:30:11 +00:00
joerg
611e7f92de 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.
2006-11-03 09:35:14 +00:00
schwarz
53de6e942a make sure INSTALL gets passed to the Makefile 2006-08-19 14:38:52 +00:00
gson
9d4c7f77de 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.
2006-07-20 11:29:48 +00:00
jlam
808fe7ac5f USE_DIGEST is no more. 2006-07-18 23:06:41 +00:00
rillig
c47985fa7d Merged from src:
> In header files, there shall be no variable definitions, only
> declarations. Found by MIPSpro.
2006-07-11 07:45:40 +00:00
dillo
7a046011cb Pull across from source:
Fix pkg_info -Q on binary packages; noted by rillig.
Bump version to 20060701.

Okayed during freeze by wiz.
2006-07-01 19:37:25 +00:00
hubertf
448b30d04d Update usage() - sync with manpage, add missing options, etc. 2006-06-27 23:36:13 +00:00
jlam
5f9a3a1b99 This package overrides the "update" target (is that wise?) and runs
its own set of commands.  One of these invoked "deinstall" with
UPDATE_RUNNING set to "YES"; however, UPDATE_RUNNING was made into a
pkgsrc private variable a little while ago.  Fix "update" by setting
_UPDATE_RUNNING instead.  This fixes PR pkg/33716.
2006-06-13 13:57:10 +00:00
jlam
2cc3f64abb Add a new variable CHECK_FILES_SUPPORTED which is a package-settable
variable to show whether the package supports running the check-files
target.

Set CHECK_FILES_SUPPORTED to "no" in pkgtools/pkg_install in the case
where the PREFIX does not match ${LOCALBASE} it's likely the tools are
being installed in some place that's completely outside pkgsrc control,
and check-files fails horribly in that case.
2006-06-09 16:12:08 +00:00
jlam
65b866d2f4 Make pkg_install build on platforms that don't define the PRIu64 integer
format modifier.  We include "defs.h" in the files that use PRIu64 as
that is the header that contains stand-in definition.
2006-05-10 04:25:30 +00:00
dillo
ffd2c03b44 Sync with src: HOMEPAGE is optinal, noted by wiz.
Regen catman page.
2006-04-25 13:33:18 +00:00
wiz
cc17cf1e8e Sync with usr.sbin/pkg_install/lib/pkg_summary.5 v1.2: Sort. 2006-04-24 22:05:13 +00:00
dillo
10da79a1a1 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.
2006-04-24 13:52:04 +00:00
hubertf
8f17059838 Sync with NetBSD's src/usr.sbin/pkg_install Version 20060418,
mostly for the timeout fix in ftpio.c.
2006-04-18 20:41:44 +00:00
wiz
9ee6553610 Sync with src/usr.sbin v1.63:
Formatting nits.
2006-04-08 23:06:21 +00:00
reed
295b6a402f 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 :)
2006-04-06 06:49:30 +00:00
wiz
0bbdf0f44f Sync with src/usr.sbin v1.70:
http_expand_URL(): fclose() the fdopen()'ed filedescriptor
before leaving the function (for all cases).

Actual fix and sanity checking by Dillo & Wiz
Coverity CID 2340
2006-04-05 18:17:31 +00:00
wiz
cc332cafad Sync with src/usr.sbin v1.62:
When recognizing a broken package version/name,
make sure to error out really, don't just print a warning
and the run into further problems.

Coverity CID 2739.
2006-04-05 18:17:08 +00:00
wiz
66ecb76eb5 Bump date, so that version in src and pkgsrc have the same
version _and_ the same code.
2006-04-04 06:38:29 +00:00
wiz
55a059b0bc Pull over v1.4 from src/usr.sbin:
revision 1.4
date: 2006/03/17 01:10:53;  author: hubertf;  state: Exp;  lines: +5 -2
Fix filedescriptor leak
Coverity CID 1625
2006-04-04 06:37:15 +00:00
wiz
90179254d2 Pull over v1.59-v1.61 from src/usr.sbin:
revision 1.61
date: 2006/03/17 17:46:44;  author: hubertf;  state: Exp;  lines: +4 -3
Put check if "best" is empty back into the right place, messed up
in previous commit.
Noted by yamt@
----------------------------
revision 1.60
date: 2006/03/17 02:20:46;  author: hubertf;  state: Exp;  lines: +10 -4
findbestmatchingname_fn(): catch possible problems if best (vp)
contains some strange name (shouldn't happen, but ...)

Coverity CID 869
----------------------------
revision 1.59
date: 2006/03/17 02:10:55;  author: hubertf;  state: Exp;  lines: +8 -7
findbestmatchingname_fn(): only do something sensible if the pointer
handed in is actually usable (not NULL)

Fixes Coverity ID 870
2006-04-04 06:36:12 +00:00
wiz
786e9a25a2 Pull over v1.36 from src/usr.sbin:
revision 1.36
date: 2006/03/17 01:58:25;  author: hubertf;  state: Exp;  lines: +11 -3
We can't sprintf() into a NULL pointer - catch that properly
for ALL cases.

Coverity CID 861
2006-04-04 06:34:25 +00:00
wiz
ae42a7bdb3 Sync with src/usr.sbin: whitespace diffs only. 2006-04-04 06:32:59 +00:00
wiz
c9a1f04e00 Pull over v1.77 from src/usr.sbin:
revision 1.77
date: 2006/03/26 18:11:22;  author: christos;  state: Exp;  lines: +3 -3
PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-04-04 06:31:22 +00:00
wiz
0d252fca2c Pull over v1.5 and v1.6 from src/usr.sbin:
revision 1.6
date: 2005/11/13 20:37:23;  author: agc;  state: Exp;  lines: +1 -10
Get rid of cvs merge botch in previous.
----------------------------
revision 1.5
date: 2005/11/13 20:07:41;  author: agc;  state: Exp;  lines: +25 -8
The Dewey number comparison routines were added by myself in 2002 in
revision 1.32 of pkg_install/lib/str.c, and have absolutely nothing to
do with the original FreeBSD utilities.

Place the appropriate (3 clause) copyright on this file.
2006-04-04 06:30:10 +00:00
wiz
680f66a11d Pull over v1.68 from src/usr.sbin:
revision 1.68
date: 2006/03/17 02:31:44;  author: hubertf;  state: Exp;  lines: +4 -3
pkg_do(): only use cp2 if it's really set to something useful

Coverity CID 1176
2006-04-04 06:28:22 +00:00
wiz
8d27f5d82e Pull over 1.36 from src/usr.sbin:
revision 1.36
date: 2005/12/03 01:08:38;  author: hubertf;  state: Exp;  lines: +3 -3
Only warn about running as non-root when -v is given
(or when running in non-unprivilegedmode, but how to detect?)
2006-04-04 06:27:13 +00:00
wiz
3774c1a14d Pull over v1.51 from src/usr.sbin:
revision 1.51
date: 2006/03/06 20:00:10;  author: reed;  state: Exp;  lines: +4 -4
Fix the "Cannot chdir" error message to actually show the
problem directory name for lsbest and lsall.

For example:

# pkg_admin -d /usr/packages/DragonFly/1.4.0/i386/All lsbest 'gmake>0'
pkg_admin: Cannot chdir to /var/db/pkg: No such file or directory

Should show:
pkg_admin: Cannot chdir to /usr/packages/DragonFly/1.4.0/i386/All: No such file or directory
2006-04-04 06:25:59 +00:00
wiz
864c7d4c33 Pull over 1.117 from src/usr.sbin:
revision 1.117
date: 2006/03/17 02:37:31;  author: hubertf;  state: Exp;  lines: +6 -2
Add sanity check if there's a @cwd in the +CONTENT file.
If not abort, because we wouldn't know where to put the files.

Coverity CID 1358
2006-04-04 06:24:39 +00:00
jlam
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
erh
e8d1f2d71c 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.
2006-03-13 22:08:22 +00:00
jlam
bb4f311e85 Use pkginstall to generate the INSTALL script instead. 2006-03-10 22:38:30 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
joerg
fa0e987ec8 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.
2006-01-25 00:20:09 +00:00
wiz
d182d0d618 Sync with usr.sbin/pkg_install 1.58:
Use MaxPathSize instead of PATH_MAX.
2006-01-08 12:25:06 +00:00
rillig
dcf63d1b4b Fixed pkglint warnings about incorrect quoting and unsorted PLIST. 2006-01-06 19:46:26 +00:00
christos
c6761ed17e 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.
2006-01-04 23:33:23 +00:00
dillo
2b4de40b79 sync with src (revision 1.115):
(pkg_do) When marking already installed package as manually installed,
         only print message if we succeeded.

Noted by wiz.
2005-12-08 19:41:04 +00:00
ben
d0a9fc6a67 Specify the full path to tar when unpacking a package.
Modify pfcexec so the new process file name can be different from argv[0].
This fix is from Peter Postma, and it addresses PR#32228
2005-12-06 01:08:09 +00:00
ben
92973d6092 Correct PAX_CMD to be pax. 2005-11-28 01:50:21 +00:00
ben
256e66a2e3 Conditionally include header files, and include nbcompat.h
Addresses PR#32149
2005-11-23 14:59:44 +00:00
ben
8926549f00 Sync with src. Remove unused variable argc from apply_perms(). 2005-11-23 14:33:50 +00:00
ben
f1c7672081 Remove unused variables, fix variable names to avoid shadowing globals,
and add PAX_CMD fallback macro.
2005-11-23 04:49:51 +00:00
ben
df7be8ce2f 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().
2005-11-22 15:44:59 +00:00
erh
31448b1b1c Fix for part of PR#32092: add SKIP_AUDIT_PACKAGES=yes so pkg_install can
be updated even if audit-packages is out of date.  The audit-packages package
already has this.
2005-11-17 17:05:30 +00:00
dillo
0401832751 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.
2005-11-14 09:42:38 +00:00
dillo
71bd927ebf Remove obsolete file from OBJS also.
Fixes PR 32071 by HEO SeonMeyong.
2005-11-14 09:17:40 +00:00
wiz
c6865dc161 Sync with basesrc: do not use errx in dewey.c; handle -1 return value
from dewey_match in pmatch.
2005-11-13 19:51:14 +00:00
wiz
e61b7d0cf9 Remove obsolete file. 2005-11-13 19:50:31 +00:00
wiz
30ce384efb Sync with basesrc 1.3:
Remove some unnecessary header includes.
2005-11-08 20:17:56 +00:00
dillo
aefacfcc2f Update to 20051107: Fix pkg_info -B against binary packages. 2005-11-07 23:51:14 +00:00
wiz
68f185e993 Sync with basesrc:
Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@
on tech-pkg.
2005-11-07 22:57:48 +00:00
tv
97e479d1b2 Aren't we forgetting something here?
(Insert config.h, nbcompat.h, and bracket the other includes with
#if HAVE_<file>.)
2005-11-07 18:53:53 +00:00
jlam
604a8bc477 Use the hard-coded ${PKG_TOOLS_BIN} variable as the correct location of
the pkg_admin binary.
2005-11-07 06:52:24 +00:00
jlam
f2c3651333 INSTALL_SCRIPT_ENV wasn't being defined to include a definition for
PKG_PREFIX, which was causing the INSTALL script to fail when run from
the post-install-script target.
2005-11-07 06:32:58 +00:00
jlam
f24a3e971c In the "update" target, use "${UPDATE_TARGET}" to install the new
pkg_install tools.  This allows customizing UPDATE_TARGET=package to
produce a binary package instead of just installing the package.
2005-11-06 22:17:53 +00:00
jlam
c0fc027891 Remove @exec from PLIST and put the action into an INSTALL script instead.
Also, simplify the package by making use of the PKGMANDIR-handling in
pkgsrc to remove the custom MANDIR code from the package Makefile and
the PLIST.

Technically, this type of a change would require a PKGREVISION bump,
but as this is the pkg_* tools package and there were no changes to the
binaries, we refrain from doing so.
2005-11-06 22:15:44 +00:00
wiz
13950de799 Use config.h and add appropriate #if HAVE_FOO_H. 2005-11-06 12:37:43 +00:00
wiz
d768d9008a Add new files. 2005-11-05 13:30:31 +00:00
wiz
251eae9011 Not needed. 2005-11-05 13:20:31 +00:00
wiz
d69676ddee Sync with base system as of Sat Nov 5 13:19:32 UTC 2005.
Welcome to 20051103!
Now with "automatic" support.
2005-11-05 13:20:08 +00:00
joerg
cb701234ba Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard
2005-10-30 21:27:47 +00:00
reed
bb35b0ea3d Remove CONFIGURE_ARGS setting --mandir as this is now done for
GNU_CONFIGURE.

Also add a note: This breaks for those who set their own LOCALBASE
to /usr and also define PKGMANDIR to different than share/man.
2005-10-07 18:05:07 +00:00
rillig
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +00:00
hubertf
fd107baf6b Pull over change from src/usr.sbin/pkg_install:
| Modified Files:
|         src/usr.sbin/pkg_install/add: perform.c
|
| Log Message:
| cleanup: preserve errno. Needed so err() functions ran after running
|          cleanup(0) print the correct error message.
|
|
| To generate a diff of this commit:
| cvs rdiff -r1.109 -r1.110 src/usr.sbin/pkg_install/add/perform.c
2005-07-25 13:13:00 +00:00
hubertf
c762ea0231 Pull over this change from src/usr.sbin/pkg_install (-current):
| Modified Files:
|         src/usr.sbin/pkg_install/add: extract.c
|
| Log Message:
| Fix 'pkg_add -R' handling - not registering really means not touching
| the pkgdb too - useful for pkg_add as non-root!
|
|
| To generate a diff of this commit:
| cvs rdiff -r1.34 -r1.35 src/usr.sbin/pkg_install/add/extract.c
2005-07-25 13:03:59 +00:00
hubertf
3d4abdba19 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.
2005-07-18 09:14:04 +00:00
jlam
6725d83ed5 Use += to not override previous USE_TOOLS setting. 2005-06-13 17:19:12 +00:00
dmcmahill
b16a2ef3e0 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
2005-06-10 01:37:21 +00:00
jlam
f7bc8ecc4c List shell tools that are needed by the pkg_view and linkfarm scripts. 2005-06-07 16:34:50 +00:00
wiz
540ce344e5 Include netdb.h for Solaris. From Neil Hoggarth in PR 30399. 2005-06-02 10:31:11 +00:00
wiz
5baac3d7e2 Sync with base 1.53: Comment out too noisy warning. 2005-05-30 19:45:02 +00:00
wiz
810ffe10ac Update to 20050530:
Sync with base system: Ranges support and some other stuff that wasn't
pulled over.
2005-05-30 13:23:31 +00:00
minskim
36e75fce9c 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.
2005-05-29 19:20:53 +00:00
dmcmahill
04a3acbd97 - 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
2005-05-28 02:50:45 +00:00
jlam
bc453eae61 Note that this package wants mtree, pax, and tar. 2005-05-16 00:09:33 +00:00
rillig
a73ab09866 Output the error string when renaming a dependency file fails. This has
happened to me when I had a misnamed directory in the pkgdb directory.
2005-05-10 00:04:09 +00:00
wiz
695ecfab67 Sync with usr.sbin/pkg_install/add/pkg_add.1 v1.59. 2005-05-06 23:03:41 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
hubertf
da4b4c92b9 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
2005-03-20 15:55:54 +00:00
rillig
dfd5cc37b0 Never access argv[i+1] before you know that argv[i] != NULL. Approved
by wiz.
2005-03-11 21:20:15 +00:00
agc
7de1e6abd3 Bring over the clearer mismatch warning message from src.
+ state that the message is just a warning
+ make it clearer what an OS mismatch is
2005-03-07 08:41:58 +00:00
grant
485637d8af sync with src:
initialise a variable before using it. pkg_info binpkg.tgz would pass
garbage on the command line to tar(1).
2005-02-21 01:21:39 +00:00
grant
daa5a43372 sync with src:
cast return value of min_free() to uint64_t.

fixes pkg_add <binarypkg> on Solaris 8.
2005-02-20 09:17:25 +00:00
uebayasi
b24eb99218 Redo previous; follow the new idiom of quoting variables ("\"${XYZ}"\")
which may be passed to command line, and may contain white spaces.
2005-02-14 02:30:39 +00:00
uebayasi
0552777918 Quote command strings to be passed to configure script. 2005-02-12 04:45:48 +00:00
grant
17e5afb82c regen from man page update. pointed out by jlam@ - thanks! 2005-02-11 23:35:02 +00:00
grant
fbcc961f58 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.
2005-02-10 23:51:18 +00:00
jlam
94d6c64d03 Pull in documentation improvements and a minor change to allow building
with WARNS=2 from src/usr.sbin/pkg_install.  No functional change and
no version bump.
2005-02-05 00:28:58 +00:00
jlam
cb184155ea 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}.
2005-02-04 09:10:13 +00:00
jlam
92762b96b0 Pull in documentation/whitespace fixes and improvements from the HEAD
revision of src/usr.sbin/pkg_install as of 20050204.  I ran:

	cd pkgsrc/pkg_install/files
	./pkg_install2nbcompat .

Then I ran "cvs diff" and looked for portability-related changes that
were removed as a result of the import and resurrected them from the
repository.
2005-02-04 01:19:03 +00:00
jlam
e179abe26b s/pax/pkg_install/ in the usage message. 2005-02-03 23:53:23 +00:00
jklos
4e8025127a The "make update" target did not clean up after itself, which has caused
problems when people run "make update" without checking to see if anything
old was still around. "make update" now cleans after installing.
2005-01-22 01:03:45 +00:00
agc
ed7e9566bd 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
2005-01-07 11:58:12 +00:00
tv
049d18c583 Don't "cp -p" for *source* files. Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2005-01-06 05:32:29 +00:00
agc
1c7c506fd8 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.
2004-12-29 12:16:56 +00:00
grant
495ab8cee9 update config.{sub,guess} for various bootstrap tools. fixes build on
newer platforms such as DragonFly.

fixes PR pkg/28579 from Todd Willey.
2004-12-12 00:46:28 +00:00
erh
3c1d11809a Document the double "-u" option for updating dependant packages.
Bump the version to 20041210.
2004-12-10 21:14:40 +00:00
erh
a5434ec8c2 Explicitly override the update target to cause the deinstall step to happen
after the package is built.  This is necessary because the pkg_delete binary
that is used is the one from the WRKDIR, not the installed one.
2004-12-09 21:29:06 +00:00
erh
aeb668c148 Make binary updates work better when there are dependant packages to
update also.  Specifying -u twice will now update the named package
and its dependencies.
Also make sure Fake really means Fake, even if update is specified.
2004-12-09 20:10:34 +00:00
grant
abdd668506 sync with src:
no trailing comma at end of enum.
2004-11-20 06:41:35 +00:00
agc
dce9b7c3cc Bring over manual page patches from src/
Document the "pre" magic string, and bump date for this change.
Re-generate the preformatted manual page having done this.
2004-11-10 17:50:10 +00:00
wiz
10d31bd267 Recognize "pre" as pre-release version. Bump version to 20041110. 2004-11-10 16:50:39 +00:00
wiz
c7749236c9 regen. 2004-11-03 14:05:01 +00:00
wiz
c05432cbfd Sync with basesrc. 2004-11-03 14:03:53 +00:00
erh
434b84b1ab Merge the usedot and ctype-function changes from src. 2004-11-02 00:44:00 +00:00
erh
f9fcee4b60 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.
2004-11-02 00:10:15 +00:00
grant
572d0d01db 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.
2004-10-31 02:48:12 +00:00
erh
08a2194bc1 PR pkg/23719: allow a pkg_install package to be created so a system can be
updated using entirely binary packages.
2004-10-05 21:08:32 +00:00
jlam
eecdcc3e52 Don't use .PHONY, which isn't understood by every make. Split out the
"all" target as the first one so that a bare "make" will build the "all"
target by default.  This should fix problems seen on AIX 5.1.
2004-08-31 17:40:41 +00:00
grant
8978d686c7 regen pkg_info.cat1 after last update to man page source.
while here, regen all catman pages on NetBSD-current w/ groff 1.19,
the output is much improved over groff 1.16.
2004-08-26 09:34:58 +00:00
snj
9a1b6c9803 Suck in recent minor changes made to this file. 2004-08-23 19:52:59 +00:00
cube
49b00b88c3 Pull-up -R descripion change from src tree. 2004-08-23 19:41:55 +00:00
jlam
683567c435 Fix the version number of the package in the configure script, and modify
the Makefiles so that they can be built by really basic make programs.
2004-08-21 06:33:39 +00:00
jlam
088679d3e7 Alphabetize list of headers. 2004-08-21 05:12:10 +00:00
jlam
7ed95560bf Add a script that imports from src HEAD to a named directory. 2004-08-20 22:27:12 +00:00
jlam
cc4b314fcf 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.
2004-08-20 20:09:53 +00:00
jlam
e2418fd787 Convert to use libnbcompat/inplace.mk. 2004-08-14 02:33:51 +00:00
jlam
b41799e081 Typo: it's <regex.h>, not <regext.h>. 2004-08-13 14:49:59 +00:00
jlam
92b94878f8 Add checks for all of the system headers used in the sources. Also include
missing <netdb.h> in lib/ftpio.c for MAXHOSTNAMELEN definition on Solaris.
2004-08-13 14:35:24 +00:00
jlam
52c8d0ef3c Mimic how bsd.pkg.mk calls the GNU configure script in do-configure when
configuring libnbcompat.  This adds more things to the environment, e.g.
AWK, CFLAGS, CPPFLAGS, etc.  This should fix problems building on IRIX 5.3
where the system nawk wasn't being properly found.
2004-08-09 06:21:24 +00:00
jlam
fa97dd7fdd 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.
2004-08-06 16:57:03 +00:00
minskim
d9205a030c Import 20040601.
- Handle symlinks in a view correctly.
  - Remove superfluous escapes in BRE.

This closes PR pkg/24190.
2004-06-01 17:32:20 +00:00
minskim
2b6ee83857 Use statvfs if sys/statvfs.h is available. Based on patches provided
by Kibum Han in PR pkg/25560.

PKGVERSION will be bumped shortly when 20040601 is imported.
2004-06-01 17:29:09 +00:00
grant
c50af98acb sync with src/ rev. 1.101:
fix typo.
2004-05-08 16:54:28 +00:00
jlam
fe56564bbd 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.
2004-05-08 14:51:23 +00:00
jlam
6d1d20e2c3 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
2004-05-07 16:40:41 +00:00
tv
930f375cd4 20040428: In pkg_add, set the umask nice and early, and remove an absolute
setting of mode in a mkdir command.
2004-04-28 15:38:17 +00:00
tv
238a2b31dc Obey additional bits of CONFIGURE_ENV when configuring libnbcompat. 2004-04-28 11:10:37 +00:00
tv
3fa7f59e65 Sync to 20040421: fix an uninitialized array member access in pkg_add. 2004-04-21 20:11:55 +00:00
rh
c7e5425240 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.
2004-04-11 06:56:11 +00:00
tv
5f8f17eb0b 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).
2004-04-09 18:38:12 +00:00
agc
2a8f9c23d4 Bring over a fix from main sources:
revision 1.5
date: 2004/04/06 05:56:07;  author: agc;  state: Exp;  lines: +14 -11
Fix signature verification after pkg_add and friends were changed to use
fexec() - trying to exec "gpg --verify %s" won't work with fexec, so split
up the command into separate words.
2004-04-07 22:44:23 +00:00
tv
9e75df93f9 Sync with 20040330. 2004-03-30 15:28:08 +00:00
tv
225ca50407 Remove warning on Interix; OK'd by hubertf. 2004-03-29 20:28:05 +00:00
tv
b8ca4f15f3 Remove umask call and remove warning on Interix; OK'd by hubertf. 2004-03-29 20:27:46 +00:00
tv
857ccccb5d Eek, revert previous; these weren't supposed to be committed. 2004-03-29 02:25:06 +00:00
tv
1ccbfa9d6c Obey CPPFLAGS. 2004-03-29 02:24:11 +00:00
grant
c8ff9fd2ff remove NO_TOOLS. we need the tools stuff to have the .sunpro/.gcc
links created so the compiler can be found.

fixes build problem in sketch's bulk build.
2004-03-28 02:26:42 +00:00
wiz
8c2fda69bb 1.39 from usr.sbin/pkg_install/info/main.c:
Check pkgdb_open for correct return value.
From Peter Postma in PR 24863.
2004-03-22 11:44:24 +00:00
jlam
fa037f0f75 Set USE_DIGEST=no to avoid checking and building a new digest package.
XXX This line should be removed once pkgsrc/bootstrap is up and running.
2004-03-13 21:00:19 +00:00
jlam
552d4662ff Solve a chicken-and-egg problem where pkgsrc uses newer features of
pkg_install, but older NetBSD installations, e.g. 1.5.3, won't support
them.  In this case, we explicitly use the native GCC compiler to
avoid problems with depending on pkgsrc GCC for building pkg_install.
2004-03-13 19:12:26 +00:00
grant
8dcc56addb catch up with bootstrap-pkgsrc changes.
Just a comment doesn't seem to suffice in all cases.  For no-op commands,
use an explicit "true" invocation to avoid problems.  (A future merge of
current bmake may fix this issue.)
2004-03-11 13:33:57 +00:00
grant
b03f3aa882 pass OPSYS and MACHINE_ARCH in the environmen, not CPPFLAGS. 2004-02-11 11:41:43 +00:00
grant
a680366537 just use ${OPSYS} and ${MACHINE_ARCH} from the environment. this means
we can set it in the environment if bootstrapping or have pkgsrc do it
for us.
2004-02-11 11:31:26 +00:00
jlam
e72366f27c Cut-n-paste error. 2004-02-09 22:04:12 +00:00
jlam
1f2f352ee7 bsd.prefs.mk includes mk/compiler/gcc.mk indirectly, which invokes
${PKG_ADMIN}, so we need to not use "-K" with pkg_admin, too.
2004-02-09 22:01:51 +00:00
jlam
cd7f9542e7 Include bsd.prefs.mk after defining PKG_INFO so that we don't pass any
options to pkg_info while evaluating bsd.prefs.mk.
2004-02-09 04:52:10 +00:00
grant
29fb945cb1 sync with NetBSD-current's pkg_install from 20040207. 2004-02-07 10:37:52 +00:00
grant
208dcde535 we need to define OPSYS_NAME and MACHINE_ARCH to build this version of
pkg_install.
2004-01-15 01:40:13 +00:00
jlam
8a84165b29 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.
2004-01-14 23:55:29 +00:00
grant
94be7fc32c don't bother checking for md5.h, as the result overrides libnbcompat's
more appropriate test.

fixes build problem noted on RedHat.
2004-01-12 22:20:36 +00:00
wiz
2897352fde Fix typo; new sentence, new line;
drop trailing spaces; add comma in enumeration.
2004-01-06 16:23:29 +00:00
hubertf
3da9e01015 Rework a bit to describe the pkg wildcards in their own
section, etc.
2004-01-06 16:15:54 +00:00
hubertf
f53fa863f8 pkg_install now prints post-install message by default, if available. 2004-01-06 15:53:41 +00:00
hubertf
af99e2c61f In the "quick depends pre-scan", first print all bad matching depends,
then exit (instead printing one conflicting pkg/version on each run).
2004-01-04 01:49:38 +00:00
grant
a9338209c7 improve DESCR and COMMENT. 2003-12-22 00:23:35 +00:00
grant
d5a22b3847 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.
2003-12-20 04:23:05 +00:00
grant
887e8c6503 Sync pkgtools/pkg_install with src/usr.sbin/pkg_install from 20031121. 2003-12-08 13:50:50 +00:00
cube
f02636860d When there is no distinfo file, do not apply patches we would not
normally apply: treat them as if the distinfo file was empty.

This solves the reason why pkgtools/pkg_install/distinfo was resurrected,
and allows us to remove it again, since it had the side effect of
introducing a dependency on digest, which is not acceptable when updating
pkg_install: it made it impossible to use the pkgsrc tree, as reported
by several people.
2003-11-20 15:07:53 +00:00
hubertf
c686248c8f Add (back) empty distinfo file to mark that this package has no
patches (any more). This prevents SUP users who dont use the "delete" flag
properly to accidentally apply the patches they still have
(which is the reason why we keep patches in the distinfo file at all).
2003-11-10 16:32:56 +00:00
jlam
3607b06f5c 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.
2003-10-29 23:00:27 +00:00
grant
caeb81ba77 move src2nbcompat from pkg_install to libnbcompat. 2003-10-12 01:17:50 +00:00
grant
467b308dcc ensure pkg_admin is called with the full path and use the right
directory for man pages in the PLIST.

fixes remaining part of PR pkg/21858 from Jeremy C. Reed.
2003-10-11 07:29:29 +00:00
grant
80f555cb2e add TAR_CMD to DEFS to ensure we use the full path to tar.
noted by Pierre Bourgin on tech-pkg.
2003-10-06 10:12:42 +00:00
grant
a7fd07a6ce define NO_TOOLS to avoid embedding the path to work/.tools/bin/{grep,sed}
in linkfarm.sh and pkg_view.sh.
2003-09-25 12:43:36 +00:00
grant
dbe2b165b6 sync with NetBSD-current after updates from wiz. 2003-09-23 13:22:37 +00:00
grant
71c17ddbd6 bump date 2003-09-23 07:46:07 +00:00
grant
3c5895a2f6 add --with-{ftp,mtree,pax,tar} to allow overriding the commands that
pkg_install calls, and pass the full path for each from the pkg Makefile.

fixes issue with pkg_add and pkg_create calling non-existent or
less-than-functional tools since it relied on $PATH.
2003-09-23 07:44:48 +00:00
grant
7e46cd752c sync with NetBSD-current's pkg_install-20030923. 2003-09-23 07:13:45 +00:00
grant
33ded8ed84 no need to pass $(DEFS) to $(CC) twice. 2003-09-23 06:36:19 +00:00
grant
237cb732fa clean up autoconf generated files in view/ 2003-09-23 06:05:13 +00:00
grant
452bd6a31a config.lineno -> configure.lineno 2003-09-23 05:30:33 +00:00
grant
6c1b4e7bec shut up the 'do nothing' shell comments 2003-09-19 02:11:22 +00:00
grant
9d4bcc5ba8 remove redundant USE_BUILDLINK2, as we set NO_BUILDLINK later. 2003-09-18 23:43:37 +00:00
grant
c13bb2d3a7 ensure CC is set correctly when running configure in libnbcompat. 2003-09-18 23:42:24 +00:00
jlam
52488ea352 Move inclusion of bsd.prefs.mk a little higher so that /etc/mk.conf
settings won't stomp on our CFLAGS/LDFLAGS/LIBS definitions.
2003-09-14 15:29:03 +00:00
jlam
73bf789d08 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).
2003-09-14 04:58:30 +00:00
jlam
e98f26b486 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?
2003-09-13 09:24:07 +00:00
jlam
06768a3ab4 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.
2003-09-13 05:50:23 +00:00
jlam
4e29ca0c96 Build pkg_install without dependencies by pulling in the libnbcompat source
files and building it locally.  By removing dependencies from pkg_install,
we avoid the circularity of invoking the dependency targets in bsd.pkg.mk
that may in turn invoke the pkg_* tools.
2003-09-13 04:08:12 +00:00
reed
1d55b12a06 Improved DESCR and COMMENT. Changed HOMEPAGE. (Okay'd by jlam.) 2003-09-11 07:14:42 +00:00
jlam
2604176f00 Pull in rev 1.49 of perform.c from src/usr.sbin/pkg_install/info. This
fixes a bug where the pkg_dbdir could no longer be a symlink to a
directory.
2003-09-10 17:31:49 +00:00
jlam
89a39a4308 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.
2003-09-09 13:34:11 +00:00
jlam
a1162ddb60 Whee... pkgdb_remove_pkg returns 1 on success, so make the dummy function
return this value.
2003-09-08 05:58:10 +00:00
jlam
6235d89a6c It turns out the comment at the top of pkgdb_open is wrong. It actually
returns 0 if there is an error, and 1 otherwise.
2003-09-08 05:32:56 +00:00
jlam
f9108a4a31 Substitute for various program paths used by the linkfarm(1) and
pkg_view(1) shell scripts.
2003-09-08 04:49:05 +00:00
jlam
21307bd330 The pkgdb_* functions should be no-ops on platforms that don't have the
db*() functions, so make the dummy pkgdb_open() always return 0 for a
successful open of the package dbfile.
2003-09-08 02:09:04 +00:00
jlam
cac1917e6d Return the documented value "0" instead of EXIT_SUCCESS, which while it may
happen to be "0", isn't what's being explicitly returned.
2003-09-08 02:07:42 +00:00
jlam
81a729e266 Exit if there's a problem building in one of the subdirectories instead of
pretending nothing is wrong.
2003-09-08 01:36:45 +00:00
jlam
fcaad16176 Allow this to compile on systems without vfork by #define'ing it to fork.
This is okay since we just do vfork()/exec() in lib/ftpio.c and don't rely
on any vfork vs. fork semantics.
2003-09-04 20:34:04 +00:00
jlam
ebb438dccb Put back <sys/vfs.h> lost in last update. 2003-09-03 14:22:57 +00:00
jlam
35ae38a50f 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.
2003-09-03 14:05:59 +00:00
jlam
8895f41caf Put back several includes lost in the update that should fix builds on
Solaris and Linux.
2003-09-03 12:32:50 +00:00
jlam
c0b994c4c8 We don't need to build cat1 files since they're part of the sources, so
no need to require the text utilities.
2003-09-02 22:34:04 +00:00
jlam
3f78dd5424 libnbcompat/buildlink2.mk does more magic for us, so do less here. 2003-09-02 22:30:46 +00:00
jlam
45dba79b8a The *.0 files belong in $(mandir)/cat1. 2003-09-02 22:06:25 +00:00
grant
aefcbd4ca5 allow this to build on -current after groff update to 1.19. 2003-09-02 09:08:52 +00:00
jlam
5cbadd5e70 Sync to latest pkg_install sources from the HEAD for pkg_delete
optimizations and man page fixes.  Also use recent src2nbcompat to reverse
the order that "config.h" and <nbcompat.h> are included in *.[ch] files.
2003-09-02 08:28:22 +00:00
jlam
e6a9f770c3 Only copy new files into place if they're different from the original file,
modulo $NetBSD$ tag differences.
2003-09-02 08:26:35 +00:00
jlam
df790619d3 Reverse the order that the config.h file and <nbcompat.h> are included,
since the latter has all sorts of checks to make sure we don't stomp on
any macros defined in config.h, but the reverse isn't true.
2003-09-02 08:07:16 +00:00
jlam
1714c64e33 Re-add the checks for HAVE_CHFLAGS and HAVE_DBOPEN so that this can build
on systems that don't have either function.
2003-09-02 01:37:04 +00:00
jlam
68343ad3b2 Document the actions taken by the tree-conversion script. 2003-09-01 22:49:42 +00:00
wiz
9ded9e4ce9 Drop trailing space; sort sections; sort SEE ALSO. 2003-09-01 16:51:45 +00:00
wiz
709ef68ba6 Sort SEE ALSO, pkg_view(1) not pkg_views(1). 2003-09-01 16:51:31 +00:00
jlam
2b8f551f54 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.
2003-09-01 16:27:07 +00:00
jlam
80667b1247 Do previous in another way: simply define PKG_ADMIN to be the command that
we want it to be.
2003-08-31 11:55:09 +00:00
jlam
05be31747a Explicitly call pkg_admin(1) using "PKG_DBDIR=... pkg_admin" so that we
don't use any options/flags not supported by pkg_admin that may be a part
of ${PKG_ADMIN}.
2003-08-31 11:11:20 +00:00
jlam
b8762b0a9d Fix whitespace 2003-08-31 11:06:02 +00:00
jlam
8b2c221221 Remove lines that have no effect since they're all conditional on
${OPSYS} == "NetBSD".
2003-08-31 10:55:26 +00:00
grant
e173909669 also install man page source, no version bump as this is not yet in
sync with -current, and no functionality change.
2003-07-31 09:51:00 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jschauma
efd2c1e98a Synch with basesrc:
Quote % characters in macro lines.
2003-06-26 15:12:07 +00:00
jschauma
7a025a99c3 Synch with basesrc:
deleting as non-root works fine, so don't insist on running as root
2003-06-26 00:29:01 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
seb
aa1f2cb228 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
2003-04-23 10:27:39 +00:00
grant
2f5a698630 sync with bootstrap:
make sure man pages get installed into a sane location if --mandir is
not specified.
2003-04-20 20:34:05 +00:00
grant
77ab913949 sync with bootstrap and -current:
- pkg_admin getcwd() fix.
- pkg_delete checksum mismatch warning.
- crank PKGTOOLS_VERSION.
2003-04-17 14:00:55 +00:00
grant
1d4e7078a5 sync with bootstrap, remove an unnecessary cast which found its way in
here.
2003-04-17 13:50:54 +00:00
grant
c7a2b35431 sync with current:
darwin doesn't have uint64_t, use int64_t for now.
2003-04-11 21:27:43 +00:00
grant
372e4fe573 sync with -current:
improve a message.
2003-04-11 19:58:50 +00:00
grant
4c3363d8db catch up to bootstrap.
bump PKGTOOLS_VERSION to 20030411.
2003-04-11 14:40:35 +00:00
grant
0c37d26cfe only include db1 support if on NetBSD. fixes updating problem on Solaris. 2003-04-11 14:33:49 +00:00
jschauma
43f0484488 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
2003-03-29 18:41:56 +00:00
wiz
28a4483bc7 NO_PATCH is deprecated, says pkglint. Remove it. 2003-03-28 21:14:10 +00:00
jschauma
ef6b1ec568 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.
2003-03-16 19:44:09 +00:00
grant
9e16a225ad correct #ifdef misplacement. 2003-02-18 15:45:50 +00:00
grant
1231d45b34 Fix some RCS ids. 2003-02-11 16:48:22 +00:00
grant
be9eb6014e 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.
2003-02-11 16:42:06 +00:00
grant
3833154e3f belatedly sync with src:
In pkgdb_remove_pkg, only perform DB functions if HAVE_DBOPEN is defined,
else return EXIT_SUCCESS unconditionally (as in other functions dealing with
db functionality).

fixes build problem on Solaris when no libdb is available.
2003-02-11 14:40:55 +00:00
jschauma
c6bead9a14 Synch with latest changes from src (changes by agc, synch ok'd by agc)
----------------------------------------------------------------------

Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).

Bump lib/version.h due to added functionality.


Order the getopt(3) options alphabetically.


Introduce the notion of "preserving" an installed package.

A preserved package may not be deleted by pkg_delete(1) (unless the -f
option is given), and the preserved capability will be carried into
any binary package. pkg_add(1) will also keep the preserved capability
if it was present in the binary package.

The "preserve" capability can be given to a package by using the
PKG_PRESERVE definition in a package Makefile in pkgsrc.

Ride on the recently-bumped lib/version.h for new functionality.
2003-01-14 15:18:32 +00:00
wiz
caf9bca16b Comment out (non-cat) man pages, currently not installed. 2003-01-12 02:33:02 +00:00
wiz
116e6e6311 Add } that got lost in last. 2003-01-11 11:59:35 +00:00
schmonz
78cacfcfc5 Fix cut-and-paste whitespace damage. 2003-01-11 07:54:28 +00:00
schmonz
dfae993934 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.
2003-01-11 07:52:15 +00:00
agc
35552e5746 Add PKG_PRESERVE to the package Makefile.
Keep the old NO_PKG_REGISTER and NO_PACKAGE definitions for now,
rather than force everyone to upgrade their pkg_install sources to
today's version.

At the next bsd.pkg.mk bump of PKGTOOLS_REQD, this can be readdressed.
2003-01-10 12:01:43 +00:00
schmonz
e0b7a580e0 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).
2003-01-09 13:13:04 +00:00
jschauma
4b2164510a ``On second thought, let's not go to Camelot. It is a silly place.''
(Make pkdb_open return pkgdbp!=NULL as src's does, and revert previous
patch.  As discussed with agc.)
2003-01-07 16:43:56 +00:00
jschauma
37f8100ca0 Unlike pkg_install in src, this version of pkg_install contains
a pkgdb_open that may return one of _three_ values (0,1,-1), so that
we can not simply use
if (!pkgdb_open(ReadOnly))
but need to use
if (pkgdb_open(ReadOnly) == -1)

Mea culpa.
2003-01-07 16:10:02 +00:00
grant
6917a552fa sync with src:
In pkgdb_remove(), use the return value from (*db->del), rather than
explicitly setting and checking errno.

Do some CSE in pkgdb_iter().

Use the db access functions in the proper manner.

Also fix some whitespace nits.
2003-01-07 06:42:28 +00:00
jschauma
588eb561c1 Synch with basesrc:
Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and
errx(3).

Plug a memory leak by modifying the signature of
_pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that
buffer and return it.

Add an enumerated type which is used in pkgdb_open() to specify
read-only or read-write mode.

Modify the return value of pkgdb_open() to have a more logical boolean
value.
2003-01-06 04:34:15 +00:00
jschauma
43f3a41754 Synch with bootstrap-pkgsrc to make this compile on linux.
(Pointed out by Jeremy C. Reed (reed at reedmedia dot net).)
2002-12-28 21:44:00 +00:00
schmonz
687dc0aa1d pkg_install uses Berkeley DB. USE_BUILDLINK2, USE_DB185, and include
databases/db/buildlink2.mk.

On platforms that lack Berkeley DB, pkg_install will build and
install from bootstrap-pkgsrc, but will be missing some important
functionality. On such systems, once bootstrapped, install this
package to get full functionality. (We'll take care of this
automatically in the future.)

Platforms that are reported to lack Berkeley DB in the base system:
Solaris, some Linuxes. There are probably others.

Suggested by "Jeremy C. Reed" <reed@reedmedia.net> on tech-pkg@.
2002-12-24 07:46:09 +00:00
grant
f2aa2a7729 reorder libraries passed to ld(1) so that this works if libdb1 is
present.

From Frank Cusack in PR pkg/19494.
2002-12-22 13:10:12 +00:00
grant
4c9c04ddc9 fix MD5File() compatibility function to accept NULL second argument.
fixes problem with `pkg_admin check'.

Fix from Frank Cusack in PR pkg/19492.
2002-12-22 12:15:11 +00:00
salo
7bf03737bd Revert previous change.
It turned out to be "pkg_install installed over zoularis and wrong PATH" local
problem.  Sorry for the fuzz.
2002-12-22 09:12:11 +00:00
salo
e87d652ff9 Update ZOULARIS_VERSION on non-NetBSD systems after installation.
This stops current loop:
- PKGTOOLS_REQD bump
- update pkg_install
- ZOULARIS_VERSION is too small, newer pkg_install required
- update pkg_install
- ZOULARIS_VERSION is too small, newer pkg_install required
...
2002-12-22 08:58:05 +00:00
schmonz
3b05b1365a These packages no longer use BSD-style .mk files, so MANCOMPRESSED_IF_MANZ
and MANINSTALL aren't needed.
2002-12-21 05:05:28 +00:00
schmonz
b42900e9c2 USE_BUILDLINK2=no because this is a pkgsrc bootstrap tool. 2002-12-21 04:08:47 +00:00
schmonz
674ab9fcc5 There's no need for a custom ${WRKSRC} definition. 2002-12-20 18:27:14 +00:00
schmonz
f2197af27c As the sources are now in ${FILESDIR}, there's no distfile to fetch,
and the "do-extract" target copies the sources into ${WRKSRC}. We
automagically determine VERSION by inspecting ${FILESDIR}/lib/version.h.

Thanks to autoconf, all the patches and almost all of the cruftulent
${OPSYS}-specific stuff in the Makefile are gone.
2002-12-20 18:15:52 +00:00
schmonz
55c0604b89 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.
2002-12-20 18:13:52 +00:00
hubertf
3e6754dedc Clean up wording a bit. Emphasize that PKGTOOLS_REQD should only be
changed if really necessary.
2002-12-12 01:50:47 +00:00
schmonz
0a1bd5acad Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate. 2002-12-07 02:38:52 +00:00
wiz
62287655f6 Always use pkgdiff -- this avoids having RCS Ids in patches. 2002-11-23 23:14:40 +00:00
jschauma
e93af85326 Commit change to patch-ad that mysteriously got lost in last commit.
(Thanks wiz!)
2002-11-23 23:03:24 +00:00
jschauma
8148af8e58 Upgrade to version 20021123, which fixes PR pkg/18384 by Grant.
Curiously, several of the patches required some changes -- have these
not been tested with the latest version of pkg_install?
2002-11-23 22:49:47 +00:00
cjep
dd2d72e624 Tweaks for OpenBSD (cf. recent bootstrap-pkgsrc commit) 2002-11-17 09:37:21 +00:00
abs
ad0c708fc1 Toss in strlcpy.c and hey presto: Instant linux pkg_install binaries. 2002-09-23 13:16:59 +00:00
abs
9eaafb2895 If defining TAILQ_FIRST and TAILQ_NEXT ensure we also define
TAILQ_HEAD_INITIALIZER - required for linux build.
2002-09-23 12:57:27 +00:00
agc
f2bc5d7427 Revert previous change (which wouldn't have worked in all cases) until more
discussion has taken place.
2002-09-05 09:20:14 +00:00
itojun
2e050af8bf make pkg_install self-bootstrapping (no need for /usr/sbin/pkg_*). 2002-09-05 00:00:27 +00:00
schmonz
67bd904082 Darwin needs -DTAR_MISSING_FAST_READ, as noted by "Masahiro =Rhythm
Drive= Ishiyama" <masahiro@wide.ad.jp> on tech-pkg@.
2002-08-12 01:58:25 +00:00
wiz
d1c1903912 Make it build on 1.4-1.4.2. 2002-08-06 11:51:01 +00:00
wiz
7dcb292dc8 regen 2002-08-05 15:55:12 +00:00
wiz
88039eecaa Make compile again on 1.4.3. [Does not compile on 1.4.2 due to missing
strlcpy.]
2002-08-05 15:54:56 +00:00
fredb
61a260e52c Reduce warning levels on NetBSD, to make this compile on the netbsd-1-5
branch. WARNS=2 turns on all kinds of stuff that isn't really appropriate,
and isn't turned on in current. "-Wwrite-strings", in particular, triggers
an error on a bit of harmless code in "file.c". Closes PR pkg/17840.
2002-08-05 15:11:35 +00:00
seb
368a3794f9 Until this package is updated one more time from basesrc, provide a patch
for Solaris on FTP_CMD value in Makefile.inc.
Fixed in revision 1.19 of basesrc/usr.sbin/pkg_install/Makefile.inc.
2002-08-03 18:29:52 +00:00
schmonz
7794acfa2c The 20020723 pkg_install tools use strlcpy(), which Darwin lacks.
Provide a strlcpy() implementation (from -r1.12 of
basesrc/lib/libc/string/strlcpy.c), and use it on Darwin.
2002-08-01 14:43:38 +00:00
martti
a38462735b Updated pkg_install to 20020723
- remove handling of PKG_ADD_BASE.
- don't search current directory if PKG_PATH is set.
- don't prefer local directories.
- constify and cleanup.
2002-08-01 09:31:13 +00:00
wiz
cd21fd6491 Remove $Id$ from patch, and standardize. regen distinfo. 2002-07-05 13:14:23 +00:00
abs
bb2cc9141c how did I mess up distinfo on patch-ah? Its a new file but.... mystery 2002-07-05 13:12:35 +00:00
abs
58f7487e94 LORDER and TSORT will be handled in the correct place 2002-07-03 22:53:17 +00:00
abs
e70f9ef77d Compile and run under Linux. We're still missing pax and mtree, but using the
Darwin bootstrap kit everything else now works.
2002-07-03 22:43:39 +00:00
martti
60479e848e Updated pkg_install to 20020402 (fixes pkg/16176)
Check the return code from the second invocation of installprereq(), to
make sure that a failed installation of a rpe-requisite package kills
the attempt to add the package. This reverts pkg_add(1) to traditional
behaviour.
2002-06-10 05:51:05 +00:00
schmonz
11cf767c94 Darwin provides a /usr/bin/gnutar newer than what's in archivers/gtar-base. 2002-06-08 16:45:47 +00:00
seb
c5314a9d8b Update the pkg_* tools to version 20020218.
Changes summary:
- Support digital signatures in binary packages.
- Use full path name to tar.
- Fix ``pkg_add -u'' for packages without dependencies.
- Add ``-U'' and ``-I'' options to pkg_create.
- Close some memory leaks.
- Add ``-n'' argument to pkg_info to show needed packages.
- Fix pkg_info to not FTP unneccessarily
- Improve version number handling:
	- recognition of "pl" ("patchlevel") and "rc" ("release candidate")
	  strings
	- recognition of '_' and "pl" as pseudonyms for '.' (1.2pl2 == 1.2.2)
	- handle alphabetic characters properly (1.2e == 1.2.5)
	- 64-bit integers are used internally for each component of the version
	  number.
- Various internal cleanups, bugfixes, and API tweaks.
2002-03-04 13:48:30 +00:00
seb
18a2cde224 Make it compile and install cleanly on Solaris.
Avoid using '..' in LOCALBASE as it might end up in the binaries as part of
TAR_FULLPATHNAME.
Record MANINSTALL setting.
Add a workaround for SHLOCK definition or else LOCALBASE setting breaks it.
2002-03-04 12:39:37 +00:00
agc
07599c6130 On Darwin, use GNU tar (from the gtar-base package) when creating binary
packages, since certain arguments passed to the tar command by pkg_create
assume the existence of GNU tar (-T for one), and Darwin's standard tar
doesn't understand these.
2001-12-27 22:10:15 +00:00
agc
a8ed1a238b Patches from Yuji Yamano <yyamano@kt.rim.or.jp> to make this compile
properly on Darwin.
2001-12-17 21:23:42 +00:00
zuntum
273821c4d3 Move pkg/ files into package's toplevel directory 2001-10-31 20:59:00 +00:00
agc
a69e6c0802 Add patches for Darwin 2001-10-30 14:17:02 +00:00
agc
b97e1abdf6 Set the LOCALBASE in this package Makefile in a more scientific manner.
Add extra definitions to be able to build and install this package on
Darwin.
2001-10-30 14:12:37 +00:00
wiz
ed12cf97a3 Update to 20010724:
Better support for tbz packages, `pkg_add -u', and lots of man page fixes.
2001-07-24 15:02:14 +00:00
hubertf
83bb55975b remove NetBSDism - there is no "text" set on !NetBSD 2001-04-19 01:50:06 +00:00
hubertf
9f0cac147a Warn user that the 'text' set must be installed in order to build
(and install) this package.
2001-04-17 14:44:31 +00:00
agc
d0c6da854f + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
+ add distfile sizes to distinfo
2001-04-17 12:01:42 +00:00
wiz
62c875438b Update to 20010307: Fixes pkg/12073, and builds on 1.4.x. 2001-03-07 10:13:59 +00:00
hubertf
f3c6afed8b fix. really. now. 2001-03-07 01:11:48 +00:00
hubertf
f3bb9c24cd Next fix - go back to MD5 checksums, and rework patch 2001-03-07 01:03:12 +00:00
hubertf
45d212dba7 * Forgot patch-sum file from last commit
* Reduce context from patch-aa, as it contains a RCS Id
   (that's what you get for not using pkgdiff!)
2001-03-07 00:54:19 +00:00
hubertf
887bdb5a52 Fix this to compile on systems that don't have a make(1) from
post-1.5 NetBSD-current.

XXX is removal of NO_PATCH ok here? (Zoularis context etc.)
2001-03-07 00:17:29 +00:00
wiz
c94913c27b Update to 20010306 (bugfix for pkg_add '*'; -V option for version). 2001-03-05 18:24:05 +00:00
hubertf
b1fe99775b Allow overriding PKG_DBDIR in /etc/mk.conf 2001-02-25 03:42:16 +00:00
hubertf
7ccacb5045 Update to 20010221 to work around a pkg_* bug where "nbX" isn't properly
recognized in version matching of pkg_add, pkg_admin.

This is the src/usr.sbin/pkg_install from -current as of today, with
pkg_install/Makefile.inc and pkg_install/Makefile from 1.5, to allow this
to build.
2001-02-21 13:31:47 +00:00
wiz
a87738b456 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:42:09 +00:00
hubertf
9246b9d6a0 pkg_install-20001220 update.
Post-1.5 version that fixes the timeout-problem when installing via FTP
(the 10-minute timeout was on the whole transfer, not on a single file
inside the package).
2000-12-20 04:02:45 +00:00
hubertf
0511329363 pkg_* sure support IPv6 (thanks to lukemFTP :) 2000-07-27 23:32:03 +00:00
dmcmahill
b6e6e92c6c update to 20000724.
This includes a buffer overflow bug fix in pkg_add which was causing pkg_add
to segfault on teTeX on pmax.  The bug was present on all ports though.  As
far as I can tell this was a non-exploitable overflow.
2000-07-24 21:20:23 +00:00
hubertf
83c02fa986 Update to 20000705.
Change: only calc MD5 checksums of plain files.
2000-07-05 20:31:50 +00:00
hubertf
137cde977e Update to sources from 20000608.
Makes this compile again on 1.3.x systems, reported in PR 10322 by
Olaf Seibert <rhialto@polder.ubc.kun.nl> and others.
2000-06-14 01:52:59 +00:00
hubertf
f3af0f3db4 Update to 20000511 version. Mostly to sync with the base system.
Among others:

 * pkg_add: Quick pre-check if any conflicting dependencies are installed
   (e.g. version X is installed, but version Y is required), before
   downloading all depends, and bail out later.
 * pkg_admin: add lsbest, lsall commands to interface the C functions
   findmatchingname() and findbestmatchingname(); useful to expand pkg
   patterns for shell scripts etc.
 * pkg_admin: allow pkg without version to "check" command
 * pkg_delete: properly deal with wildcards in pkg_delete -R
 * More code cleanup, clearer error messages and minor enhancements.

This also fixes a bunch of PRs, sorry for not listing any numbers.
2000-05-15 00:54:54 +00:00
hubertf
c103ff363a Make the "how to update the distfile" ready for cut-n-paste 2000-02-27 04:28:47 +00:00
hubertf
52c188d0e3 bump to 20000202 2000-02-02 16:26:51 +00:00
wiz
42da0a2002 miscellaneous small changes to make pkglint happy 2000-01-10 01:39:02 +00:00
hubertf
a4218c8afc bump to 19990909 - DEINSTALL fix 1999-09-09 01:59:04 +00:00
hubertf
4d99083a05 Bump version to pkg_install-19990823.
Main reason is that the last update collided with an earlier one
on the same day, and people ended up with the wrong distfile
(content-wise).

New features in this version:
 - Compile in full names for chown(1), chmod(1) and chgrp(1).
   Fixes PR 8250 by Wiz <wiz@danbala.ifoer.tuwien.ac.at>.
 - pkg_delete calls DEINSTALL script a second time after all the files
   are removed, with "DEINSTALL $PKGNAME POST-DEINSTALL" as args
1999-08-23 15:41:24 +00:00
hubertf
035684b0e0 Update checksum for pkg_info/delete changes. 1999-08-19 21:44:27 +00:00
tron
33dca58479 Update package tools to version 19990819:
- fixes false conflict detection in "pkg_add".
1999-08-19 07:32:57 +00:00
agc
fd7b118f38 Some packages use bsd-style .mk files when building, and so any manual
pages that are installed will be gzip-compressed, if MANZ is set, or
not if MANZ is not set.  If the package uses bsd-style .mk files, the
variable MANCOMPRESSED_IF_MANZ should be set to a value of "yes" in
the package Makefile.  This replaces the previous method of specific
inclusion of bsd.prefs.mk, followed by a check for MANZ and
conditional assignment of MANCOMPRESSED.

Add appropriate documentation, and change all necessary ocurrences in
package Makefiles.
1999-07-02 08:37:20 +00:00
tron
1c642418ed Downgrade to version 19990412. 1999-05-30 16:54:16 +00:00
tron
74d8f8543b Remove blank line. 1999-05-30 16:53:30 +00:00
tv
20b0669301 Set LOCALBASE explicitly after bsd.pkg.mk, and do not set PREFIX. 1999-05-30 14:02:52 +00:00
hubertf
1f8d1dac7c fix checksum, forgotten in last update 1999-05-30 12:50:11 +00:00
christos
a4d1df77f9 update package source to 19990529 1999-05-30 03:21:58 +00:00
tron
2faa58cd00 Neither "patch" nor "configure" step is required. 1999-04-19 20:11:07 +00:00