aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-3153-11483/+0
| | | | Notes: svn path=/head/; revision=257444
* Add entry for packages-9.2-release directory.Glen Barber2013-08-191-0/+1
| | | | | | | Approved by: re (implicit) Notes: svn path=/head/; revision=254525
* sysconf(3) returns a long, not an int.David E. O'Brien2013-06-293-3/+5
| | | | Notes: svn path=/head/; revision=252363
* sysconf(3) returns a long, not an int.David E. O'Brien2013-06-281-1/+2
| | | | Notes: svn path=/head/; revision=252348
* Update location to ports INDEX file.Bryan Drewery2013-05-181-6/+6
| | | | | | | | PR: bin/164561 Approved by: bapt Notes: svn path=/head/; revision=250786
* Fix compilation errors.Jason Evans2013-01-231-2/+2
| | | | Notes: svn path=/head/; revision=245837
* Use snprintf instead of strc* functions and add bounds checking when creatingBaptiste Daroussin2013-01-222-4/+9
| | | | | | | | | pkgngpath Submitted by: sbz, gahr Notes: svn path=/head/; revision=245828
* Provide an option to users to shoot themselves in the foot.Eitan Adler2012-11-268-7/+45
| | | | | | | | | Reviewed by: bapt Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=243554
* Use modern license instead of being consistent with the other pkg_ toolsEitan Adler2012-11-263-11/+25
| | | | | | | | | | | | | | | Use a more informative message Fix some style(9) nits. Bump version number In pkg_add only warn users after the chroot is performed. Submitted by: gavin, jilles Reviewed by: beat, bapt Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=243553
* Add the release package directory for 9.1-RELEASE.Ken Smith2012-10-241-0/+1
| | | | Notes: svn path=/head/; revision=241975
* Warn users when using pkg tools if it looks like theyEitan Adler2012-10-229-1/+46
| | | | | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241830
* More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-191-3/+3
| | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. Notes: svn path=/head/; revision=241737
* Make sure that each va_start has one and only one matching va_end,Kevin Lo2012-09-281-0/+1
| | | | | | | especially in error cases. Notes: svn path=/head/; revision=241021
* if a file in plist starts with / then do not prefix it with "prefix" [1]Baptiste Daroussin2012-09-188-30/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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] MFC after: 2 weeks Notes: svn path=/head/; revision=240682
* Do not change owner, group, or mode when package database directory andJung-uk Kim2012-09-145-6/+7
| | | | | | | | | | | its contents are created with pkg_add(1). It may happen when the packing list contains @owner, @group, or @mode. Reported by: Donald Bostrom (dbostrom at niksun dot com) Reviewed by: portmgr (bapt) Notes: svn path=/head/; revision=240476
* Bump PKG_INSTALL_VERSION which should've been done in r236233Josh Paetzel2012-05-301-1/+1
| | | | | | | | MFC after: 3 days Pointed out by: bapt Notes: svn path=/head/; revision=236336
* Let pkg_add use the ENV variable PACKAGESUFFIX. ThisJosh Paetzel2012-05-305-11/+38
| | | | | | | | | | | | | can be used to override the default .tbz package extension to .txz .tgz or .tar Submitted by: kmoore Obtained from: PC-BSD Sponsored by: iXsystems MFC after: 3 days Notes: svn path=/head/; revision=236333
* Make sure that each va_start has one and only one matching va_end,Kevin Lo2012-05-292-0/+3
| | | | | | | especially in error cases. Notes: svn path=/head/; revision=236213
* - Print package name in case an empty pkgdep line is found.Beat Gaetzi2012-05-111-1/+2
| | | | | | | | | | PR: bin/164378 Submitted by: Yuri <yuri AT tsoft.com> and many others Approved by: flz MFC after: 2 weeks Notes: svn path=/head/; revision=235276
* General mdoc(7) and typo fixes.Glen Barber2012-05-101-1/+1
| | | | | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235211
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-3/+3
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Add entry for packages-8.3-release directory.Ken Smith2012-03-031-0/+1
| | | | Notes: svn path=/head/; revision=232435
* Fix r231300: Use correct test so we only bail out on error instead of on ↵Eitan Adler2012-02-101-1/+1
| | | | | | | | | | | | | non-error. Also, fix a style bug. Submitted by: ache Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=231328
* Permit the use of relative paths for the prefix argument.Eitan Adler2012-02-091-3/+9
| | | | | | | | | | | | Remove an unnecessary cwd from created plists when -p is specified PR: bin/145000 Submitted by: gcooper Approved by: portmgr (flo) MFC after: 1 month Notes: svn path=/head/; revision=231300
* X11BASE has been deprecated for a long time and will die soonEitan Adler2012-01-091-1/+1
| | | | | | | | | Approved by: x11 (eadler) Approved by: brucec MFC after: 1 week Notes: svn path=/head/; revision=229831
* Touch up some more small typos missed in the previous round.Ulrich Spörlein2012-01-051-1/+1
| | | | | | | Reported by: Ben Kaduk <minimarmot@gmail.com> et al. Notes: svn path=/head/; revision=229655
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-3034-37/+39
| | | | Notes: svn path=/head/; revision=228990
* Reencode files to UTF-8. Drop CP1252 em-dash.Ulrich Spörlein2011-12-303-3/+3
| | | | Notes: svn path=/head/; revision=228976
* In usr.sbin/pkg_install/updating/main.c, use the size of the destinationDimitry Andric2011-12-171-2/+2
| | | | | | | | | buffer as size argument to strlcpy(), not the length of the source. MFC after: 1 week Notes: svn path=/head/; revision=228670
* - add a missing "be" and "in"Eitan Adler2011-11-111-1/+1
| | | | | | | | | | | | | | - fix other errors introduced when committing r226436 - add 'function' to a sentence where it makes sense Submitted by: delphij Submitted by: dougb Submitted by: jhb Approved by: dougb Approved by: jhb Notes: svn path=/head/; revision=227458
* Staticify elide_root() for now to fix build.Xin LI2011-10-241-1/+1
| | | | Notes: svn path=/head/; revision=226708
* Avoid printing // for packages that install to /Ed Maste2011-10-241-3/+11
| | | | | | | | | I have some packages that install to / (for whatever reason). Right now we print entries of the form //path/to/file when listing files (pkg_info -L, pkg_info -g etc.) This change avoids printing the redundant / . Notes: svn path=/head/; revision=226697
* - change "is is" to "is" or "it is"Eitan Adler2011-10-161-1/+1
| | | | | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days Notes: svn path=/head/; revision=226436
* Shift head from 9.0-CURRENT to 10.0-CURRENT in preparation for releasingKen Smith2011-09-261-1/+3
| | | | | | | | | it from the 9.0-RELEASE release cycle code freeze. Approved by: re (implicit) Notes: svn path=/head/; revision=225757
* Print the package name on deletion errors.Sergey Kandaurov2011-09-161-2/+2
| | | | | | | | | | | | | It appears this was already done in NetBSD a decade ago, hence I just reuse the change (except our code is bad styled). PR: bin/160516 Approved by: portmgr Approved by: re (kib) Obtained from: NetBSD Notes: svn path=/head/; revision=225610
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-1738-68/+3315
| | | | | | | Discussed with: erwin, brooks, bapt Notes: svn path=/head/; revision=222035
* Remove $Log$ keyword and associated history, which can cause annoyance inEd Maste2011-03-311-25/+0
| | | | | | | | diffs in some cases. Revision control tools have a history command to obtain this information. Notes: svn path=/head/; revision=220200
* Add package directories used for the upcoming 8.2 and 7.4 releases,Ken Smith2010-12-221-0/+4
| | | | | | | and catch up on a few from previous releases. Notes: svn path=/head/; revision=216665
* - Add support for xz compression to pkg_create, bzip2 remains the defaultFlorent Thoumie2010-10-126-8/+36
| | | | | | | | | | | compression algorithm. - Bump PKG_INSTALL_VERSION to 20101012. Submitted by: mm MFC after: 1 month Notes: svn path=/head/; revision=213718
* Use MACHINE_ARCH instead of MACHINE as the directory to fetch packagesNathan Whitehorn2010-08-301-4/+8
| | | | | | | from. Packages are architecture dependent, not machine dependent. Notes: svn path=/head/; revision=212029
* mdoc: use mdoc spelling of UmlautsUlrich Spörlein2010-05-271-1/+1
| | | | Notes: svn path=/head/; revision=208598
* mdoc: move remaining sections into consistent orderUlrich Spörlein2010-05-131-14/+14
| | | | | | | | | | This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run Reviewed by: ru Notes: svn path=/head/; revision=208028
* - Take libinstall.a out of pkg_install and make it a proper shared library.Florent Thoumie2010-04-2338-3315/+68
| | | | | | | | | | | | | | - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now. Notes: svn path=/head/; revision=207113
* Bump PKG_INSTALL_VERSION to 20100403.Florent Thoumie2010-04-031-1/+1
| | | | Notes: svn path=/head/; revision=206133
* Fix pkg_delete, check if the file we're trying to delete is aFlorent Thoumie2010-04-031-1/+1
| | | | | | | | | | | 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. Reported by: tabthorpe Notes: svn path=/head/; revision=206132
* Various fixes.Florent Thoumie2010-04-019-52/+86
| | | | | | | | | | | | | | | | | | | - 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. - Bump PKG_INSTALL_VERSION to 20100401. PR: bin/145101 [1], bin/139492 [2], bin/144919 [3] bin/144920 [4], bin/144921 [5] Submitted by: gcooper [1,2,3,4,5] Notes: svn path=/head/; revision=206043
* Fix several typos in macros or macro misusage.Ulrich Spörlein2010-03-121-9/+0
| | | | | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor) Notes: svn path=/head/; revision=205076
* - Add support for UPDATING remote fetching.Florent Thoumie2010-01-223-35/+53
| | | | | | | | | | | | - Reorganize EXAMPLES section in pkg_updating(1). - Style fixes. - Bump PKG_INSTALL_VERSION to 20100122. Submitted by: beat MFC after: 1 week Notes: svn path=/head/; revision=202844
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-024-4/+0
| | | | Notes: svn path=/head/; revision=201390
* Add missing `void' keywords.Ed Schouten2009-12-295-5/+5
| | | | Notes: svn path=/head/; revision=201226