History log of /netbsd-current/etc/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.470 26-Apr-2024 christos

PR/58200: Kouichi Hashikawa: ./makeobsolete uses platform's sed


# 1.469 10-Nov-2023 christos

Add missing backslash (Jan-Benedict Glaw)


# 1.468 08-Nov-2023 christos

add umask for kernel creation consistency


# 1.467 26-Aug-2023 riastradh

certctl(8): New tool for managing OpenSSL CA certificates.

Same command-line syntax as FreeBSD, clearer semantics about which
parts are config and which parts are cache.


Revision tags: netbsd-10-base
# 1.466 21-Aug-2022 lukem

branches: 1.466.2;
Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.


# 1.465 06-Jun-2022 nia

build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.469 10-Nov-2023 christos

Add missing backslash (Jan-Benedict Glaw)


# 1.468 08-Nov-2023 christos

add umask for kernel creation consistency


# 1.467 26-Aug-2023 riastradh

certctl(8): New tool for managing OpenSSL CA certificates.

Same command-line syntax as FreeBSD, clearer semantics about which
parts are config and which parts are cache.


Revision tags: netbsd-10-base
# 1.466 21-Aug-2022 lukem

branches: 1.466.2;
Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.


# 1.465 06-Jun-2022 nia

build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.468 08-Nov-2023 christos

add umask for kernel creation consistency


# 1.467 26-Aug-2023 riastradh

certctl(8): New tool for managing OpenSSL CA certificates.

Same command-line syntax as FreeBSD, clearer semantics about which
parts are config and which parts are cache.


Revision tags: netbsd-10-base
# 1.466 21-Aug-2022 lukem

branches: 1.466.2;
Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.


# 1.465 06-Jun-2022 nia

build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.467 26-Aug-2023 riastradh

certctl(8): New tool for managing OpenSSL CA certificates.

Same command-line syntax as FreeBSD, clearer semantics about which
parts are config and which parts are cache.


Revision tags: netbsd-10-base
# 1.466 21-Aug-2022 lukem

Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.


# 1.465 06-Jun-2022 nia

build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.466 21-Aug-2022 lukem

Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.


# 1.465 06-Jun-2022 nia

build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.465 06-Jun-2022 nia

build system: Revert all the recent additions of MK[...] knobs that
allow conditionally disabling the building of certain user space
programs in the 'base' set.

There is not enough consensus that this is the right way and a few
people had strong objections, see source-changes-d@.


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.464 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.463 28-May-2022 nia

mk: Add MKFINGER, MKTALK flags for not building
talk, talkd, finger, fingerd.


# 1.462 28-May-2022 nia

Fix typo. Hopefully this didn't break anyone's build, sorry.


# 1.461 28-May-2022 nia

mk: Add MKNTP, MKTCPDUMP knobs.


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.460 25-May-2022 nia

mk: Rename the MKMBONE option to MKMROUTING for greater accuracy and
to match the related kernel config option.


# 1.459 25-May-2022 nia

mk: Allow building base without the MBONE applications by setting
MKMBONE=no in mk.conf


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.458 05-Jan-2022 kre

Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well. Not today, or not by me anyway.


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.457 02-Jan-2022 christos

Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.456 29-Dec-2021 christos

Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.455 23-Dec-2021 christos

Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.454 20-Dec-2021 christos

Revert previous, not needed MKKDEBUG does it.


# 1.453 20-Dec-2021 christos

PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x 0 root wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x 0 root wheel 208125880 Dec 19 12:50 ./netbsd.gdb


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.452 26-Sep-2021 maya

Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.451 25-Sep-2021 maya

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

branches: 1.449.2;
If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.450 26-May-2021 christos

use the date tool


Revision tags: cjep_staticlib_x-base
# 1.449 29-Dec-2020 martin

If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.449 29-Dec-2020 martin

If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling.


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.448 09-Sep-2020 jmcneill

Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.447 03-Sep-2020 jakllsch

Treat aarch64 and aarch64eb identically with regard to ld.so.conf


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.446 01-Jun-2020 jmcneill

Use the default motd for stable builds


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.445 18-May-2020 jmcneill

Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.444 27-Apr-2020 christos

It is KERNEL_DIR


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.443 05-Apr-2020 christos

us and them, then!


# 1.442 04-Apr-2020 christos

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules. This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.


Revision tags: phil-wifi-20191119
# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.441 02-Oct-2019 maya

Split out /rescue to its own set and adapt installers/images to add it.

This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.440 22-Sep-2019 gson

Don't mix tabs and spaces


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.439 31-Jul-2019 martin

PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

branches: 1.438.2;
Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

branches: 1.433.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118
# 1.438 12-Jan-2019 roy

Install /etc/wpa_supplicant.conf


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.437 01-Oct-2018 martin

Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.


Revision tags: pgoyette-compat-0930
# 1.436 29-Sep-2018 martin

Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.


# 1.435 29-Sep-2018 kre

Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.


# 1.434 28-Sep-2018 martin

Prepare for .tar.xz sets


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
# 1.433 01-Apr-2018 ryo

Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.432 09-Jan-2018 christos

branches: 1.432.2;
Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.432 09-Jan-2018 christos

Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet


Revision tags: perseant-stdc-iso10646-base
# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

branches: 1.428.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.431 19-Jun-2017 christos

use -v to get the expanded variable.


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.430 18-Jun-2017 christos

no need for debug printing.


# 1.429 18-Jun-2017 christos

put the dtb files with their kernels.


Revision tags: netbsd-8-base
# 1.428 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.428 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

branches: 1.426.2; 1.426.4;
give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.427 07-Feb-2017 christos

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 20-Dec-2015 christos

give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 10-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 16-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 24-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 14-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 22-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 27-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 12-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 10-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 21-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 21-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 23-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 03-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 03-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 30-May-2006 christos

Remove sendmail (approved by core)


# 1.325 20-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 22-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 28-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 23-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 10-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 10-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 06-Jan-2005 lukem

add MKPAM


# 1.298 16-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 16-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 15-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 08-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 27-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 27-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 11-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 08-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 06-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 06-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 05-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 05-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 19-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 25-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 18-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 08-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 22-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 16-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 23-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 16-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 16-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 16-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 03-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 28-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 21-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 15-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 29-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 05-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 01-Mar-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 27-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 27-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 12-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 07-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 19-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 31-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 29-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 24-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 12-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 09-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 05-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 14-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 14-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 09-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 23-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 01-Oct-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 03-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 01-May-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 28-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 20-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 20-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 16-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 21-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 27-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 10-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 27-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 08-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 19-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 13-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 07-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 05-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 22-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 06-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 02-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 22-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 18-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 02-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 24-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 11-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 26-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 02-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 13-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 10-Feb-1997 pk

Missing `)'.


# 1.63 22-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 09-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 20-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 18-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 16-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 22-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 08-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 19-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 15-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 18-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 17-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 06-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 05-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 28-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 08-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 08-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 31-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 30-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 04-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 03-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 30-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.426 19-Dec-2015 christos

give the kernel pax invocating the MKREPRO_TIMESTAMP treatment.


# 1.425 19-Dec-2015 christos

Freeze the BUILDER and the BUILD_DATE for repeatable builds


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-maxphys-base
# 1.421 09-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


Revision tags: tls-earlyentropy-base
# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 13-Jun-2014 apb

Print BUILDID near the top of /etc/release.


Revision tags: yamt-pagecache-base9
# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 15-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 19-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


Revision tags: agc-symver-base
# 1.406 23-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


Revision tags: yamt-pagecache-base8
# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


Revision tags: yamt-pagecache-base7
# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


Revision tags: yamt-pagecache-base6
# 1.398 17-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 13-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.396 21-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 15-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.393 02-Nov-2011 yamt

update RELEASEVARS


Revision tags: yamt-pagecache-base
# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


Revision tags: cherry-xenmp-base
# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


Revision tags: matt-mips64-premerge-20101231
# 1.384 26-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 11-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 09-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


Revision tags: matt-premerge-20091211
# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 25-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 20-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 20-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


Revision tags: mjf-devfs2-base2
# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 11-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


Revision tags: netbsd-5-base matt-mips64-base2
# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 22-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 30-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.350 21-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


Revision tags: mjf-devfs-base cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


Revision tags: matt-armv6-prevmlocking matt-mips64-base
# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 02-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


Revision tags: netbsd-4-base
# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


Revision tags: abandoned-netbsd-4-base
# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 02-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 26-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 08-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 29-May-2006 christos

Remove sendmail (approved by core)


# 1.325 19-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 21-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 27-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


Revision tags: netbsd-3-base
# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 22-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 09-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 09-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 05-Jan-2005 lukem

add MKPAM


# 1.298 15-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 15-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 14-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 12-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 12-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


Revision tags: netbsd-2-0-base
# 1.284 07-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 26-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 26-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 10-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 07-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 05-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 05-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 04-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 04-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 31-Dec-2003 lukem

display path of created iso-image


# 1.264 18-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 24-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 17-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 07-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 21-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 15-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


Revision tags: fvdl_fs64_base
# 1.239 22-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 18-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 15-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 15-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 15-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 02-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 27-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 11-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


Revision tags: netbsd-1-6-base
# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 26-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 20-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 14-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 09-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 01-Apr-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 28-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 04-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 28-Feb-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 26-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 26-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 11-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 06-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 18-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 13-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 30-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 28-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 23-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 11-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 08-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 04-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 04-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 13-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 13-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 08-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 28-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 22-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 14-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 30-Sep-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


Revision tags: netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


Revision tags: minoura-xpg4dl-base
# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 02-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 30-Apr-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 27-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 19-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 19-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 03-Feb-2000 veego

We don't have a bind4.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


Revision tags: comdex-fall-1999-base
# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 15-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 20-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 26-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 09-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


Revision tags: netbsd-1-4-base
# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 26-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 07-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 18-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 12-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 06-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 04-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 21-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 05-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 01-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 22-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 21-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 17-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 01-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 23-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 10-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


Revision tags: netbsd-1-3-base
# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 25-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 01-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 12-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 09-Feb-1997 pk

Missing `)'.


# 1.63 21-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 08-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 19-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 17-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 15-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 21-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


Revision tags: netbsd-1-2-base
# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


Revision tags: netbsd-1-1-base
# 1.49 07-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 18-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 14-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 17-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 16-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 05-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 04-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 27-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 07-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 07-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 31-Jul-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 30-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 29-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.15 13-Apr-1993 cgd

forgot a \...


# 1.14 13-Apr-1993 cgd

oops. screwed that up...


# 1.13 13-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 03-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 02-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 29-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.424 31-Aug-2015 uebayasi

Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.


# 1.423 23-Jul-2015 mrg

remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)


# 1.422 30-Nov-2014 uebayasi

Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels. Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).


# 1.421 09-Aug-2014 matt

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only. While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.


# 1.420 06-Aug-2014 apb

To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z". If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.


# 1.419 06-Aug-2014 apb

Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.


# 1.418 05-Aug-2014 apb

Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.


# 1.417 05-Aug-2014 apb

Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.


# 1.416 03-Aug-2014 apb

BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release

The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading. The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.


# 1.415 30-Jun-2014 martin

Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).


# 1.414 14-Jun-2014 apb

Print BUILDID near the top of /etc/release.


# 1.413 05-May-2014 martin

Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.


# 1.412 27-Jan-2014 apb

branches: 1.412.2;
Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.


# 1.411 15-Jan-2014 christos

eliminate use of bsd.sys.mk from Makefiles


# 1.410 18-Aug-2013 matt

if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).


# 1.409 01-May-2013 agc

Fix typo in previous


# 1.408 01-May-2013 agc

Install pkgpath.conf in /etc - part of fix for misc PR/47645


# 1.407 06-Apr-2013 uebayasi

Don't print warning even if mkisofs is not found.


# 1.406 23-Feb-2013 jmmv

Install a kyua.conf file that sets unprivileged_user to _tests.


# 1.405 05-Feb-2013 matt

Only include debug set obsolete set if MKDEBUG is not no


# 1.404 05-Feb-2013 matt

Add debug to the list of OBSOLETE_FILES


# 1.403 29-Jan-2013 christos

spwd.db should be 0600 (Brooks Davis)


# 1.402 14-Jan-2013 mlelstv

Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.


# 1.401 03-Dec-2012 apb

Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values. The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.


# 1.400 04-Nov-2012 apb

motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.


# 1.399 04-Nov-2012 apb

Add DISTRIBVER to the list of variables under RELEASEVARS.


# 1.398 16-Aug-2012 riz

branches: 1.398.2;
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.397 13-Jul-2012 christos

MKCRYPTO_{IDEA,MDC2} is no more


# 1.396 21-Jan-2012 tsutsui

branches: 1.396.2;
Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.


# 1.395 14-Jan-2012 joerg

Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...


# 1.394 14-Jan-2012 jmcneill

PR# install/44593: Please give release ISO's more meaningful names

Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@


# 1.393 01-Nov-2011 yamt

update RELEASEVARS


# 1.392 22-Aug-2011 jym

branches: 1.392.2;
Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html


# 1.391 30-Jun-2011 matt

Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}


# 1.390 17-Apr-2011 martin

Get rid of var/chroot/tcpdump/etc


# 1.389 11-Apr-2011 martin

Ooops, fix source path for the "protocols" file


# 1.388 11-Apr-2011 martin

When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.


# 1.387 16-Feb-2011 uebayasi

Install "obsolete" files only when necessary.


# 1.386 16-Feb-2011 uebayasi

Generate MAKEDEV only when really necessary. Write dependency correctly.


# 1.385 16-Feb-2011 uebayasi

To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).


# 1.384 26-Dec-2010 christos

branches: 1.384.2;
`` -> $()


# 1.383 08-Dec-2010 njoly

Make tests set generation optional, skipped for MKATF=no build.


# 1.382 04-Oct-2010 tsutsui

Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.


# 1.381 22-Aug-2010 rmind

Import NPF - a packet filter. Some features:

- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
supporting generic RISC-like and specific CISC-like instructions for
common patterns (e.g. IPv4 address matching). See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@


# 1.380 05-Feb-2010 roy

Move the emergancy terminfo database from /root to /rescue.


# 1.379 04-Feb-2010 roy

Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.


# 1.378 11-Jan-2010 dholland

Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.


# 1.377 09-Jan-2010 dholland

Fix installation permissions of /var/db/locate.database as per PR misc/41544.


# 1.376 11-Dec-2009 he

Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets. Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@


# 1.375 05-Dec-2009 pooka

Install obsolete lists for modules.


# 1.374 30-Nov-2009 uebayasi

Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org. (These sets are not included as TNF releases.)


# 1.373 29-Sep-2009 tsarna

Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder.


# 1.372 08-Sep-2009 skrll

Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.


# 1.371 07-Sep-2009 mrg

- do not create X11 subdirs always anymore

- we now only create them when building X11, and only create the ones
we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
creating a possibly merged one. we still have a single installed file
called "NetBSD.dist".


# 1.370 24-Jul-2009 mbalmer

Document recent gpio(4) changes and introduce a new config file for GPIO.
Integrate with the startup scripts in /etc/rc.d. Introduce new variable
"gpio" for /etc/rc.conf.


# 1.369 20-Jul-2009 mrg

what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh.


# 1.368 20-Jul-2009 mrg

enter the right bin/ssh subdir for "configinstall".

HI CHRISTOS!


# 1.367 23-Jun-2009 tron

Switch to building Postfix 2.6.2 via "external/ibm-public/postfix".


# 1.366 23-Apr-2009 apb

Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
INSTALL_DIR would want to write to the metalog, and it can't do that
if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
This allows some XXX comments to be removed.


# 1.365 26-Feb-2009 joerg

Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.


# 1.364 25-Feb-2009 sketch

Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).


# 1.363 19-Jan-2009 jmmv

branches: 1.363.2;
Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.362 05-Dec-2008 cube

Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.361 12-Nov-2008 ad

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


# 1.360 09-Nov-2008 mrg

- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


# 1.359 19-Oct-2008 apb

branches: 1.359.2;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.


# 1.358 28-Aug-2008 lukem

Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.


# 1.357 27-Jul-2008 joerg

Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.


# 1.356 22-Jul-2008 dyoung

Add MKNVI to RELEASEVARS. Thanks lukem@.


# 1.355 24-May-2008 joerg

Hook dhcpcd into build.


# 1.354 23-May-2008 wiz

Sort variables.


# 1.353 22-May-2008 lukem

MKLDAP, USE_LDAP


# 1.352 07-May-2008 gdt

Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.


# 1.351 29-Apr-2008 ad

branches: 1.351.2;
Give i386 and amd64 a default boot.cfg.


# 1.350 22-Mar-2008 lukem

branches: 1.350.2;
add USE_* to params


# 1.349 16-Mar-2008 lukem

show RELEASEMACHINEDIR in params


# 1.348 21-Nov-2007 njoly

branches: 1.348.4; 1.348.6; 1.348.8;
Add tests to the obsolete files list to be installed.


# 1.347 19-Nov-2007 minskim

Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.346 12-Nov-2007 jmmv

Add the atf configuration files

This change adds the directory used by atf to look for its configuration
files.


# 1.345 14-Jul-2007 adrianp

branches: 1.345.4;
Add a default audit-packages configuration file for audit-packages
(part of pkg_install-20070714)


# 1.344 01-Jul-2007 xtraeme

Forgot to add envsys.conf.


# 1.343 11-Apr-2007 bouyer

Sync ISO target directory and name with distrib/common/Makefile.bootcd:
target directory is ${RELEASEDIR}/iso/, named ${MACHINE}cd.iso by
default.


# 1.342 16-Mar-2007 bad

Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.341 06-Mar-2007 bouyer

Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/


# 1.340 02-Mar-2007 apb

Remove MAKEDEV.subr. This removes the risk of third party scripts (or
human procedures) breaking because they assume it's enough to copy
MAKEDEV fom one place to another.

Let MAKEDEV return after defining shell functions but before doing any
real work, if MAKEDEV_AS_LIBRARY is set.

Let MAKEDEV.local load MAKEDEV as a function library via
"MAKEDEV_AS_LIBRARY=1 . MAKEDEV".


# 1.339 26-Feb-2007 apb

Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc


# 1.338 04-Feb-2007 rpaulo

Add login.conf.


# 1.337 18-Sep-2006 hubertf

branches: 1.337.2;
Remove last traces of /var/log/aculog
OK'd by perry@


# 1.336 14-Sep-2006 pavel

Factor out common settings from /root/.shrc and /etc/skel/.shrc to a
new file /etc/shrc.

As proposed on tech-userlevel.


# 1.335 13-Aug-2006 jmmv

Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.

This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


# 1.334 05-Aug-2006 jmmv

branches: 1.334.2;
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.

No objections in tech-userlevel@; only positive responses.


# 1.333 23-Jul-2006 lukem

document MKDEBUG MKDEBUGLIB in /etc/release


# 1.332 12-Jul-2006 lukem

add HAVE_GCC and HAVE_GDB to etc/release


# 1.331 02-Jul-2006 lukem

Use -publisher instead of -P, since mkisofs 2.01 whines about the latter.


# 1.330 27-Jun-2006 christos

PR/33837: Bucky Katz: crossbuild of release fails because $MAKE not passed


# 1.329 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.328 09-Jun-2006 tron

Don't create "/etc/mail/local-host-names" anymore after "sendmail"
has been removed from the base distribution.


# 1.327 08-Jun-2006 tron

Don't install "/etc/mail/aliases" if "MKPOSTFIX" is set to "no".


# 1.326 29-May-2006 christos

Remove sendmail (approved by core)


# 1.325 19-Mar-2006 christos

Goodbye KerberosIV


# 1.324 17-Feb-2006 dsl

A version of etc/Makefile that doesn't contain the word WAIT.
Only slightly dissimilar to the one Chuck Silvers posted to tech-toolchain.
Builds are now likely to proceed as far as running out of space in the
install media.


# 1.323 15-Feb-2006 dsl

Add some more .MAKE so that we don't run multiple parallel makes.


# 1.322 11-Feb-2006 dsl

Remove the dependencies against 'check_DESTDIR' and 'check_RELEASEDIR' from
snap_pre so that make will execute it before building the kernels.
This is all because .WAIT doesn't recursively apply to dependencies.
Add some .PHONY and .MAKE so that child makes use the same job pipe.


# 1.321 08-Feb-2006 agc

Add distribution entries and supporting files for the iSCSI target.


# 1.320 29-Jan-2006 apb

mkisofs is in pkgsrc/sysutils/cdrtools now, not pkgsrc/sysutils/cdrecord.
Reported by Jukka Salmi.


# 1.319 28-Jan-2006 apb

Explicitly include ${.OBJDIR} in the definition of CDROM.dir
and CDROM.pathlist. This probably makes no difference,
but is less confusing.


# 1.318 22-Jan-2006 dsl

Until someone fixes .WAIT (see PR/32594) add a .NOTPARALLEL so that we
don't try to build the kernel sets before the kernel itself is built.


# 1.317 04-Jan-2006 apb

After running ${TOOL_MTREE} to create directories from the
specification in .../mtree/NetBSD.dist, run ${TOOL_MTREE} again with
different args to register the new directories in the metalog.
Previously, these directories were not mentioned at all
in the metalog.

Reviewed by agc


# 1.316 21-Oct-2005 hubertf

Fix comment: "Below", variables are assigned with += not =


# 1.315 07-Oct-2005 jmc

After building sets, make sure and checksum the kern-* files in binary/sets.


# 1.314 30-Aug-2005 tron

Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.313 22-May-2005 lukem

Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.312 17-Apr-2005 lukem

Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.311 27-Mar-2005 lukem

Install all obsolete X11 sets (even empty ones).


# 1.310 25-Mar-2005 tron

We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.309 24-Mar-2005 tron

Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.308 24-Mar-2005 martin

Make var/db/obsolete/xserver optional.


# 1.307 21-Mar-2005 tron

Add support for handling obsolete X11 files and directories.


# 1.306 08-Mar-2005 martin

branches: 1.306.2;
Remove ${MACHINE} from the volume name of iso images - our new naming sheme
makes the field overflow even on archs where ${MACHINE} is pretty short.

Also rearange MKISOFS_FLAGS so that they default to -quiet unless the
user explicitly asks for -v. Add -hide-joliet-trans-tbl to get rid of
the TRANS.TBL files on modern OSs.


# 1.305 04-Mar-2005 christos

Add lastlogx to the list of files created.


# 1.304 22-Feb-2005 lukem

Only install postfix config if ${MKPOSTFIX} != "no".
Based on PR misc/29341 by Takeshi Nakayama <nakayama@NetBSD.org>


# 1.303 22-Feb-2005 peter

Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.


# 1.302 15-Jan-2005 fredb

Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.301 09-Jan-2005 lukem

add MKINET6 to etc/release


# 1.300 09-Jan-2005 lukem

install-etc-files: also descend into "pam.d" for configinstall


# 1.299 05-Jan-2005 lukem

add MKPAM


# 1.298 15-Nov-2004 christos

Add ${.CURDIR}.


# 1.297 15-Nov-2004 christos

Use the ttys file from etc.${MACHINE} directly.


# 1.296 15-Nov-2004 he

Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.


# 1.295 14-Nov-2004 christos

Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.


# 1.294 14-Nov-2004 yamt

install PF configs.


# 1.293 14-Nov-2004 yamt

merge after importing pf from openbsd 3.6. (userland part)

some files were imported to the different places from the previous version.
v3_5:
etc/pf.conf
etc/pf.os
etc/spamd.conf
share/man/man4/pf.4
share/man/man4/pflog.4
share/man/man5/pf.conf.5
share/man/man5/pf.os.5
share/man/man5/spamd.conf.5
v3_6:
dist/pf/etc/pf.conf
dist/pf/etc/pf.os
dist/pf/etc/spamd.conf
dist/pf/share/man/man4/pf.4
dist/pf/share/man/man4/pflog.4
dist/pf/share/man/man5/pf.conf.5
dist/pf/share/man/man5/pf.os.5
dist/pf/share/man/man5/spamd.conf.5


# 1.292 28-Jul-2004 he

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.291 28-Jun-2004 lukem

Overhaul install-etc-files so that
* most files are installed with CONFIGFILES (from bsd.files.mk)
* empty files are created in a cleaner fashion
* MAKEVERBOSE is supported for the remaining custom items


# 1.290 22-Jun-2004 itojun

install pf related files to /etc


# 1.289 20-Jun-2004 christos

remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.


# 1.288 17-May-2004 lukem

Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".


# 1.287 16-May-2004 lukem

Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.


# 1.286 11-May-2004 cl

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386. The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets


# 1.285 13-Apr-2004 lukem

Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations


# 1.284 07-Mar-2004 cgd

branches: 1.284.2;
sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
pax: File ./netbsd was modified during copy to archive
and this avoids it.


# 1.283 25-Feb-2004 agc

Allow CKSUM to be overridden.


# 1.282 13-Feb-2004 enami

Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.


# 1.281 07-Feb-2004 lukem

Move the 'build date' & 'built by' stuff to the "build settings" section.


# 1.280 06-Feb-2004 itohy

Add /etc/locate.conf


# 1.279 31-Jan-2004 lukem

in etc-release, put the builder on a separate line to the date


# 1.278 30-Jan-2004 lukem

Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution"


# 1.277 27-Jan-2004 he

When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.


# 1.276 26-Jan-2004 lukem

Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.


# 1.275 26-Jan-2004 lukem

Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).


# 1.274 10-Jan-2004 tls

Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.


# 1.273 07-Jan-2004 lukem

Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP


# 1.272 06-Jan-2004 lukem

rename release-info to etc-release
rename install-release-info to install-etc-release


# 1.271 05-Jan-2004 lukem

remove superfluous .endif accidentally introduced in previous


# 1.270 05-Jan-2004 lukem

deprecate NO_SENDMAIL and consistently test MKSENDMAIL


# 1.269 04-Jan-2004 lukem

Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.


# 1.268 04-Jan-2004 lukem

install-release-info does not need DESTDIR. [toolchain/23982]


# 1.267 04-Jan-2004 lukem

Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.


# 1.266 04-Jan-2004 lukem

Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.


# 1.265 01-Jan-2004 lukem

display path of created iso-image


# 1.264 18-Dec-2003 lukem

* Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
appropriately.
* Whitespace & regex tweaks.


# 1.263 15-Dec-2003 lukem

MAKEVERBOSE-ify MAKEDEV creation


# 1.262 15-Nov-2003 jdolecek

explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
so that this works as expected when not invoked via build.sh


# 1.261 26-Oct-2003 cl

now that MAKEDEV is generate, install it from ${.OBJDIR}


# 1.260 26-Oct-2003 lukem

Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.


# 1.259 24-Oct-2003 ross

Add the -T etc_pkg arg back to the MAKEDEV install.


# 1.258 24-Oct-2003 ross

Now that MAKEDEV is generated, just do an ordinary ${INSTALL_FILE} instead
of going back to the source dir (and losing) with ${ETC_INSTALL_FILE}


# 1.257 24-Oct-2003 jdolecek

switch over to unified MAKEDEV


# 1.256 22-Aug-2003 dsl

Optimise DISTRIBUTION_DONE= KERNELS_DONE= nbmake snapshot
- If DISTRIBUTION_DONE is defined, don't add the 'root' directory to METALOG.
(maybe install -M shouldn't write to the METALOG file if it doesn't install
the file either)
- Don't re-compress the kernels if the compressed file is newer than the
kernel.
Useful if all you want to do is rebuild the ramdisk image.


# 1.255 18-Jul-2003 lukem

Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.


# 1.254 10-Jul-2003 lukem

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.


# 1.253 08-Jun-2003 lukem

Invoke makeobsolete with ${HOST_SH} and pass in ${MAKE}.
Fixes FreeBSD cross-build problem noted by Valeriy E. Ushakov <uwe@>


# 1.252 18-May-2003 lukem

* Always include <bsd.endian.mk>, and include it much earlier so that
it's available for the MD etc.${MACHINE}/Makefile.inc
* Set PWD_MKDB_ENDIAN to the cap_mkdb(8) endian flag, rather than
overriding TARGET_ENDIANNESS.


# 1.251 17-Apr-2003 thorpej

Install powerd(8) scripts when installing etc files.


# 1.250 02-Apr-2003 perry

For consistency and simplicity, move the default location for cron logs
from /var/cron/log to /var/log/cron


# 1.249 15-Mar-2003 jdolecek

atc uses /var/games/atc_score, not atc_scores
Problem pointed out and fix supplied in PR install/20709 by Kazuhito Tsuburaya


# 1.248 07-Mar-2003 lukem

- rename 'iso-image_*' -> 'iso-image-*'
- run MAKESUMS in iso-image, *after* the MD iso-image-md-post has run,
since the latter might actually modify the generated image...


# 1.247 21-Feb-2003 lukem

all:
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.


# 1.246 20-Feb-2003 lukem

etc/postinstall
* 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.


# 1.245 15-Feb-2003 lukem

be more obvious about the requirement on mkisofs 2.0


# 1.244 09-Jan-2003 mrg

allow NO_SENDMAIL to equal "no"


# 1.243 06-Jan-2003 lukem

Missed a 'cd ${.CURDIR}' when adding the OBJDIR support here,
causing "make distribution" to fail on "install-etc-files".
(oops!)


# 1.242 04-Jan-2003 lukem

- Enable OBJ support for etc/; a scratch dir is needed for iso-image.
- Add ${.CURDIR} to various rules.
- Remove the ${KERNOBJDIR} (sys/arch/${MACHINE}/compile) objdir creation
from here.
- Rework iso-image to copy temporary files (such as kernels or boot files)
into a temporary directory instead of stomping over ${RELEASEDIR}, and
use mkisofs -graft-points to merge the temporary directory and
${RELEASEDIR}/${MACHINE}.
NOTE: mkisofs 2.0 is highly recommended for functioning -graft-points
- Add some more comments


# 1.241 03-Jan-2003 lukem

Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


# 1.240 03-Jan-2003 lukem

Don't remove ${RELEASEDIR} if UPDATE is defined.


# 1.239 22-Dec-2002 lukem

Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
"mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
on a P3-600.
(This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
on all the pathnames, and it's smaller as well.


# 1.238 21-Dec-2002 lukem

Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).


# 1.237 19-Dec-2002 lukem

Remove /sys -> /usr/src/sys symlink.


# 1.236 19-Dec-2002 jdolecek

use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them


# 1.235 19-Dec-2002 lukem

Always invoke mtree & pax with "-N ${NETBSDSRCDIR}/etc" so that user & group
lookups occur from there rather than from the host system.


# 1.234 17-Dec-2002 jdolecek

ttyaction is ${MACHINE}-specific, not per ${MACHINE_ARCH}
remove special ttyaction hook from etc/etc.sun[23]/Makefile.inc, it's no longer
needed
ld.so.conf is ${MACHINE}-specific, the code happened to work for i386 and sparc
only because ${MACHINE} == ${MACHINE_ARCH} there
remove basesrc/etc/ld.so.conf and its special vax/ns32k/m68k hook in Makefile -
vax & m68k are ELF now, and ns32k doesn't need to be handled here


# 1.233 02-Dec-2002 lukem

- add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate


# 1.232 18-Nov-2002 lukem

Separate snap_kern into three targets, to allow finer control over
which bits to build, and to allow "make -j N" actually do something in
parallel:
- build_kernels: for each of ${ALL_KERNELS}, create kern-${NAME} target
which configures & builds the kernel ${NAME}.
- build_kernsets: for each of ${KERNEL_SETS}, create kernset-${NAME} target
to create ${RELEASEDIR}/binary/sets/kern-${NAME}.tgz
- build_releasekernels: for each of ${KERNEL_SETS} ${EXTRA_KERNELS}, create
${RELEASEDIR}/binary/kernel/netbsd-${NAME}.gz (et al)
(The latter two .WAIT until build_kernels has completed)


# 1.231 23-Oct-2002 perry

Add hackdir/perm and hackdir/record
move larn files into alphabetical order


# 1.230 23-Oct-2002 perry

add code to include (primitive) package tag names

XXX This file has gotten big and ugly enough that a bit of a rewrite
is likely in order.


# 1.229 15-Oct-2002 lukem

Set
ALL_KERNELS ?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
and use ALL_KERNELS instead of the latter three in the loop to configure
& build kernels. This allows ALL_KERNELS to be overridden in make(1)'s
environment or on make(1)'s command line... (I got sick of waiting for
all eleven i386 kernels to rebuild when I was only testing one)


# 1.228 05-Oct-2002 grant

create /etc/mail/local-host-names, required by sendmail(8).


# 1.227 15-Sep-2002 perry

Make utmp and utmpx group utmp, not group wheel. This gets masked by
the fact that rc.d sets it to group utmp anyway, but it was certainly
wrong in principle.


# 1.226 15-Sep-2002 perry

Create wtmpx, just as wtmp is created.


# 1.225 02-Sep-2002 wiz

Add /var/run/utmpx, requested by soren.


# 1.224 27-Jul-2002 bjh21

Set the volume ID on CDs produced my "make iso-image" to something meaningful,
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".


# 1.223 06-Jul-2002 fredette

Removed ftpwelcome from BIN1; it was removed.


# 1.222 10-Jun-2002 lukem

use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.221 30-May-2002 itojun

have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.220 30-May-2002 itojun

set TARGET_ENDIANNESS appropriately.


# 1.219 04-May-2002 jdolecek

branches: 1.219.2;
Move the sample fstab files to /usr/share/examples/fstab/. Duplicates
or very similar configs removed.


# 1.218 02-May-2002 sommerfeld

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree. Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.


# 1.217 02-May-2002 lukem

- consistency cleanup
- ensure INSTALLATION_DIRS contains the appropriate extra directories
for a given platform


# 1.216 25-Apr-2002 lukem

s/_SRC_TOP_/NETBSDSRCDIR/


# 1.215 26-Apr-2002 lukem

install postinstall


# 1.214 20-Apr-2002 lukem

When building kernel .tgz sets, take advantage of pax's new ability to
not store optional directory entries when copying from a specfile.


# 1.213 14-Apr-2002 perry

add default passwd.conf file


# 1.212 10-Apr-2002 lukem

if UNPRIVED, call ${PAX} with -N ${_SRC_TOP}/etc


# 1.211 10-Apr-2002 lukem

now <bsd.kernobj.mk> defines KERNSRCDIR correctly, pull it in earlier
and clean up related goop


# 1.210 10-Apr-2002 lukem

When building kern-*.tgz, output an mtree specfile to pipe into
${PAX} -M so that the contents get the appropriate ownership.
Fixes [toolchain/16161] from Ben Harris <bjh21@netbsd.org>


# 1.209 09-Apr-2002 matt

Don't install pcs750.bin in here anymore.


# 1.208 07-Apr-2002 wiz

arm32 is not a valid MACHINE_ARCH anymore.


# 1.207 31-Mar-2002 bjh21

When doing a "for" loop over a potentially-empty list
(${KERNEL_SUFFIXES}), put the list in a shell variable and use that.
Both bash (before 2.05a) and Solaris /usr/xpg4/bin/sh report a syntax
error otherwise.


# 1.206 31-Mar-2002 bjh21

Add a MAKESUMS variable which invokes makesums with CKSUM in its environment.
Use this whenever we want to invoke makesums.


# 1.205 28-Mar-2002 matt

Change pcs750.bin processing so it works UNPRIVED=. XXX this needs to be
moved to someplace with an objdir.


# 1.204 04-Mar-2002 lukem

provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions


# 1.203 28-Feb-2002 chs

copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels). fix some comments while I'm here.


# 1.202 09-Feb-2002 lukem

- add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group


# 1.201 26-Jan-2002 lukem

- replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking


# 1.200 26-Jan-2002 lukem

- add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
some helper # { ... # } comments around large .if statements for (ab)use
with vi showmatch mode)
- clean up whitespace


# 1.199 11-Dec-2001 tv

MKfoo=no -> NOfoo=


# 1.198 06-Dec-2001 jmc

Make pwd_mkdb a conditional set so bsd.own.mk can override it


# 1.197 30-Nov-2001 thorpej

Add support for specifying extra kernel name suffixes to search for
when building the kernel sets and placing gzip'd kernels in binary/kernels.
For example, if KERNEL_SUFFIXES were set to "ecoff srec", then the kernel
set would include:

netbsd
netbsd.ecoff (only if it exists in the kernel compile directory)
netbsd.srec (only if it exists in the kernel compile directory)

This is useful for packaging kernel sets for platforms which have
extra special requirements for loading the kernel.


# 1.196 29-Nov-2001 thorpej

Change the way kernel sets are specified, and make them
more consistent. To quote the comment in etc/Makefile
that describes how it's done:

# This target builds the kernels specified by each port. A port may
# specify the following kernels:
#
# KERNEL_SETS The list of kernels that will be
# packaged into sets, named
# kern-${kernel}.tgz. These kernels
# are also placed in the binary/kernels
# area of the release package as
# netbsd-${kernel}.gz.
#
# EXTRA_KERNELS Additional kernels to place in the
# binary/kernels area of the release
# package as netbsd-${kernel}.gz, but
# which are not placed into sets. This
# allows a port to provide e.g. a netbootable
# installation kernel containing a ramdisk.
#
# BUILD_KERNELS Additional kernels to build which are
# not placed into sets nor into the
# binary/kernels area of the release
# package. These are typically kernels
# that are built for inclusion only in
# installation disk/CD-ROM/tape images.
#


# 1.195 25-Nov-2001 thorpej

Fix oversight in the addition of install-etc-files target; move the
.endif for DISTRIBUTION_DONE to the right place.


# 1.194 24-Nov-2001 perry

Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.


# 1.193 20-Nov-2001 thorpej

Split the "distribution" target into "distribution" and "install-etc-files",
the latter being called by the "distribution" target. This allows the
various /etc/... files to be installed manually in a convenient way, if
desired.

NOTE: It is INTENTIONAL that this target is not named "install".


# 1.192 18-Nov-2001 perry

UNPRIVILEGED->UNPRIVED


# 1.191 12-Nov-2001 tv

Make the TARGET_ENDIANNESS check only valid when making release, snapshot,
or distribution.

Also, clean up the check and include <sys/endian.h> instead -- some platforms'
<machine/endian_machdep.h> pull in the definitions of _BIG_ENDIAN and
_LITTLE_ENDIAN, invalidating the test; this makes the check values uniformly
"4321" and "1234" respectively.


# 1.190 30-Oct-2001 jmc

Don't run rules unless DESTDIR is set *and* contains a value. Fixes PR 14410


# 1.189 29-Oct-2001 perry

Add rm's before symlink and hard link commands.
Shouldn't be needed, but install has no other good way to deal with
this.

Pointed out by Rob Windsor in PR 14394 -- I committed his patch plus
one for something he didn't hit yet.


# 1.188 28-Oct-2001 perry

Now that it will actually work, replace instances of ln with install.


# 1.187 26-Oct-2001 jmc

Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.


# 1.186 23-Oct-2001 tv

Since <bsd.prog.mk> is included, we already have a full list of default
build rules for all standard targets. Remove the manually-created list
of empty rules.


# 1.185 19-Oct-2001 tv

Do not run MAKEDEV on "make distribution". The device nodes are not part
of the resultant tarballs; only the MAKEDEV script itself is. Running
MAKEDEV here can futz with cross build hosts.


# 1.184 13-Oct-2001 lukem

A few more changes, from more discussions with Andrew Brown.
- Resurrect /etc/changelist, even if it's an "empty" file by default,
because it's easier to use than /etc/mtree/special.local for adding
a couple of simple files. Back by popular demand (hi @@@! :-)
- Add /etc/rc.d/* to the list of "dynamic" files; this notices changes
in user-added scripts
- Only calculate the mtree -I nomail list once, and re-use
- Use "cat foo | while read file" instead of "for file in `cat foo`" ;
handles whitespace better...


# 1.183 11-Oct-2001 lukem

Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.

Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
/etc/changelist:
- files which we want to monitor for changes but don't want to
see the diffs of (master.passwd, ssh_host_key, ...) are
tagged with "nomail"
- files which we don't want to monitor are tagged with "exclude"
(such as netgroup.db, kvm.db, ...)
- monitor /etc/mtree/special.local, /root/.ssh/*
- remove /etc/changelist, and a bunch of XXX comments
- use mtree(8)'s -D, -I, and -E to generate lists of files to
actually do the changelist stuff on.
- support /etc/mtree/special.local as an optional user-provided
version of /etc/mtree/special (effectively, an enhanced
/etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
from the old `top level' /var/backups mechanism to the `full path'
mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math


# 1.182 10-Oct-2001 chs

skip "distribution" step if DISTRIBUTION_DONE is set.


# 1.181 08-Oct-2001 enami

Make mtree a host tool and use it when appropriate.


# 1.180 03-Oct-2001 tv

Append / to ${DESTDIR} in distrib-dirs rule; fixes PR bin/14080.


# 1.179 23-Aug-2001 mrg

support kernel configs called `../../sparc64/conf/GENERIC32', and the like,
by stripping the dirname off by using ${configfile:C/.*\///} where necessary.


# 1.178 04-Aug-2001 matt

Fix botched commit (a conflict was committed).


# 1.177 04-Aug-2001 tsutsui

Use "mtree -U" instead of "mtree -u" on making distrib-dirs
to ignore file hierarchy unmatches and check exit status of mtree
to detect actual errors on it (like "unknown user/group" etc).


# 1.176 21-Jan-2001 itojun

do not try to install rtadvd.conf


# 1.175 13-Jan-2001 christos

more dup target fixes... snap_md_post should be fixed in etc.i386
Makefile.inc not to work if $RELEASEDIR or $DESTDIR is not defined.


# 1.174 13-Jan-2001 christos

protect against multiple target definition for parse_md_post


# 1.173 08-Jan-2001 simonb

Only need to "make distribution" in usr.bin/ssh once.


# 1.172 02-Dec-2000 jlam

Correct comment for KERNOBJDIR.


# 1.171 30-Nov-2000 simonb

Get the TARGET_ENDIANNESS by running ${CC} -E over
<machine/endian_machdep.h>. Fixes problems where
<machine/endian_machdep.h> just includes another file
without defining _BYTE_ORDER itself.


# 1.170 09-Nov-2000 jdolecek

Call pwd_mkdb with proper flag, so that it creates database in same
endianness as compile target. This is primarily for cross compiles.
Hopefully this method (looking into
${DESTDIR}/usr/include/machine/endian_machdep.h) is okay.

Patch sent by Andrew Brown in bin/11454.


# 1.169 30-Oct-2000 thorpej

Just nuke the "build aliases.db" stuff from here. It's not
necessary, as /etc/rc.d/sendmail will already rebuild DB files
automatically if necessary, and doing aliases.db here just
totally breaks cross-compiling.


# 1.168 29-Oct-2000 jmc

Moved comment about rm out of shell command area. (typo)


# 1.167 22-Oct-2000 jmc

Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.


# 1.166 19-Oct-2000 garbled

When building kernels for a release (snap_kern) use "distclean" instead of
"clean" to get rid of any .depend files that might be lying about in the
kernel build directory.


# 1.165 16-Oct-2000 simonb

cd to skel during "make distribution".

Part of fix for PR bin/10985.


# 1.164 13-Oct-2000 hubertf

Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.163 01-Oct-2000 thorpej

Do the `distribution' target for usr.bin/ssh, too.


# 1.162 30-Sep-2000 lukem

move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.161 11-Sep-2000 hubertf

Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
set in src/etc after a "make release" in both "src" and "xsrc", to create a
ISO-image of the release in $RELEASEDIR/installation/cdrom.

Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
are available as 'iso-image_md_post' and 'iso-image_md_pre', see
etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
bootable CDs on alpha, sparc, ...

Reviewed by Todd Whitesel and Thomas Klausner.


# 1.160 23-Aug-2000 jhawk

As .ifndef RELEASEDIR checks for targets:
snap_pre snap_md_pre snap_md_post
so should .ifndef DESTDIR


# 1.159 21-Aug-2000 lukem

- install files in etc/default/
- migrate rc.wscons to (already existing) rc.d/ wscons


# 1.158 06-Aug-2000 fvdl

Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.157 03-Aug-2000 kleink

As discussed with Hubert Feyrer in private mail, install UTC as the default
time zone; while amounting to the same offset, the time zone 'name' of
Factory violates the prinicple of least surprise.


# 1.156 02-Aug-2000 hubertf

Change default timezone from US/Pacific to Factory:

Before:
Wed Aug 2 06:53:04 PDT 2000

After:
Wed Aug 2 13:52:52 Local time zone must be set--see zic manual page 2000


# 1.155 25-Jul-2000 thorpej

Also do ../usr.bin/ssh for the `distribution' target.


# 1.154 20-Jun-2000 thorpej

branches: 1.154.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.153 12-Jun-2000 fredb

Loosen sendmail's permission checks for building the aliases.db file
even further. Particularly, allow ${DESTDIR} to be within a world writable
directory, such as /var/tmp.


# 1.152 03-Jun-2000 perry

install ttyaction if it exists


# 1.151 02-Jun-2000 fvdl

* Portmap is now called rpcbind.
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.


# 1.150 13-May-2000 lukem

branches: 1.150.2;
remove netstart


# 1.149 06-May-2000 sjg

Added an obj target to ensure that KERNOBJDIR exists - in case
we are using MAKEOBJDIRPREFIX.
Fixed the comment about why we grab ../Makefile.inc


# 1.148 03-May-2000 itojun

correct typo (sendmail upgrade)


# 1.147 03-May-2000 itojun

sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.


# 1.146 02-May-2000 sjg

remove/change missleading comments


# 1.145 02-May-2000 sjg

Use bsd.kernobj.mk
Also if KERNELS_DONE is defined skip building kernels. Handy if re-spinning
due to errors in distrib later on.


# 1.144 30-Apr-2000 thorpej

Install the localhost namedb file.


# 1.143 30-Apr-2000 perry

Add "make distribution" for Postfix.


# 1.142 08-Apr-2000 tsarna

The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.


# 1.141 27-Mar-2000 thorpej

Use distrib/sets/Makefile in the release: and new cryptoset: targets.


# 1.140 10-Mar-2000 lukem

install rc.d scripts


# 1.139 01-Mar-2000 joda

explicitly allow writable directories when rebuilding the alias
database, otherwise this will fail if any directory in ${DESTDIR} is
g+w.


# 1.138 01-Mar-2000 itojun

sync with etc/namedb change (IPv6 loopback reverse database file)


# 1.137 26-Feb-2000 mycroft

Install a blank sendmail.st here.


# 1.136 19-Feb-2000 mycroft

Always checksum binary/kernel, now that there is at least one file in it.


# 1.135 19-Feb-2000 mycroft

Always install GENERIC in the kernels directory.


# 1.134 14-Feb-2000 erh

Check for CRYPTOPATH variable instead of "../domestic" when deciding to build the secr set.


# 1.133 09-Feb-2000 tron

"sendmail" is in "src/gnu/usr.sbin/sendmail" now.


# 1.132 05-Feb-2000 jlam

Install correct ld.so.conf if etc.${MACHINE}/ld.so.conf exists.


# 1.131 04-Feb-2000 veego

Install named/0000:0000:0000:0000:0000:0000:000 and ntp.conf to fix the
damage in distrib/lists.


# 1.130 02-Feb-2000 veego

We don't have a bind4.


# 1.129 13-Dec-1999 christos

Pick up a machine dependent ld.so.conf


# 1.128 05-Nov-1999 mycroft

branches: 1.128.2;
Install root's .shrc.


# 1.127 20-Oct-1999 perry

Add an at.deny file by default, so that (by default) users can use at
and batch (as is historic practice, and as was our practice before
last year.) If someone wants to disable such use, they can just remove
the file.


# 1.126 26-Sep-1999 mjl

Use sendmail.cf from $DESTDIR/etc instead of /etc for building the
aliases.db since that fails if we have a sendmail.cf installed that
has no MAILER(local) like nullclient.


# 1.125 15-Sep-1999 sommerfeld

branches: 1.125.2;
Use ${CONFIG} rather than config so cross-builds can correctly select which one to use.


# 1.124 21-Aug-1999 simonb

Use ${INSTPRIV} with ${INSTALL}.


# 1.123 22-Jul-1999 is

Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.


# 1.122 21-Jul-1999 mycroft

Make an aliases.db file when we install the aliases file.


# 1.121 04-Jul-1999 fvdl

sparc and i386 do not have ld.so.conf anymore now that they're switched
(or about to switch) to ELF.


# 1.120 02-Jul-1999 itojun

rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)


# 1.119 30-Jun-1999 ross

Document BUILD_KERNELS.


# 1.118 20-May-1999 gwr

The snap_kern target is not sufficiently flexible.
Allow Makefile.in to provide its own.


# 1.117 26-Apr-1999 simonb

+ Put directories to create in ${RELEASEDIR} into a variable that
port-specific Makefiles can add to.
+ Separate snap_md into snap_md_pre and snap_md_post that are depended
on before and after snap_kern.
+ Build all kernels listing in ${BUILD_KERNELS}, but don't put them in
${RELEASEDIR}.


# 1.116 09-Apr-1999 fair

OK, adjust the kernel finder one more time to handle the case of a config
file that just does "include" GENERIC, and therefore has no "config" line.
It's simplest to assume that "netbsd" will be the result in that case.
Rather than duplicate config(8)'s parser in awk (or something), we should
adjust config to parse the config file and spit out the kernel names, and
then use that to replace this awk script thing.


# 1.115 08-Apr-1999 fair

Slight tweak to the EXTRA_KERNELS build commands to work around a shell
parsing wierdness.


# 1.114 04-Apr-1999 fair

NetBSD's very clever kernel build system can make more than one
kernel per config file and the resulting kernel need not be named
"netbsd"; therefore paw through the config file after the kernel
builds are done, find them all, and put them where they belong per
release(7). This all done with some clever awk/sh scripting, from
PR 7180 by David Forbes.


# 1.113 03-Apr-1999 fair

Create /var/log/aculog with appropriate permissions, per PR 6675


# 1.112 29-Mar-1999 perry

branches: 1.112.2;
NO_POSTFIX should have been BUILD_POSTFIX with reversed sense.


# 1.111 28-Mar-1999 simonb

Add a NO_POSTFIX check to allow \'make distribution\' to work.


# 1.110 26-Mar-1999 mrg

postfix support.


# 1.109 24-Mar-1999 drochner

install wscons.conf


# 1.108 14-Mar-1999 drochner

introduce a "wscons" rc.conf flag and run /etc/rc.wscons from /etc/rc
if it is set


# 1.107 10-Mar-1999 scottr

Make the includes and install targets consistent, and shove the
ugly hack into the etc/Makefile distribution target instead of
the top-level build target. Problem noted by Mycroft.


# 1.106 07-Mar-1999 cjs

Add comment that release is a synonym for snapshot, and make release
present everywhere snapshot is.


# 1.105 05-Mar-1999 mycroft

Only install ld.so.conf on machines where we install ld.aout_so.


# 1.104 18-Feb-1999 itohy

Make "make release" work without US domestic source
and with more than one extra kernels.


# 1.103 18-Feb-1999 fair

The "secr" set is not made by default by maketars; add stuff to
make it unless EXPORTABLE_SYSTEM is set.


# 1.102 18-Feb-1999 fair

Remove "tar" command from EXTRA_KERNELS section; those files are
expected to be ".gz" not ".tgz"


# 1.101 12-Feb-1999 lukem

convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.


# 1.100 11-Feb-1999 cjs

Use slightly cleaner syntax for release/snapshot target.


# 1.99 11-Feb-1999 cjs

Add a `release' target, which is a synonym for `snapshot.'


# 1.98 09-Feb-1999 cjs

Change a BUILD to an UPDATE that I missed in the last commit.


# 1.97 06-Feb-1999 cjs

.ifndef BUILD should be .ifndef UPDATE (to avoid `make clean').


# 1.96 04-Feb-1999 cjs

Update all this crap so that `make snapshot' makes snapshots in release(7)
format, rather than in some unknown format. Also clean up the code a bit,
remove some code duplication, and add documentation to the Makefile.


# 1.95 21-Jan-1999 mycroft

Make the default named configuration more ... sane.


# 1.94 16-Jan-1999 lukem

install sample nsswitch.conf


# 1.93 05-Jan-1999 abs

Install /etc/skeykeys 600 - from PR6519 by andrew@untraceable.net, tested OK.


# 1.92 25-Dec-1998 perry

add mailer.conf, and leave a bit more room in the BIN1 lines for the future


# 1.91 19-Nov-1998 tron

BIND 8 is the default now.


# 1.90 01-Nov-1998 kim

Pay attention to NO_SENDMAIL and USE_BIND8


# 1.89 29-Oct-1998 bad

A basic /etc/rc.shutdown. Bails out if do_rcshutdown!=YES in /etc/rc.conf
(default is YES). Kills xdm and waits for it to terminate if it was enabled
in rc.conf (based on a code snippet from Ignatios).


# 1.88 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.87 21-Jul-1998 perry

Add a variable, INSTALL_DONE, that indicates that a make install was
already done (say, by "make build"). This is often of help when
building releases.


# 1.86 21-Dec-1997 mikel

back out last change, /etc/aliases.db now auto-rebuilt by default sendmail.cf


# 1.85 17-Dec-1997 mikel

build $DESTDIR/etc/aliases.db in distribution: target


# 1.84 17-Dec-1997 perry

add an ld.so.conf for all ports


# 1.83 01-Dec-1997 mrg

create etc/mtree/Makefile and let it deal with what files are installed.


# 1.82 23-Nov-1997 perry

cribloo -> criblog


# 1.81 20-Nov-1997 mrg

install empty games data files with the correct perms for a distribution.


# 1.80 10-Nov-1997 jonathan

Allow etc.{$MACHINE_ARCH}/Makefile.inc to add files to BIN1, BIN2, BIN3.


# 1.79 23-Oct-1997 chuck

fix typeo in prev commit


# 1.78 19-Oct-1997 hubertf

branches: 1.78.2;
Install BSD.pkg.dist in ${DESTDIR}/etc/mtree
(used from within bsd.port.mk)


# 1.77 08-Oct-1997 mycroft

Add a BIN3 for files installed with mode 0600 (e.g. hosts.equiv).


# 1.76 12-Sep-1997 mycroft

f before t...


# 1.75 07-Sep-1997 mycroft

Nuke myname.


# 1.74 29-Aug-1997 veego

Add rc.subr to BIN1


# 1.73 30-Jul-1997 perry

add a default minfree file (requested by David Brownlee, pr-1577)


# 1.72 21-Jun-1997 mikel

add sample /etc/profile, cribbed shamelessly from csh.login. consists
solely of comments.


# 1.71 31-May-1997 cjs

Back out BUILDDIR and NOINSTALL changes.


# 1.70 25-May-1997 cjs

branches: 1.70.2;
These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.


# 1.69 01-Apr-1997 perry

Add /var/log/authlog and /var/log/xferlog.
The permissions and especially ownerships of all the /var/log files
should be re-examined -- bin:bin really isn't right for these files.


# 1.68 24-Mar-1997 perry

remove chroot on pwd_mkdb -- use -d option instead


# 1.67 12-Mar-1997 perry

mtree/4.4BSD.dist -> mtree/NetBSD.dist


# 1.66 25-Feb-1997 mikel

merge in 4.4BSD-Lite2 changes. only SCCS IDs were changed, since all
of the lite1-lite2 differences were either already present or
inappropriate.


# 1.65 21-Feb-1997 mikel

merge lite-1 changes (ftpwelcome, .klogin perms).
also eliminate redundant copy of motd.


# 1.64 09-Feb-1997 pk

Missing `)'.


# 1.63 21-Jan-1997 mikel

install namedb files from subshell so distribution target will work
with -j; from PR misc/3116


# 1.62 16-Jan-1997 perry

mail.rc now installed by 'make distribution' -- fixes pr-3015


# 1.61 08-Jan-1997 thorpej

Add missing "\".


# 1.60 08-Jan-1997 mrg

add files related to the new rc world order.


# 1.59 29-Nov-1996 jtk

add floppy formatting table


# 1.58 19-Nov-1996 lukem

- send authpriv to /var/log/secure only (not to console or /var/log/messages)
(closed [misc/574])
- send ftp to /var/log/xferlog
- prevent anything that goes to a restricted file (e.g., /var/cron/log)
ending up in /var/log/messages
- rotate /var/lgo/secure
- install the default logs with permissions consistant with those
set by newsyslog.conf (and commonsense)


# 1.57 26-Oct-1996 ragge

Move vax-specific microcode install stuff into etc.vax.


# 1.56 17-Oct-1996 thorpej

Use ${INSTALL}.


# 1.55 15-Oct-1996 perry

add a comment documenting what the NOOBJ variable is here for.


# 1.54 15-Oct-1996 perry

remove md tahoe conditionals -- we don't need them.


# 1.53 05-Jun-1996 cgd

add a no-op 'includes' target for completeness. make 'make distribution'
do a 'make includes' as well as install, so that distribution trees will
contain includes.


# 1.52 21-May-1996 mrg

install mrouted.conf, networks and rbootd.conf. pr#2288


# 1.51 01-Nov-1995 pk

branches: 1.51.4;
Include `usr/libdata' in snapshot (from Arne Juul; PR#1711).


# 1.50 17-Oct-1995 thorpej

New-style RCS id.


# 1.49 07-Oct-1995 tls

branches: 1.49.2;
distribution target should run MAKEDEV; it's both harmless for tar distributions and useful for making bootable distribution media


# 1.48 28-Jun-1994 deraadt

in the name of compatibility, link /etc/rmt -> /usr/sbin/rmt, since
"/etc/rmt" is hardcoded into many old rmt-using programs.


# 1.47 18-Jun-1994 cgd

update for new mtree, and a bit or paranoia!


# 1.46 16-Jun-1994 deraadt

motd defaults to 664 root:wheel, and the mode is not changed every reboot


# 1.45 14-Jun-1994 cgd

update to new security script


# 1.44 24-May-1994 deraadt

create skey password file


# 1.43 17-Apr-1994 glass

move bootpd from othersrc to libexec. add bootptab file


# 1.42 06-Apr-1994 cgd

add default ftpchroot (with bogus entry) for the latest ftpd mods


# 1.41 05-Mar-1994 cgd

add 'snapshot' target, including machine-dependent targets


# 1.40 19-Feb-1994 cgd

daily, montly, weekly no longer special


# 1.39 19-Feb-1994 cgd

msgs stuff


# 1.38 16-Feb-1994 cgd

dtrt with /var/cron/log


# 1.37 10-Feb-1994 cgd

make DESTDIR in distrib-dirs if it doesn't already exist.


# 1.36 09-Feb-1994 cgd

slight consistency


# 1.35 09-Feb-1994 cgd

install a prototype sendmail.cf


# 1.34 05-Feb-1994 cgd

fix jtc's recent Makefile.inc change, and be paranoid about 'make distribution'


# 1.33 05-Feb-1994 cgd

pull ttys out of ${MACHINE}


# 1.32 04-Feb-1994 jtc

Include etc.${MACHINE}/Makefile.inc if it exists.
This will allow us to separate machine dependant and machine independant
install stuff/make targets/etc.


# 1.31 27-Jan-1994 jtc

Use mtree to install ${DESTDIR}/usr


# 1.30 07-Jan-1994 jtc

Use mtree to install ${DESTDIR}/var


# 1.29 07-Jan-1994 jtc

Have to create ${DESTDIR} before mtree can do its thing.


# 1.28 07-Jan-1994 jtc

Remove lots of mkdirs/chmods/chowns and enable root "mtree".


# 1.27 07-Jan-1994 jtc

Added mtree commands to distrib-dirs target.
(Currently commented out until mtree files are updated)


# 1.26 11-Dec-1993 mycroft

Add at(1) directories to distrib-dirs.


# 1.25 26-Oct-1993 jtc

Create /var/msgs.


# 1.24 31-Jul-1993 mycroft

Add RCS identifiers.


# 1.23 17-Jul-1993 cgd

do the right thing with TZDIR


# 1.22 30-May-1993 cgd

fix stupid vi typo


# 1.21 28-May-1993 cgd

fix makefile for new f***ing cron, once and for all.


# 1.20 28-May-1993 cgd

adjust owner/group for new cron security checking


# 1.19 25-May-1993 deraadt

Make the /etc/localtime symbolic link in "make distribution" instead


# 1.18 21-May-1993 cgd

arrange for all log rotations to be handled by /usr/bin/newsyslog


# 1.17 17-May-1993 cgd

make sys point to /usr/src/sys


# 1.16 29-Apr-1993 cgd

make /usr/obj and /var/db/locate.database when making distribtion


# 1.15 12-Apr-1993 cgd

forgot a \...


# 1.14 12-Apr-1993 cgd

oops. screwed that up...


# 1.13 12-Apr-1993 cgd

make /var/spool/output and /kern, and disable example printer


# 1.12 12-Apr-1993 cgd

needed -f on that rm...


# 1.11 10-Apr-1993 cgd

get rid of /sys before you try to make the symlink...


# 1.10 10-Apr-1993 cgd

forgot to get rid of a \...


# 1.9 10-Apr-1993 cgd

make chmods explicit


# 1.8 10-Apr-1993 cgd

goddamned v macro added rcsid...


# 1.7 10-Apr-1993 cgd

added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)


# 1.6 03-Apr-1993 cgd

move prototype fstab files into /etc rather than /


# 1.5 02-Apr-1993 glass

Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support


# 1.4 02-Apr-1993 cgd

added `myname' to list of things to install (in support of
"better netstart")


# 1.3 02-Apr-1993 glass

installs crontab in right place


# 1.2 29-Mar-1993 cgd

make passwd db right on "distribution"


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.1.1.3 25-Feb-1997 mikel

import 4.4BSD-Lite2


# 1.1.1.2 14-Feb-1997 mikel

import 4.4BSD-Lite


# 1.1.1.1 21-Mar-1993 cgd

initial import of 386bsd-0.1 sources


# 1.49.2.1 01-Nov-1995 pk

Update from trunk: include libdata in snapshot.
Back to $NetBSD$ RCSId.


# 1.51.4.1 05-Jun-1996 cgd

pull up from trunk:
>add a no-op 'includes' target for completeness. make 'make distribution'
>do a 'make includes' as well as install, so that distribution trees will
>contain includes.


# 1.70.2.4 21-Sep-1997 cjs

Oops; accidently deleted bsd.own.mk include when merging.


# 1.70.2.3 18-Sep-1997 cjs

Update to 1.76.


# 1.70.2.2 18-Sep-1997 cjs

Remove myname from list of files to install.


# 1.70.2.1 17-Jun-1997 cjs

Remove `make includes'; `make install' already does that.


# 1.78.2.6 20-Jul-1998 mellon

Pull up 1.84 (fvdl)


# 1.78.2.5 14-Dec-1997 mellon

Install BSD.x11.dist


# 1.78.2.4 23-Nov-1997 perry

pullup from trunk: cribloo -> criblog


# 1.78.2.3 20-Nov-1997 mrg

pull up from trunk: install empty games data files with the correct perms for a distribution.


# 1.78.2.2 11-Nov-1997 mellon

Pull rev 1.80 up from trunk (jonathan)


# 1.78.2.1 23-Oct-1997 chuck

fix typeo in prev commit


# 1.112.2.8 24-Oct-2000 he

Pull up revision 1.165 (requested by simonb):
Use /etc/skel only for skeleton files for useradd. Fixes PR#10985.


# 1.112.2.7 09-Jul-2000 he

Pull up revisions 1.119,1.123,1.135,1.136 (via patch, requested by he):
Enhance the "make release" process:
o Build install notes on all platforms, put into release tree
o Document BUILD_KERNELS
o Always build GENERIC, and install the kernel in the kernel
release directory; checksum the kernel(s) there
o Use a separate script to compute checksums


# 1.112.2.6 27-Nov-1999 he

Pull up revision 1.122 and 1.126 (via patch, requested by mycroft):
Create and install $DESTDIR/etc/aliases.db, using
$DESTDIR/etc/sendmail.cf, so that sendmail works "out of the
box".


# 1.112.2.5 20-Jun-1999 perry

pullup 1.116->1.118 (gwr)


# 1.112.2.4 09-Apr-1999 fair

Pull up 1.116 (this time, for sure!)


# 1.112.2.3 08-Apr-1999 fair

pull up 1.115


# 1.112.2.2 04-Apr-1999 fair

Pull up 1.114


# 1.112.2.1 04-Apr-1999 fair

pull up 1.113


# 1.125.2.1 27-Dec-1999 wrstuden

Pull up to last week's -current.


# 1.128.2.2 05-Nov-1999 mycroft

Install root's .shrc.


# 1.128.2.1 05-Nov-1999 mycroft

file Makefile was added on branch comdex-fall-1999 on 1999-11-05 11:31:41 +0000


# 1.150.2.1 23-Jun-2000 minoura

Sync w/ netbsd-1-5-base.


# 1.154.2.9 23-Oct-2000 tv

Pullup 1.167 [jmc]:
Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint
and rm complains because it can't actually nuke the mount point. Anything
serious like permissions or I/O errors will get caught in the install's
after this anyways.


# 1.154.2.8 21-Oct-2000 tv

Pullup 1.158 [tsutsui]:
Do not create the binary/security directory, there is no seperate
security set anymore.


# 1.154.2.7 20-Oct-2000 tv

Pullup 1.165 [simonb]:
Use /etc/skel only for skeleton files for useradd.
Fixes PR bin/10985.


# 1.154.2.6 16-Oct-2000 tv

Pullup 1.164 [hubertf]:
Fix typo in iso-image target that led to the cdrom-directory not being
excluded in the iso image (nothing harmful).


# 1.154.2.5 01-Oct-2000 lukem

pull up rev 1.162 (approved by thorpej):
move default config files from /etc/default -> /etc/defaults, to be
consistent with what FreeBSD uses /etc/defaults for, and since SVR4
uses /etc/default for another purpose.
as discussed on tech-userlevel, and no objections were made.


# 1.154.2.4 01-Oct-2000 thorpej

Pull up rev. 1.163:
Do the `distribution' target for usr.bin/ssh, too.


# 1.154.2.3 01-Oct-2000 hubertf

Pull up to netbsd-1-5 branch, OK'd by jhawk:

Revisions:
> cvs rdiff -r1.160 -r1.161 basesrc/etc/Makefile
> cvs rdiff -r1.23 -r1.24 basesrc/etc/etc.i386/Makefile.inc
> cvs rdiff -r1.7 -r1.8 sharesrc/share/man/man7/release.7

Log:
> Add standalone "iso-image" target that can be run with DESTDIR and RELEASEDIR
> set in src/etc after a "make release" in both "src" and "xsrc", to create a
> ISO-image of the release in $RELEASEDIR/installation/cdrom.
>
> Hook for architecture dependent pre/post-processing in etc/etc.*/Makefile.inc
> are available as 'iso-image_md_post' and 'iso-image_md_pre', see
> etc/etc.i386/Makefile.inc as an example. Might be useful for setting up
> bootable CDs on alpha, sparc, ...
>
> Reviewed by Todd Whitesel and Thomas Klausner.


# 1.154.2.2 23-Aug-2000 lukem

pull up rev 1.159 (approved by thorpej):
- migrate default installation config files from /etc to /etc/default
- move guts of etc/rc.wscons -> etc/rc.d/wscons


# 1.154.2.1 20-Jun-2000 lukem

file Makefile was added on branch netbsd-1-5 on 2000-08-23 11:58:13 +0000


# 1.219.2.4 24-Nov-2002 tron

Pull up revision 1.228 (requested by grant in ticket #904):
create /etc/mail/local-host-names, required by sendmail(8).


# 1.219.2.3 10-Jun-2002 lukem

Pull up revision 1.222 (requested by lukem in ticket #251):
use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog


# 1.219.2.2 30-May-2002 tv

Pull up revision 1.221 (requested by itojun in ticket #100):
have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)


# 1.219.2.1 30-May-2002 tv

Pull up revision 1.220 (requested by itojun in ticket #74):
set TARGET_ENDIANNESS appropriately.


# 1.284.2.1 28-Jul-2004 jmc

branches: 1.284.2.1.2;
Pullup patch (requested by he in ticket #725)

Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.


# 1.284.2.1.2.2 05-Apr-2007 bouyer

Pull up following revision(s) (requested by bad in ticket #11284):
etc/etc.sgimips/Makefile.inc: revision 1.15 via patch
etc/Makefile: revision 1.342 via patch
Handle mkisofs from recent cdrtool for el-torito boot image.
Sync sgimips's Makefile (cosmetic only).


# 1.284.2.1.2.1 05-May-2005 riz

Pull up revision 1.302 (requested by fredb in ticket #1121):
Permit a "README", "SOURCE_DATE", and "source" at the top-level to be
added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".


# 1.306.2.11 06-Jun-2007 liamjfoy

Pull up following revision(s) (requested by bad in ticket #1753):
etc/etc.sgimips/Makefile.inc: revision 1.15
etc/Makefile: revision 1.342
Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.
Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.


# 1.306.2.10 25-Aug-2006 ghen

Pull up following revision(s) (requested by jmmv in ticket #1464):
etc/motd.stable: revision 1.1
etc/Makefile: revision 1.335
Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.
This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


# 1.306.2.9 06-Aug-2006 tron

Pull up following revision(s) (requested by jmmv in ticket #1450):
etc/Makefile: revision 1.334
etc/motd.rc: revision 1.1
etc/motd.current: revision 1.1
etc/motd.beta: revision 1.1
When using a development version of the system (be it current, a beta or
a release candidate), tell the user that he might expect problems and how
to effectively report them to the developers.
No objections in tech-userlevel@; only positive responses.


# 1.306.2.8 07-Oct-2005 tron

Pull up following revision(s) (requested by lukem in ticket #871):
etc/mtree/special: revision 1.87
etc/Makefile: revision 1.313
Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.


# 1.306.2.7 04-Sep-2005 tron

Pull up following revision(s) (requested by jwise in ticket #725):
etc/named.conf: revision 1.1
etc/namedb/named.conf: file removal
etc/namedb/Makefile: revision 1.2
etc/Makefile: revision 1.314
distrib/sets/lists/etc/mi: revision 1.159
Move "named.conf" example configuration to "/etc" because that is where
named(8) looks for it. You can now really get a caching name server
by simply setting "named=yes" in "/etc/rc.conf" as documented in
The NetBSD Guide. This fixes PR bin/30662 by Christian Hattemer.


# 1.306.2.6 20-Apr-2005 tron

Pull up revision 1.312 (requested by lukem in ticket #164):
Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).


# 1.306.2.5 06-Apr-2005 tron

Pull up revision 1.311 (requested by jmc in ticket #114):
Install all obsolete X11 sets (even empty ones).


# 1.306.2.4 06-Apr-2005 tron

Pull up revision 1.310 (requested by jmc in ticket #114):
We must check for "${MACHINE}" and not "${MACHINE_ARCH}" of course to
decide about port specific obsolete lists.


# 1.306.2.3 06-Apr-2005 tron

Pull up revision 1.309 (requested by jmc in ticket #114):
Checking for the file "xserver" in "${OBSOLETE.dir}" doesn't work because
the check will be done before the target which is used to create that file.
So simply add "xserver" to "${OBSOLETE.file}" based on the architecture.


# 1.306.2.2 06-Apr-2005 tron

Pull up revision 1.308 (requested by jmc in ticket #114):
Make var/db/obsolete/xserver optional.


# 1.306.2.1 06-Apr-2005 tron

Pull up revision 1.307 (requested by jmc in ticket #114):
Add support for handling obsolete X11 files and directories.


# 1.334.2.1 25-Aug-2006 tron

Pull up following revision(s) (requested by jmmv in ticket #20):
etc/motd.stable: revision 1.1
etc/Makefile: revision 1.335
Add a "how to report bugs" message for STABLE branches too, as they really
are development snapshots (although not as "bleeding edge" as current).
Per tron@'s suggestion.
This way we get consistent messages along the development process. Otherwise,
STABLE could carry no message while a RC could, disappearing again after the
real formal release. With this change only formal releases do not carry any
special message in motd.


# 1.337.2.4 01-Feb-2008 riz

Pull up following revision(s) (requested by elad in ticket #1012):
etc/login.conf: revision 1.1
etc/login.conf: revision 1.2
etc/Makefile: revision 1.338
distrib/sets/lists/etc/mi: revision 1.186
Add an commented out login.conf with a simple example based on OpenBSD.
Requested by Elad.
Add login.conf.
Add /usr/pkg/{,s}bin to the default path for the default class for
login.conf.
Add /etc/login.conf.


# 1.337.2.3 01-Feb-2008 riz

Pull up following revision(s) (requested by minskim in ticket #1005):
etc/Makefile: revision 1.347
Remove MKUUCP from RELEASEVARS. It is no longer used in src.


# 1.337.2.2 06-Apr-2007 bouyer

branches: 1.337.2.2.2;
Pull up following revision(s) (requested by bad in ticket #557):
etc/etc.sgimips/Makefile.inc: revision 1.15
etc/Makefile: revision 1.342
Handle mkisofs from recent cdrtool for el-torito boot image.
Sync sgimips's Makefile (cosmetic only).


# 1.337.2.1 08-Mar-2007 riz

Pull up following revision(s) (requested by bouyer in ticket #494):
sys/arch/i386/conf/GENERIC.MP: revision 1.9
distrib/pc532/cdroms/installcd/Makefile: revision 1.1
distrib/macppc/Makefile: revision 1.15
distrib/ofppc/Makefile: revision 1.2
distrib/ibmnws/Makefile: revision 1.2
distrib/acorn32/Makefile: revision 1.18
distrib/x68k/cdroms/installcd/Makefile: revision 1.1
distrib/sparc/Makefile: revision 1.7
distrib/sparc64/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/Makefile: revision 1.1
distrib/hpcsh/Makefile: revision 1.6
distrib/ofppc/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/Makefile: revision 1.13
distrib/news68k/cdroms/installcd/Makefile: revision 1.1
distrib/amiga/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/installcd/Makefile: revision 1.1
distrib/playstation2/cdroms/Makefile: revision 1.1
distrib/amiga/cdroms/Makefile: revision 1.1
etc/etc.mac68k/Makefile.inc: revision 1.18
distrib/shark/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/Makefile: revision 1.28
distrib/hpcmips/cdroms/Makefile: revision 1.1
distrib/amd64/floppies/Makefile: revision 1.3
sys/arch/amd64/conf/INSTALL_ACPI: file removal
distrib/i386/cdroms/Makefile: revision 1.4
distrib/acorn26/cdroms/installcd/Makefile: revision 1.1
distrib/hpcsh/cdroms/Makefile: revision 1.1
distrib/prep/cdroms/Makefile: revision 1.1
distrib/pc532/Makefile: revision 1.4
distrib/acorn32/cdroms/installcd/Makefile: revision 1.1
distrib/sun2/Makefile: revision 1.8
distrib/vax/Makefile: revision 1.17
distrib/sparc64/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/cdroms/Makefile: revision 1.1
distrib/mipsco/cdroms/installcd/Makefile: revision 1.1
distrib/sun3/cdroms/installcd/Makefile: revision 1.1
distrib/vax/cdroms/installcd/Makefile: revision 1.1
distrib/hpcarm/cdroms/installcd/Makefile: revision 1.1
distrib/mvme68k/Makefile: revision 1.4
distrib/mvmeppc/cdroms/Makefile: revision 1.1
distrib/newsmips/Makefile: revision 1.4
sys/arch/i386/conf/GENERIC.MPACPI: file removal
distrib/hpcarm/cdroms/Makefile: revision 1.1
distrib/evbppc/cdroms/Makefile: revision 1.1
sys/arch/i386/conf/INSTALL_LARGE: revision 1.1
distrib/i386/cdroms/installcd/Makefile: revision 1.2
distrib/i386/cdroms/installcd/Makefile: revision 1.3
doc/CHANGES: revision 1.804
distrib/hpcsh/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.2
distrib/mvmeppc/cdroms/installcd/Makefile: revision 1.1
distrib/i386/cdroms/bootcd/Makefile: revision 1.3
distrib/evbarm/Makefile: revision 1.8
distrib/mvmeppc/Makefile: revision 1.3
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/cdroms/bootcd-com/Makefile: revision 1.3
distrib/macppc/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/cdroms/Makefile: revision 1.1
distrib/alpha/cdroms/Makefile: revision 1.1
distrib/hp300/cdroms/installcd/Makefile: revision 1.1
distrib/amd64/floppies/bootfloppy/Makefile: revision 1.4
distrib/pmppc/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/Makefile: revision 1.2
distrib/pmppc/Makefile: revision 1.2
distrib/arc/cdroms/Makefile: revision 1.1
sys/arch/amd64/conf/INSTALL: revision 1.66
distrib/sun3/cdroms/Makefile: revision 1.1
distrib/mipsco/Makefile: revision 1.4
distrib/sun3/Makefile: revision 1.9
distrib/vax/cdroms/Makefile: revision 1.1
distrib/pmppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile.cdrom: revision 1.1
distrib/atari/cdroms/installcd/Makefile: revision 1.1
distrib/evbppc/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/installcd/Makefile: revision 1.1
distrib/pmax/Makefile: revision 1.4
Makefile: revision 1.247
distrib/cats/cdroms/installcd/Makefile: revision 1.1
sys/arch/amd64/conf/GENERIC: revision 1.130
sys/arch/amd64/conf/GENERIC: revision 1.131
distrib/sgimips/cdroms/installcd/Makefile: revision 1.1
distrib/hp700/cdroms/Makefile: revision 1.1
distrib/cats/cdroms/Makefile: revision 1.1
distrib/evbmips/Makefile: revision 1.3
distrib/evbmips/Makefile: revision 1.4
sys/arch/amd64/conf/GENERIC_ACPI: file removal
distrib/ews4800mips/Makefile: revision 1.2
distrib/amd64/cdroms/bootcd-com/Makefile: revision 1.2
distrib/i386/Makefile: revision 1.5
distrib/amd64/cdroms/installcd/Makefile: revision 1.2
distrib/mvme68k/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/cdroms/installcd/Makefile: revision 1.1
etc/etc.amd64/Makefile.inc: revision 1.7
distrib/i386/instkernel/Makefile: revision 1.6
distrib/x68k/cdroms/Makefile: revision 1.1
distrib/i386/cdroms/Makefile.cdrom: revision 1.1
distrib/sandpoint/Makefile: revision 1.4
distrib/i386/cdroms/Makefile.cdrom: revision 1.2
distrib/amiga/Makefile: revision 1.3
distrib/amd64/cdroms/bootcd/Makefile: revision 1.2
distrib/news68k/Makefile: revision 1.4
distrib/amd64/floppies/bootfloppy-com/Makefile: revision 1.5
distrib/news68k/cdroms/Makefile: revision 1.1
distrib/sparc/cdroms/Makefile: revision 1.1
distrib/shark/cdroms/Makefile: revision 1.1
etc/Makefile: revision 1.341
distrib/amd64/instkernel/Makefile: revision 1.2
distrib/sparc64/Makefile: revision 1.7
distrib/dreamcast/cdroms/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.3
distrib/ews4800mips/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/installcd/Makefile: revision 1.1
distrib/shark/Makefile: revision 1.4
distrib/macppc/cdroms/Makefile: revision 1.1
distrib/mvme68k/cdroms/Makefile: revision 1.1
distrib/sun2/cdroms/Makefile: revision 1.1
distrib/hpcarm/Makefile: revision 1.3
distrib/arc/cdroms/installcd/Makefile: revision 1.1
distrib/hpcmips/cdroms/installcd/Makefile: revision 1.1
distrib/mipsco/cdroms/Makefile: revision 1.1
distrib/Makefile.inc: revision 1.9
distrib/playstation2/cdroms/installcd/Makefile: revision 1.1
distrib/ibmnws/cdroms/installcd/Makefile: revision 1.1
distrib/newsmips/cdroms/Makefile: revision 1.1
distrib/arc/Makefile: revision 1.3
distrib/sparc/cdroms/installcd/Makefile: revision 1.1
distrib/evbmips/cdroms/installcd/Makefile: revision 1.1
distrib/ews4800mips/cdroms/installcd/Makefile: revision 1.1
distrib/prep/Makefile: revision 1.3
distrib/ibmnws/cdroms/Makefile: revision 1.1
distrib/sandpoint/cdroms/Makefile: revision 1.1
distrib/atari/Makefile: revision 1.6
distrib/sgimips/cdroms/Makefile: revision 1.1
distrib/amd64/Makefile: revision 1.4
distrib/atari/cdroms/Makefile: revision 1.1
distrib/x68k/Makefile: revision 1.5
distrib/x68k/Makefile: revision 1.6
distrib/sandpoint/cdroms/installcd/Makefile: revision 1.1
distrib/evbarm/cdroms/Makefile: revision 1.1
distrib/acorn32/cdroms/Makefile: revision 1.1
distrib/cats/Makefile: revision 1.3
distrib/evbmips/cdroms/Makefile: revision 1.1
distrib/pc532/cdroms/Makefile: revision 1.1
distrib/Makefile: revision 1.14
distrib/evbarm/cdroms/installcd/Makefile: revision 1.1
distrib/ofppc/cdroms/Makefile: revision 1.1
distrib/amd64/cdroms/Makefile: revision 1.3
distrib/common/Makefile.bootcd: revision 1.8
distrib/i386/cdroms/bootcd-laptop/Makefile: file removal
sys/arch/i386/conf/GENERIC: revision 1.813
distrib/hp300/Makefile: revision 1.17
sys/arch/i386/conf/GENERIC: revision 1.814
distrib/evbppc/Makefile: revision 1.2
distrib/pmax/cdroms/installcd/Makefile: revision 1.1
etc/etc.i386/Makefile.inc: revision 1.49
distrib/sgimips/Makefile: revision 1.2
distrib/prep/cdroms/installcd/Makefile: revision 1.1
distrib/acorn26/Makefile: revision 1.4
distrib/dreamcast/cdroms/installcd/Makefile: revision 1.1
distrib/alpha/Makefile: revision 1.22
distrib/dreamcast/Makefile: revision 1.2
Improve the use of makefs to build boot CDs, and make it truely MI:
- allow to specify the "instkernel" directory, and allow to put multiple
kernels on the image
- allow to specify the directory where the image will be created
- only use bootxx_cd9660 if it exists
- search for second-stage boot as usr/mdec/boot.${MACHINE} in addition to
usr/mdec/boot
- make 'installboot -e' optional
- use target 'release' or 'iso_image' depending on ${CDRELEASE}
- call some MD targets, which will eventually complete the file list or
make the image bootable
For the benefit of modern hardware, enable ACPI by default in INSTALL and
GENERIC kernels. If ACPI is an issue on your hardware, 'boot -c' and
'disable acpi' should be a workaround. ACPI-enabled kernels works fine
on pre-acpi hardware.
for amd64:
- add ACPI to INSTALL and GENERIC, remove the *_ACPI config files.
- get rid of the bootfloppy-big.fs boot image, and got to a 3-floppy boot
image
for i386:
- introduce INSTALL_LARGE which has ACPI and some devices with big firmware
- move some devices from INSTALL to INSTALL_LARGE
- Boot floppies still use INSTALL, and bootfloppy-big.fs is still there
(for thoses who want to build el-torito floppy emulation boot CD) and use
INSTALL.
For both, drop the 'iso-image' code in etc/ to make the iso bootable, we'll
use something else to build bootable CDs.
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.
call iso_image in distrib/ for iso-image in the top Makefile.
Use the new common/Makefile.bootcd to make i386 and amd64 bootable ISO
images. amd64 gets a single kernel; i386 images gets 3 kernels:
- netbsd, copy from netbsd-INSTALL_LARGE.gz, loaded by default
- nbsd-l, copy from netbsd-INSTALL_LAPTOP.gz
- nbsd-i, copy from netbsd-INSTALL.gz for those who want the traditionnal
non-ACPI kernel
- drop the bootcd-laptop image
both gets an installcd image, which is the same as bootcd but with the
binary sets in addition to kernels.
Make iso-image do nothing for all but mac68k, which still
relies on mkisofs to create bootable ISO image. macppc should also be there,
but it seems the code to make an iso bootable never got added in etc.macppc/
Fix typo in subdir name.
Revert local changes that went in accidentally with the "add ACPI" commit.
Note ACPI by default in i386/amd64, and the iso-image changes.
Fix SUBDIR in previous
Remove duplicate ACPIVERBOSE and ACPI_SCANPCI; pointed out by Nicolas Joly.
Correct typo: the directory is named cdroms, not cdrom.
Use nblaptop and nbnoacpi for the alternative kernel names; as suggected by
Alan Barrett. While there factor out the kernels in Makefile.cdrom.


# 1.337.2.2.2.1 03-Jun-2008 skrll

Sync with netbsd-4.


# 1.345.4.2 22-Mar-2008 matt

sync with HEAD


# 1.345.4.1 08-Jan-2008 matt

sync with HEAD


# 1.348.8.5 17-Jan-2009 mjf

Sync with HEAD.


# 1.348.8.4 05-Oct-2008 mjf

Sync with HEAD.


# 1.348.8.3 02-Jun-2008 mjf

Sync with HEAD.


# 1.348.8.2 03-Apr-2008 mjf

Sync with HEAD.


# 1.348.8.1 21-Feb-2008 mjf

Start where the mjf-devfs branch left off.


# 1.348.6.1 24-Mar-2008 keiichi

sync with head.


# 1.348.4.2 18-Feb-2008 mjf

Add some devfs code that's been sitting in my local tree for a while.

devfsd(8) is now the first daemon to be started after init(8). It tracks
device insertion (will eventually track removal) and devfs mounts.

Currently, we can mount multiple device file systems and have device
special files pushed into the mounts automatically, though, the device
special files aren't created with the correct major/minor number pairs
yet.

More work to come soon.


# 1.348.4.1 21-Nov-2007 mjf

file Makefile was added on branch mjf-devfs on 2008-02-18 22:07:01 +0000


# 1.350.2.2 03-Jun-2008 yamt

sync with head


# 1.350.2.1 18-May-2008 yamt

sync with head.


# 1.351.2.2 17-Sep-2008 wrstuden

Sync with wrstuden-revivesa-base-2.


# 1.351.2.1 22-Jun-2008 wrstuden

Sync w/ -current. 34 merge conflicts to follow.


# 1.359.2.7 07-Nov-2014 msaitoh

Pull up following revision(s) (requested by snj in ticket #1931):
share/man/man7/release.7: revision 1.32
distrib/common/Makefile.bootcd: revision 1.18
distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.15
distrib/notes/sparc/install: revision 1.57
etc/Makefile: revision 1.394
distrib/notes/common/main: revision 1.484
PR# install/44593: Please give release ISO's more meaningful names
Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.
ok snj@


# 1.359.2.6 30-Jan-2010 snj

branches: 1.359.2.6.2; 1.359.2.6.6;
Pull up following revision(s) (requested by dholland in ticket #1273):
etc/Makefile: revision 1.377
etc/Makefile: revision 1.378
Fix installation permissions of /var/db/locate.database as per PR misc/41544.


# 1.359.2.5 14-Oct-2009 sborrill

Pull up the following additional revisions(s) required by ticket #784:
etc/Makefile: revision 1.365
etc/audit-packages.conf: remove

Fix update release build (pointed out by tsutsui).


# 1.359.2.4 15-Sep-2009 snj

Apply patch (requested by tron in ticket #944):
Update Postfix to 2.6.5.


# 1.359.2.3 27-Mar-2009 msaitoh

branches: 1.359.2.3.2; 1.359.2.3.4;
Pull up following revision(s) (requested by sketch in ticket #536):
etc/Makefile: revision 1.364
Makefile: revision 1.267
usr.sbin/postinstall/postinstall: revision 1.90
usr.bin/hexdump/parse.c: revision 1.25
sys/arch/x86/acpi/genwakecode.sh: revision 1.3
usr.sbin/postinstall/postinstall: revision 1.87
usr.sbin/postinstall/postinstall: revision 1.88
usr.sbin/postinstall/postinstall: revision 1.89
sys/arch/x86/acpi/Makefile.wakecode.inc: revision 1.4
sys/conf/Makefile.kern.inc: revision 1.120
Use ll instead of non-standard q as length modifier in format strings. Makes
this work on Solaris. OK by apb.
Not every grep knows -q. Ok by apb.
Use sed, awk and hexdump from tools to make this work on Solaris. Ok by apb.
Use awk and grep host tools where required. 'build.sh release' now
works on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).
"grep -q" is not portable; use "grep >/dev/null" instead. Also add a
comment saying that postinstal is invoked during a cross build.
In file_exists_exact(), fix an incorrect test of "1" instead of "$1",
and improve the comment explaining what this function does.
As long as we don't yet have a working TOOL_GREP, fgrep is more portablethan grep -F.


# 1.359.2.2 06-Dec-2008 snj

Pull up following revision(s) (requested by cube in ticket #168):
etc/Makefile: revision 1.362
Let the build descend in rc.d during "build" and not just use it for
"distribution".


# 1.359.2.1 15-Nov-2008 snj

Pull up following revision(s) (requested by mrg in ticket #64):
distrib/sets/Makefile: revision 1.64
external/mit/xorg/server/Makefile: revision 1.5
share/mk/bsd.README: revision 1.237
BUILDING: revision 1.79
share/mk/bsd.x11.mk: revision 1.71
share/mk/bsd.own.mk: revision 1.544
usr.bin/ssh/Makefile.inc: revision 1.18
distrib/sets/sets.subr: revision 1.72
share/man/man5/mk.conf.5: revision 1.42
doc/BUILDING.mdoc: revision 1.68
etc/Makefile: revision 1.360
Makefile: revision 1.263
- retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
for the X11 to build if MKX11=yes is set. it takes the values
of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful


# 1.359.2.6.6.1 07-Nov-2014 msaitoh

Pull up following revision(s) (requested by snj in ticket #1931):
share/man/man7/release.7: revision 1.32
distrib/common/Makefile.bootcd: revision 1.18
distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.15
distrib/notes/sparc/install: revision 1.57
etc/Makefile: revision 1.394
distrib/notes/common/main: revision 1.484
PR# install/44593: Please give release ISO's more meaningful names
Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.
ok snj@


# 1.359.2.6.2.1 07-Nov-2014 msaitoh

Pull up following revision(s) (requested by snj in ticket #1931):
share/man/man7/release.7: revision 1.32
distrib/common/Makefile.bootcd: revision 1.18
distrib/notes/macppc/prep.OPENFIRMWARE: revision 1.15
distrib/notes/sparc/install: revision 1.57
etc/Makefile: revision 1.394
distrib/notes/common/main: revision 1.484
PR# install/44593: Please give release ISO's more meaningful names
Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.
ok snj@


# 1.359.2.3.4.3 18-Dec-2013 matt

Deal with MACHINE_ARCH of armv7/armv7eb.
Split out mips64 compat dirs.


# 1.359.2.3.4.2 20-Apr-2010 matt

sync to netbsd-5


# 1.359.2.3.4.1 08-Sep-2009 matt

Add MKCXX, MKATF, and MKGROFF


# 1.359.2.3.2.1 15-Oct-2009 sborrill

Pull up the following additional revisions(s) required by ticket #784:
etc/Makefile: revision 1.365
etc/audit-packages.conf: removed

Retire audit-packages.conf, it was obsoleted by the pullup of
pkg_install-20090201.


# 1.363.2.1 13-May-2009 jym

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html


# 1.384.2.1 17-Feb-2011 bouyer

Sync with HEAD


# 1.392.2.6 22-May-2014 yamt

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")


# 1.392.2.5 22-Jan-2013 yamt

sync with head


# 1.392.2.4 15-Jan-2013 yamt

sync with (a bit old) head


# 1.392.2.3 30-Oct-2012 yamt

sync with head


# 1.392.2.2 16-Apr-2012 yamt

sync with head


# 1.392.2.1 10-Nov-2011 yamt

sync with head


# 1.396.2.2 17-Sep-2012 riz

Pull up following revision(s) (requested by spz in ticket #557):
distrib/sets/lists/base/ad.mips64eb 1.94-1.95 via patch
distrib/sets/lists/base/ad.mips64el 1.93-1.94 via patch
distrib/sets/lists/base/md.amd64 1.169-1.170 via patch
distrib/sets/lists/base/md.sparc64 1.159-1.160 via patch
distrib/sets/lists/base/shl.mi 1.629,1.630,1.632 via patch
distrib/sets/lists/comp/ad.mips64eb 1.81-1.82 via patch
distrib/sets/lists/comp/ad.mips64el 1.821.83 via patch
distrib/sets/lists/comp/md.amd64 1.168-1.169 via patch
distrib/sets/lists/comp/md.sparc64 1.150-1.151 via patch
distrib/sets/lists/comp/mi 1.1769 via patch
distrib/sets/lists/comp/shl.mi 1.226-1.227 via patch
distrib/sets/lists/tests/mi 1.477 via patch
distrib/sets/sets.subr 1.137 via patch
etc/Makefile 1.397 via patch
share/man/man5/mk.conf.5 1.60 via patch
share/mk/bsd.README 1.297 via patch
share/mk/bsd.own.mk 1.700 via patch
tests/crypto/libcrypto/Makefile patch
tests/crypto/libcrypto/t_ciphers.sh 1.4 via patch
tests/crypto/libcrypto/t_hashes.sh 1.2 via patch
tests/crypto/libcrypto/idea/Makefile patch
tests/crypto/libcrypto/mdc2/Makefile patch
usr.sbin/racoon/Makefile 1.25 via patch

Clean up MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal, so that
a tree with MKCRYPTO_RC5=yes actually builds.
[spz, ticket #557]

The "iso" directory never made it into this file, but now
that "iso" is "images", document it here for the edification of
folks browsing the download directories.
add crypto shared libraries
mark idea and mdc2 libraries obsolete.
remove mdc2 and idea handling
MKCRYPTO_{IDEA,MDC2} is no more
MKCRYPTO_IDEA is no more
no more CRYPTO_{IDEA,MDC2}
more MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal (resp, adjustment to IDEA and
MBC2 now always being included)
MKCRYPTO_RC5 now builds shared libs, add the missing files to sets


# 1.396.2.1 17-Aug-2012 martin

branches: 1.396.2.1.2;
Pull up following revision(s) (requested by riz in ticket #506):
distrib/amd64/liveimage/emuimage/Makefile: revision 1.2
distrib/amd64/liveimage/usbimage/Makefile: revision 1.2
distrib/sun2/liveimage/emuimage/Makefile: revision 1.2
distrib/amd64/installimage/Makefile: revision 1.2
distrib/sun3/liveimage/emuimage/Makefile: revision 1.2
distrib/pmax/liveimage/emuimage/Makefile: revision 1.2
distrib/vax/liveimage/emuimage/Makefile: revision 1.2
distrib/sparc64/liveimage/emuimage/Makefile: revision 1.2
distrib/common/Makefile.bootcd: revision 1.20
distrib/i386/liveimage/emuimage/Makefile: revision 1.2
distrib/sparc/liveimage/emuimage/Makefile: revision 1.2
distrib/i386/installimage/Makefile: revision 1.2
distrib/i386/liveimage/usbimage/Makefile: revision 1.2
etc/Makefile: revision 1.398
Change the naming scheme of "live" images and usb install images
to incorporate the OS name and version.
XXX should also not hardcode ${BOOTDISK} in the name, but that would
require reordering stuff and more testing than I have time for right now.
Another day.
As discussed on current-users@ back in March, with some adjustments.
Install fully-populated .iso images in ${RELEASEDIR}/images instead
of ${RELEASEDIR}/iso, since we'll be putting non-iso images in there too.
Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.


# 1.396.2.1.2.1 31-Oct-2012 matt

sync with netbsd-6-0-RELEASE.


# 1.398.2.4 19-Aug-2014 tls

Rebase to HEAD as of a few days ago.


# 1.398.2.3 23-Jun-2013 tls

resync from head


# 1.398.2.2 24-Feb-2013 tls

resync with head


# 1.398.2.1 19-Nov-2012 tls

Resync to 2012-11-19 00:00:00 UTC


# 1.412.2.1 10-Aug-2014 tls

Rebase.