summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
Commit message (Collapse)AuthorAgeFilesLines
* typoeik2004-08-111-1/+1
| | | | Approved by: ru
* FWIIW, make the `test' target in pkg_install/version actually work.eik2004-08-111-1/+1
|
* Join the 21st century: Cryptography is no longer an optional componentcperciva2004-08-062-2/+0
| | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004
* Use the length modifier 'll' instead of 'q' to print long longs.stefanf2004-07-283-4/+4
|
* Downgrade WARNS level to more tolerable value. Attempt to fixkan2004-07-287-14/+16
| | | | casts as lvalue usage whenever possible.
* Eliminated double whitespace.ru2004-07-032-2/+2
|
* Mechanically kill hard sentence breaks.ru2004-07-025-70/+139
|
* - pkg_add spawns itself as argv[0] when installing dependent packages, toeik2004-06-2927-61/+97
| | | | | | | | | | | | | | | | | | enable the use as a port on older systems - use absolute paths in all calls to external programs, to account for strange PATH settings - use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on FreeBSD 4.x as a port. - conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the pkg_install tools can be kept in sync on 4.x and 5.x - Bump PKG_INSTALL_VERSION Reviewed by: portmgr (bento run) MFC after: 4 weeks
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵eik2004-06-2913-81/+110
| | | | | | | | | | | | | | | | change)) - pkg_info: new flag -j (show the requirements script) - pkg_info: fix verbose output when used on packages - better handling of corrupt entries in /var/db/pkg - differ between corrupt entires and packages not installed - various small fixes PR: 56989, 57016, 57029, 26468
* - pkg_create: new flag -S (clean room installation)eik2004-06-295-33/+74
| | | | | | - pkg_create: checksum meta files too PR: 66032
* - match package version numbers with relational operatorseik2004-06-2913-49/+403
| | | | | | | | | | | | | | - use glob patterns when matching packages by origin - csh-style {...} choices in glob matching - pkg_info: new flag -E (list matching package names only) - pkg_version: new flag -T (test if a given name matches a pattern) - new flag -X (interpret pattern as an extended regular expression) PR: 56961
* - complete rewrite of the version number parsing code, restoring ↵eik2004-06-294-87/+265
| | | | | | | | | | compatibiliy of 5.x with 4.x and portupgrade - parse version numbers of ports containing an underscore followed by a number correctly - handle special strings pl, alpha, beta, pre and rc PR: 56961
* 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.
OpenPOWER on IntegriCloud