billf
1a9a10bc25
Add '-l' which will match a certain status code.
...
Add the submitter as a contributor in the man page
freebsd -> FreeBSD, while I'm poking around.
PR: bin/15162
Submitted by: Dominic Mitchell <dom@palmerharvey.co.uk>
1999-12-03 06:08:11 +00:00
billf
07adbbbeb3
Correct co-MAINTAINER's e-mail address. I don't know how many
...
more ways I can screw his address up. Suggestions welcome.
1999-12-03 03:20:59 +00:00
billf
dcbce40642
Install man pages in the right place. This is what I get for cheating
...
and copying a Makefile from another directory over to this one.
PR: docs/15140
Submitted by: Kazuo Horikawa <horikawa@jp.FreeBSD.org>
1999-11-28 18:34:27 +00:00
billf
0c4292e270
Add the author as co-maintainer, a la mergemaster.
1999-11-26 20:35:55 +00:00
billf
00e85e6ad9
Welcome pkg_version into the FreeBSD source tree.
...
pkg_version (as you may well know) matches the existing packages/ports
installed on your system with the ports INDEX and reports which
ports differ from the current INDEX.
Submitted by: Bruce A. Mah <CA.Sandia.GOV>
Reviewed by: ports
1999-11-26 20:31:58 +00:00
cpiazza
b9d435339b
Make pkg_add -r package1 package2 package3 ...
work correctly.
...
Reviewed by: billf
1999-11-18 23:32:43 +00:00
billf
dac5bab6dd
o Remove all of the objformat logic, it's never coming back.
...
o Simplify getpackagesite(), it comes back in full glory when we branch
again. It's still needed however to get the i386 or alpha directory.
1999-09-25 03:02:08 +00:00
max
8154de86ca
Document the fact that pkg_add/delete passes INSTALL/DEINSTALL
...
respectively to rscript.
1999-09-11 03:52:24 +00:00
jkh
afa3d06e8b
Use the appropriate macro for double quotes rather than using double
...
quotes.
Submitted by: Alexey Zelkin <phantom@cris.net>
PR: 13436
1999-09-01 10:04:47 +00:00
peter
865e31c835
Remove some $Log$ debris
1999-08-29 15:54:49 +00:00
peter
51ddb038ec
$Header$ -> $FreeBSD$
1999-08-28 05:11:36 +00:00
peter
b6784c4210
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
mpp
7de62de44f
Various man page cleanup:
...
- Sort xrefs.
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlined in mdoc(7).
- Other misc mdoc cleanup.
PR: doc/13144
Submitted by: Alexey M. Zelkin <phantom@cris.net>
1999-08-15 08:47:11 +00:00
billf
59887a99f7
-Wall fixes. Ambigious if/elses, uninitialized values, missing headers,
...
missing prototypes, and empty format strings.
1999-08-11 20:55:42 +00:00
jdp
b6ff610d3f
When listing the installed packages, do it in alphabetical order.
1999-07-30 23:14:15 +00:00
nik
7effc709bc
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:12:29 +00:00
imp
24c7dc9781
'?' shouldn't be in the usage string. Unknown characters are already
...
converted to '?'.
1999-06-24 06:33:24 +00:00
billf
6031a99586
If we are going to have a case for '?' then we should define it in Options.
...
Submitted by: Ben Olson <bseth@chc-chimes.com>
1999-06-23 16:54:38 +00:00
obrien
7d78380bb3
Support Alpha and -CURRENT in the "-r" option case.
1999-06-14 21:58:59 +00:00
jkh
5148a61ddb
where_arge is allocated on stack and return address is overwritten
...
by buffer overflow.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1999-06-09 09:29:53 +00:00
jkh
fdb3f52157
Revive the PKG_ADD_BASE stuff a bit.
1999-05-12 06:06:49 +00:00
jkh
8914746e4b
If pkg_info is run with no args, default to "-aI".
1999-04-27 02:30:27 +00:00
alex
52e14d9a01
Removed occurrences of consecutive repeated words (such as "the the").
1999-02-12 02:12:08 +00:00
billf
c70be77f79
Fix nasty bug where getpackagesite() will return an integer if it doesn't
...
know what revision of FreeBSD is being run. This case should never happen,
but just in case.
1999-01-28 20:17:32 +00:00
billf
fb2b915494
Numbering typo, missed a '0'
...
Submitted by: Brian Feldman
1999-01-26 22:31:23 +00:00
billf
4eef3937a9
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
1638903742
Style police, inline ifs.
...
Submitted by: Brian Feldman <green@unixhelp.org>
1999-01-18 03:54:17 +00:00
jseger
d42ae52668
enviornment -> environment
...
PR: docs/9534
Submitted by: rv@fore.com
1999-01-17 15:08:09 +00:00
billf
38c1ca5080
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
d9fe9b98e4
document PKG_DBDIR
...
Add ENVIRONMENT and FILES sections.
1998-12-31 20:29:29 +00:00
obrien
e998117b44
change wording slightly to match other pkg_*.1
1998-12-31 20:28:55 +00:00
jkh
be66220741
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
37c5c2e32c
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
38bf67384f
Fix bug where trailing slash could confuse the registry removal.
...
Noticed by: des
1998-11-11 06:09:04 +00:00
jkh
e0c3c67d9f
Unlink old contents of package when extracting new.
...
Submitted by: pst
1998-10-28 22:44:24 +00:00
jkh
e3c0c13219
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
1453c2699b
Correct a misleading comment.
1998-10-12 20:01:48 +00:00
jkh
1fb230d42c
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
7b82703aa8
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
9835bde2b9
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
1b1b3e89e3
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
abeedb99ab
Fix bogus suffix stripping to be less naive.
...
PR: 3418
Noted by: pst
1998-09-08 03:15:41 +00:00
jkh
83cb162cf7
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
e3fc21dfbd
Silence potentially bogus warning.
1998-09-01 06:58:11 +00:00
jkh
a4a5649dd5
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
4d2aa47575
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
04265ccdec
Paranoia: use mkdtemp instead of mktemp
...
PR: bin/3212
Reviewed by: jkh@FreeBSD.ORG
1998-07-28 01:18:02 +00:00
hoek
f63f5b169f
Clarify "Cannot delete file as directory" errmessage.
...
PR: bin/1985
1998-07-18 22:19:11 +00:00
eivind
90eaf524e1
Avoid race-conditions on playpen delete.
1998-07-17 14:56:31 +00:00
jkoshy
a1d267c737
Add $Id$.
...
PR: 7251
Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org>
1998-07-14 08:28:15 +00:00
jkoshy
7b85db8c1a
Document -I' and
-R' options to `pkg_info'.
...
PR: 7155
1998-07-06 04:39:20 +00:00
jkh
dffc2c777f
MF22: check for null pointer.
1998-07-04 14:13:01 +00:00
jkoshy
bb375c3b7f
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
f4ff529ba4
Loosely document the '-s' commandline option.
...
PR: 6713
1998-05-24 03:11:17 +00:00
jkh
c42090d4b9
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
c94dce23b1
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 08:31:20 +00:00
bde
05b2adffff
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
92b370bb35
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
808bbb6c19
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
4b22e6e01b
Quote filenames more agressively.
...
Reviewed by: jkh
Submitted by: Hubert Feyrer
1998-01-21 00:12:56 +00:00
jkh
159f0c97e5
MF22: fix to install script handling.
1998-01-17 12:26:19 +00:00
jkh
e6c4f4267e
MF22: Additional paranoia in cleanup.
1998-01-09 14:52:18 +00:00
jkh
8a392fe511
Don't assume install script is directly runnable - use sh -c.
1998-01-08 11:27:06 +00:00
hoek
938dc036e9
"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
f44431a539
MF22: Revert part of -p handling.
1997-11-14 01:56:04 +00:00
jkh
4bf8058de9
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
175cdc9261
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
6add531e7e
- 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
81ca077fbf
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
3e3b2901a0
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
cd42e7664e
Use err(3). Cosmetics in usage string and man page.
1997-10-08 07:48:21 +00:00
hoek
fc8864fa8c
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
7d1a30911b
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
5e0cc0c20e
Typo.
1997-09-13 17:55:43 +00:00
jkh
aef420d4e2
Eliminate an annoying message.
1997-09-02 08:48:47 +00:00
jkh
f4cb476ed1
Add proper md5 comments to ports-installed packages also by
...
masticating it through the same routine used by pkg_create.
Submitted by: se
1997-07-04 04:48:02 +00:00
jkh
4bf37eba3c
Change the naming conventions for preserve'd files and also document
...
the option in pkg_create. Now preserved files start with a . and are
named .<filename>.<pkgname>.backup so that their purpose is more clear.
Note that just using the preserve option without proper pkg_deps
is also foolish since packages being deleted in the incorrect order with
preserve on can generate some odd results.
1997-07-01 06:13:51 +00:00
jkh
15f6351c22
YAMF22 - deletes and preserve option fixes.
1997-06-30 03:15:40 +00:00
jkh
b1268608f7
Whoops, only attempt to back up the file if it exists. :-}
1997-06-30 02:57:40 +00:00
jkh
d7c9ca45eb
Add support for @option preserve - moves existing files out of the way
...
before replacing them (using pkgname to make this hopefully unique).
Delete also moves them back, if they exist, resulting in a package
which can be "backed out" with reasonable safety.
1997-06-29 10:41:49 +00:00
jkh
14e1ef4913
Fix multiple documentation bogons.
...
PR: 3798
Submitted by: Jan Kuriyama <kuriyama@opt.phys.waseda.ac.jp>
1997-06-19 15:18:34 +00:00
jkh
ca1b83a362
Add support for srcdir overrides.
1997-06-06 12:19:11 +00:00
ache
9b4b59d4f8
When no last file specified for % command user barf(error diagnostic)
...
instead of segmentation fault
1997-05-24 21:45:55 +00:00
max
9b36ad1d48
Minor typo.
...
PR: 3473
Submitted by: Josh Gilliam <soil@quick.net>
1997-05-02 22:00:05 +00:00
imp
15c4d207bc
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-31 05:11:47 +00:00
jkh
f09be57783
Protect against missing initial @cwd. Closes PR#2893
...
Submitted-By: pius@iago.ienet.com
1997-03-06 10:21:57 +00:00
jkh
5918d25450
Close PR#2459
1997-02-25 07:22:23 +00:00
peter
32d6b795de
Revert $FreeBSD$ to $Id$
1997-02-22 16:15:28 +00:00
jkh
f2ae6e2462
Prevent potential argument buffer overflow.
1997-02-15 16:34:47 +00:00
jkh
9bfcadd3e7
Fix a bogon with playpen size calculation for pkg of "-". It's amazing
...
this ever worked, actually.
1997-02-15 14:17:28 +00:00
jkh
27af559c36
Put back @owner/@group/@mode behavior I took out way back when.
...
Submitted-By: pst
1997-02-14 01:52:38 +00:00
wosch
00e37028d0
Sort cross references.
1997-01-20 00:03:00 +00:00
jkh
9c0cd3f9df
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
jkh
61c5e53ed5
Correct a problem which broke +DISPLAY file handling.
1997-01-13 10:14:26 +00:00
ache
e758bb2843
Use new ftpGetURL interface, as result, report FTP error
...
via ftpErrString or net error via hstrerror(h_errno)
1996-11-14 07:30:17 +00:00
jkh
17c6e0878b
Fix PR#1557 - chained package dependencies using URLs didn't work.
1996-10-14 19:41:44 +00:00
jkh
0be5fbfd70
Clean up the english a little, having made the mistake of reading it.
1996-08-20 21:27:18 +00:00
jkh
15470a7f40
Put verbosity in the right place.
1996-08-01 12:13:20 +00:00
jkh
399d369b34
Make -force work for pkg_add.
1996-07-31 21:52:33 +00:00
jkh
7241e8251f
Add MD5 checksums to packing list for all files during pkg_create and use
...
later at pkg_delete time to verify that you're deleting what you added.
This, of course, does NOT cover the case where a file you still need
hasn't changed! That's a tougher problem to solve, and this provides
only the minimal amount of safety belt. MD5 checksums are stored in comment
fields, so packages produced with these tools are backwards compatible with
the older ones.
1996-07-30 10:48:20 +00:00