summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typo in DPADD.antoine2013-03-101-1/+1
|
* Fix bootstrapping pkgng by not appending "/latest/" to PACKAGESITE.bapt2013-03-081-1/+1
| | | | Reporter by : Alexander Yerenkow (via irc)
* choose in priority the allocated ABI if any to do the ${ABI} substitution in ↵bapt2013-03-051-1/+1
| | | | | | PACKAGESITE Reviewed by: bdrewery
* Add the ability to correctly read pkg.conf is exists.bapt2013-03-054-171/+501
| | | | | | | | | | | | | | | Only look for boostrap useful options: - PACKAGESITE - ABI - MIRROR_TYPE - ASSUME_ALWAYS_YES While here makes PACKAGESITE expand the ${ABI} variable. Allow to deactivate any SRV record look up (MIRROR_TYPE=none) Use the same mechanism as for pkgng itself: first get configuration out of environment variable and fallback on pkg.conf if exists. Reviewed by: bdrewery
* Do not use deprecated functions from libarchivebapt2013-02-201-2/+2
|
* In case of failure of the pkg boostrap advice the user to either change thebapt2013-02-141-0/+2
| | | | | | | PACKAGESITE they use or install from ports directly indicating where the port is localted in the port collection Submitted by: kientzle
* Directly uses calloc(3) instread of malloc(3) + memset(3)bapt2013-01-141-2/+1
| | | | | Reported by: Jeremy Chadwick <jdc@koitsu.org> MFC after: 3 days
* Remove extraneous space and new-line.matthew2012-12-231-2/+2
| | | | | | Submitted by: pjd, gcooper Approved by: bapt MFC after: 2 weeks
* Third time's the charm. pkg -N output needs to go to stderr.matthew2012-12-231-4/+2
| | | | | Approved by: bapt MFC after: 2 weeks
* Switch from 'pkg -n' to 'pkg -N' as the test for pkgn activationmatthew2012-12-221-2/+2
| | | | | | | | | status. '-n' is already used extensively elsewhere in pkgng (to mean 'dry-run') and this reduces the potential confusion Submitted by: eadler Approved by: bapt MFC after: 2 weeks
* In preparation for making 'pkg -n' the one true method of determiningmatthew2012-12-211-0/+10
| | | | | | | | | whether a system has been configured to use pkgng, cause /usr/sbin/pkg recognise a -n option and exit with a failure code when the pkg port is not installed. Approved by: bapt MFC after: 2 weeks
* if PACKAGESITE url scheme is not 'file://', always try to revolv SRV records andbapt2012-12-054-9/+222
| | | | | | | use them if any. It allows the bootstrap to use directly pkg.FreeBSD.org instead of pkgbeta.FreeBSD.org MFC after: 1 month
* More -Wmissing-variable-declarations fixes.ed2012-10-191-8/+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'.
* Fix confirmation logic when detecting a ttybapt2012-08-241-3/+3
| | | | Reported by: mjg
* - change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)bapt2012-08-241-3/+5
| | | | | | | - if not on a tty prompt about the missing pkg(8) but default on 'no' except if ASSUME_ALWAYS_YES is set MFC after: 2 days
* Make pkg bootstrap program ask for confirmation before proceeding.kan2012-07-151-1/+35
| | | | | | | | The previous behaviour was to silently download and install the pkg package, without ever telling user about what it was doing and why. Discussed with: bapt Reviewed by: kib
* Add missing \n when generating pkg.confbapt2012-05-211-1/+1
| | | | | | Reported by: beat Approved by: des (mentor) MFC after: 1 day
* - close the open file after fetchingbapt2012-05-011-3/+27
| | | | | | - create a default /usr/local/etc/pkg.conf Approved by: des (mentor)
* - Use _PATH_TMP instead of hardcoded /tmpbapt2012-04-162-95/+100
| | | | | | | | | | - more style(9) fixes - some refactoring - better error detection - Add the DPADD to Makefile Submitted by: Garrett Cooper <yanegomi@gmail.com> Approved by: des (mentor)
* - Fix style(9) bugs + inconsistenciesbapt2012-04-151-32/+29
| | | | | Submitted by: marius Approved by: des (mentor)
* Do not do double initialisationbapt2012-04-151-2/+2
| | | | | | | style(9) says for (;;) not while (1) Reported by: culot Approved by: des
* add usr.sbin/pkg which is a bootstrap tool for pkgng.bapt2012-04-153-0/+471
it respects PACKAGESITE, PACKAGEROOT, and a new environment variable ABI (if a user want to use a different API from the base one for its packages) it has no man page on purpose to avoid hidding the pkg(8) man page from the pkgng package. for now uses pkgbeta.FreeBSD.org as default mirror to find its package it respects MK_PKGTOOLS Approved by: des (mentor)
OpenPOWER on IntegriCloud