src != dest
instead of:
dest != src
I think that's less confusing and more consistent.
In do_postfix(), if ${SRC_DIR}/gnu/dist/postfix/conf doesn't exist and
${DEST_DIR}/usr/share/examples/postfix does, use the latter for the
${DEST_DIR}/etc/postfix checks. This means that postinstall can be
run in a temporary directory which has etc.tgz extracted into it
with -s `pwd`, (versus against a source tree), and the postfix upgrade
works correctly.
Remove some unnecessary goop.
called after quota so we don't end up with fsck and raidframe parity rebuild
taking forever after a crash/reboot.
While we are here check for raid[0-9].conf & raid[1-9][0-9].conf not
raid[0-9].conf & raid[0-9][0-9].conf
highlight this in the error message (as "[NOT FIXED]").
idea from discussion with itojun
- Do NOT run "cd /dev ; sh ./MAKEDEV all" with "fix makedev".
Just check/fix that /dev/MAKEDEV is up to date.
I don't think that the former behaviour was appropriate, especially as
part of a common "fix all" scenario.
from the default shipped one, and the rest of the test in do_wscons()
is to detect obsolete wscons.conf(5) directives on systems with a
wscons.conf from an older release / source tree.
- if SRC_DIR or DEST_DIR == /, set to "" so that various pathnames
don't end up with a leading "//". when specifically printing just
the xxx_DIR variable, use ${xxx_DIR:-/} to DTRT
- cosmetic coding tweaks
use appropriately (rather than replicating effort)
- add check_ids(), to check if the lists ids exist in the first field
of a : separated file.
- implement do_gid() and do_uid() using check_ids()
- check for ${DEST_DIR}/var/chroot/ssh instead of /var/chroot/ssh
- rename rcconf_isset() to rcconf_is_set()
- rename cmpdir() to compare_dir()
- be consistent about referring to variables with ${...}
"/etc/ssh/ssh_config" (from "/etc/ssh/ssh.conf") for ssh(1) and other
userland tools, and "/etc/ssh/sshd_config (from "/etc/ssh/sshd.conf")
for sshd(8).
etc/postinstall will detect this, and if "fix" is given, rename the files.
- add extra arg to cmpdir() (before files list), which is the target
mode of copied files
- implement rcconf_isset(), which checks if an rc.conf(5) variable is set
and warns if so.
- minor tweaks
as NetBSD evolves.
checks/fixes supported in initial version:
defaults /etc/defaults being up to date
mtree /etc/mtree being up to date
rc /etc/rc* and /etc/rc.d/ being up to date
periodic /etc/{daily,weekly,monthly,security} being up to date
ssh ssh configuration file relocation