jkh
9109257a8a
Bring my pkg_install improvements forward from 2.1.
1995-11-12 04:55:40 +00:00
jkh
6f708e7f5a
Fix the `pkg_add relative to .' bug. Thank you, Ville!
...
Submitted by: Ville Eerola <ville@vlsi.fi>
1995-10-31 20:30:18 +00:00
jkh
d4d9564530
Bring forward my changes from 2.1
1995-10-25 15:38:37 +00:00
jkh
0e4c4a45a1
Don't be needlessly verbose in the pkg_create.
1995-08-28 14:47:30 +00:00
jkh
3af739a3a9
Make the play-pen searching routine even more agile in trying
...
to create a /usr/tmp dir if it makes sense to do so.
1995-08-26 18:36:27 +00:00
jkh
a1d1916597
Use size_t properly in all fs size ops. This kills a bug
...
encountered by someone who had his /tmp on a partition with 3.7GB of
free space!
Spotted by: Francisco Rosich Viana <rosich@power.ci.uv.es>
1995-08-26 10:15:18 +00:00
jkh
f9c6f6c7f4
Some fixes to make this "TMPDIR agile".
...
Submitted by: jmacd + some of my own fixes.
1995-08-17 00:36:06 +00:00
jkh
0fd326e2ae
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
jkh
4c3d7b54ab
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
jkh
a83c6fddee
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
asami
b9255f3bd3
Sync this up with ftp.c.
1995-07-31 04:00:01 +00:00
jkh
adb6e33f4e
Remove dependency on sysinstall.
1995-07-31 02:27:58 +00:00
jkh
a33d87a320
Add ftp.c to makefile - that might make it work better. Sheesh!
1995-07-31 01:26:58 +00:00
jkh
117bc8a1c4
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
jkh
782b438711
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
ache
38976345b1
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
ache
c575f05914
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
asami
9708dec633
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
rgrimes
4f960dd75f
Remove trailing whitespace.
1995-05-30 03:57:47 +00:00
jkh
fd82b3cc6a
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
jkh
b34c5b4d3d
Add code for dealing with URLs.
1995-04-26 15:08:23 +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
d3abd00ffe
Export the min_free() function.
1995-04-22 13:58:44 +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
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
63dadcab7d
Correct a bogusly formatted printf().
1995-04-21 06:30:41 +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
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
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
f0f266b384
Add a new basename_of() function.
1994-11-17 10:51:51 +00:00
jkh
eef0ef01be
Print a better verbose message when creating packages.
1994-10-14 05:56:15 +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
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
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
d34ba06ad5
Add @srcdir option for customizing creation of packages.
...
Submitted by: jkh
1994-08-28 14:15:30 +00:00
jkh
cae4aac15c
Argh! What a boneheaded bug! Finally fix the blank-line-in-packing list
...
problem! I am pond scum!
1994-07-11 01:11:14 +00:00
asami
c0c88c1f41
Close /dev/tty that is opened in y_or_n()...this is called many times
...
so it will run out of ptys if not properly closed.
1994-06-01 05:14:19 +00:00
asami
93b71d3919
The environment variable PKG_PREFIX is set to the first @cwd command
...
in the packing list, or the argument to -p if it is specified, before
the requirements/installation/deinstallation scripts are called. This
enables the scripts to be written to work on the final installation
destination, even if the user uses -p to override the package's default.
1994-05-25 18:00:04 +00:00
jkh
066a73bf85
Add new find_plist() function.
1994-05-25 06:27:24 +00:00
jkh
68314379f2
Make y_or_n() pay attention to AutoAnswer global.
1994-04-05 14:08:47 +00:00
jkh
14f46efaad
Added code for doing % sequence expansion, added new @unexec command.
1993-09-18 03:39:50 +00:00
jkh
a0cfa510c6
Fixed an embarassing bug with @owner, @mode & @group
1993-09-12 20:45:53 +00:00
jkh
3e88a4ee85
Fixed bug in copying script files from absolute locations
1993-09-06 23:28:42 +00:00
jkh
e9a6985275
Made staging area configurable rather than assuming /tmp (-t)
1993-09-05 04:54:24 +00:00
jkh
a1623ebed9
Lots of misc tweaks, support for arbitrary separators in pkg_info, more
...
intelligent name handling in pkg_create. Most of these files are changed
because of rcsid's being different in my cvs tree and freefall's (foo).
1993-09-03 23:01:17 +00:00
jkh
fb96eba597
Removed annoying -Wall
1993-08-30 01:51:16 +00:00