summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
Commit message (Collapse)AuthorAgeFilesLines
* Fix nasty bug where getpackagesite() will return an integer if it doesn'tbillf1999-01-281-2/+2
| | | | | know what revision of FreeBSD is being run. This case should never happen, but just in case.
* Numbering typo, missed a '0'billf1999-01-261-3/+3
| | | | Submitted by: Brian Feldman
* Update pkg_add's remote package feature to reflect the new structure ofbillf1999-01-251-6/+6
| | | | | | | | | | | | | 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.
* Style police, inline ifs.billf1999-01-181-14/+12
| | | | Submitted by: Brian Feldman <green@unixhelp.org>
* enviornment -> environmentjseger1999-01-171-2/+2
| | | | | PR: docs/9534 Submitted by: rv@fore.com
* Add a new option for pkg_add, -r.billf1999-01-172-5/+67
| | | | | | | | | | | | | 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
* document PKG_DBDIRobrien1998-12-311-0/+13
| | | | Add ENVIRONMENT and FILES sections.
* change wording slightly to match other pkg_*.1obrien1998-12-311-2/+2
|
* Make it possible to have separate install scripts as well as havejkh1998-12-1610-54/+310
| | | | | | an on-delete script. Submitted by: Rajesh Vaidheeswarran <rv@fore.com>
* Fix support for uncompressed (".tar") package types. It's not completelyasami1998-12-052-8/+24
| | | | | fixed (chained dependency checking for pkg_add is broken, for one thing) but at least you can now create one package and use it.
* Fix bug where trailing slash could confuse the registry removal.jkh1998-11-111-1/+7
| | | | Noticed by: des
* Unlink old contents of package when extracting new.jkh1998-10-281-2/+2
| | | | Submitted by: pst
* Revert 1.33; lstat() is indeed the wrong thing to do here. I'lljkh1998-10-141-2/+2
| | | | revisit this after release.
* Correct a misleading comment.jkh1998-10-121-2/+2
|
* Use lstat() rather than stat in determining whether a file exists,jkh1998-10-091-2/+2
| | | | | otherwise we'll miss the "symlink exists but points nowhere" case. Submitted by: asami and/or possibly <ru@ucb.crimea.ua>
* Use a more reasonable default umask in case the root umask is toojkh1998-09-141-1/+5
| | | | | fascist. PR: 4014
* correct usage of cleanup() everywhere - this became bogus when the warnx/errxjkh1998-09-1110-110/+181
| | | | | stuff was added and nobody seems to have noticed. :) Noticed by: Josh MacDonald <jmacd@paris.CS.Berkeley.EDU>
* o Set paths internally for pkg_add for tools we might want to invoke.jkh1998-09-083-12/+16
| | | | | | | | 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.
* Fix bogus suffix stripping to be less naive.jkh1998-09-081-9/+7
| | | | | PR: 3418 Noted by: pst
* Fail as documented when a dependency cannot be foundjkh1998-09-081-1/+7
| | | | | PR: 7318 Submitted by: djv@bedford.net
* Silence potentially bogus warning.jkh1998-09-011-2/+2
|
* Fix recursive package add problem (for on-disk package files) I introducedjkh1998-08-271-3/+6
| | | | | with the change in semantics to make_playpen(). Now package dependencies more than 2 levels deep should work again. Pass the hat.
* Don't exit() from cleanup() if we got there via a non-signal sincejkh1998-07-281-2/+3
| | | | | | we're only going to exit (after printing a more detailed error message) afterwards anyway. PR: 7020
* Paranoia: use mkdtemp instead of mktempnectar1998-07-281-4/+3
| | | | | PR: bin/3212 Reviewed by: jkh@FreeBSD.ORG
* Clarify "Cannot delete file as directory" errmessage.hoek1998-07-181-3/+3
| | | | PR: bin/1985
* Avoid race-conditions on playpen delete.eivind1998-07-171-2/+5
|
* Add $Id$.jkoshy1998-07-142-0/+2
| | | | | PR: 7251 Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org>
* Document `-I' and `-R' options to `pkg_info'.jkoshy1998-07-061-0/+5
| | | | PR: 7155
* MF22: check for null pointer.jkh1998-07-041-2/+6
|
* Document environment variables used by pkg_{add,create,info}. Thesejkoshy1998-06-263-2/+108
| | | | | | | include PKG_TMPDIR, TMPDIR, PKG_DBDIR. Add a FILES section to these manual pages. PR: docs/7064
* Loosely document the '-s' commandline option.steve1998-05-241-1/+7
| | | | PR: 6713
* Fix dependent-package loading when pkg_adding with an FTP URL. I brokejkh1998-04-121-9/+40
| | | | | | 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.
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-234-29/+22
|
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalbde1998-03-075-40/+24
| | | | | libraries, so that `ld -f' in can create correct dependencies for yet-to-be-built libraries.
* Eliminate the idea of nested "playpens" entirely - it just obfuscatedjkh1998-02-165-32/+45
| | | | the code and, in at least one case, made it more dangerous to no gain.
* I must have been smoking crack when I made this change. Using sh -cjkh1998-01-211-4/+4
| | | | | 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!
* Quote filenames more agressively.imp1998-01-211-4/+7
| | | | | Reviewed by: jkh Submitted by: Hubert Feyrer
* MF22: fix to install script handling.jkh1998-01-171-4/+4
|
* MF22: Additional paranoia in cleanup.jkh1998-01-091-2/+2
|
* Don't assume install script is directly runnable - use sh -c.jkh1998-01-081-4/+4
|
* "This is the add^H^H^Hinfo module."hoek1997-12-261-2/+2
| | | | | | | Pedantic comment fix. PR: bin/5188 Submitted by: Alex [3]garbanzo@hooked.net
* MF22: Revert part of -p handling.jkh1997-11-141-1/+4
|
* The prefix override code was bogus. The original idea was soundjkh1997-11-131-6/+1
| | | | | | | | 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>
* Pkg_add refused to process package whose packing list contains @exec/@unexecmax1997-10-241-2/+6
| | | | | | | | 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
* - do string-magic on the right variable when tryingjkh1997-10-183-6/+19
| | | | | | | | | | 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
* Deal with PLIST_UNEXEC properly.jkh1997-10-181-1/+5
| | | | | PR: 4784 Submitted by: Stefan `Sec` Zehl <sec@quit.42.org>
* Don't return from cleanup() - if it's removed the playpen then veryjkh1997-10-135-9/+14
| | | | | bad things will happen if we return to unsuspecting code. Noted to my great dismay by: Tim Vanderhoek <hoek@hwcn.org>
* Use err(3). Cosmetics in usage string and man page.charnier1997-10-0825-377/+310
|
* Document pkg_add's dependency auto-install. While I'm here, fixhoek1997-09-273-15/+19
| | | | | | | | | 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
* Many places in the code NULL is used in integer context, wherephk1997-09-182-4/+4
| | | | | | | | | 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>
OpenPOWER on IntegriCloud