* Restore previous functionality which supported running postinstall
with an extracted etc.tgz set as the "source" directory (i.e,
/usr/src isn't available). We do this by generating the MAKEDEV
to ${SCRATCHDIR} if the real source is available, and leverage off
the compare_dir() code that the rest of postinstall uses to support
this functionality.
* Don't special case MACHINE_ARCH==arm; the MAKEDEV.awk should
be doing that since etc/Makefile doesn't have similar special
case code. In any case, AFAICT the only MACHINE_ARCHs are
"arm" and "armeb"; there is no "armel" in NetBSD.
to generate the MAKEDEV to scratch dir and compare that with the currently
installed /dev/MAKEDEV; also add -a MACHINE_ARCH option to explicitly
set machine architecture for non-native builds
problem with postinstall pointed out by Patrick Welche and Hubert Feyrer
in private e-mails
incase an obsolete directory appeared in a setfile whose filename
alphasorted before another setfile with obsolete "children" of that directory.
fixes [install/21348] from Rob Quinn.
sendmail 8.12.8. Some of the same machinery (in shorter form) is in
the additions to rc.d/sendmail. Also, add a smmsp startup script for
the sendmail client queue runner.
Use /var/db/obsolete instead of /etc/obsolete
etc/Makefile:
Create separate target "install-obsolete-files" to populate
/var/db/obsolete, instead of using "install-etc-files".
Makefile:
Add do-obsolete target, to run "cd etc && make install-obsolete-files",
and add this to BUILDTARGETS.
This moves the "obsolete files" creation from "distribution" to "build".
Per discussion with Andrew Brown.
* Improve message display in find_file_in_dirlist()
* do_obsolete(): instead of running distrib/sets/makeobsolete to
temporarily generate the obsolete sets lists, look for them in
${SRC_DIR}/etc/obsolete/* or ${DEST_DIR}/etc/obsolete/*.
The obsolete check now works for "extracted etc.tgz" as the source dir.
etc/Makefile (install-etc-files), distrib/sets/lists/*
* Install obsolete set lists into /etc/obsolete/
* Tweak how pwd_mkdb files are added to METALOG
distrib/sets/makeobsolete
* Don't bother with "_obsolete" suffix on generated file names.
Supports either ${SRCDIR}/crypto/dist/ssh (if using -s on a src tree)
or ${SRCDIR}/etc (if using -s on an extracted etc.tgz set) for the
"source" location of moduli.
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 ${...}