Jordan K. Hubbard
5da01a55fc
Make "out of space in ${PKG_TMPDIR}" handling a bit more robust.
...
Print the right thing, do the right thing. Back to you, Satoshi!
1995-08-06 03:21:04 +00:00
Jordan K. Hubbard
ba508869ca
Remove useless -lftp arguments from Makefiles.
...
Suggested by: ache
1995-08-04 07:14:08 +00:00
Jordan K. Hubbard
156547674a
Round this out. Now seems to transfer packages properly over ftp
...
as it was supposed to. PKG_PATH more sorely needed than ever now..
Hmmmm.
1995-08-01 09:49:27 +00:00
Jordan K. Hubbard
118e410749
Argh! I hate my life! I can't seem to do anything right here today.
...
This should restore functionality to the pkg_install suite.
1995-08-01 07:16:51 +00:00
Satoshi Asami
e7a7980c25
Sync this up with ftp.c.
1995-07-31 04:00:01 +00:00
Jordan K. Hubbard
d5285ad858
Remove dependency on sysinstall.
1995-07-31 02:27:58 +00:00
Jordan K. Hubbard
103ccee575
Add ftp.c to makefile - that might make it work better. Sheesh!
1995-07-31 01:26:58 +00:00
Jordan K. Hubbard
70ad39a5d4
Change the environment variable this looks for from FTP_PASSIVE to
...
FTP_PASSIVE_MODE. It would be really nice if we could standardise on
this name so that all tools (like ncftp) that offer passive/active
ftp selection would work seamlessly with one user environment variable
setting.
1995-07-30 09:41:21 +00:00
Jordan K. Hubbard
a2d09e69b2
Document how to get pkg_add to use PASSIVE MODE ftp in such transfers.
1995-07-30 09:37:31 +00:00
Jordan K. Hubbard
4366f12ca2
Totally eliminate the dependency on libftp (which will be removed from the
...
FreeBSD source tree) and switch to the internal ftp routines developed
by Poul-Henning and used in sysinstall.
1995-07-30 09:33:31 +00:00
Jordan K. Hubbard
d8003c2a59
o Fix PR# bin/643 - always set "where_to" properly.
...
o Nuke dependence on libftp - it's about to die!
1995-07-30 09:11:20 +00:00
Satoshi Asami
86e0f980c9
The default for temporary directory is /var/tmp, not /tmp.
1995-07-30 05:25:35 +00:00
Andrey A. Chernov
96d5140413
You can run pkg_info everywhere expect /var/db/pkg directory :-)
...
Running there you got any kind of strange errors from tar caused
by treating directories as tar files!
Fix it by adding new isfile(name) (check for reg. files) to simple fexists(name) calls.
1995-07-30 01:44:45 +00:00
Andrey A. Chernov
573999ad8a
If some files lost in /var/db/pkg/<port>/ after system crash f.e.,
...
pkg_manage silently dumps core, pkg_info claims about them to
stderr, which makes very difficult to find what directory cause it via
tons of pkg_info -a output. I found solution which covers both variants,
now pkg_info claims about missing files to stdout among valid output
with ERROR: prefix. It heals pkg_manage to not dump core and makes
easy to find errors in pkg_info -a output by simple /ERROR 'more' command.
1995-07-30 01:08:34 +00:00
Andrey A. Chernov
31bdd9d999
Fix coredump for -v flag
...
Submitted by: Thomas Gellekum <thomas@ghpc8.ihf.rwth-aachen.de>
Obtained from:
1995-07-28 01:50:35 +00:00
Satoshi Asami
575e2e187e
Use lstat() instead of access() for checking file existence. It works
...
for symlinks too, and according to Rod, access() is evil anyway.
Reviewed by: jkh
1995-06-24 10:12:59 +00:00
Rodney W. Grimes
d3628763db
Merge RELENG_2_0_5 into HEAD
1995-06-11 19:33:05 +00:00
Rodney W. Grimes
709e8f9ae1
Remove trailing whitespace.
1995-05-30 03:57:47 +00:00
Jordan K. Hubbard
ceb1d42782
Only apply @mode directives to files.
...
Don't use the -p flag to tar; it sets the files to the wrong permissions.
Submitted by: jmz
1995-05-19 22:40:54 +00:00
Jordan K. Hubbard
36dc394c61
Fix a long-standing bug that broke pkg_info utterly and probably made
...
pkg_add a little wiggy too.
1995-05-10 23:00:16 +00:00
Jordan K. Hubbard
e8019cb42b
Fix a long-standing bug that broke pkg_info utterly and probably made
...
pkg_add a little wiggy too. Document the fact that pkg_info can also
take a URL.
1995-05-10 23:00:07 +00:00
Jordan K. Hubbard
82f99dbbda
Bump the number of allowable args by a factor of 4. I just scanned
...
all possible packing lists and found that at least one of them is
pretty large!
1995-05-10 22:33:55 +00:00
Jordan K. Hubbard
28ed622cab
Document fetch-by-URL.
1995-05-10 20:56:19 +00:00
Jordan K. Hubbard
c63a4dc13b
Re-work make_dist() routine to build the tar command more reasonably.
...
This should eliminate the problem with truncated packages.
1995-05-10 20:46:06 +00:00
Jordan K. Hubbard
d9a50f903f
Whoops! One of my automatics was initialized to garbage. Fix it.
1995-04-28 18:24:31 +00:00
Jordan K. Hubbard
2283d8e502
Use mtree -U instead of -u and put back error check. Thanks Rod!
1995-04-28 04:16:30 +00:00
Jordan K. Hubbard
278ea7ecee
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
Jordan K. Hubbard
f465ace952
Add code for dealing with URLs.
1995-04-26 15:08:23 +00:00
Jordan K. Hubbard
a0a72d6933
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
Jordan K. Hubbard
34f907903d
Add depend on libftp since this is now in lib.
1995-04-26 15:07:14 +00:00
Jordan K. Hubbard
18a7c7704f
Add a great deal more error checking to various things.
1995-04-26 15:06:58 +00:00
Jordan K. Hubbard
7113d27114
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
Jordan K. Hubbard
80206f052f
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
Jordan K. Hubbard
d14afa6dd2
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
Jordan K. Hubbard
8d006a838c
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
Jordan K. Hubbard
0170dd7dec
My handling of the missing dependency but !Verbose was wrong. Make
...
the right message come out.
1995-04-26 06:56:05 +00:00
Jordan K. Hubbard
1c491c8eb8
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
Jordan K. Hubbard
2a20a9edde
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
Jordan K. Hubbard
3e1a18606d
Export the min_free() function.
1995-04-22 13:58:44 +00:00
Jordan K. Hubbard
cbf098db0e
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
Jordan K. Hubbard
e692e3aa52
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
Jordan K. Hubbard
adbcdd9cce
Argh - missed a printf! That should be the last of plist-spewers.
1995-04-22 01:20:13 +00:00
Jordan K. Hubbard
922a707e02
Don't spew garbage into the packing list when PlistOnly and verbose are
...
both on. Whoops!
1995-04-22 00:59:33 +00:00
Jordan K. Hubbard
cca32e93aa
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
Jordan K. Hubbard
3a5e372a3d
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
Jordan K. Hubbard
36034afc79
Correct a bogusly formatted printf().
1995-04-21 06:30:41 +00:00
Jordan K. Hubbard
8c4e15334e
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
Jordan K. Hubbard
e804f03a5d
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
Jordan K. Hubbard
4b96fa37b0
Use a more nicely formatted message when we run out of space.
1995-04-18 13:04:34 +00:00
Jordan K. Hubbard
1b164cce2b
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