summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
Commit message (Collapse)AuthorAgeFilesLines
...
* Use `The .Nm utility'charnier2002-04-204-7/+16
|
* DTRT for packages read from STDIN:murray2002-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | $ cat pkg.tgz | pkg_add - The above command line will fail on -CURRENT or -STABLE, and therefore, so will sysinstall if you try to install additional packages through the network (FTP) from a multiuser system. Because of the different environment during installation (wrt the playpen), this bug does not manifest itself during initial installs, and users may install packages from the network just fine at that time. This bug was fixed in OpenBSD 4 years ago. ---------------------------- revision 1.4 date: 1998/04/07 05:56:13; author: marc; state: Exp; lines: +13 -8 fix package input from standard input -- the program tried to process stdin twice. Note: it assumes stdin is a compressed tar file. ---------------------------- PR: conf/36606 Obtained from: OpenBSD MFC after: 2 weeks
* Fix SCM ID's.obrien2002-04-0132-120/+97
|
* Use some black make(1) magic to make pkg_install build even withoutsobomax2002-02-271-0/+5
| | | | | | Makefile.inc in parent directory (e.g. when checked out from cvs as a module). MFC after: 2 weeks
* Make sortdeps() working with dependency lists containing one or no elements.sobomax2002-02-201-1/+4
| | | | | Submitted by: roam MFC in: 1 week
* Provide protection against incorrect input (dependency list).sobomax2002-02-201-2/+5
| | | | Submitted by: roam
* Pass `-9' flag to gzip(1), so that package is compressed using maximumsobomax2002-01-171-2/+4
| | | | | | compression. Usually this gives gives extra 1-1.5%. MFC after: 1 day
* Add pkg_update to the SEE_ALSO manpage of pkg_create.keramida2002-01-151-0/+1
| | | | | PR: docs/33666 Submitted by: Tom Rhodes <darklogik@pittgoth.com>
* Choose more paranoid modes for the temporary directory so the user can'tjkh2001-11-221-1/+1
| | | | | | easily browse its contents. Noted by: Antoine
* Improve recently committed fix for -t bug.sobomax2001-11-151-1/+1
| | | | | Submitted by: "Andrew L. Neporada" <andr@dgap.mipt.ru> MFC after: 3 days
* Make `-b' option actually work as advertised.sobomax2001-10-251-0/+1
|
* Increase the number of packages that can be installed by an order ofobrien2001-10-161-1/+1
| | | | | magnitude. Geez, this is Unix, what is with the arbitrary needless constants.
* Fix "off by 1" error introduced in the previous commit by replacing strncpy(3)sobomax2001-10-162-2/+2
| | | | | | with strlcpy(3). MFC after: 2 weeks
* Use strncpy(3) instead of strcpy(3) to copy optarg into a fixed-sized buffer.sobomax2001-10-152-2/+2
| | | | | Prompted by: dd MFC after: 2 weeks
* The user wants to ensure, not insure, that the package isn't going todd2001-10-151-1/+1
| | | | damage their system.
* Make `-t' flag in pkg_*(1) tools actually working.sobomax2001-10-111-1/+2
| | | | | | PR: 30843 Submitted by: Vladimir B. Grebenschikov <vova@express.ru> MFC after: 2 weeks
* - Introduce a notion of `packing list format version'. This allows makingsobomax2001-10-1011-17/+146
| | | | | | | | | | | | | | | | | | non-backward compatible changes in the format of packing list and handle them gracefully; - fix a longstanding issue with symlinks handling. Instead of recording checksum for the file symlink points to, record checksum for the value returned by readlink(2). For backward compatibility increase packing list format minor version number and provide a fallback to a previous behaviour, if package in question was created with older version of pkg_* tools; Submitted by: Alec Wolman <wolman@cs.washington.edu>, sobomax - don't record MD5 checksum for device nodes, fifo's and other non-regular files. Submitted by: nbm MFC in: 2 weeks
* WARNS=2 cleanup.sobomax2001-10-1027-175/+184
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* OOPS, delete some commented out debugging code committed along with r.1.25.sobomax2001-10-081-1/+0
| | | | MFC after: 2 weeks
* - Allow package archive to be created from a locally installed package. Thissobomax2001-10-085-30/+109
| | | | | | | | | allows for an easy way to backup old version of port prior to installing a new one; - silence compiler warnings by killing some unused variables and adding all includes necessary. MFC after: 2 weeks
* Various fixes and improvements:sobomax2001-09-198-80/+187
| | | | | | | | | | | | - fix harmless compiler's warnings (unused variables and missed prototype); - before refusing to delete package because "there are packages installed that require this package" check that packages in question is actually installed; - add new `-r' option to pkg_delete(8), which instructs it to delete not only packages specified at command line, but all packages that depend on specified packages as well. MFC after: 2 weeks
* Drop maintainership.bmah2001-09-181-1/+0
|
* Support the use of ${PORTSDIR} to find a ports tree INDEX file inbmah2001-09-181-2/+2
| | | | | | | | an other-than-default location. PR: bin/30350 Submitted by: "NINOMIYA Hideyuki <NINOMIYA Hideyuki" <nin@jp.FreeBSD.org> MFC after: 3 days
* Fix segfault introduced in previous commit (when adding local packages).sobomax2001-09-171-2/+3
|
* Use a colon to separate the user and group when executing chown(1).dd2001-09-111-2/+2
| | | | | | | Periods aren't supported anymore. PR: 30507 Submitted by: Georg-W. Koltermann <gwk@sgi.com>
* Fixes problem with pkg_add -r when adding multiple pkgs.unfurl2001-09-071-0/+1
| | | | Reviewed by: chris
* Handle snprintf() returning < 0 (not just -1)brian2001-08-202-5/+5
| | | | MFC after: 2 weeks
* Handle snprintf() returning -1.brian2001-08-202-5/+5
| | | | MFC after: 2 weeks
* Remove duplicate umask(2) call.sobomax2001-08-151-1/+0
| | | | | | PR: dusty/7998 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> MFC after: 2 weeks
* Spell "FreeBSD" with "F" and "BSD" in uppercase.ru2001-08-131-1/+1
|
* Reduce private "lesser known" function redirection to improve clarity.obrien2001-08-135-59/+31
| | | | Approved by: jkh
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-1/+1
| | | | with a trailing zero-width space: `e.g.\&'.
* Recognise @option directives instead of falling through to the defaultkris2001-08-061-0/+6
| | | | | | "unknown command" clause. PR: 29262
* exists(../../crypto) --> exists(${.CURDIR}/../../crypto)sobomax2001-08-021-1/+1
| | | | MFC after: 1 month
* fix for pkg_add to symlinked prefix directories that are more than 1 link deep.jon2001-08-021-1/+1
| | | | | | PR: bin/28274 Submitted by: John Hein <jhein@timing.com> MFC after: 1 month
* Cosmetics: replace dozen instances of "(tmp = getenv(PKG_DBDIR) ? tmp : ↵sobomax2001-08-027-23/+15
| | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month
* Cosmetics: kill blank lines at the end of file.sobomax2001-08-021-2/+0
| | | | MFC after: 1 month
* Usability tweak:sobomax2001-08-024-30/+30
| | | | | | | | | Use '' quotes instead of `' to delimit names of files and packages in warning and error messages, because it is easier to cut-n-paste name in question that way (single click) without confusing the shell. And yes, I know that it is less eye-candy... MFC after: 1 month
* When there is a file that can't be deleted due to checksum mismatch print namesobomax2001-08-021-2/+1
| | | | | | | of that file to stdout to simplify debugging. IMO it was a mistake to print this warning only when `verbose' mode is on. MFC after: 1 month
* The security officer requested this be backed out for discussion.obrien2001-07-282-18/+32
|
* Remove s_strl*(). I am not sure what was thought they accomplished.obrien2001-07-282-32/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When reading the code I had to stop, say "ok, what does *these* modifications of strl*() do? Pull out grep. Oh, not in add/, maybe above in ../lib/? Yep. So what do they do? Comments above them are misleading, guess I'll have to read the code. Oh, they just test strl* against the size and return the result of the test. Now I can continue to read the code I was. The uses of s_strl*() then test that result and errx()'s. Lets think about the "optimized" code I am removing: In general the compiler pushes the three args to strl* onto the stack and calls s_strl*. s_strl* has to indirectly access 3 args from the stack. Then push them on the stack a 2nd time for the real strl* call. s_strl* then pops the return from strl* off the stack; or moves it from the register it was returned in, to the register where tests can happen. s_strl* then pops the three arguments to strl*. Perform the test, push the result of the test, or move it from the result register to the return value register. The caller to s_strl* now has to either pop the return value of s_strl* or move it from the return value register to the test register. The caller then pops the three args to s_strl* off the stack (the same args that s_strl* itself had to pop off after the real call to strl*). The s_strl* caller then performs a simular test to what has already been done, and conditionally jumps. By doing things this way, we've given the compiler optimizer less to work with. Also, please don't forget the that call to s_strl* has possibly jumped to code not in the cache due to being far away from the calling code, thus causing a pipeline stall. So where is the "optimization" from s_strl*? It isn't code clarity. It isn't code execution speed. It isn't code size either.
* Only match the first osreldate date range for constructing the FTP URL,kris2001-07-261-1/+1
| | | | | | not all of them. Noticed by: obrien
* Use reallocf(3) to increase size of malloc'ed buffer instead ofsobomax2001-07-201-7/+4
| | | | malloc()+memcpy()+free().
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-207-25/+22
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Correct a reversion in r1.39 which introduced a new instance of strcpy()kris2001-07-191-4/+6
| | | | after r1.38 had attempted to remove them all.
* Remove whitespace at EOL.dd2001-07-156-84/+84
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-105-5/+5
|
* bzip2(1) is in the base system - we don't need /usr/local/bin in the PATHsobomax2001-07-101-1/+1
| | | | anymore.
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-092-2/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+2
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
OpenPOWER on IntegriCloud