Commit graph

126 commits

Author SHA1 Message Date
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
tron
a6c8cfea36 Update "pkg_install" package to 12-April-1999 current sources. 1999-04-19 19:58:57 +00:00
hubertf
ebc24f39ef The print-pkgtools_ver target was renamed to show-pkgtools-version
some time ago. Note this here!
1999-04-18 23:03:36 +00:00
rh
8b199e515c Fix shell error causing "Syntax error: end of file unexpected"
if ${PKG_DBDIR} is missing
1999-04-16 10:50:12 +00:00
hubertf
7e6fa7c776 No need to call "pkg_admin rebuild" for every install. 1999-03-30 12:52:36 +00:00
garbled
466c7c1594 If the user has never installed a package before, /var/db/pkg does not
exist, and pkg_admin rebuild fails miserably.  Create this directory
if it does not exist.
1999-03-25 16:18:47 +00:00
tv
1f26cde619 This is pkgsrc, not the main tree; lint and depend only add useless extra
to the compile time.
1999-03-16 15:42:59 +00:00
hubertf
41e25a0c48 Call "pkg_admin rebuild" if it was never run before.
This should ONLY be run when upgrading from a non-pkgdb to a
pkgdb-version of the pkg_* tools.
1999-03-13 03:47:49 +00:00
bad
28d2e66b3a To be able to shoot oneself in the foot with a binary package of this,
LOCALBASE and NO_MTREE must be set.  Some manual intervention is still
necessary before it can hurt, though.
1999-03-08 17:34:51 +00:00
bad
1c131f7a6a Update for pkg_admin. 1999-03-08 15:59:37 +00:00
hubertf
c264c1474e fix for pkgdb version (19990119) 1999-01-19 23:37:23 +00:00
hubertf
0778b85ccb Adjust for the pkgdb code 1999-01-19 23:34:07 +00:00
hubertf
ed5fd0d3c4 bump PKGTOOLS_REQD to 19981107 1998-11-09 15:45:11 +00:00
hubertf
90e00077ef mention "make print-pkgtools_ver" 1998-11-09 14:45:06 +00:00
agc
a1b5626a3b Update the (package) version of pkg_install tools to 19981026, to use
the new -b and -B flags to pkg_create, so that any binary packages
that are created automatically get their build information and
versioning data attached.
Update bsd.pkg.mk to have PKGTOOLS_REQD= 19981026.
1998-10-26 18:29:10 +00:00
agc
ca0d854dae Update this package to use the -current sources from October 19th, 1998. 1998-10-21 09:24:50 +00:00
agc
14222ef944 Make it clear for whom the instructions about creating a distfile are
intended.  Add a note about checking the "pkgtools version required"
definition in bsd.pkg.mk
1998-10-15 11:14:19 +00:00
hubertf
a87ad3b852 Add note on how to update this pkg's distfile. 1998-09-27 23:12:20 +00:00
tron
4f1b135ac8 Update package tools to 980911 to catch "pkg_add" dependence fix. 1998-09-11 19:04:47 +00:00
agc
b7c0d55b71 Set NO_PACKAGE for this package - binary packages cannot be made,
since package registration does not take place.  Fixes a problem
pointed out by Charles Hannum.
1998-08-28 14:23:18 +00:00
agc
a477e5037b + Add a pkgtools category.
+ Add a pkg_install package, in the pkgtools category, which is a copy
of NetBSD-current's /usr/src/usr.sbin/pkg_install sources, as of
August 28th 1998.  This version of the pkg_* tools includes a version
of pkg_info(1) which echoes matching package names, understands sh(1)
globbing, csh(1)-style {,} alternates, and Dewey decimal version
number relational matching.
1998-08-28 12:25:35 +00:00