summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/add
Commit message (Collapse)AuthorAgeFilesLines
* Add the packages directory that will be used for the upcomingJosh Paetzel2013-03-111-0/+1
| | | | | | | | | 8.4 release Approved by: re (implicit) Notes: svn path=/stable/8/; revision=248147
* MFC r241976: Add the release package directory for 9.1-RELEASE.Ken Smith2012-10-241-0/+1
| | | | Notes: svn path=/stable/8/; revision=241977
* MFC r240682Baptiste Daroussin2012-10-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | if a file in plist starts with / then do not prefix it with "prefix" [1] pkg info -g returns 1 if a file mismatch [2] flush stdout in pkg info -g [3] clean up quiet mode (-q | --quiet) output of pkg_version(1) [4] fix missing error call in uname check added to pkg_version(1) [5] fix pkg_add(1) fails to install with -C from bad path [6] only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7] PR: bin/13128 [1] bin/139015 [2] bin/113702 [3] bin/142570 [4] bin/146857 [5] bin/157543 [6] Submitted by: cy [1] Anton Yuzhaninov <citrin@citrin.ru> [2] Ighighi <ighighi@gmail.com> [3] "N.J. Mann" <njm@njm.me.uk> [4] gcooper [5] David Naylor <naylor.b.david@gmail.com> [6] netchild [7] Notes: svn path=/stable/8/; revision=241136
* MFC: r236213, r236333, r236336, r240476Baptiste Daroussin2012-09-186-13/+35
| | | | | | | | | | | - Let pkg_add use the ENV variable PACKAGESUFFIX - Make sure that each va_start has one and only one matching va_end - Do not change owner, group, or mode when package database directory and its contents are created with pkg_add(1). It may happen when the packing list contains @owner, @group, or @mode. Notes: svn path=/stable/8/; revision=240674
* MFC: r201226, r202844, r206043, r206132, r206133, r212029, r225610, r226708,Baptiste Daroussin2012-05-213-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r228670 - Add support for UPDATING remote fetching. - Reorganize EXAMPLES section in pkg_updating(1). - Style fixes. - Replace hardcoded INDEX version. [1] - Fix a buffer overlap. [2] - Remove empty package when fetching fails and -K is used. [3] - Remove useless chmod2() after mkdtemp(3). [4] - Replace mkdir(1) call with mkdir(2). [5] - Get rid of some vsystem() calls. - Switch from lstat(2) to open(2) in fexists(). - Try rename(2) in move_file() first. - Fix pkg_delete, check if the file we're trying to delete is a symlink before complaining that it doesn't exist. Typical case would be a leftover library symlink that's left over after the actual library has been removed. - Print the package name on deletion errors. - Staticify elide_root() - In usr.sbin/pkg_install/updating/main.c, use the size of the destination buffer as size argument to strlcpy(), not the length of the source PR: bin/145101 [1], bin/139492 [2], bin/144919 [3] bin/144920 [4], bin/144921 [5] Submitted by: gcooper [1,2,3,4,5] Approved by: des (mentor) Notes: svn path=/stable/8/; revision=235721
* Merge r229304,r229748,r229751,r232436Ken Smith2012-03-031-1/+4
| | | | | | | | | | Catch up to head and stable/9 for what combination of __FreeBSD_version values map to package directories. Approved by: re (implicit) Notes: svn path=/stable/8/; revision=232437
* Add the packages directories that will be used for the upcomingKen Smith2010-12-221-0/+2
| | | | | | | | | 8.2/7.4 releases. Approved by: re (implicit) Notes: svn path=/stable/8/; revision=216655
* MFC r213718:Martin Matuska2010-11-231-3/+3
| | | | | | | | | | | | - Add support for xz compression to pkg_create, bzip2 remains the default compression algorithm. - Bump PKG_INSTALL_VERSION to 20101012. Submitted by: mm Approved by: portmgr (flz) Notes: svn path=/stable/8/; revision=215738
* Add packages-8.1-release directory. While here add packages-7.3-release.Ken Smith2010-05-261-0/+2
| | | | | | | Approved by: re (implicit) Notes: svn path=/stable/8/; revision=208571
* Synchronize pkg_install with HEAD.Florent Thoumie2010-01-221-1/+1
| | | | Notes: svn path=/stable/8/; revision=202840
* Prepare for 8.0 package set, adjust for 8-stable, acknowledge 9-currentKen Smith2009-08-121-1/+3
| | | | | | | | | is coming. Approved by: re (implicit) Notes: svn path=/stable/8/; revision=196115
* Disable r194497 for now. It doesn't work well with ports-mgmt/tinderbox.Brian Somers2009-07-051-0/+2
| | | | | | | Approved by: re (ken) Notes: svn path=/head/; revision=195346
* When running pkg_add -r, check & install our dependencies for eachBrian Somers2009-06-191-13/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package rather than expecting our top level package to get all of the dependencies correct. Previously, the code depended on the top level package having all of the pkgdep lines in +CONTENTS correct and in the right order, but that doesn't always happen due to code such as this (in security/gnutls/Makefile): .if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 .... With such conditional dependencies, my 'sophox-packages' package won't install. The dependency tree looks like this: sophox-packages ... x11/gnome2 x11/gnome-applets net/libgweather devel/libsoup security/gnutls security/libgcrypt security/libgpg-error ... x11/gnome2 archivers/file-roller archivers/gtar archivers/lzop archivers/lzo2 ... gnutls doesn't depend on lzo2 initially, but lzo2 is dragged into the mix via other dependencies and is built by the initial 'make'. The subsequent package generation for gnutls adds a pkgdep line for lzo2 to gnutls' +CONTENTS but the pkgdeps in sophox-packages' +CONTENTS has gnutls *before* lzo2. As a result, sophox-packages cannot install; gnutls fails because lzo2 is missing, 82 more packages fail because gnutls is missing and the whole thing spirals into a super-confusing mess! MFC after: 3 weeks Notes: svn path=/head/; revision=194497
* Add release package directories for 6.4 and 7.2.Ken Smith2009-04-151-0/+2
| | | | Notes: svn path=/head/; revision=191110
* Use full name (noticed by: ru@Chin-San Huang2009-01-111-1/+1
| | | | Notes: svn path=/head/; revision=187056
* - s/no-scripts/no-script/Chin-San Huang2009-01-041-2/+2
| | | | | | | | | PR: docs/127732 Submitted by: TerryP <BigBoss1964@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=186732
* Add package directory for 7.1-RELEASE in head as well as stable/7.Florent Thoumie2008-12-251-0/+1
| | | | Notes: svn path=/head/; revision=186494
* Display usage when pkg_add is called with no arguments.Brooks Davis2008-10-171-1/+1
| | | | | | | | | | PR: bin/121093 Submitted by: volker Approved by: portmgr (linimon) MFC after: 3 days Notes: svn path=/head/; revision=183979
* Remove support for RELENG_4 (__FreeBSD_version < 500039).Florent Thoumie2008-06-162-10/+1
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=179835
* - add: Keep dependent packages too if -K is specified.Florent Thoumie2008-06-121-1/+1
| | | | | | | | | | | | - updating: terminating '\n' is not part of the package origin. - bump PKG_INSTALL_VERSION to 20080612. PR: bin/119368 [1], bin/124459 [2] Submitted by: gcooper [1], Beat Gatzi <beat@chruetertee.ch> [2] MFC after: 3 days Notes: svn path=/head/; revision=179760
* - Add long options to pkg_install.Florent Thoumie2008-05-302-19/+38
| | | | | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530. Notes: svn path=/head/; revision=179433
* - Restore functionality broken in previous commit; we need to be able to reportPav Lucistnik2008-05-031-15/+19
| | | | | | | | | | multiple installed packages with the same PKGORIGIN. Reported by: marcus MFC after: 1 month Notes: svn path=/head/; revision=178753
* Optimize package registration/deregistration. Previously, when looking up thePav Lucistnik2008-04-111-24/+62
| | | | | | | | | | | | | | package name for the origin of a dependency, all entries in /var/db/pkg were traversed for each dependency of added/removed package. Now, gather all the origins first, then do the lookup in a single pass over /var/db/pkg. This should provide a major speedup for packages with hundreds of dependencies. Submitted by: rdivacky (earlier version) MFC after: 1 month Notes: svn path=/head/; revision=178103
* Improve style a little and remove one always-true condition.Roman Divacky2008-03-301-3/+3
| | | | | | | | Approved by: portmgr (pav) Approved by: kib (mentor) Notes: svn path=/head/; revision=177741
* Sync list of directories to look for packages in to current releasesKen Smith2008-02-261-1/+3
| | | | | | | | | available. MFC after: 3 days Notes: svn path=/head/; revision=176593
* Introduce -i to SYNOPSIS, forgotten by krion@.Ruslan Ermilov2008-02-081-1/+1
| | | | Notes: svn path=/head/; revision=176108
* Revise the TECHNICAL DETAILS section.Ruslan Ermilov2008-01-091-68/+87
| | | | | | | Reviewed by: skv Notes: svn path=/head/; revision=175177
* Backout previous commit, since it's done without maintainersKirill Ponomarev2007-12-091-1/+0
| | | | | | | | | | approval. These changes were approved by adding it as port to ports/ tree, but not for src/. I talked to PR submitter and miwi@ some days ago and explained the reasons for it, the both were agree to add it to ports/ only. Notes: svn path=/head/; revision=174475
* Add the 'pkg_search' script.David E. O'Brien2007-12-091-0/+1
| | | | | | | | | This makes it easier to figure what packages you want to install. Submitted by: Matthias Schmidt <schmidtm @ mathematik . uni-marburg . de> Notes: svn path=/head/; revision=174472
* Add -i option for package installation without fetching andKirill Ponomarev2007-11-104-4/+16
| | | | | | | | | | | installing its dependencies. PR: bin/117065 Submitted by: Vladimir Ermakov <samflanker@gmail.com> MFC after: 14 days Notes: svn path=/head/; revision=173513
* Cleanup of userland __P useKevin Lo2007-11-071-1/+1
| | | | Notes: svn path=/head/; revision=173412
* To honor the birth of RELENG_7 bump HEAD to 8.0-CURRENT.Ken Smith2007-10-111-1/+2
| | | | | | | Approved by: re (implicit) Notes: svn path=/head/; revision=172531
* Fix pkg_add behaviour to preserve pathnames.Kirill Ponomarev2007-08-231-1/+1
| | | | | | | | | | PR: bin/93915 bin/109134 Submitted by: Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru> Approved by: re@ (kensmith) MFC after: 7 days Notes: svn path=/head/; revision=171934
* Fix previous rev.: don't step behind the end of memory we allocatePav Lucistnik2007-02-011-1/+1
| | | | Notes: svn path=/head/; revision=166402
* Remove hard-coded limit (200) on maximum number of packages that can beAde Lovett2007-01-311-21/+13
| | | | | | | | | | | | added with a single invocation of pkg_add, replacing it with something rather more dynamic. Approved by: portmgr (pav) Tested by: full pointyhat package run MFC after: 1 week Notes: svn path=/head/; revision=166374
* Sync usage() with manpage's SYNOPSIS.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162802
* Oops. Catch up on the last couple of releases and prepare for the nextKen Smith2006-09-261-0/+3
| | | | | | | one. Notes: svn path=/head/; revision=162663
* Allow variable amounts of verbosity.David E. O'Brien2006-06-121-1/+1
| | | | Notes: svn path=/head/; revision=159554
* Add -F option to not fail on already installed packages.Poul-Henning Kamp2006-03-094-5/+13
| | | | | | | Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> Notes: svn path=/head/; revision=156497
* Fix typo.Kirill Ponomarev2006-01-291-1/+1
| | | | Notes: svn path=/head/; revision=155011
* Add -K option to pkg_add and pkg_info.Florent Thoumie2006-01-094-9/+27
| | | | | | | | | | | | This option saves packages to PKGDIR (if defined or current directory by default) as they are downloaded. Silent a warning when -n is used and package has a +DISPLAY file. Approved by: krion MFC after: 1 week Notes: svn path=/head/; revision=154145
* When using @cwd %%FOO%%, we must ensure to return in the originalKirill Ponomarev2006-01-071-2/+11
| | | | | | | | | | | | | | | | | | prefix later, but doing so with @cwd %%OLDPREFIX%% (having PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing list. That's not really a problem when dealing with ports but that's a problem with packages since pkg_add -p option only overrides the first @cwd occurrence. This patch allow us to use @cwd without any argument. If no directory argument is given, it will set current working directory to the first prefix given by the @cwd command. PR: bin/77212 Submitted by: flz Notes: svn path=/head/; revision=154102
* -mdoc sweep.Ruslan Ermilov2005-11-181-4/+6
| | | | Notes: svn path=/head/; revision=152569
* Add -P flag, it does the same as the -p option, except that theKirill Ponomarev2005-11-124-11/+52
| | | | | | | | | | | | | | given prefix is also used recursively for the dependency packages, if any. If the -P flag appears after any -p flag on the command line, it overrides it's effect, causing pkg_add to use the given prefix recursively. PR: bin/75742 Submitted by: Frerich Raabe <raabe AT kde DOT org> MFC after: 3 days Notes: svn path=/head/; revision=152329
* Look for packages in packages-6.0-release or packages-6-stable, asMurray Stokely2005-10-271-1/+2
| | | | | | | | | | appropriate. Approved by: re (scottl@) Reviewed by: portmgr (kris@) Notes: svn path=/head/; revision=151754
* Fix an oops on FBSD-version for packages-5-stable I made in previousKen Smith2005-07-111-1/+1
| | | | | | | | | | commit. Pointy hat: kensmith Approved by: re (implicit) Notes: svn path=/head/; revision=147939
* Prepare for packages-7-current. While here retro-fit packages-5.4-releaseKen Smith2005-07-111-1/+3
| | | | | | | | | which probably should have been done a while ago. Approved by: re (implicit) Notes: svn path=/head/; revision=147932
* Implement @noinst field which has at the moment the same meaning andKirill Ponomarev2005-06-141-1/+2
| | | | | | | | | | | function as @comment has. But will be valid only for files and not for md5 sums, rcsid's and comments in the future. Submitted by: flz Approved by: re@ (scottl) Notes: svn path=/head/; revision=147381
* Change the PATH for pkg_add to be the same used for pointyhat package builds.Joe Marcus Clarke2005-03-191-1/+1
| | | | | | | | | | This will give our users and porters a more consistent experience between installing ports and installing packages. Discussed with: portmgr Notes: svn path=/head/; revision=143849
* Expand *n't contractions.Ruslan Ermilov2005-02-131-2/+2
| | | | Notes: svn path=/head/; revision=141846