summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2015-01-15oops, forgotten back-pointer to state for error messagesMarc Espie
problem noticed by jca@
2015-01-12oops, don't load quirks prematurely. noticed by many, myself includedMarc Espie
2015-01-11replace fw_update (shell script) with a specialized version of pkg_add.Marc Espie
This has numerous advantages, in terms of speed and control. Initial version should be (mostly) identical to the old one. thanks to rpe@ and sthen@ for tests.
2015-01-05a few tweaks to match the old script better (for now)Marc Espie
- progress meter set like the old script - path to firmware printed - update both needed and installed drivers - coda when we don't find anything to install/delete - error out if @ARGV is not a possible driver
2015-01-05When building the package path for the new fw_update, only useStuart Henderson
/firmware/snapshots/ for releases tagged with "-current", otherwise use the version number e.g. /firmware/5.7/ for 5.7-beta / 5.7.
2015-01-04remove extra scaffolding that's actually NOT in the committed copy ofMarc Espie
the old fw_update
2015-01-04same semantics as old programMarc Espie
2015-01-04cleaner logic, fix things so that fw_update -da makes senseMarc Espie
(deletes drivers not corresponding to that box, and updates/installs what's needed)
2015-01-04tweak the ntogo messages slightly so that they work better in all situationsMarc Espie
2015-01-04too many todo. Use unambiguous names, since they're not the same operationMarc Espie
at all
2015-01-03make it able to install quirks from normal path (with normal key) andMarc Espie
other firmware from wanted path (with fw key). Simplify the shennanigans wrt installed repo.
2014-12-29re-add missing space in confirm prompt that got lost in -r1.18Jasper Lievisse Adriaanse
ok espie@
2014-12-27prepare things slightly further, FwUpdate still not active...Marc Espie
2014-12-27make it at least work a wee little bit.Marc Espie
2014-12-27Specialisation of PkgAdd to do fw_update, not yet finishedMarc Espie
okay to import deraadt@
2014-12-24recheck list for non emptyness *after* filtering obsolete packages.Marc Espie
2014-12-23tweak meta-info checking a bit.Marc Espie
- remove IsLink tests, there's no reason to treat them specially. - files are forced to root, no need to allow for bin anymore. - force libraries to be not executable, if there's no explicit @mode annotation
2014-12-22when we run into real errors, the progress meter is distracting, so haveMarc Espie
a method ->disable that does something nice to the display, and stops the progress meter right before we display our first real error.
2014-12-03zap extra parameter that my first read missed, because that one is constant.Marc Espie
Strangeness noticed by aja@
2014-12-02zap extra parenthesis after recent rewriteMarc Espie
from Mark Patruck
2014-11-30much simpler checks, always enforce root/bin (or root/wheel for symlinks)Marc Espie
for files without @owner/@group annotations, independently of who you are. This should fix building-as-root for good, even without twiddling FAKE_AS_ROOT.
2014-11-30interactive/progressmeter clean-upMarc Espie
2014-11-30much cleaner way to handle progress meter wipes: have state methods thatMarc Espie
do print something call sync_display (which does nothing by default), and override THAT one for the progressmeter case to go clear. Should sync by default now.
2014-11-30get rid of some of the unadorned printfsMarc Espie
2014-11-30missed some.Marc Espie
2014-11-30forgot to take that out...Marc Espie
2014-11-30clear progress meter before asking questionsMarc Espie
From Carlin Bingham
2014-11-29simplify the interactive code into its own little object with simplerMarc Espie
interface, so that most is it interactive tests vanish from the main program.
2014-11-27default for interactive should match non-interactive.Marc Espie
Pointed out by krw@
2014-11-25minor clean-up: the stuff not to display is tied to the set, so make theMarc Espie
current_set more explicit in the PkgAdd algorithm... and clean it up when we clean the set. Put the "tieing files" stuff into its own function so that the add code looks a bit less like a spaghetti monster
2014-11-21a long time ago, DISPLAY and UNDISPLAY required special treatment, as theyMarc Espie
were displayed "on the fly". But prepare+log means the display happens later in any case, so they can be done as part of regular plist. Also, mark known manpage dirs for even more verbiage reduction...
2014-11-20big trim-down of MESSAGE/UNMESSAGE: just match checksums between new packagesMarc Espie
and old packages. Rationale being you don't need to display UNMESSAGE if the new package has the exact same one. And likewise, you don't need to display MESSAGE if the old package had the exact same one.
2014-11-20avoid some warning message, normal dirs don't have any log info registeredMarc Espie
2014-11-20theo's right. use random_name for truely random stuff.Marc Espie
rename variable and index accordingly.
2014-11-17CAVEATS was removed (no more INSTALL/DEINSTALL scripts, so it's OK forStuart Henderson
PKG_TMPDIR to be on a fs mounted with noexec); remove a reference to CAVEATS from the section talking about PKG_TMPDIR. ok espie@
2014-10-13scaffolding for future new features, committed early, so that pkg_signMarc Espie
will grok it when it happens
2014-10-11allow signing to proceed when interruptedMarc Espie
2014-09-21final bulk shows chunking to happen in all the right places, and signingMarc Espie
works correctly as well. So activate this. This basically makes package snapshots rsync-friendly with a low-tech approach. Instead of having a patched gzip, we borrow from other archive formats, and cut the archive every few files. Since the files are already sorted in order of date of modification, packages that don't change tend to end with identical gzip archives. Note that this will still work when/if we transition to bzip2/xz packages...
2014-09-20gzip timestamps are not needed there. In fact, they produce gratuitousMarc Espie
differences
2014-09-20need meta stuff that tells me those are "real files" to not create extraMarc Espie
chunks at the beginning of the package... Also, be very verbose about everything.
2014-09-19.py files no longer need to be special, as the timestamps are stored inMarc Espie
the plist itself, so there's no longer any worry of the timestamp not getting updated and python throwing a fit.
2014-09-16fix display of comments to use "say" properly.Marc Espie
Prepare scaffolding to be able to chunk archives
2014-09-16if a @ts annotation is detected, wipe tarball timestamp. Archives willMarc Espie
look as if all files were born in 1970. The useful side-effect is that meta-data for content-identical files WILL be identical as well.
2014-09-16store explicit timestamps in generated plists.Marc Espie
this prevents updates from fucking up mtime of new file, thus the "python exception" no longer prevents python files from being reordered. Note that this requires newish scaffolding in pkg_add proper. That scaffolding was committed prior to 5.6, in preparation for this change.
2014-09-11fix the only .Xr ordering and punctuation issue i could findIngo Schwarze
with the new MANDOCERR_XR_* warnings in the whole tree
2014-09-09register @newuser/@newgroup so that we try creating tarballs with the correctMarc Espie
users (which doesn't really matter all that much, as the owner/group in the plist are what matters) Otherwise, if we're not root, dismiss user id and groups, replace with root/bin (significant fix from previous version: this interprets $( correctly). Should help with FAKE_AS_ROOT=No
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2014-09-01@newuser and @newgroup won't necessarily be on the machine during pkg_create,Marc Espie
so fake uid/gid 0 if they're not. (removes some warning message)
2014-09-01be a wee bit more paranoid about file sizes.Marc Espie
2014-08-27Rename Persistant to Persistent.Kent R. Spillner
sure espie@