Commit Graph

6301 Commits

Author SHA1 Message Date
tron 01c3d246ff Add my name to the list of the culprits. 2003-09-20 17:17:40 +00:00
itojun 1ce85c4e12 plug memory leak. from kame 2003-09-20 13:04:07 +00:00
lukem 9c437ec754 Change `LNFILES' to `BUILDSYMLINKS', to more accurately describe its purpose.
Per discussion with Simon Gerraty.
2003-09-20 06:20:41 +00:00
wiz 137c968ad5 Initialize cnt; from Greg A. Woods in PR 22862. 2003-09-19 17:44:53 +00:00
martin 0af2c4286d Remove sparc64 special case handling - no longer needed. 2003-09-19 16:39:52 +00:00
itojun 4a7fa92f21 no need for explicit '?'; openbsd 2003-09-19 08:24:07 +00:00
itojun a82a0d12e2 realloc pedant 2003-09-19 06:22:03 +00:00
itojun e99b62a1d7 realloc pedant 2003-09-19 06:11:35 +00:00
itojun 0c4a8b5a7e realloc pedant 2003-09-19 06:01:24 +00:00
agc 4fe63c7eb9 Let pkg_admin(1) have a -S argument - some vendors' xargs(1) don't pass
a null ("") argument properly (hi, Sun), so make -S a synonym for -s "".

Don't dump core if no command is given to pkg_admin(1).

Print usage message to stderr, not stdout, and use the program name by
which it was invoked.

Bump pkg_install version to 20030918.
2003-09-18 09:56:20 +00:00
agc 54f9bdba40 Remove the names of arguments from function prototypes. 2003-09-17 13:27:42 +00:00
jmmv 94114f39df Use tabs for indentation; pointed out by simonb@. 2003-09-14 12:43:04 +00:00
jmmv fc7230200f Fix crash when using the '-x' flag. 2003-09-14 12:35:46 +00:00
jmmv ce413b6dd1 Fix some warnings. 2003-09-14 12:33:05 +00:00
jlam 505c7e361d 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
christos 27a8c2abc5 PR/22776 : Andreas Wrede: proxyarp in pppd is broken 2003-09-13 18:55:17 +00:00
erh 1f5fff1c1c PR# standards/16143: hide struct uio from userland behind a __UIO_EXPOSE
ifdef.  Define this when building ipf, since it shares code between the
kernel and userland and uses struct uio.
2003-09-13 16:59:29 +00:00
jlam 2277c35f52 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:20:26 +00:00
jlam 1732738842 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:48:50 +00:00
pooka fdd5c1261b our isdntrace uses /dev/isdntrc<n>, not /dev/i4btrc<n> 2003-09-11 14:14:31 +00:00
jlam f310627cee Fix a bug I accidentally introduced in rev. 1.48 where a pkg_dbdir could no
longer be a symlink to a directory.
2003-09-10 17:28:59 +00:00
jlam 7297f559c5 Inverted a test by mistake. 2003-09-09 08:22:39 +00:00
jlam f5e8befe51 Replace call to vsystem() with call to fexec() for speed. 2003-09-09 06:43:10 +00:00
jlam 154a25e9c8 Output the name of the pkgdb file from which we are removing entries
instead of just "pkgdb".
2003-09-08 22:19:25 +00:00
jlam bfb9e5680c Allow the package entries in the pkgdbdir to be either directories or
symlinks to directories.  This gives the user more rope, but lets those
who know what they're doing to do what they want.
2003-09-08 22:11:12 +00:00
cl 289a48a2fc free string only after it's no longer used through dirname reference. 2003-09-08 17:50:12 +00:00
jlam 37365fbf87 It's "-d stowdir" not "-D stowdir". 2003-09-08 10:21:25 +00:00
jlam 198410e826 Use the pkgviews terminology from pkgsrc/mk/buildlink3/README consistently
in this man page: depoted packages are kept in their depot directories, and
pkg_view(1) manages instances of those packages in views.  Also copy the
warning in the pkg_delete(1) man page instead of the one from the
pkg_add(1) man page since the former correctly refers to package control
files already installed on the system.
2003-09-08 10:17:16 +00:00
wiz a3a659ef72 Add options to SYNOPSIS; remove some fluff from Nd. 2003-09-08 09:12:35 +00:00
wiz b897232ac9 Sort options; use Fl x instead of Ar -x; use Pq/Sq. 2003-09-08 09:11:12 +00:00
wiz 255fb463e6 Bump date for previous. 2003-09-08 08:57:56 +00:00
wiz 1b83dbb69f Sort options. 2003-09-08 08:57:42 +00:00
wiz 491ae8b74a Bump date for previous. 2003-09-08 07:14:29 +00:00
jlam 0d7b7e0f8f 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.

    * 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.
2003-09-08 07:13:29 +00:00
wiz 376ac9e3f6 Bump date for previous. 2003-09-08 07:12:53 +00:00
jlam 453f4348b6 Use "pkg_admin add|delete" to manipulate the pkgdb.byfile.db files in each
view so that they contain the correct information for the files stored in
each view.
2003-09-08 07:09:33 +00:00
jlam 751f88a06a When executing "pkg_delete foo", only delete it if "foo" resolves to a
unique package.  This makes deleting packages less surprising in a pkgviews
world where you can have multiple versions of packages installed at the
same time in the package depot.

Also make "pkg_delete -f" work depoted packages if they have been added to
views by also running "pkg_delete -f" for the package instances in the
views.
2003-09-08 07:08:11 +00:00
jlam 1bbe06780b Add new commands "add" and "delete" to pkg_admin(1):
add pkg ...
             For each listed package, write the absolute pathnames of the
             files listed in its +CONTENTS file together with the package
             they belong to into the package database.  This should be used
             only by pkg_view(1).

     delete pkg ...
             For each listed package, remove all file entries in the
             package database that belong to the package.  This should be
             used only by pkg_view(1).

These commands will be used by pkg_view(1) to keep the pkgdb.byfile.db
files for each view consistent with what's stored in each view.

Since we stole these names from the debug code, change the names of the
debug commands to "addkey" and "delkey".
2003-09-08 07:04:40 +00:00
jlam 449bc6e566 Note that LOCALBASE and PKG_VIEW in the environment will affect the
behaviour of pkg_add(1) indirectly by affecting the behaviour of
pkg_view(1).
2003-09-08 07:01:30 +00:00
jlam 6a37e1039a When adding depoted packages into the depot, manipulate the correct
pkgdb.byfile.db by using the fact that depoted packages have their
dbdir == ${DEPOTBASE}.
2003-09-08 07:00:10 +00:00
jlam 140fe23a05 strlen(pkgname) only returns the number of characters preceding the NUL,
but the size of the data field in the pkgdb.byfile.db file is the length of
the string plus 1 for the NUL.  Fix this check so that removing all of the
files belonging to pkgname from pkgdb.byfile.db works again.
2003-09-08 06:41:23 +00:00
jlam 5fc555d16b Correct the documentation of the return values for pkgdb_open() and
pkgdb_remove_pkg().
2003-09-08 05:34:35 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
fvdl bd84ee9c7a Revert arc4random usage. makefs is only used for install images,
filehandle randomization is not an issue there, and using arc4random
broke building makefs as a host tool.
2003-09-07 14:24:08 +00:00
itojun f189be338c unifdef HAVE_ARC4RANDOM 2003-09-06 12:56:43 +00:00
itojun e2c411ce3c use arc4random 2003-09-06 12:42:00 +00:00
bouyer d2c13c7513 width needs to be updated before each loop, because svc_maxfd may have
changed.
2003-09-05 14:59:37 +00:00
pooka 8446050ba0 Add support for loading firmware to a controller using the firmware
keyword in the controller section (kernel counterpart already exists).

similar to what's in FreeBSD
2003-09-05 13:31:03 +00:00
wiz dea83a9f43 Clarify that the user's full name (not username) goes into the GECOS field.
From Jeff Ross via jmc@openbsd.
2003-09-04 08:37:59 +00:00
lukem 49fb32cb30 use LNFILES instead of homegrown equivalent 2003-09-04 06:42:50 +00:00