Commit Graph

401 Commits

Author SHA1 Message Date
apb 3e31590ff0 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.
2012-12-03 13:53:28 +00:00
apb acfd2b168d 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.
2012-11-04 11:09:14 +00:00
apb 040e0f875d Add DISTRIBVER to the list of variables under RELEASEVARS. 2012-11-04 11:04:10 +00:00
riz a727e4697d Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.
2012-08-17 16:59:26 +00:00
christos bdb2cc007b MKCRYPTO_{IDEA,MDC2} is no more 2012-07-14 04:01:11 +00:00
tsutsui 3cf69f27e2 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.
2012-01-22 03:53:29 +00:00
joerg 6bc6b7aae6 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=...
2012-01-15 17:36:55 +00:00
jmcneill ce4646dd28 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@
2012-01-14 22:56:30 +00:00
yamt 85ccb2e960 update RELEASEVARS 2011-11-02 16:39:23 +00:00
jym f56903492e 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
2011-08-22 18:54:05 +00:00
matt 05461650d2 Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}
2011-06-30 18:15:13 +00:00
martin 470f713611 Get rid of var/chroot/tcpdump/etc 2011-04-17 13:07:18 +00:00
martin f327756f24 Ooops, fix source path for the "protocols" file 2011-04-11 21:49:13 +00:00
martin 75b76dfeb7 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.
2011-04-11 20:03:45 +00:00
uebayasi 51495ed0e7 Install "obsolete" files only when necessary. 2011-02-16 16:22:13 +00:00
uebayasi 0fe7ea2a0f Generate MAKEDEV only when really necessary. Write dependency correctly. 2011-02-16 16:20:06 +00:00
uebayasi d47c36d993 To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).
2011-02-16 15:52:51 +00:00
christos 4f848eee4b `` -> $() 2010-12-27 03:38:52 +00:00
njoly f23e744cdd Make tests set generation optional, skipped for MKATF=no build. 2010-12-08 23:56:01 +00:00
tsutsui 807849c28e 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.
2010-10-04 13:55:39 +00:00
rmind 2e6f2099c6 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@
2010-08-22 18:56:18 +00:00
roy 89d790bdbe Move the emergancy terminfo database from /root to /rescue. 2010-02-05 09:44:23 +00:00
roy 70f7be699b Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.
2010-02-04 21:01:16 +00:00
dholland fd438cf632 Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.
2010-01-12 04:44:06 +00:00
dholland 39f1d3fefb Fix installation permissions of /var/db/locate.database as per PR misc/41544. 2010-01-10 06:13:25 +00:00
he 66597865fb 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@
2009-12-11 15:22:33 +00:00
pooka 4098e2664f Install obsolete lists for modules. 2009-12-05 19:14:39 +00:00
uebayasi d166c4bf28 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.)
2009-11-30 16:13:22 +00:00
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
skrll 8a770313a3 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}.
2009-09-08 07:08:00 +00:00
mrg 2bd0cf0757 - 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".
2009-09-07 19:34:29 +00:00
mbalmer 70d654f756 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.
2009-07-25 16:20:10 +00:00
mrg 1cb295e0ed what was usr.bin/ssh is now openssh/bin, not openssh/bin/ssh. 2009-07-21 00:48:29 +00:00
mrg c0b992d345 enter the right bin/ssh subdir for "configinstall".
HI CHRISTOS!
2009-07-21 00:28:35 +00:00
tron 7d5e451c60 Switch to building Postfix 2.6.2 via "external/ibm-public/postfix". 2009-06-23 17:58:22 +00:00
apb aff2f5a7b4 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.
2009-04-23 11:29:29 +00:00
joerg ca7a1bd3eb Retire audit-packages.conf, it has been obsoleted by the merge of
pkg_install-20090201.
2009-02-26 19:43:39 +00:00
sketch bb0a3b607e 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).
2009-02-25 20:38:30 +00:00
jmmv 0cdcf7cea6 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.
2009-01-19 07:08:14 +00:00
cube 2a5b955aa9 Let the build descend in rc.d during "build" and not just use it for
"distribution".
2008-12-05 18:52:59 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
mrg 9c8df5ee67 - 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
2008-11-09 23:02:28 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
lukem d6e6997551 Improve support for MKXORG!=no to enable builds into external/mit/xorg.
This will be mutually exclusive to MKX11!=no.
2008-08-28 07:21:49 +00:00
joerg d249112fae Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.
2008-07-27 19:31:02 +00:00
dyoung d4ef85aece Add MKNVI to RELEASEVARS. Thanks lukem@. 2008-07-23 01:57:19 +00:00
joerg e4890f8abd Hook dhcpcd into build. 2008-05-24 19:39:30 +00:00
wiz d07f1e1727 Sort variables. 2008-05-23 13:06:40 +00:00
lukem 1b6b1060cc MKLDAP, USE_LDAP 2008-05-22 14:09:27 +00:00
gdt 6231d15c35 Remove gzipped kernel file just before running gzip >, avoiding
permission errors in unprivileged builds using a pre-existing
releasedir.
2008-05-07 21:30:26 +00:00