Commit graph

251 commits

Author SHA1 Message Date
David E. O'Brien e0908a9f34 Use lstat(2) rather than stat(2) in isdir(), so that a symlink to a
directory is not considered a directory.  I have a feeling all the other
stat(2) calls should instead be lstat(2) calls, but I have not suffiently
determined that the current behavior [especially in isfile()] isn't
depended upon by someone.

Ok'ed by:	JKH
2000-02-08 06:36:08 +00:00
Chris Costello 6f30e43c0e Grammar fix: `Different than'' should be `different from''. 2000-01-29 22:20:19 +00:00
Dan Moschuk 61de98348a Fix a bug in previous commit where pkg_{delete,info} foo-1.0/ would segfault.
Noticed first by: kris
2000-01-18 01:45:54 +00:00
Dan Moschuk 06647a4f76 Teach pkg_delete and pkg_info how to deal with full pathnames
(/var/db/pkg/foo-1.0, instead of just foo-1.0).

Submitted by: Matthew D. Fuller <fullermd@futuresouth.com>
2000-01-15 01:15:37 +00:00
Sheldon Hearn 3c47fb7922 Fix bogon in previous commit: pass a string argument to printf(3) to
satisfy the %s conversion format specifier.

Reported by:		Mark Huizer <freebsd@xaa.iae.nl>
2000-01-11 13:40:20 +00:00
Sheldon Hearn b8d1e942b5 Use a more helpful fatal error message than "Toto! This doesn't look
like Kansas anymore!" when unable to return to the original working
directory.

PR:		bin/16015
2000-01-11 12:37:16 +00:00
Alexey Zelkin f4c2a87d41 Include -f and -t options to SYNOPSYS section (manpage) and usage information
(main.c)

PR:		bin/5410
Submitted by:	Frank Volf <volf@oasis.IAEhv.nl>
2000-01-07 13:25:53 +00:00
Jordan K. Hubbard 481dc61302 Deal with package filenames which contain spaces.
Submitted by:	Ming-I Hsieh <mihs@wm28.csie.ncu.edu.tw>
PR:		15667
2000-01-04 05:08:58 +00:00
Satoshi Asami a9758dac1a Redirect stdout from mtree to /dev/null; we don't really need to know
the list of directories being created when we install a package.
2000-01-03 22:59:27 +00:00
Jordan K. Hubbard 430122ed41 Only pkg_delete the old package if the new one builds properly.
Submitted by:	Dan "The Bug" Bugg <bugg@bugg.strangled.net>
1999-12-06 03:19:16 +00:00
Bill Fumerola 47f97505ad 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
Bill Fumerola a30945450e 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
Bill Fumerola bc019cca2f 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
Bill Fumerola 80d667c495 Add the author as co-maintainer, a la mergemaster. 1999-11-26 20:35:55 +00:00
Bill Fumerola 33b668b529 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
Chris Piazza 79e970edde Make pkg_add -r package1 package2 package3 ... work correctly.
Reviewed by:	billf
1999-11-18 23:32:43 +00:00
Bill Fumerola db86a11e69 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
Masafumi Max NAKANE ce30a19b7c Document the fact that pkg_add/delete passes INSTALL/DEINSTALL
respectively to rscript.
1999-09-11 03:52:24 +00:00
Jordan K. Hubbard c32155b9e3 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 Wemm 3085e97a0b Remove some $Log$ debris 1999-08-29 15:54:49 +00:00
Peter Wemm a1a4f1a0d8 $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
Peter Wemm 97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Mike Pritchard 32fdc70513 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
Bill Fumerola 0845a96cd0 -Wall fixes. Ambigious if/elses, uninitialized values, missing headers,
missing prototypes, and empty format strings.
1999-08-11 20:55:42 +00:00
John Polstra 8d14a4acbe When listing the installed packages, do it in alphabetical order. 1999-07-30 23:14:15 +00:00
Nik Clayton 414a35e60a 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
Warner Losh 02db1769f3 '?' shouldn't be in the usage string. Unknown characters are already
converted to '?'.
1999-06-24 06:33:24 +00:00
Bill Fumerola 69f8389253 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
David E. O'Brien ba83352b78 Support Alpha and -CURRENT in the "-r" option case. 1999-06-14 21:58:59 +00:00
Jordan K. Hubbard 177bf8278c 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
Jordan K. Hubbard 722678f1c8 Revive the PKG_ADD_BASE stuff a bit. 1999-05-12 06:06:49 +00:00
Jordan K. Hubbard c89686d6b7 If pkg_info is run with no args, default to "-aI". 1999-04-27 02:30:27 +00:00
Alexander Langer 43d1df332e Removed occurrences of consecutive repeated words (such as "the the"). 1999-02-12 02:12:08 +00:00
Bill Fumerola 2d073cdff2 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
Bill Fumerola ad22d0720b Numbering typo, missed a '0'
Submitted by:	Brian Feldman
1999-01-26 22:31:23 +00:00
Bill Fumerola c6a6c9c017 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
Bill Fumerola 99ebed6b50 Style police, inline ifs.
Submitted by:	 Brian Feldman <green@unixhelp.org>
1999-01-18 03:54:17 +00:00
Justin M. Seger 1048df4463 enviornment -> environment
PR:		docs/9534
Submitted by:	rv@fore.com
1999-01-17 15:08:09 +00:00
Bill Fumerola ab13b06dc0 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
David E. O'Brien 729ac65e7c document PKG_DBDIR
Add ENVIRONMENT and FILES sections.
1998-12-31 20:29:29 +00:00
David E. O'Brien ce4273bfe4 change wording slightly to match other pkg_*.1 1998-12-31 20:28:55 +00:00
Jordan K. Hubbard 0440e20b71 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
Satoshi Asami cf144a3d4a 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
Jordan K. Hubbard 1b771b9577 Fix bug where trailing slash could confuse the registry removal.
Noticed by:	des
1998-11-11 06:09:04 +00:00
Jordan K. Hubbard 400d793dd7 Unlink old contents of package when extracting new.
Submitted by:	pst
1998-10-28 22:44:24 +00:00
Jordan K. Hubbard 27f612d03f 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
Jordan K. Hubbard ac5c5f1320 Correct a misleading comment. 1998-10-12 20:01:48 +00:00
Jordan K. Hubbard d0a638ae52 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
Jordan K. Hubbard 355150a489 Use a more reasonable default umask in case the root umask is too
fascist.
PR:		4014
1998-09-14 19:22:59 +00:00
Jordan K. Hubbard 375ca45770 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