4454 Commits

Author SHA1 Message Date
rpe
fa8d7a6eb0 fix typo
OK espie
2016-05-15 20:31:05 +00:00
espie
b14035b2b1 kill unused code (different users for each build) 2016-05-15 20:08:30 +00:00
espie
6154b12d66 variables for simpler dpb builds 2016-05-15 14:14:45 +00:00
espie
56d223a5ab cosmetic shit for aja instead of writing useful code.
okay aja@
2016-05-15 14:02:01 +00:00
espie
b7438ad0d0 have check_mount be removable as well (bad idea) and add
actions=none
to reset to nothing
2016-05-15 13:25:25 +00:00
espie
ca06a5e0c1 add a full-fledged example 2016-05-15 13:09:58 +00:00
espie
bfad938c68 document tweaks 2016-05-15 11:09:47 +00:00
espie
6db7739891 tweak interface, add extra to copy extra files,
mkconf_tail to add a tail to generated mk.conf.
zap copying doas.conf, which is not really that useful especially
since chroot is nosuid often.
2016-05-15 11:06:57 +00:00
espie
e0fc66e45a get rid of the last chdir 2016-05-15 10:24:38 +00:00
espie
cda8f8d456 remove more chdirs from the main process 2016-05-15 10:00:16 +00:00
espie
38a933b11a zap yet another chdir 2016-05-14 22:49:23 +00:00
espie
7904d3cb9f give an actual example with several values in a row 2016-05-14 22:46:53 +00:00
espie
45ed265b16 nfs shits on its pants again.
not even having readdir and open work synchronously on one single machine,
that shit is so lame.

noticed by aja@, ahaha.
2016-05-14 20:26:42 +00:00
espie
d4f4359484 just check for xn capability presence, don't try to Tputs it,
that doesn't work.
should fix some display glitches under tmux
2016-05-14 18:14:27 +00:00
espie
b280a55f4f smarter copy of sys includes, no chdir
don't copy obj/ or CVS/
2016-05-14 15:19:48 +00:00
espie
487a90448c start removing uses of chdir() in main process 2016-05-14 15:00:07 +00:00
espie
549ccc20b7 kill unneeded special case from copy_sys 2016-05-14 13:55:42 +00:00
krw
e29858b07d No .Pp before .Sh.
ok espie@
2016-05-14 11:29:09 +00:00
espie
e60df16782 copy doas.conf if it exists (convenience request from landry)
use devno to filter out mount points (more sturdy when symlinks happen)

FIX the regexp used for mount points which did kill unpopulate too much
2016-05-14 11:16:29 +00:00
espie
79bdd956dd not yet 2016-05-14 10:05:55 +00:00
espie
afa0dc0dd5 if one of your dirs is a symlink that doesn't point anywhere, then
stat will fail, which is okay for LOGDIR which only exists locally.
2016-05-14 09:19:09 +00:00
espie
4f9e4555ae accidentally broke preserved mountpoints, fix that 2016-05-14 09:04:40 +00:00
espie
fb8f1bf77c always do mkpath, THEN check for nfs mounts, so that non-existing
dirs (at first) get classified correctly.

thx aja@ for testing on a virgin dir
2016-05-13 22:40:28 +00:00
espie
8e5738a05a document new stuff 2016-05-13 17:26:08 +00:00
espie
06e0c3279c tweak user message, requested by dcoppa@ 2016-05-13 14:30:06 +00:00
espie
36978edd58 check for absolute symlinks in the chroot.
report anything that we don't know about (from the base system)
2016-05-13 14:17:24 +00:00
espie
a892c3669a things that live strictly in the chroot can mostly be run there.
this solves the issue of resolving symlinks within the chroot
and matching them against nfs dirs, at the expense of a few more processes
2016-05-13 13:37:22 +00:00
espie
77cb45ee8f rely on Term::ReadKey here as well 2016-05-13 08:32:17 +00:00
espie
29bd19a65a try to copy mtimes and use that to check 2016-05-13 02:38:03 +00:00
ajacoutot
60c9d675db Reserver the _consul user/group for an upcoming sysutils/consul port. 2016-05-12 15:34:31 +00:00
espie
1752ecd04d surprised this one didn't break more things
thanks ken/stuart
2016-05-12 13:14:13 +00:00
naddy
5d92375dbb remove hppa64 architecture 2016-05-11 22:00:26 +00:00
ajacoutot
80370ea485 Reserve the _vault user/group for the upcoming security/vault port. 2016-05-11 17:28:48 +00:00
espie
685cbeaac4 add the actual option "chown_all" 2016-05-11 12:51:07 +00:00
espie
602498e17e add some smarts to the ports directory checker: whine if WRKOBJDIR or
LOCKDIR are under nfs (often not a good idea), don't chown recursively
by default, and don't even when under nfs
2016-05-11 12:50:02 +00:00
espie
b159ab1537 prevent unpopulate from wiping out ports subdirectories 2016-05-10 16:13:31 +00:00
espie
1efb6822ba document recent feature changes. Remove BUG section, this is becoming
usable
2016-05-10 15:53:02 +00:00
espie
d7b051cbb9 give directory contents to the appropriate users 2016-05-10 15:48:18 +00:00
espie
d3510fd96d If -B parameter is a symlink, resolve it before looking at mountpoints 2016-05-10 15:31:17 +00:00
espie
8b0d7dc017 add support for a signing key 2016-05-10 15:29:53 +00:00
espie
6a3d529e29 be slightly more intelligent with snapshots.
if we download them and install them okay, rm the temp copy.
if they're already downloaded in a dir under the chroot, don't rm
them during unpopulate stages.
2016-05-10 10:44:07 +00:00
espie
0ff9f9f4b2 document tweak 2016-05-10 09:16:31 +00:00
espie
8b585d2b1d tweak unpopulate to ignore known files and dirs.
add an "unpopulate_light" action that runs *after* copy_sync, so that
it only removes stuff it doesn't know about.
2016-05-10 09:13:47 +00:00
espie
5075bf588c also copy /etc/hosts along with resolv.conf
that way we get localhost without network and other local machines
2016-05-10 08:52:52 +00:00
espie
536b18350d make things work better when chrooted, delay some expansions, and acknowledge
that startup is going to run within the chroot.
2016-05-08 12:52:58 +00:00
espie
36a5b5798b reuse the User code in dpb instead of copying it. 2016-05-08 11:51:40 +00:00
espie
af4f89c46f tweak the heuristics to run the engine:
- don't do anything "smart" when the queue is empty. This mostly triggers
at start, and actually hinders dpb from processing more LISTING efficiently
- lower the threshold for "next" engine computation.  Engine cpu usage still
stays within a few percent, but we avoid slumps in the middle, where the
"first" rescan puts the engine out for a while (I should probably look at
a non-linear function).
2016-05-08 09:34:25 +00:00
espie
b5357fd0d9 these days, I've got starved code at end of builds, while there's
still kde3/kde4 contention. So reuse the affinity tactic to find a
Core with the right tainting if it exists.
2016-05-08 09:31:38 +00:00
ajacoutot
063e314dd8 Reserve the _serf user/group for an upcoming sysutils/serf port. 2016-05-06 11:58:09 +00:00
espie
938305b4db document stuff I added, nicer formatting. 2016-05-03 09:20:30 +00:00