jkh
4b3de059b5
Whoops! One of my automatics was initialized to garbage. Fix it.
1995-04-28 18:24:31 +00:00
jkh
afb65c647c
Use mtree -U instead of -u and put back error check. Thanks Rod!
1995-04-28 04:16:30 +00:00
jkh
74bd1b4e5e
Don't bother checking the return status of the mtree command - it returns
...
non-zero stats when it changes things, too.
1995-04-27 11:33:08 +00:00
jkh
b34c5b4d3d
Add code for dealing with URLs.
1995-04-26 15:08:23 +00:00
jkh
16c38595ac
Make pkg_info URL aware (and also make it use the PKG_PATH properly, like
...
everyone else). Try this:
pkg_info ftp://freebsd.org/pub/FreeBSD/packages/all/gmake-3.73.tgz
1995-04-26 15:08:02 +00:00
jkh
33fa95f0b3
Add depend on libftp since this is now in lib.
1995-04-26 15:07:14 +00:00
jkh
675175e019
Add a great deal more error checking to various things.
1995-04-26 15:06:58 +00:00
jkh
b9e5fa60d0
Further work on making all this more robust in the face of failure.
...
Also allow URL specification for a package. This works for things the
package may depend on, too.
Allow PKG_PATH to be used anywhere a package is being searched for.
1995-04-26 15:06:26 +00:00
jkh
4afd6c66c7
Yikes! How did that typo slip past! I'd swear I compiled it. Oh well,
...
thanks, Satoshi!
Embarrassed by: asami
1995-04-26 12:37:46 +00:00
jkh
4d406202b1
As per Bruce's advice, use sysconf to get the max argument size and
...
dynamically allocate that much space, also using snprintf() and strncat()
to do proper bounds checking.
1995-04-26 11:43:20 +00:00
jkh
fc953cf02d
Check dependencies BEFORE doing final extraction of package.
...
Fix a bug where direct-extract mode would have still invoked the
packing list reordering commands.
1995-04-26 07:43:35 +00:00
jkh
b90c96a965
My handling of the missing dependency but !Verbose was wrong. Make
...
the right message come out.
1995-04-26 06:56:05 +00:00
jkh
224e2db404
Use ARG_MAX instead of _POSIX_ARG_MAX: 4K is too small!
...
This should stop the SIGBUS errors in pkg_create for some packages.
1995-04-24 21:50:11 +00:00
jkh
06e78f6873
Stage almost nothing through the playpen now - this should speed pkg_creates
...
up by a couple of factors, as well as decrease the amount of temporary space
required to build a package down to almost nothing.
1995-04-22 14:55:07 +00:00
jkh
d3abd00ffe
Export the min_free() function.
1995-04-22 13:58:44 +00:00
jkh
6310426601
Second round:
...
1. Make paths work correctly.
2. Make pkg_add generally more robust in the face of failure.
3. Make the depend messages come out on stderr or stdout, but not both
interspersed! :-)
1995-04-22 13:58:24 +00:00
jkh
de203839fa
1. Add an new @option directive. You'll understand it better in a moment.
...
2. Fix a long-standing bug in pkg_add where the failure of one package in
a multipackage installation (pkg_add *.tgz) would blow you right out of
the water. Ick.
1995-04-22 07:41:02 +00:00
jkh
62b882306c
Argh - missed a printf! That should be the last of plist-spewers.
1995-04-22 01:20:13 +00:00
jkh
0ca59fff83
Don't spew garbage into the packing list when PlistOnly and verbose are
...
both on. Whoops!
1995-04-22 00:59:33 +00:00
jkh
f50974f2ec
Some patches to make deletions of non-existent files and directories slightly
...
less fatal (so that the database entry is subsequently removed anyway).
Submitted by: Edward Wang <edward@edcom.com>
1995-04-22 00:14:20 +00:00
jkh
fc0ace6edf
1. Add proper dependencies to the library in my Makefiles. This was pointed
...
out by Bruce.
2. Add a "feature" to pkg_create (OK, OK, it's a miserable hack!) to get
it to dump its internal packing list out so that the `fake-pkg' rule in
bsd.port.mk can generate a more meaningful packing list.
1995-04-22 00:03:18 +00:00
jkh
63dadcab7d
Correct a bogusly formatted printf().
1995-04-21 06:30:41 +00:00
jkh
23fe5be93f
Greatly simplify the calling of mtree - the error handling wasn't working
...
anyway, at least not with FreeBSD's mtree, and the arguments were being
built incorrectly.
1995-04-19 14:54:25 +00:00
jkh
496b8887e4
Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is the
...
default, and probably not something you'd ever change, but now it's
possible to do so for local/custom installations.
1995-04-19 14:02:01 +00:00
jkh
ca71c94b25
Use a more nicely formatted message when we run out of space.
1995-04-18 13:04:34 +00:00
jkh
3e496240b4
Neither of these tools really told you what you needed to know neatly
...
and succinctly in verbose mode. I hope people find this more to their
liking.
1995-04-10 08:01:52 +00:00
jkh
e8ff66af03
Add true support for dependency lists.
...
1. pkg_create now has a -P argument for specifying dependencies on the
command line.
2. pkg_add will honor dependencies and chain-load them automatically if
it finds the required package(s) in the same directory as the package
that is being loaded. For best results, install packages from a directory
containing all the packages you'll possibly need
(like /usr/ports/packages/all).
2 remaining flaws:
1. pkg_add looks in one place (where you were when you loaded the primary
pkg) for depended packages. If you can come up with a search path scheme
that's not a total hack - be my guest!
2. Recursive dependency expansion can result in the name of a dep being
listed more than once. This doesn't bother pkg_add since it checks
for package existance with pkg_info and will skip already-loaded packages.
I don't know how/if pkg_delete handles this yet, however. I need to look
into it.
1995-04-09 15:05:01 +00:00
jkh
fd8db944d6
Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-)
1995-02-16 12:43:00 +00:00
jkh
865c4a7d98
Make pkg_install use /var/tmp instead of /tmp
...
Suggested by: hsu
1995-02-15 03:48:13 +00:00
jkh
f8d21a60a1
Whoops! How embarassing. Just now noticed that I forget to update the .Os
...
lines. Done.
1995-01-05 10:37:13 +00:00
jkh
b0f37a24cb
Fix a bad formatting directive.
1995-01-05 10:31:42 +00:00
jkh
85c85b8011
Fix misleading typo in description of @unexec.
1995-01-05 10:22:51 +00:00
swallace
fa156e55d6
Added new function show_index() which does a 'smart' display of the index file.
...
Index descriptions are limited to MAXINDEXSIZE (60) chars. Any description
beyond that is truncated. Also, only the first line is displayed as well.
This allows pkg_info -a -I to be formated in two columns with one line
per package for easy reading.
Reviewed by: jkh
1995-01-05 01:10:13 +00:00
jkh
46ecb27be8
More changes from John T. Kohl. Man pages, mostly.
...
Submitted by: jtkohl
1994-12-06 01:04:17 +00:00
jkh
773a5f451d
Many of John T. Kohl's patches from NetBSD. Thanks, John!
...
Submitted by: jkohl
1994-12-06 00:51:50 +00:00
jkh
316a159f85
Don't create packages with bogus @name lines.
1994-11-17 10:54:11 +00:00
jkh
7778f5380f
Protect against old packages with bogus @name fields. Use basename_of()
...
on the name before recording it in /var/db/pkg. Sorry, Kaleb, you
were right after all! It was my fault! :)
1994-11-17 10:53:21 +00:00
jkh
f0f266b384
Add a new basename_of() function.
1994-11-17 10:51:51 +00:00
jkh
5d00f60140
Remove the QUERY_* functions. I don't think they're as good an
...
idea as I apparently once did.
1994-11-17 10:35:04 +00:00
jkh
47d2d53b0b
Sigh. NOW it's ok! :-)
1994-10-14 05:57:49 +00:00
jkh
eef0ef01be
Print a better verbose message when creating packages.
1994-10-14 05:56:15 +00:00
jkh
2cf39cacf3
This should do it - I forgot about pkg_info.
1994-10-14 05:55:57 +00:00
jkh
d5a2450087
Whoops - variable was in wrong scope. Correct.
1994-10-14 05:43:41 +00:00
jkh
56f1e635f2
Fix bug in home directory calculation that I introduced with the free space
...
checking code. Fix the free space checking code, while I'm at it! ;)
Thanks to Garrett for spotting the home dir problem.
1994-10-14 05:42:24 +00:00
jkh
b1ba6ab286
Fix bug in home directory calculation that I introduced with the free space
...
checking code. Fix the free space checking code, while I'm at it! ;)
Thanks to Garrett for spotting the home dir problem.
1994-10-14 05:34:04 +00:00
jkh
34751162a4
Be optionally verbose about free-space checking. I need this to ascertian
...
whether or not this always works.
1994-10-08 23:55:36 +00:00
jkh
60db1604bf
Add the ability to verify that a package won't extract in the space
...
available. Thanks to Michael Elbel for pushing me in the right direction.
1994-10-04 16:07:50 +00:00
jkh
04cc46fa4b
My last commit to bsd.port.mk made me think - `pkg_create -p ...' should
...
override the PLIST file's own first @cwd. Make this so.
1994-10-04 15:54:39 +00:00
jkh
3ef0581e73
Don't let pkg_delete remove the recorded location until everything has
...
absolutely, positively been successfully removed.
Reviewed by:
Submitted by:
Obtained from:
1994-09-29 13:19:43 +00:00
jkh
b9af6c1c08
Delete obsoleted *dist targets.
1994-09-13 10:20:37 +00:00