Commit Graph

310 Commits

Author SHA1 Message Date
hubertf 14dbdb5745 * Make a few functions public so this code can be used by other programs
* Comment a workaround for a certain lukem ftp behaviour
 * Fix a bug where a invalid initial dir was not caught early enough
2000-08-28 21:35:14 +00:00
hubertf 0186d67219 Hide "trying PKG_PATH ..." message, only print on -v 2000-08-28 15:39:35 +00:00
hubertf 8102826629 Keep *roff from eating things.
Noted in PR 10687 by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
2000-07-26 15:18:09 +00:00
dmcmahill 43301f1fee Fix a buffer overrun bug. The TOOBIG macro had some hard coded constants
which needed to be set at compile time but weren't (to handle the case where
TAR_CMD was set to something other than "tar", eg "gtar".  In addition to
the constants being wrong, the wrong directory name was being examined for
its string length.

Add a few comments to hopefully avoid having this problem come back.
2000-07-24 20:09:15 +00:00
hubertf c0f021878e handle NULL pen variable more gracefully in find_play_pen() 2000-07-24 02:54:22 +00:00
hubertf 0379a1727a remove/hide some debugging code 2000-07-06 16:06:36 +00:00
hubertf 7ca7a7f658 Only calculate MD5 checksum for plain files.
As a side effect, fixes handlink of links to dirs.
2000-07-05 20:18:16 +00:00
hubertf 2b35b3d322 * Move comment around a bit
* Document some return code
2000-07-05 20:17:04 +00:00
msaitoh f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
hubertf 65162fd077 be sure to set pkgdbp to NULL after closing the db. 2000-06-19 13:28:06 +00:00
hubertf f9aaf0a4e5 Allocate space & copy a string returned by a function that'll clobber it on
next call.
2000-06-19 00:55:11 +00:00
hubertf 74056630be remove stale debugging code 2000-06-18 01:31:23 +00:00
hubertf e5b91ee82e * shuffle variable names in findbestmatchingname_fn() around
a bit, to make them more descriptive
 * in findbestmatchingname_fn, fix a bug where a null pointer wasn't
   caught (I wonder why we didn't actually hit that case...)
 * Bugfix in findbestmatchingname_fn: when comparing, strip off any
   trailing ".tgz", as this will give wrong results. "1.9.8.tgz" was
   found to be greater than "1.9.8.1".
2000-06-18 01:29:30 +00:00
hubertf 7aed2e5cfb use /var/tmp consistently. (XXX need to re-visit if we ever
put pkg_add on a install floppy)
2000-06-18 01:29:17 +00:00
tron 1b5dabcf75 Update prototype for "extract_plist()". 2000-06-17 11:30:49 +00:00
sjg 7bd1e30c61 extract_plist() should inform caller when it aborts extract 2000-06-16 23:49:17 +00:00
sjg cc95d19ae1 avoid possible overflow of exit status 2000-06-16 23:48:23 +00:00
hubertf 2b57637552 ftp(1)'s "ls" now lists files/dirs plus attributes (much like "dir" did
before). Use "nlist" to still get filenames only.
Needed to expand wildcards.
2000-06-08 00:26:48 +00:00
hubertf 29efdd4919 save another call to allocate space on the stack for something that's
definitely going to end up there.
2000-06-07 03:17:10 +00:00
hubertf 6fa913c454 Don't use asprintf() which isn't available on NetBSD 1.3.2. 2000-06-07 02:10:28 +00:00
hubertf 0948b6f2cb pkg_delete -r was done by Chris Hopps (I used the same code do implement
pkg_delete -R on that later on).
2000-05-16 16:38:15 +00:00
hubertf 7f040da3cd Don't remove any INSTALL scripts. Just in case someone needs them later
(e.g. to tar up the pkg again, and install it elsewhere).
2000-05-16 15:59:16 +00:00
hubertf 5cb5e5143c Don't read +CONTENTS files if not needed. 2000-05-15 23:14:42 +00:00
hubertf 8b8a982165 When expanding wildcards given on the command line, don't include
files (from /var/db/pkg). Only directories can contain pkgs.

Fixed PR 10083 by Dan McMahill <mcmahill@mtl.mit.edu>
2000-05-11 14:13:13 +00:00
hubertf d06e2d8e2e Add "lsall" and "lsbest" commands to pkg_admin, to find all/best
package matching a certain pattern. Examples:

            yui# cd /usr/pkgsrc/packages/i386ELF/All/
            yui# ls unzip*
            unzip-5.40.tgz  unzip-5.41.tgz
            yui# pkg_admin lsall 'unzip*'
            unzip-5.40.tgz
            unzip-5.41.tgz
            yui# pkg_admin lsall 'unzip>=5.40'
            unzip-5.40.tgz
            unzip-5.41.tgz
            yui# pkg_admin lsall 'unzip>=5.41'
            unzip-5.41.tgz
            yui# pkg_admin lsbest 'unzip>=5.40'
            unzip-5.41.tgz
            yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*'
            /usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz

This adds a shell/user-interface to pkg-patterns, which are a superset
of sh/csh patterns and can't be expanded by any shell.
2000-05-08 22:48:42 +00:00
hubertf b471b566f8 In require_delete(), actually use the expanded wildcard passed in via
@pkgdep.

Fixes PR 10056 by Dan McMahill <mcmahill@mtl.mit.edu>
2000-05-07 00:33:28 +00:00
mycroft 411fdd599d Fix obvious typo in previous commit. This could not possibly compile. 2000-04-30 07:57:45 +00:00
hubertf c669928eeb Print appropriate warning if the directory of a @dirrm is not present
at all.

Pointed out & fix reviewed by Thomas Klausner.
2000-04-29 22:39:58 +00:00
hubertf d071991a9a Don't abort during quick depends pre-scan when -f is used 2000-04-01 23:31:39 +00:00
hubertf f996345ebf Improve the last change.
Handling all kinds of wildcards properly would be hard, though it should
handle some cases better now. Esp. ones with '-' in the pkg(!) name, and/or
ones with dewer relational versions. I.e. the teTeX-share>1.97 case should
work now.
2000-04-01 22:12:45 +00:00
augustss 93336646e4 Make this compile again. 2000-04-01 14:54:51 +00:00
hubertf 404096ac77 In the "quick depends pre-check" don't only try to replace anything
after a "-" with the "more liberal pattern", but also anything after
any pkg wildcard.

That way if someone has teTeX-share-1.0 installed and pkg_adds
teTeX-1.0.7 (which wants teTeX-share>1.0.2), it will be caught.

XXX This "quick depends pre-check" would be nice to be done in
    bsd.pkg.mk as well
2000-03-31 22:12:56 +00:00
hubertf 0c2cdb98d9 * in pkg_add, before the "install dependencies" loop, check ALL
dependencies if they _can_ be installed. I.e. if a package wants
   version X installed, but version Y is already installed, pkg_adding
   that required pkg will blow up later (probably some pkg_add recursions
   down, given what we keep in the depends list). Now, it stopps right
   away:

        noon# pkg_add /usr/pkgsrc/packages/i386ELF/All/xdaemon-1.0.tgz
        pkg_add: pkg `xteddy-1.*' required, but `xteddy-2.0.1' found installed.
        Please resolve this conflict!

   The idea of this is from Thomas Klausner, further inputs from Alistair
   Crooks.

 * allow pkg names without versions given to "pkg_admin check"
 * Use sizeof() instead of hardcoding the buffers' size in some places
2000-03-19 17:24:27 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
hubertf 495734ff62 - Bump timeout in select() to 10 minutes
- Make sure ftp_cmd() properly passes down an error value (-1) when
   appropriate.
2000-02-27 02:35:28 +00:00
hubertf 93b37b7f07 adjust copyright 2000-02-22 01:24:26 +00:00
abs ce9e985266 Special case 'nb<X>' suffix in deweycmp() - this allows NetBSD specific
changes to packages to have a unique version, and still work with deweycmp().
2000-02-07 11:26:26 +00:00
hubertf 422fde1de4 init buffer differently 2000-02-04 03:45:48 +00:00
hubertf b932078a68 remove clutter left after switching to mkstemp 2000-02-02 14:54:50 +00:00
hubertf 4b164aae49 Use mkstemp instead of mkstemp. 2000-02-02 14:42:53 +00:00
hubertf 45d0c80c1d add copyright and (more important!) _RCS_ID() 2000-02-02 14:09:40 +00:00
agc cf6ad33088 Set the environment variables to have zero-length strings on Solaris. 2000-02-01 10:46:55 +00:00
agc 2a29f83468 Fix a typo.
Make a start at linting this.
2000-01-31 13:39:08 +00:00
agc 69acf6de93 Fix for Solaris: don't try to call unsetenv(). 2000-01-31 13:33:19 +00:00
hubertf 938c6a8b17 be a bit more liberal WRT slow servers 2000-01-26 02:12:14 +00:00
hubertf 549295852e -current's gcc seems to be a bit picky about using pointer-differences as
args to the "*" of a printf "%*.*s" pattern. Add some casts to int.
(At least on NetBSD, ptrdiff_t is typedef'ed to int anyways)
2000-01-25 17:21:07 +00:00
hubertf 4a961a7fc3 some code cleanup 2000-01-25 12:09:19 +00:00
hubertf 9d0c5bb4ee FTP wildcard depends code, initial commit.
Modulo some code cleanup, this gives NetBSD full wildcard support not
only in pkgsrc, but esp. for binary packages installed from local disk
and via FTP. For more information, see:

	http://www.feyrer.de/NetBSD/wildcards.html
2000-01-19 23:28:28 +00:00
hubertf d46e75859c Reverse wording for -R. Per PR 9141 by Jim Bernard <jbernard@ox.mines.edu> 2000-01-17 00:48:52 +00:00
hubertf bbb733f849 mention -Ss in usage 2000-01-10 14:53:56 +00:00
hubertf be120f8f41 Also move the +SIZE files into place, if a pkg comes with some. 2000-01-09 17:21:53 +00:00
hubertf 873c34bf5e Some changes from David Maxwell <david@fundy.ca>:
- make it clear that a URL or full path can be given on the command line
 - explain where depending pkgs are expected to live
2000-01-04 22:39:28 +00:00
hubertf be1f1ece47 Set things to a sane state for db(3) routines. 1999-12-20 18:23:03 +00:00
hubertf 78254bd723 Put back former -s switch to pkg_create as -L now.
Fixes PR 8982 by Eric Schnoebelen <eric@cirr.com>
1999-12-20 03:25:57 +00:00
hubertf d11f27480e Not without my handbag. (Forgot this in last commit) 1999-12-01 15:15:29 +00:00
hubertf 402f80b9da - Comment code
- Minor re-indenting
 - Fix printing of @ignore in pkg_info (did this ever work?)
 - Fix installing of local wildcard dependencies (unused in main system)
 - Fix deleting of packages that depend on wildcard dependencies
   (fexist() is not enough there :-)
1999-12-01 14:51:50 +00:00
hubertf 28f1032831 Document the current round of the game. :-) 1999-12-01 05:08:34 +00:00
hubertf 2b494f847d Don't be verbose unnecessarily. (Instead, just remove this stale debug
code)
1999-12-01 05:08:10 +00:00
hubertf ecf89794f5 Put support for @src back in.
For users who use private packages that use it. (Hi Bill!)
1999-11-29 20:09:54 +00:00
hubertf 406791739c Add code to include the size of a package into both the
installed version and binary packages. The size can be queried then
via pkg_info:

        xfeyrer @ noon% pkg_info -s xv
        Information for xv-3.10apl1:

        Size of this package in bytes: 4670692


        xfeyrer @ noon% pkg_info -S xv
        Information for xv-3.10apl1:

        Size in bytes including required pkgs: 14610165

While doing work on the size code, support for the @src directive was
removed (formerly enabled with the pkg_create -s switch, but unused in
our pkg system).  The new pkg_info -s and -S switches were tested on
installed, local (file) and remote (ftp) packages.

In bsd.pkg.mk, take special care for pkg_* versions that do not have
the pkg_create -s and -S switches and do not record size information
there.
1999-11-29 19:48:44 +00:00
kristerw 2220c68654 Typos (from OpenBSD) 1999-11-18 19:02:31 +00:00
fredb 60fae50bc1 Don't preserve uids or permissions of checked out files (MTREE, DEINSTALL,
INSTALL) into package tarballs. Files installed by the package itself are
not affected.
1999-11-18 02:05:16 +00:00
abs 9c1ad975e8 Check return value from realpath() to avoid a NULL pointer being passed to
alloc_lpkg(). Avoids coredump if current directory is invalid.
1999-11-10 18:51:47 +00:00
proff e09818f9fd Apply Force (-f) recursively 1999-10-04 17:16:59 +00:00
hubertf 1f6247c83d Add some sanity checks on what pkgdb_retrieve() returns.
Noted by D'Arcy J.M. Cain <darcy@druid.druid.net> on current-users.
1999-09-24 14:39:44 +00:00
hubertf 7ddf2760b9 Handle symlinks to directories correctly in "check" and "rebuild".
Problem reported by Matthias "tron" Scheler in private mail.
1999-09-13 00:32:14 +00:00
hubertf d29beeb5df Remove the LogDir (/var/db/pkg/foo-x.y) _after_ we've run the DEINSTALL
script a second time (else there's nothing left to run ;).

Noticed by Jim Wise.
1999-09-09 01:36:30 +00:00
hubertf b59ddc2237 Comment pl_ent_t to make debugging easier. 1999-09-09 01:31:44 +00:00
christos 6829e9be33 pick the proper uname. 1999-08-30 04:20:22 +00:00
hubertf 8ee940971e Bring closer to /usr/share/misc/style with the aid of indent(1). 1999-08-24 00:48:37 +00:00
hubertf c39c4fc075 Hide test for URLlength()>0 behind a macro (IS_URL()). 1999-08-23 15:17:03 +00:00
agc b62dac7b36 Provide full pathnames for chgrp(1), chown(1) and chmod(1), passing
them down from Makefile.inc on an OS-specific basis.  Fixes PR 8250
from Wiz <wiz@danbala.ifoer.tuwien.ac.at>.
1999-08-23 10:34:53 +00:00
hubertf 3fb135484d Call deinstall-script after files are removed:
deinstall <pkg-name> POST-DEINSTALL

(PKGTOOLS_REQD not bumped, as nothing in pkgsrc uses this so far)
1999-08-21 02:21:13 +00:00
agc eed4a2840a Fix braino, pointed out by enami - OS is not defined on NetBSD. 1999-08-20 14:34:34 +00:00
agc cf95737b8e The copy_hierarchy function is never called. Remove its definition and
prototype.
1999-08-20 09:20:20 +00:00
agc b41eccc5cd Make this work on Solaris "out of the box" 1999-08-20 09:12:10 +00:00
hubertf c94d3e89cb Allow specifying a package name without a version.
If no (installed) package is found with the given name, "-[0-9]*" is
appended, and the search retried. Withs with any options to pkg_delete
and (esp.) pkg_info:

	pkg_info kde
	pkg_info -e emacs
	pkg_info -qL xlock
	pkg_delete -v emacs
1999-08-19 19:37:20 +00:00
agc 358f97854c Pass BINDIR down via Makefile.inc, rather than hardcoding /usr/sbin -
useful for systems where /usr/sbin is not the directory of choice.
1999-08-19 14:37:36 +00:00
agc d5c5c423a3 Consolidate URL handling into a table of valid leading strings for
URLs, and an access function (URLlength) - saves having various
hardcoded strings all over the place. Delete isURL, and use URLlength
in its place. Also use URLlength when parsing a filename for host
and filename part.
1999-08-19 14:12:34 +00:00
agc 72077b961b Clean up minor nits in C code. 1999-08-19 13:29:59 +00:00
tron 4ea05d6101 Add two missing "(void)" casts. 1999-08-19 07:18:38 +00:00
tron dffe3016d3 Modify conflict check to avoid matching packages with the same name prefix
(e.g. "teTeX" and "teTeX-share"). Patch is based on a suggestion by
Hubert Feyrer, fixes PR pkg/8219.
1999-08-19 07:17:35 +00:00
tron ad6d07bbfa Message files in binary packages are not displayed with more(1). 1999-07-28 10:07:05 +00:00
christos 6e1a032789 cast args to strcmp; 1999-07-10 20:17:21 +00:00
hubertf ef0989e5e0 Document PKG_TMPDIR 1999-07-02 19:05:45 +00:00
mrg fccfa318a5 don't print a useless error message. 1999-06-18 09:50:35 +00:00
cgd bb8cb1198b Add support for fetching packages from HTTP URLs. Since 'ftp' is already
invoked for (FTP) URLs, this was just a matter of recognizing HTTP URLs
in the places where FTP URLs were recognized (and updating a comment and
the manual page).
1999-06-15 06:32:00 +00:00
tron 343ac4c964 Remove support for absolutes pathnames completely. This can't work with
binary packages like we support them now.
1999-05-30 16:08:23 +00:00
christos 3024caeb08 Don't prepend directories if the plist files are absolute. 1999-05-29 20:44:20 +00:00
hubertf b6d55241da @srcdir was renamed to @src long ago, reflect this in documentation;
noted in PR 7555 by R. C. Dowdeswell <elric@imrryr.org>
1999-05-15 03:27:50 +00:00
tron 1fceefc0ce Fix wrong error handling in case "/var/db/pkg" needs to be created.
Patch suppled by Roland Dowdeswell in PR pkg/7566.
1999-05-12 20:43:49 +00:00
hubertf 3adf761c0b Use absolute path to tar(1) in execl() call.
*** This makes retrieval of pkgs via ftp work again!

Also don't just call exit() if the execl() call fails, but print some
error (via err()).
1999-04-12 00:29:51 +00:00
simonb 2350b6d9ea Fix tyop. 1999-04-10 13:05:18 +00:00
hubertf c7cd57bc07 Fix off-by-one error. (This was detected using libefence) 1999-04-10 02:17:21 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
abs 7960b91475 Ignore files in /var/db/pkg (hint 'pkg_info pkgdb.byfile.db') 1999-03-22 06:04:16 +00:00
hubertf 04417da166 Replace static array of packages given to pkg_perform() with linear
list, using chopss' list functions (moved to lib/lpkg.c and
lib/lib.h).

Properly handle wildcards in arguments to "pkg_info", "pkg_delete" and
"pkg_admin check".

Some other minor cleanups.
1999-03-22 05:02:39 +00:00
abs 0dee719066 Fix '-f'. 1999-03-22 03:24:04 +00:00
hubertf 2b8601f04f be more cautious about preserving cwd 1999-03-20 00:29:19 +00:00
christos ae673e9f58 Shut-up gcc-2.8.1 warnings. 1999-03-15 08:57:12 +00:00
lukem 7e1c62baf8 set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp> 1999-03-13 23:17:46 +00:00
tron 137c04ccf1 Fix string handling bugs introduced by last patch. 1999-03-12 17:32:20 +00:00
erh 0f61c6801e Add missing .El line. 1999-03-10 08:17:35 +00:00
agc 530dddb95a Define TAR_CMD and TAR_FULLPATHNAME, and use them in preference to
hardcoded strings "tar" and "/usr/bin/tar". This allows the package
tools to use GNU tar with a different name (it's often installed as
gtar), and from a directory other than /usr/bin.
1999-03-09 11:10:39 +00:00
agc 4a5e3913cb Include <fcntl.h>, so that the definitions for O_* are defined. 1999-03-09 10:01:12 +00:00
hubertf e23d146ee6 TAILQ_FIRST and TAILQ_NEXT are not available on NetBSD 1.3 and 1.3.1,
define them for now.
Also fix a (unjustified) "variable may be used uninitialized" warning.
1999-03-09 02:20:49 +00:00
hubertf 4db56769f5 Add -R flag (similar to -r but the other way 'round) 1999-03-08 00:20:21 +00:00
mycroft d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
hubertf 2428218e4b update comment for findmatchingname() 1999-03-06 02:16:25 +00:00
hubertf dc7b712a59 Prevent printinv of empty "Requires:" section. 1999-03-04 01:45:22 +00:00
hubertf 7964a11f60 Do not only display the packages which require this package
(-> +REQUIRED_BY), but also show which package this package wants
installed (-> @pkgdep).
1999-03-04 00:35:05 +00:00
hubertf 5909aead8e Back out last fix to remove knowledge about LogDir from require_delete(),
because it wasn't in LogDir when it was enterred. :-/

XXX A better fix to this would be to put this save-and-restore-CWD back
in and also add it to recurse_require_find() and require_find(), but
this is too much action for nothing now.
1999-03-03 20:12:06 +00:00
hubertf fe7b9b969f Add -O option to only delete things from the pkgdb, and do not touch
anything else of the package or it's files. To be used on "make reinstall"
by the buildsystem (quite exclusively).
1999-03-03 17:29:58 +00:00
hubertf 9f766d7071 More helpful message on failure 1999-03-03 00:35:16 +00:00
hubertf 3667be3444 More helpful message on failure 1999-03-03 00:24:21 +00:00
agc 21fa5d1385 Cosmetic but annoying - no need to append a newline character in warnx()
string - it's done by warnx() itself.
1999-03-02 10:32:23 +00:00
hubertf bae5f0c988 use mkdtemp also on 1.3I and up 1999-03-02 03:04:06 +00:00
hubertf c9234a4571 - Put no assumptions into require_delete() on where the old CWD was
- Fix check for circular dependency
 - Most importantly: DO NOT remove the package if something depends
   on it, and -r isn't given!!!!! Without this change, pkg_delete was
   happily nuking away any package even if it had some dependencies.
1999-03-02 02:31:23 +00:00
agc fc1bcfe208 Quieten braindead gcc 2.8.1 unused warning. 1999-03-01 12:11:42 +00:00
agc d7c7ee9aba Include <fcntl.h> for the O_* definitions. 1999-03-01 12:06:57 +00:00
chopps 862b113538 remove strequal, strcmp provides the functionality we need 1999-02-26 17:04:13 +00:00
chopps ad9eaac8ec add -r flag to delete all packages that require the user specified one 1999-02-26 10:49:30 +00:00
hubertf 4ab7063639 If any other version of this package in stalled, stop. Document this. :) 1999-02-17 12:33:15 +00:00
hubertf e4f74ec4d3 there is no ftplib.3 1999-02-13 17:46:20 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
hubertf e22dd1f460 Allow @exec to be the first (non-comment) thing in a PLIST file
IF there is no %d/%D/%f/%F in it.
1999-02-01 02:00:42 +00:00
hubertf 9bb8dc7ef9 Remove the "struct datum" and use DBT directly.
Submitted by Alistair Crooks - thanks a lot!
1999-01-29 13:29:34 +00:00
hubertf 7c49b89e86 minor comments fixup 1999-01-26 14:47:32 +00:00
hubertf 1c7d06dd18 comment fileFindByPath(), reindent a bit 1999-01-26 14:26:23 +00:00
hubertf f9e71e406c Add code for pkgdb. 1999-01-19 17:01:56 +00:00
tron 81714a52c8 Patches supplied by Greg A. Woods in PR bin/6626 to make "pkg_info"
recognize the width of the current terminal.
1998-12-31 00:04:07 +00:00
hubertf 9854172140 Remove extra : printed for @cwd,
per PR 6481 by Jim Bernard <jbernard@ox.mines.edu>
1998-11-22 16:22:41 +00:00
hubertf ba73896f0c Fix some bugs discovered tonight when installing on a fresh 1.3.2
machine:
 - create /var/db/pkg if not there
 - fix wrong handling of findmatchingname() return code, resulting
   in missing /var/db/pkg dir being interpreted as match found
 - only move +BUILD_VERSION and +BUILD_INFO files if they're
   actually present (old pkgs don't have them!)
1998-11-07 23:16:50 +00:00
christos 5b514fad6f include fcntl.h to get O_RDONLY; our headers include too much stuff. 1998-11-02 22:40:11 +00:00
agc 48b4d2e2ba Instead of ignoring any SIGINTs when cleaning up, allow them. The
user might actually know better, just this once.
1998-10-27 19:27:17 +00:00
agc 266128247c Always tell the user about the temporary directory we're about to delete. 1998-10-26 18:01:22 +00:00
agc 3fdf3a6fae Modify pkg_create to recognise Build Information and Version files, when
creating packages, and modify pkg_add to copy the files when a binary
package is added. This preserves the fine-grained version information in
a binary package, and also the options with which the binary package was
built.
1998-10-26 17:39:20 +00:00
hubertf ee768386ba s/freebsd/netbsd/, pointed out by Heiko Rupp 1998-10-26 11:35:00 +00:00
agc ff77ebb33f Add a -B option to pkg_info to print out the "Build Information" for
packages.
1998-10-21 09:54:09 +00:00
agc e758d0c608 Make the new symlink relative to the name of the symlink, rather than
the target.
1998-10-19 20:15:24 +00:00
agc 9aea3f2ecb Add -b argument to pkg_info to display the +BUILD_VERSION file for the
binary package, should it exist.
1998-10-13 17:08:28 +00:00
agc 67f5c7183e Get rid of YES and NO definitions. NO was defined but never used.
YES was defined, and one variable was set to YES.  However, it was
never checked, just non-zero comparison was used.
1998-10-13 10:05:38 +00:00
agc 5e8df8cb74 Fixes for Alpha, from Hideo MASUDA (h-masuda@jm3spa.felix.or.jp), in
PR bin/6284, slightly munged about for platforms which aren't LP64.

Also, don't use hardcoded strings (or their lengths) when we've
already defined them in a common header file.
1998-10-13 10:00:09 +00:00
agc 959d0a0cde + Remove obsolete and unused string functions.
+ Fix a bug introduced when the package name comparison routines were moved -
alternate matching now completes and works properly.
+ Add -R argument to pkg_create, which re-orders any directories in the
generated PLIST into reverse alphabetic order.
+ Add -l argument to pkg_create, which checks that any symbolic links in
the package are relative-to-$PREFIX pathnames, rather than full pathnames.
+ General cleanup elsewhere.
1998-10-12 12:03:24 +00:00
agc 7bdbc205e5 Use the same table for input and output of PLISTs. 1998-10-09 19:51:21 +00:00
agc 9daf7cc9b2 More cleanup - various bits of KNF.
Use another table when parsing PLIST files - makes this much more extensible.
1998-10-09 18:27:31 +00:00
agc 16ae233008 Some minor KNF.
Lots more to be done.
1998-10-09 11:16:57 +00:00
agc 3679178e31 Make pkg_info a tad more extensible by using a table to hold the strings
to be printed. Also, don't error out if any unexpected input is read -
just log the error, and keep on going.
Fix a slight bug along the way - if there was an @option in the package,
then pkg_info would die.
1998-10-09 11:05:58 +00:00
agc 82f2922229 Fix a bug in pkg_info -f with @pkgcfl entries. 1998-10-09 09:35:39 +00:00
agc 65e1849228 Garbage collect unused variable..
Update documentation accordingly.
1998-10-09 09:22:15 +00:00