summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Sigh, finally activate pkgwrap.c.sobomax2002-09-091-1/+1
| | | | | Big pointy hat to: sobomax (who apparently needs some sleep) Submitted by: walt <wa1ter@hotmail.com>
* Fix minor off-by-one error.bmah2002-09-091-1/+1
| | | | Submitted by: jhb
* Make pkg_install go to the right place for 4.6-RELEASE and 4.6.2-RELEASEbmah2002-09-091-0/+2
| | | | | | | packages. Pointed out by: obrien Reviewed by: jhb
* Introduce notion of the package tools revision and allow to wrap all toolssobomax2002-09-095-18/+131
| | | | | | | | | | | | | | | | | | included into pkg_install according to the content of /var/db/pkg_install.conf file, which specifies version and alternative location of the tools. Format of the said file is very simple: one line which specifies revision of the alternative version of the tools and their location separated by space, i.e.: 20030102 /usr/local/sbin This would allow bsd.port.mk to install and use up to date version of tools on older system from ports. Also add new `-P' flag to pkg_info, which causes it to report currently installed version of package tools. Discussed with: will
* Kill debugging line occasionally slipped into rev.1.3.sobomax2002-09-091-2/+0
| | | | Submitted by: reg
* Vastly decrease amount of memory comsumed in the case when we have to readsobomax2002-09-092-4/+11
| | | | | | ports/INDEX, by allocating eactly amount of memory necessary for storing each particular entry, insdead of 4K per entry (more than 7000 entries - go figure). Memory consumption went down to some 500K from some 30M.
* Use --fast-read mode to extract metadata from package file. Since metadatasobomax2002-09-091-2/+16
| | | | | | | | files are located at the very beginning of the package, this patch in conjuction with latest tar(1) --fast-mode fix greatly speeds up pkg_info(1) operation on package files. MFC after: 1 week
* When installing package from a local file assume that all subsequentsobomax2002-09-031-2/+6
| | | | | | | | autoinstalled dependencies will have the same extension, not just ".tbz". Pointy hat to: obrien X-MFC after: -1 day
* Don't treat unknown commands as fatal errors: they are probably justkris2002-08-311-2/+3
| | | | | | | the signature of out-of-date pkg_tools and newer packages. Reviewed by: jkh MFC after: 3 days
* Don't dump core on packages with an invalid or empty PLIST.reg2002-08-261-0/+4
| | | | Reviewed by: markm
* Grrr.... mumble.... a linger gzip'ism still existed.obrien2002-08-261-1/+1
| | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Reorg just a tad to better express our bzip intentions.obrien2002-08-251-6/+6
|
* Find remaining hardcoded gzip bits and change to bzip2 bits.obrien2002-08-253-9/+15
| | | | | Mark with XXX so someone that cares about being able to handle either bziped or gziped packages knows where the remaining nits are.
* Preserve suid/gid permissions when extracting packages remotellylioux2002-08-241-1/+1
| | | | | | | fetched with -r option Reviewed by: will Approved by: will
* Ensure that origin field in the packing list structure is initialised. Thissobomax2002-08-121-0/+1
| | | | | | | fixes problem when there are origin-less packages installed on a system Reported by: Mark Knight <markk@knigma.org> MFC after: 3 days
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-6/+6
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* Another .tbz2 -> .tbz leftover. Properly look for pkgname.tbz.knu2002-08-041-1/+1
| | | | MFC after: 1 day
* Drop support for the .tbz2 suffix. One would not want pkg_create(1)knu2002-08-042-6/+2
| | | | | | to create "pkgname.tbz" when one specifies "pkgname.tbz2". MFC after: 1 week
* Use an 8.3 friendly extension when compressing with bzip2.obrien2002-08-041-1/+1
|
* When extracting package pass `-p' option to tar(1), so that files aresobomax2002-08-021-1/+1
| | | | extracted with correct permissions.
* C replacement for the Perl5 code.markm2002-06-249-680/+570
| | | | Submitted by: reg
* Reorder libraries to fix static linking (libssl depends on libcrypto, sodes2002-06-124-8/+8
| | | | | | it must come before libcrypto in LDADD) Reviewed by: bde
* libfetch now depends on libcrypto and libssl.ru2002-06-064-0/+20
|
* Grammar nit.obrien2002-06-041-1/+1
| | | | Submitted by: keramida
* pkg_version was incorrectly claiming that 1.5 == 1.5.0.1, becausebmah2002-05-311-0/+24
| | | | | | | | | we weren't properly checking for the case that the two version strings being compared had different numbers of components. This has been fixed. Pointed out by: sobomax Reviewed by: silence on -ports
* mdoc(7) police: markup nits.ru2002-05-301-2/+4
|
* MFS: two more testcases highlighting recently discovered problem with versionsobomax2002-05-281-0/+2
| | | | comparison routine.
* Eliminate free'ing already freed chunks.sobomax2002-05-221-2/+3
| | | | MFC after: 1 week
* MFS: silence compiler warnings.sobomax2002-05-201-7/+7
|
* Remove cross reference to pkg_update(1).eric2002-05-161-1/+0
| | | | Submitted by: dd
* Consistancy check: s/file system/filesystem/gtrhodes2002-05-161-1/+1
|
* - Make use of DEPOROGINs (if there are any) when installing package;sobomax2002-05-147-137/+267
| | | | | | | - fix few bogosities here and there; - move some common routines into the library. MFC after: 2 weeks
* Mark all internal libraries with INTERNALLIB.ru2002-05-131-5/+1
|
* Remove cross reference to pkg_update(1).eric2002-05-111-1/+0
|
* replace __FUNCTION__ with standardized __func__.alfred2002-05-1111-58/+58
| | | | Requested by: jhb
* fix build:alfred2002-05-118-51/+67
| | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string"
* When packing installed package into a file (pkg_create -b) make sure tosobomax2002-05-101-4/+11
| | | | | | | | | | | | | | include all package files into resulting tarball. PR: 34007 Submitted by: olgeni While I here: - Remove bogus comment; - ensure that we return the proper exit code in the case of -b failure. MFC after: 5 days
* Do my bit for the Perl removal team and shoot my own, rather mangypaul2002-05-084-306/+1
| | | | looking, dog.
* New feature: allow origins of all dependencies be recorded into package listsobomax2002-05-056-9/+56
| | | | | | | | | | | | | | | | | | using new `@comment DEPORIGIN:...' directive. This would allow us to make many neat things including: - easier binary upgrades; - source upgrades without using external tools by simply extending bsd.port.mk and pkg_install tools; - mixed-mode upgrades (source + binary); - depreciate and deorbit silly +REQUIRED_BY files in the near future. This feature is no-op until appropriate bsd.port.mk patch is committed, and even when it is already committed packages generated will remain 100% compatible with old set of pkg_install tools (module all those neat features, of course). MFC after: 6 days
* In a origin lookup mode (-O) don't bail out when encountering empty packagesobomax2002-05-051-2/+8
| | | | | | | | directory, because this prevent this option from being used from the package-depends target of bsd.port.mk since it creates such empty dir during its normal operation. MFC after: 6 days
* Update usage() and manpage to match reality (add -O into usage and adjustsobomax2002-05-052-4/+10
| | | | | | both to make clear that -W and -O are stand-alone options). MFC after: 6 days
* Use PLIST_ORIGIN instead of rolling own version using PLIST_COMMENT.sobomax2002-05-051-4/+5
| | | | MFC after: 6 days
* Handle PLIST_ORIGIN properly.sobomax2002-05-052-0/+9
| | | | | | Poked by: kris Pointy hat grabbed by: sobomax MFC after: 6 days
* Add ability to query installed packages based on origin.sobomax2002-05-047-11/+99
|
* Make pkg_info working again when argument is a file not in the currentsobomax2002-05-021-2/+5
| | | | | | | | directory. PR: 37571 Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org> MFC after: 1 week
* Make `-g' working for symlinks.sobomax2002-05-021-3/+20
| | | | | | PR: 33857 Submitted by: darren <igla@batterybackups.net> MFC after: 1 week
* Kill local variable which shadows global one. This fixes creation of bzip2sobomax2002-05-021-1/+0
| | | | | | compressed packages broken in the previous commit. Pointy hat to: obrien
* Improve the Bzip2 handling.obrien2002-04-204-19/+35
| | | | Sponsored by: FreeBSD Mall, Inc.
OpenPOWER on IntegriCloud