billf
06f295fcff
Update pkg_add's remote package feature to reflect the new structure of
...
wcarchive. This needs to be updated when:
(a) The directory structure changes on wcarchive
(b) getosreldate() has a new significance
(ie. get ELF packages/get a.out packages)
(c) Branches are changed around
As we stand right now, 3.0-postELFday and 4.0-x all point to the same
directory, but when 4.0 starts to have its own packages, this file will
need to be changed.
1999-01-25 21:08:13 +00:00
billf
149693fff8
Style police, inline ifs.
...
Submitted by: Brian Feldman <green@unixhelp.org>
1999-01-18 03:54:17 +00:00
jseger
8084121154
enviornment -> environment
...
PR: docs/9534
Submitted by: rv@fore.com
1999-01-17 15:08:09 +00:00
billf
50ae56ef18
Add a new option for pkg_add, -r.
...
The remote option allows for automatic package fetching and installation
using the package repository found on wcarchive. Naturally, this site
can be overridden with a enviornment variable.
This code uses getobjformat() and getosreldate(). This means when some event
causes the package to be fetched to change (such as e-day) the logic also
needs to be changed.
Sorta reviewed by: jkh
Code suggestions: peter, jkh, eivind, msmith
1999-01-17 01:22:55 +00:00
obrien
fe68a835f9
document PKG_DBDIR
...
Add ENVIRONMENT and FILES sections.
1998-12-31 20:29:29 +00:00
obrien
cc8ed78bf6
change wording slightly to match other pkg_*.1
1998-12-31 20:28:55 +00:00
jkh
14bdf1c6c0
Make it possible to have separate install scripts as well as have
...
an on-delete script.
Submitted by: Rajesh Vaidheeswarran <rv@fore.com>
1998-12-16 13:59:31 +00:00
asami
125d5b9a24
Fix support for uncompressed (".tar") package types. It's not completely
...
fixed (chained dependency checking for pkg_add is broken, for one thing)
but at least you can now create one package and use it.
1998-12-05 06:29:03 +00:00
jkh
ec5ce5a2f5
Fix bug where trailing slash could confuse the registry removal.
...
Noticed by: des
1998-11-11 06:09:04 +00:00
jkh
f3968a7d32
Unlink old contents of package when extracting new.
...
Submitted by: pst
1998-10-28 22:44:24 +00:00
jkh
7af544c9f9
Revert 1.33; lstat() is indeed the wrong thing to do here. I'll
...
revisit this after release.
1998-10-14 18:52:04 +00:00
jkh
07f4a4a549
Correct a misleading comment.
1998-10-12 20:01:48 +00:00
jkh
1f21e28dc6
Use lstat() rather than stat in determining whether a file exists,
...
otherwise we'll miss the "symlink exists but points nowhere" case.
Submitted by: asami and/or possibly <ru@ucb.crimea.ua>
1998-10-09 00:01:16 +00:00
jkh
5468fdfd0c
Use a more reasonable default umask in case the root umask is too
...
fascist.
PR: 4014
1998-09-14 19:22:59 +00:00
jkh
dad2df585c
correct usage of cleanup() everywhere - this became bogus when the warnx/errx
...
stuff was added and nobody seems to have noticed. :)
Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU>
1998-09-11 07:26:58 +00:00
jkh
57c8d973f3
o Set paths internally for pkg_add for tools we might want to invoke.
...
o Fix bogus suffix handling.
o Tell user when an FTP url is being xferred rather than being silent.
This sort of violates "the unix way" but it stops people from whacking
^C when they think it's hung, too. Sometimes visual indication of
success is important. Doesn't spit out anything if not on a TTY.
1998-09-08 10:42:26 +00:00
jkh
a5f5454e47
Fix bogus suffix stripping to be less naive.
...
PR: 3418
Noted by: pst
1998-09-08 03:15:41 +00:00
jkh
8355921f31
Fail as documented when a dependency cannot be found
...
PR: 7318
Submitted by: djv@bedford.net
1998-09-08 03:02:45 +00:00
jkh
7144badade
Silence potentially bogus warning.
1998-09-01 06:58:11 +00:00
jkh
b68b3fb56c
Fix recursive package add problem (for on-disk package files) I introduced
...
with the change in semantics to make_playpen(). Now package dependencies
more than 2 levels deep should work again. Pass the hat.
1998-08-27 14:59:55 +00:00
jkh
02fba0b1e7
Don't exit() from cleanup() if we got there via a non-signal since
...
we're only going to exit (after printing a more detailed error message)
afterwards anyway.
PR: 7020
1998-07-28 11:55:39 +00:00
nectar
cf3f8f53ba
Paranoia: use mkdtemp instead of mktemp
...
PR: bin/3212
Reviewed by: jkh@FreeBSD.ORG
1998-07-28 01:18:02 +00:00
hoek
77ec90992f
Clarify "Cannot delete file as directory" errmessage.
...
PR: bin/1985
1998-07-18 22:19:11 +00:00
eivind
3aff34f53d
Avoid race-conditions on playpen delete.
1998-07-17 14:56:31 +00:00
jkoshy
7842d15da6
Add $Id$.
...
PR: 7251
Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org>
1998-07-14 08:28:15 +00:00
jkoshy
cea09a06a6
Document -I' and
-R' options to `pkg_info'.
...
PR: 7155
1998-07-06 04:39:20 +00:00
jkh
3f5c1f515d
MF22: check for null pointer.
1998-07-04 14:13:01 +00:00
jkoshy
eae9bbe969
Document environment variables used by pkg_{add,create,info}. These
...
include PKG_TMPDIR, TMPDIR, PKG_DBDIR. Add a FILES section to these
manual pages.
PR: docs/7064
1998-06-26 07:15:38 +00:00
steve
e8bebaa14e
Loosely document the '-s' commandline option.
...
PR: 6713
1998-05-24 03:11:17 +00:00
jkh
19752a54b2
Fix dependent-package loading when pkg_adding with an FTP URL. I broke
...
this when I changed the playpen code to disallow recursion. I know
this fixes a PR someplace but I can't seem to find it with the GNATs
search tool.
1998-04-12 16:01:10 +00:00
charnier
6e321f37d4
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 08:31:20 +00:00
bde
6682846885
Use foo/bar.a' instead of
-Lfoo -lbar' for linking to static internal
...
libraries, so that `ld -f' in can create correct dependencies for
yet-to-be-built libraries.
1998-03-07 08:55:00 +00:00
jkh
7836fb80f5
Eliminate the idea of nested "playpens" entirely - it just obfuscated
...
the code and, in at least one case, made it more dangerous to no gain.
1998-02-16 17:16:51 +00:00
jkh
e21210fa71
I must have been smoking crack when I made this change. Using sh -c
...
in a vsystem() call is just a ludicrous way of calling sh -c "sh -c ..."
Whoops! I don't know my own bloody code here!
1998-01-21 06:08:35 +00:00
imp
151ed161b7
Quote filenames more agressively.
...
Reviewed by: jkh
Submitted by: Hubert Feyrer
1998-01-21 00:12:56 +00:00
jkh
3313481cd8
MF22: fix to install script handling.
1998-01-17 12:26:19 +00:00
jkh
975fdd7c45
MF22: Additional paranoia in cleanup.
1998-01-09 14:52:18 +00:00
jkh
b538b7d179
Don't assume install script is directly runnable - use sh -c.
1998-01-08 11:27:06 +00:00
hoek
7723a09fea
"This is the add^H^H^Hinfo module."
...
Pedantic comment fix.
PR: bin/5188
Submitted by: Alex [3]garbanzo@hooked.net
1997-12-26 05:29:29 +00:00
jkh
4709213773
MF22: Revert part of -p handling.
1997-11-14 01:56:04 +00:00
jkh
e3252cb624
The prefix override code was bogus. The original idea was sound
...
enough, but we're not using the pkg_create tool that way anymore
in the ports collection.
PR: 4894
Submitted by: Adrian Colley <aecolley@ois.ie>
1997-11-13 11:49:23 +00:00
max
8430e6b7e6
Pkg_add refused to process package whose packing list contains @exec/@unexec
...
before any file names. This change makes pkg_add to process those
packages if @exec/@unexec commands don't contain any %[fFB]. Also
enable @exec/@unexec that have %D if the installation prefix is known to
pkg_add.
Reviewed by: jkh
1997-10-24 08:32:06 +00:00
jkh
fbcce1e304
- do string-magic on the right variable when trying
...
to find dependent packages on the local disk (i.e. package given as
filename, not URL)
- document $PKG_PATH
- use -v on pkg_add for dependent packages
Submitted by: hubertf@NetBSD.ORG
Obtained from: NetBSD
1997-10-18 05:54:17 +00:00
jkh
835fbd1d3a
Deal with PLIST_UNEXEC properly.
...
PR: 4784
Submitted by: Stefan `Sec` Zehl <sec@quit.42.org>
1997-10-18 05:42:05 +00:00
jkh
4b318a5826
Don't return from cleanup() - if it's removed the playpen then very
...
bad things will happen if we return to unsuspecting code.
Noted to my great dismay by: Tim Vanderhoek <hoek@hwcn.org>
1997-10-13 15:03:55 +00:00
charnier
1c390186cd
Use err(3). Cosmetics in usage string and man page.
1997-10-08 07:48:21 +00:00
hoek
0ec680f86f
Document pkg_add's dependency auto-install. While I'm here, fix
...
a couple typos, and consistent double-spacing after sentences.
This is actually a spinoff from the "ports-current discontinued"
blow-up some time ago.
Ack'd by: jkh
1997-09-27 13:41:35 +00:00
phk
d8ac409160
Many places in the code NULL is used in integer context, where
...
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
max
b6275222a0
Typo.
1997-09-13 17:55:43 +00:00
jkh
df384126bc
Eliminate an annoying message.
1997-09-02 08:48:47 +00:00