summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
Commit message (Collapse)AuthorAgeFilesLines
* Markup and punctuation nits.ru2004-06-051-8/+8
|
* Add 4.10 and 5.2.1 entries so that pkg_add -r fetches from the rightbmah2004-05-081-1/+3
| | | | | | | package sets. PR: 66251 Submitted by: eik
* When invoking tar, make sure the mode option (-x) is first.kientzle2004-04-081-7/+6
|
* Synopsis fixes:cperciva2004-03-302-12/+8
| | | | | | | | | | * `pkg_info -flags' needs either `-a' or a package name. [1] * Add -Q option to manual page. * Update `usage:' to match the manual page. PR: misc/64786 [1] Reviewed by: ru MFC after: 3 days
* Add command line option for chrootdir, all pkg_add(8) operations will bekensmith2004-03-012-3/+39
| | | | | | | | | | done inside of chroot(2) to chrootdir. Added to help with sysinstall(8) support of install to alternate root but possibly useful for setting up jails, etc. No objection from: portmgr@ Style(9) abuse due to: entire program violates style(9) Approved by: rwatson (mentor)
* This is an initial whitespace cleanup commit, new content to follow.kensmith2004-03-011-19/+38
| | | | | | Adding hard line breaks at the end of sentences. Approved by: rwatson (mentor)
* Instead of bogusly complaining about odd file names, handle them properlydes2004-01-241-11/+27
| | | | | | by escaping all suspicious characters. MFC after: 3 days
* Try to apply consistent indentation.des2004-01-241-20/+19
|
* - Properly build both crypto and non-crypto versions of theru2004-01-178-28/+10
| | | | | | | package management tools. - Drop redundant dependency of pkg_create(1) and pkg_delete(1) on crypto libraries now that they do not link with libfetch.
* Replaced black magic with white magic.ru2004-01-171-5/+2
|
* Catch up with reality with respect to the location of 4.8, 4.9,bmah2004-01-021-1/+6
| | | | 5.0, 5.1, 5.2, and CURRENT packages.
* Fix a case of undefined behavior due to overlapping buf objects inschweikh2003-12-231-2/+3
| | | | | | | | snprintf (buf, size, fmt, buf, etc). This only works by chance with our libc, but fails (with a truncated string) on e.g. glibc. Okayed by: sobomax MFC after: 1 week
* Correct truncation detection after use of snprintf: The case wherenectar2003-12-172-5/+5
| | | | exactly one character was truncated was not detected.
* Clarify the order of arguments passed to the pre-/post-install scriptroam2003-08-261-1/+1
| | | | | | | | in the description of the pkg_create -i command-line option. PR: 55477 Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu> MFC after: 5 weeks
* Backout 1.14, it seems to be causing problems with libxml buildbmilekic2003-08-041-1/+1
| | | | | and I don't have time to investigate this code in much detail right now.
* Use strncmp() and not strcmp() here to properly matchbmilekic2003-08-011-1/+1
| | | | | | installed ports. Submitted by: Harold Gutch <logix@foobar.franken.de>
* The .Xr utilitycharnier2003-06-081-1/+2
|
* pkg_create incorrectly does not add trailing '\n' when it receiveslioux2003-05-262-1/+23
| | | | | | | | | | | | | | | | | | | either COMMENT or DESCR from the command line. When a port is installed, one gets both +COMMENT and +DESCR files with a trailing '\n' character. However, +COMMENT does not contain a trailing '\n' when it is installed from a package due to this behavior of pkg_create. Therefore, make sure it behaves exactly the same regardless of where got its information; either command line or files. The modified functions are used by pkg_create. PR: 52097 Reviewed by: bento, kris, portmgr, re, Michael Nottebrock <michaelnottebrock@gmx.net>, Martin Horcicka <horcicka@FreeBSD.cz> Approved by: re (scottl) MFC after: 1 week
* Add a trailing '\n' character if none is found in the informationlioux2003-05-261-10/+19
| | | | | | | | | | | | | | | obtained from a package. Patch show_file() [1] and show_index() [2] functions. PR: 52097 Reviewed by: bento, kris, portmgr, re, Michael Nottebrock <michaelnottebrock@gmx.net>, Martin Horcicka <horcicka@FreeBSD.cz> Approved by: re (scottl) Obtained from: NetBSD [1], OpenBSD [2] MFC after: 1 week
* Erase whitespace at EOL.ru2003-05-221-2/+2
| | | | Approved by: re (blanket)
* Retire the useless NOSECURE knob.des2003-05-196-6/+6
| | | | Approved by: re (scottl)
* Fixed troff(1) and mdoc(7) warnings.ru2003-05-181-1/+1
| | | | Approved by: re (blanket)
* * Add explicit conflict-checking to the package tools. Packages cankris2003-04-179-18/+104
| | | | | | | | | | | | | | | register a list of other packages with which they conflict (via the -C option to pkg_create), and they will refuse to install (unless -f is specified) if one of the listed packages is already present. * Update documentation for the new feature as well as fleshing out some existing documentation. * Bump PKG_INSTALL_VERSION so this feature can be tested for. Submitted by: Sergey Matveychuk <sem@ciam.ru> PR: bin/47145 MFC after: 2 weeks
* Revert url.c:1.2: there was a race condition between when I producedrwatson2003-04-171-1/+1
| | | | | | | the fix and when I committed it -- in between the two, DES committed a different fix, rendering this fix unneeded. Requested by: des
* - Print out an error message instead of dereferencing a NULL pointerrobert2003-04-041-7/+29
| | | | | | | | | | if matchinstalled() found no packages, which happens to be the case after fresh installations. - Instead of using strstr(3) to match the package name, depend on matchinstalled()'s MATCH_REGEX package matching. PR: bin/50384 MFC after: 2 weeks
* Don't pass NULL in as a flags argument to libfetch's fetchGetURL()rwatson2003-03-271-1/+1
| | | | | | as this can result in a NULL pointer deference when parsing the flags later. This change fixes "pkg_add -r" on 5.0-CURRENT for me; not quite clear how the problem was introduced.
* - Add the 'b' option which causes BLOCKSIZE to be hornored whenmdodd2003-03-254-8/+29
| | | | | the 'q' or 'Q' options are present. - Document BLOCKSIZE.
* Implement the 'Q' option which is like 'q' (quiet output) exceptmdodd2003-03-254-2/+17
| | | | | | | | that it prefaces the output with the package name. This is useful for things like this: # pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10
* Fix a long-standing bug where if the package being deleted had nodes2003-02-252-14/+12
| | | | | | | | | | | | | | | | post-deinstall script, the variable intended to hold the name of that script would be used uninitialized. In some cases, fexists() would succeed, causing pkg_delete to try to chmod +x it, then execute it, resulting in bizarre error messages such as: .//: Permission denied This bug would normally only occur when multiple packages were specified on the command line; otherwise post_script would be located in a previously unused part of the stack, and implicitly (but quite accidentally) initialized to all-zeros. MFC after: 3 days
* Initialize sign to NULL so that we don't attempt to free() it in casemikeh2003-02-201-0/+1
| | | | | | of failure. MFC after: 1 week
* even the default case in a switch requires some action (add break;)billf2003-02-031-1/+2
| | | | | EVP_sha1() returns a const EVP_MD *, so reflect that in the variable we store its return value in.
* No need for the OPENSSL_NO_KRB5 switch anymore.markm2003-01-311-1/+0
| | | | Fixed by: nectar
* iAdjust for OpenSSL 0.9.7.markm2003-01-281-0/+1
|
* Note that -c is no longer supported. This was requested by a few users andtrhodes2003-01-271-0/+4
| | | | | | | | we even have a PR about it. PR: 47388 Discussed with: bmah Requested by: many
* Actually, the canonical way would be syntactically correct.des2003-01-091-1/+1
|
* Canonical way of determining whether or not to use crypto.des2003-01-091-1/+1
|
* Prevent buffer overflow in format_cmd() by properly tracking maximumjkh2003-01-064-16/+24
| | | | | | buffer size. Reported by: Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com> MFC after: 1 week
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Back out rev 1.33; getbsize(3)'s original interface has been restored.mike2002-12-301-1/+1
| | | | Approved by: markm
* english(4) police.schweikh2002-12-272-4/+4
|
* Uniformly refer to a file system as "file system".ru2002-12-122-2/+2
| | | | Approved by: re
* Minimal change to cause pkg_version to examine the new INDEX-5 filekris2002-12-042-2/+3
| | | | | instead of INDEX. This should be done better since this file name will depend on the FreeBSD major version.
* Assume that packages passed on stdin are in bzip2 format, not gzip.bmah2002-11-141-1/+2
| | | | | | (sysinstall depends on this feature for package addition.) Comment on hard-coded bzip2 usage in the spirit of rev. 1.58.
* Clean up a little. Don't need to include fetch.h any more, and I can'tobrien2002-11-061-7/+0
| | | | find any consumers of HOSTNAME_MAX.
* Break fileGetURL() out into its own file so that pkg_install/lib consumersobrien2002-11-065-117/+149
| | | | pkg_{create,delete} don't need to needlessly link with libfetch.
* Whitespace cleanupdes2002-10-291-5/+5
|
* getbsize() now takes a pointer to a size_t as its first arg. A pointergallatin2002-10-241-1/+1
| | | | to an int no longer works on an LP64 platform...
* Teach pkg_add -r how to find 4.7-RELEASE packages with an appropriatebmah2002-10-081-0/+1
| | | | | | | | osreldate. (Actually, due to differences in package compression formats, I'm not sure that a -CURRENT pkg_add -r will do the right thing in this case, once it finds them.)
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-211-2/+2
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Update to use *.tbz suffix, also update example URL.bmah2002-09-101-3/+3
| | | | | | | | While I'm here, fix a gramm-o. PR: 42576 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 1 day
OpenPOWER on IntegriCloud