Commit Graph

6276 Commits

Author SHA1 Message Date
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
thorpej d00feb8a89 Allow file inclusions to be relative to the file currently being
included.  This is done by tracking the current directory for the
file being parsed, and constructing a path relative to that directory
when an include directive's file name begins with "./".
2003-09-03 18:56:37 +00:00
jlam 8b2d4b4f3c Bump version to 20020824 after allowing users to use more than the default
view.
2003-09-03 12:52:30 +00:00
jlam f7ddad56af Don't prevent users from using more than just the default view. Let's let
them try to use one of the good points of pkgviews right away.
2003-09-03 12:45:25 +00:00
jlam b3a911d206 Remove parts that were there just to allow this to compile on NetBSD ~1.3.
We have this in pkgsrc and bootstrap-pkgsrc for those systems.
2003-09-03 12:44:01 +00:00
jlam 0430171011 Check the return from read on the file descriptor for the ftp process: if
we don't get anything, then it's an error.  From cb@netbsd.org in private
email.
2003-09-03 07:33:37 +00:00
itojun ecf557376f use poll(2) instead of select(2). based on patch from deraadt@openbsd, via kame 2003-09-02 22:57:29 +00:00
itojun 9b81bd5614 initialize sentinel.next so that config_list does not get garbage 2003-09-02 22:56:11 +00:00
wiz c9af3bba1c Drop trailing space. 2003-09-02 07:42:08 +00:00
jlam 1a174cde55 Merge src/usr.sbin/pkg_install on the pkgviews branch into the HEAD by
running:

        cd src/usr.sbin/pkg_install
        cvs update -Pd -A
        cvs update -Pd -j pkgviews-base -j pkgviews
2003-09-02 07:34:47 +00:00
tron ce691fb888 Replace calls to vsystem() by calls to fexec(). 2003-09-01 17:43:23 +00:00
christos b03d86adf3 Use PPPIOCGRAWIN to get the last characters the remote sent, if we are not
8 bit clean.
2003-09-01 16:54:27 +00:00
itojun 67ad87844e plug memory leak. oenbsd-pr-3425 2003-09-01 00:21:08 +00:00
fvdl 728340f200 Add amd64 to list of supported machines (does the same as i386). 2003-08-30 17:46:32 +00:00
wiz 006b3d98e0 Sort options in usage (AaBb...). 2003-08-30 12:48:11 +00:00
wiz dc6113b226 Sort options (AaBb...); drop trailing space; use Nx instead of verbose
NetBSD; add commas.
2003-08-30 12:48:01 +00:00
dsl e59ecd76c4 Include a (very raw) dump of the inodes.
Add options to determine what is dumped (default to old behaviour).
2003-08-30 10:30:52 +00:00
wiz 829e2cfa46 Bump date for last. 2003-08-28 18:55:16 +00:00
elric 6ab21fc010 Add sorting based on last login time via -t (most recent first a la ls(1)).
Add reverse of current sort via -r (like ls(1) as well.)
Add a couple of lines of documentation to the man page about the two new
options.
2003-08-28 15:54:41 +00:00
itojun 4572e734b1 plug memory leak. openbsd-pr-3416 2003-08-27 08:15:16 +00:00
itojun d9c46578d1 update racoon to 2003/8/26 version. mostly minor bugfixes. 2003-08-26 03:31:50 +00:00
tron f48c4e3753 Fix error in memory handling. 2003-08-25 10:52:23 +00:00
tron a58c832dd6 Replace calls to vsystem() by calls to fexec() or fcexec(). 2003-08-25 10:35:28 +00:00
tron c28355d067 Add a new library function fcexec() which allows to run a command after
changing the current directory.
2003-08-25 10:23:41 +00:00
tron 43b89589d9 Use "rm -fr" consistently. 2003-08-25 10:23:06 +00:00
tron 2f1b656bac Replace a few calls to vsystem() with calls to fexec() to speed up
operations.
2003-08-24 21:11:37 +00:00