Commit Graph

32 Commits

Author SHA1 Message Date
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
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 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 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
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 f9e71e406c Add code for pkgdb. 1999-01-19 17:01:56 +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 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 70c6765099 Eliminate all use of sprintf(3), and replace it with snprintf(3).
Bounds check the @exec and @unexec commands when they are constructed.
1998-10-08 12:57:58 +00:00
hubertf 4cc256a5d1 fix some egcs warnings 1998-10-04 01:48:15 +00:00
hubertf 0151583b9c Teach our tools about dependencies containing wildcards. 1998-10-03 16:24:07 +00:00
hubertf 1285035fe7 Don't exit cleanup() functions if not called from signal handler - this
will show error messages before aborting.
Patch supplied by Jim Bernard <jbernard@ox.mines.edu> in PR 6010, cleanup()
in delete/perform.c prepared to be used as signal handler by me.
1998-08-25 00:12:16 +00:00
lukem fa0c2d578e everything has bugs; either document them or don't bother with a BUGS section 1998-06-08 12:36:55 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
lukem 05941d095a WARNSify, cleanup Makefiles 1997-10-17 14:53:18 +00:00
lukem e94356b174 fix make -j race condition building lib/ , use ../Makefile.inc for BINDIR 1997-10-17 12:03:36 +00:00
hubertf d0245e3952 First cut on importing pkg_install as of FreeBSD 971013:
- warn()/err() instead of whinge()/barf()
 - Update RCS Id strings
 - Update manpages (mostly)
1997-10-16 00:31:32 +00:00
agc 04cc1342e6 Fix for misuse of NULL definition, from Arne Juul
(<arnej@math.ntnu.no>). Fixes bin/3745.
1997-06-13 16:10:15 +00:00
agc 2ad13dba57 Don't install libinstall.a (from Bernd Ernesti)
pkg_delete manual page mods got lost in previous commit.
1997-06-05 14:25:49 +00:00
agc 153272e388 Add NetBSD Ids
Un-munge pkg_install/lib/Makefile which I'd overwritten on libftpio commit.
Make it compile on NetBSD.
Install pkg_* programs in /usr/sbin

XXX agc - Still to do XXX
Cleanup call to mktemp (for a tmp dir) in pkg_install/lib/pen.c
Create ftperr.c in the correct directory.
1997-06-05 12:59:18 +00:00
agc 5d4508e153 Initial import of FreeBSD packaging tool. 1997-06-05 08:54:23 +00:00