Commit Graph

4364 Commits

Author SHA1 Message Date
plunky b2965573f9 add ATF tests for libevent 2009-11-02 10:15:45 +00:00
tsarna 6022b5b8d4 Major enhancements to mdnsd nsswitch support:
- nss_mdns renamed to nss_multicast_dns for clarity and less chance of
   confusion with nss_mdnsd (see next).
 - Support using mdnsd for all unicast too with new nss_mdnsd module
   (note: this mode requires an updated mdnsd too, not yet committed)
 - Implement resolv.conf "search" directive support. Needed for nss_mdnsd,
   potentially useful with nss_multicast_dns (you could now do
   "search example.com local" in resolv.conf if you wanted to and it would
   act as you might expect)
 - Add references in nsswitch.conf man page and sample file
 - Implement AI_CANONNAME
 - Various bug fixes
2009-10-25 00:17:06 +00:00
haad f6e34e608b Add zfs volinit command, suggested by tnn@ this will initialize all zvols
defined in a system. So they can be mounted from fstab as regular block
devices.
2009-10-18 21:58:37 +00:00
stacktic bafb6c06d9 Fixed build with read-only source tree. 2009-10-18 12:41:06 +00:00
tron 2af3a92c12 Add directory "/etc/zfs". 2009-10-12 08:54:19 +00:00
snj f69ea56c7a Move libdrm headers up one level (out of the X11 directory) to match
the rest of the world and fix the inconsistency with libdrm.pc.
Fixes PR xsrc/42126.
2009-10-08 19:06:49 +00:00
tron 8b451badf9 Add proper error reporting via the return code:
Remember if any of the "route" commands failed and return an error in
that case.
2009-10-07 08:06:11 +00:00
tron 9435d86beb Add a "return 0" to avoid incorrect error returns because we ran out of
lines to read from "/etc/route.conf".
2009-10-07 07:51:28 +00:00
haad cc9255a89b Add support for mounting zfs filesystems to mountall script. ZFS configuration
is stored in /etc/zpool.cache and it is automatically loaded to kernel from
filesystem. Filesystems are then configured accordingly to their properties
loaded from cache file.
2009-10-05 22:39:27 +00:00
christos 875c2ae09f mdnsd home should not be /var/www! 2009-10-04 01:40:53 +00:00
mrg 0086b255f2 don't create xkb/compiled as a directory any more. 2009-10-02 00:00:59 +00:00
tsarna a4329df0cc mdnsd enhancements and fixes:
- Enhance the built-in drop-privs support and use it instead of
  having the rc.conf do it. Avoids log error on startup.
  From OpenSolaris, with enhancements.
- Add dumping of the unicast server list to the DumpStateLog
  debugging output, a'la Mac OS X.
- Fix a locking botch that caused warnings in the log.
- Fix FILE leak. From OpenSolaris.
2009-10-01 16:36:20 +00:00
tron 65817d0cbb Build the "MONOLITHIC" kernel configuration by default and include
in the release.

Using the modularise "GENERIC" kernel on an existing NetBSD 5.0 system
is difficult and error-prone. The "MONOLITHIC" kernel provides an
easy way to test a new kernel or to upgrade an existing system.
2009-10-01 11:51:03 +00:00
apb db5a8e6176 Document the fact that wpa_supplicant won't start properly unless
/usr is mounted by mountcritlocal.
2009-09-30 18:17:22 +00:00
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
mrg 00c85a89af add drm to the big comment at the top 2009-09-25 06:06:04 +00:00
pooka b4d274c027 add regression tests for dlinfo() 2009-09-24 21:33:45 +00:00
apb 27a9530c2c Adapt /etc/rc.d/swap1 and swap2 scripts to the new meaning of
exit status 2 from swapctl(8).
2009-09-24 16:45:48 +00:00
christos d7866d8f52 fix dri/drm confusiog 2009-09-24 14:53:36 +00:00
dholland 84e9f6e9f9 Make rtsold_flags default to -a as per PR 39657. 2009-09-19 19:47:48 +00:00
tron ca1f9d61ae Remove "/etc/postfix/postfix-script" as the file was obsoleted by
the upgrade to Postfix 2.6.x.
2009-09-17 11:52:02 +00:00
apb 1e2ed7f3ca Fix some errors in the way scripts with "KEYWORD: interactive"
are handled.  There was an inverted test, and "set $_args"
had the wrong scope (in several nearly-identical blocks of code).
2009-09-14 22:30:30 +00:00
apb a83419cd12 Check whether a core dump exists before trying to save it. This should
prevent /etc/rc from thinking that /etc/rc.d/savecore failed.
2009-09-14 17:34:56 +00:00
apb 70472a4826 Add the ability for file systems mounted via mount_critical_filesystems()
in rc.subr to be marked as optional.  This means that it's not an
error if the file system is not mentioned in /etc/fstab.  It is
still an error if something else goes wrong.

Change the defaults for these two variables in /etc/defaults/rc.conf:
critical_filesystems_local="OPTIONAL:/var"
critical_filesystems_remote="OPTIONAL:/usr"
2009-09-14 12:05:12 +00:00
degroote 2d48ac808c Import pfsync support from OpenBSD 4.2
Pfsync interface exposes change in the pf(4) over a pseudo-interface, and can
be used to synchronise different pf.

This work was part of my 2009 GSoC

No objection on tech-net@
2009-09-14 10:36:48 +00:00
apb 2fc6cb0baa It's print_rc_metadata, not rc_print_metadata. 2009-09-12 17:40:01 +00:00
cegger e72611bc37 backout rev. 1.59. Will be re-done differently. 2009-09-11 21:25:07 +00:00
apb 3a49704c6b Adapt /etc/rc.d/cgd script to the new /etc/rc:
Add "KEYWORD: interactive" so that prompting for passwords work, and
use print_rc_normal to print a message that could safely be suppressed.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:18:03 +00:00
apb bd87591cb3 Adapt /etc/rc.d/bootconf.sh script to the new /etc/rc:
Add "KEYWORD: interactive" so that the script's prompts work,
and use rc_print_metadata to add a message to the log.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:17:43 +00:00
apb 89fd535731 Add a postprocessor to /etc/rc, which logs messages to /var/run/rc.log,
and which can suppress output in silent mode.  Silent mode is enabled
via the new rc_silent variable, which defaults to a value that depends
on the kern.boothowto sysctl.

Part of the /etc/rc silent changes requested in PR 41946
and proposed in tech-userlevel.
2009-09-11 18:17:04 +00:00
he 3da5eccbbc Allow builds without X11 to succeed. The previous change when used
in this situation caused the contents of ${.CURDIR} to be cat'ed
into the generated NetBSD.dist mtree spec file, resulting in
${DESTDIR}/var/yp/binding/<garbage> being created, causing set list
check failure at the end of the build.
2009-09-08 09:57:32 +00:00
cegger eb4ebcd11a Do not flush routes if root file system is nfs mounted.
Fixes boot problem when the nfs server is in a different subnet.
2009-09-08 08:56:33 +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 cfb8df7f4f install the fontconfig files into /etc/fonts/conf.avail, and symlink
the default ones into /etc/fonts/conf.d, as per default.

reported by jukka marin on netbsd-users.
2009-09-07 21:07:02 +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
sborrill b88195cfa1 hdaudio(4) is a standards-compliant driver for Intel High Definition Audio.
It will replace azalia(4) after testing.

To use, comment out azalia in your kernel configuration and uncomment the
hdaudio and hdafg lines so it reads:

# Intel High Definition Audio
hdaudio*	at pci? dev ? function ?
hdafg*		at hdaudiobus?

You should also:
cd /dev
sh MAKEDEV audio
2009-09-06 17:25:55 +00:00
apb 7259650e89 Delete a line that was accidentally included from work in progress. 2009-09-06 12:30:45 +00:00
apb cd291484dc Change multiple spaces to tabs on one line 2009-09-05 16:45:33 +00:00
apb 89432e7545 * Use functions from rc.subr, and indent the code.
* Add "KEYWORD: nostart", so /etc/rc doesn't try to run this (it would
  have been harmless anyway).
2009-09-05 16:26:07 +00:00
apb 660b31de3a Use functions from rc.subr. 2009-09-05 16:24:03 +00:00
tsutsui d73f433280 netbsd.org -> NetBSD.org for URLs. 2009-08-26 11:15:25 +00:00
nisimura 43f486267a - add GENERIC.NAS to a standard sandpoint distribution. 2009-08-24 14:17:05 +00:00
mrg 1ef7a9ffe7 install the xorg "protocol.txt" file. 2009-08-23 09:05:44 +00:00
tsutsui d22727cf79 Build PMPPC kernel on release.
XXX1: distrib/notes/common/contents needs to be updated as noted in comment
XXX2: should we also build VIRTEX kernels?
2009-08-21 16:57:08 +00:00
spz 1d42efedba add morden, mollari, pkgbuild and build
adjust funtion names' keys
add the proper names of hosts too in preparation of their function moving
2009-08-20 16:26:55 +00:00
perry a8420debfe Explicitly set a BEFORE on ntpd, as this can't run while ntpd is
running.

Apparently it is rare for rcorder to place it after ntpd but there was
previously nothing actually preventing it.

Fixes PR 40707 by Ondrej Tuma
2009-08-03 18:43:48 +00:00
perry b3d763cf9b ntpdate can't work without named because a modern ntp.conf has dns
names in it. We therefore now depend on it.

However, this would have then created a circular dependency because named
depended on "SERVERS", and racoon was before SERVERS and required kdc,
and kdc needs the time to be right and thus depended on ntp.

Instead, have named depend on NETWORKING (so that there is a network
there), mountcritremote (so we know that named has a directory to work
from) and syslogd (so that named has some place to spew information).

I'm not sure this is perfect, but it is certainly a big improvement
over constantly failing ntpdate runs during boot.
2009-08-03 17:45:48 +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
christos 6d36a1a3fe sync; adds v6 address for L. 2009-07-24 16:34:02 +00:00
njoly b5ed1c3306 Add usr/libdata/debug/usr/tests/lib/libc/string for MKDEBUG build. 2009-07-22 14:24:01 +00:00
joerg 974b291a6c Add popcount(3) and the long and long long version. Name is inspired by
gnulib, the implementation goes back to the AMD Software Optimizer
guide. A number of platforms will want to replace the C version with
assembler code using native instructions.
2009-07-21 13:18:43 +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
joerg d6e219476b Add a fast, platform independent hash function to libc.
The algorithm used is the Jenkins hash.  The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.

Bump libc minor to 169.
2009-07-20 17:03:36 +00:00
tsutsui 78b680c5cf Revert previous per comment from ad@ in PR 41668, which is no longer orphaned. 2009-07-16 10:43:22 +00:00
tsutsui 73cf34a890 Add MONOLITHIC kernel to i386 release binaries. PR#41668 2009-07-15 14:11:02 +00:00
christos 87fc4e29f5 1. centralize the fsck error handling
2. don't check if root is on nfs
3. reboot -n if root was modified as the manual page suggests
2009-07-10 20:02:21 +00:00
mrg c4166bec0e fix previous to actually pay attention to the unit number.
noted by drochner.
2009-07-05 21:35:16 +00:00
hubertf 0a18836e5a Make the section on private networks more clear - inspired by RFC.
OK core@
2009-07-03 22:32:55 +00:00
mrg 74a0f508b7 create a /dev/dri/card0. fixes PR#40952. 2009-07-03 06:33:56 +00:00
tron 7d5e451c60 Switch to building Postfix 2.6.2 via "external/ibm-public/postfix". 2009-06-23 17:58:22 +00:00
christos 3baf6d1ea8 now that pwd_mkdb does not change the version, warn if we still have version
0 databases.
2009-06-18 22:00:04 +00:00
christos 7d8bcc8fa4 makedir for real this time. 2009-06-14 21:34:15 +00:00
christos cf38d7e34a Use makedir, from M. Levinson. 2009-06-14 20:01:04 +00:00
christos 3b863a2f5d absolute paths are not allowed here. from Anon Ymous 2009-06-14 13:18:02 +00:00
pgoyette fdcbe744db Long-overdue update. Need to handle both {warning,critical}-capacity
events.
2009-06-13 15:35:10 +00:00
mrg ee5acb3c1c add the new subdirs used by xkeyboard-config. 2009-06-11 05:40:18 +00:00
mrg 02fb05a57b install pci.ids somewhere so that libpciaccess can find it. 2009-06-10 02:20:13 +00:00
bouyer d478d33fa1 Add support for fr_*.UTF-8 locale. Setting LANG to fr_*.UTF-8 won't get
the message catalog right (they're encoded in iso-8859-1), but other locale
functions should work right.
Proposed on tech-userlevel on 20 May 2009.
2009-06-03 18:47:05 +00:00
pooka 355dcf3a3b Install agr ioctl header and stop putting our hand under the sys skirt
in ifconfig.
2009-05-26 21:58:31 +00:00
ad 63e35cb9ab Create /dev/zfs and /dev/zpool/. 2009-05-23 22:29:14 +00:00
njoly 1ab0e3e71a Remove obsolete ./usr/include/openpgpsdk 2009-05-18 12:50:41 +00:00
ad 35f9ffd80d Clearer wording when nagging about root logins. 2009-05-15 23:57:50 +00:00
roy da87763c6e Only start dhcpcd per interface if not running the full dhcpcd daemon.
Only stop dhcpcd pre interface if it's running for the interface.

Fixes PR bin/40320
2009-05-14 15:33:36 +00:00
ginsbach c8da0e5fef Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
2009-05-14 02:37:35 +00:00
elad a31136d3d3 verified executable -> Veriexec. 2009-05-10 14:19:28 +00:00
pooka 80be26da9a add regression test for module init/fini in rump 2009-05-02 16:02:18 +00:00
tsutsui 0cd2869469 Add necessary files for build.sh -m rs6000 release.
Based on PR port-powerpc/40421 from Wojciech Galazka,
with misc tweaks by me.

Note sysinst part is not pulled because there is
no supported storage device yet on this port.
2009-04-30 12:47:39 +00:00
roy 6bdecd9c27 Add an rc.d script for dhcpcd(8) 2009-04-28 23:30:34 +00:00
apb 49e8137612 Do nothing if root file system has fs_passno=0 in /etc/fstab.
(It might be better to change fsck(8) so that "fsck -p" always checks
fs_passno, whether or not file systems are specified on the command
line.)
2009-04-28 13:08:51 +00:00
reed 9a8032873e Get rid of extra space in Usage statement. 2009-04-28 03:03:52 +00:00
njoly a6ba76a6cd Add some missing entries to fix MKDEBUG build on alpha.
Looks good from tsutsui.
2009-04-27 14:22:40 +00:00
nonaka dcb81fa7ce Add sysmon for powerd. 2009-04-27 08:06:02 +00:00
christos 923c91a5d0 handle new directory structure. 2009-04-25 15:46:19 +00:00
christos 61af394aa4 PR/41273: Martin Mersberger: missing '/' in /etc/rc.d/named in section
named_migrate
2009-04-24 14:26:02 +00:00
tsutsui e2832ec4e0 Create cksums for files in ${MD_INSTALLATION_DIRS}. 2009-04-23 14:38:58 +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
christos ad38869bc4 Adjust for new default location of the pid file. 2009-04-22 18:27:03 +00:00
joerg e7f29a3386 Split fsck during boot into two phases. Check the root file system
first, mount root and run the various disk providers. Add swap and
check the remaining file systems after that.
This breaks the dependency cycle for lvm, which needs writeable /dev.
Depend on rndctl in cgd.
2009-04-21 16:08:57 +00:00
nonaka e4c8dd676a Add ld0 for SD/MMC. 2009-04-21 03:00:58 +00:00
mrg 9a0a6d5470 don't need X11R7 Xprint* directories anymore. 2009-04-20 03:56:59 +00:00
joerg 49451a8f9f Add a small script to visualize the rc dependency graph and point to it. 2009-04-15 22:36:04 +00:00
perry bb9a479c59 un-uppercase pseudodependency for the moment so as not to break pkgsrc 2009-04-15 22:11:32 +00:00
perry 6b9d40b026 uppercase pseudodependency 2009-04-15 22:03:54 +00:00
joerg c06d8659e3 Add missing PROVIDE. 2009-04-15 21:33:57 +00:00
haad 94d1f41faa We need writable /dev to get lvm working otherwise lvm devices can't be created. 2009-04-13 18:48:14 +00:00
christos c7ad9a2170 add the var run lwresd and var run named 2009-04-12 17:35:16 +00:00
joerg 760b4799c4 Add rc_directories to specify where to look for rc scripts.
For the moment all scripts must be in /root and non-existent directories
are skipped.
2009-04-10 16:18:04 +00:00
pooka 408a46214d Add ffs tests in kind of a semiguessed fashion. 2009-04-08 13:32:26 +00:00
martin 58cbc21957 systime() is not needed here - as the man page clearly points out.
Noticed by pooka.
2009-04-08 13:29:59 +00:00
martin d37420f7ca Awk has strftime() and systime(), so no need to pipe the output of date
into the script - just do it internally.
2009-04-08 13:18:56 +00:00
apb bde6809f51 Add usr/tests/util/mtree 2009-04-08 06:55:09 +00:00
mkirby 71920adca4 Note addition of new Czech (QWERTY) keyboard layout.
PR kern/16216

ok agc@ jdc@
2009-04-06 17:34:13 +00:00
martin 5139ca15dc Use the new ?= operator to set the on_panic value for the optional ddb
hierachie.
2009-04-01 16:20:55 +00:00
perry b2595274cc add ptyfs to the list of file systems that don't get put into the
nightly df listing
2009-03-29 16:04:15 +00:00
hannken a51a8b101a Add flags to rc.d/ipfilter. Use it from rc.conf like
ipfilter=YES ipfilter_flags="-T fr_statemax=18963,fr_statesize=27091"

Ok: Christos Zoulas <christos@netbsd.org>
2009-03-23 18:52:02 +00:00
perry bd1b77b037 Slight wording change so that the bug warning sounds more natural to a
native speaker of English.
2009-03-23 18:19:16 +00:00
abs f681b265bc Prefer MACHINE_ARCH to MACHINE in some tests 2009-03-12 17:16:58 +00:00
jmcneill 68b4a04607 /dev/{r,}altmem?? 2009-03-12 00:19:36 +00:00
martin 7d53797861 Switch the default value (if no options DDB_ONPANIC is defined) for
ddb.onpanic to 1, change it back to 0 in sysctl.conf and make sure
postinstall installs this setting.
This avoids us trying to dump while booting from install CD, but keeps
the default the same once we are far enough through /etc/rc.d. Failing
earlier is unlikely to be recovered by an automatic reboot.
OK: core.
2009-03-11 23:22:57 +00:00
cegger 45e175c9c5 remove Xen2 from the list of kernels to build for a release.
ok bouyer@
2009-03-07 17:28:31 +00:00
bouyer 33a5d738a9 Add XEN3PAE_DOM0 to the list of kernels to build for a release. 2009-03-05 20:06:13 +00:00
haad 75fa841288 When setting LV_LIST variable do not use $LV_LIST. 2009-03-05 10:35:43 +00:00
nonaka cd49a18402 copy zboot to release directory. 2009-03-05 10:28:02 +00:00
mrg bcc593b98f put xkbcomp output into /var/db/xkb by default, a place that (now) exists 2009-03-03 06:01:56 +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 b071025674 Add directories and file lists for the new kernel and ipf tests. 2009-02-20 21:45:09 +00:00
erh f0bb687386 Add "/pub" to the PKG_PATH lines in the default .cshrc and .profile so they
actually have a chance of working.  Also provide an example of how to include
 more than one path.
2009-02-15 01:31:43 +00:00
ad 1fafc79578 Set PS1 correctly for ksh. 2009-02-14 09:53:07 +00:00
jmmv fd2c7cbdc1 Convert libcrypto tests to ATF. Original work done by Lukasz Strzygowski
in the GSoC 2008 atfify project.  Reorganization of files and build system
reworked by me.
2009-02-13 20:58:13 +00:00
jmmv 408c8f0410 Create the directories required for the new tests in the util directory. 2009-02-13 05:20:47 +00:00
uebayasi d4222bb04e Fix build for tests/syscall; pointed out by Geoff Wing. 2009-02-12 16:14:32 +00:00
apb 1cdee1d2a2 The -d or -t flag must appear after -c/-C/-e/-E flags, because of the
way we add the device name. after the flags.
Addresses PR 40495 from Ryo HAYASAKA.
2009-02-02 09:24:47 +00:00
nonaka 832577f758 It is easy to use it if netbsd-INSTALL isn't gzip'ed. 2009-01-28 11:43:28 +00:00
nonaka ccb4166baa netbsd-INSTALL is copied to installation/kernel instead of binary/kernel. 2009-01-28 11:21:55 +00:00
haad a4e585254c Add support for lvm to security script. Backup lvm configuration to /var/backup/lvm with other system backups. Disable lvm check until MKLVM is enabled by default. no objections on tech-userlevel@. 2009-01-27 10:32:18 +00:00
abs 7896e124da Move ATARITT and FALCON to the main list of kernels 2009-01-24 22:33:39 +00:00
he 0dc03e2d81 Follow up the rename of BOOT to SMALL030, and the removal of BOOTX. 2009-01-24 18:15:16 +00:00
agc df41ea2ee2 Add the build glue and sets information for the libopenpgpsdk library, and
the openpgp binary.
2009-01-24 01:15:24 +00:00
haad 94a80e6646 Rework lvm rc.d script. Check active flag for selected LV not for the first
one. Remove dmtest function.

Most changes are based on feedback from salo@.
2009-01-20 00:40:59 +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
taca 6619b4d1ca Fix a typo with /etc/rc.d/lvm. 2009-01-18 08:24:46 +00:00
haad 660aec81c7 Add lvm rc.d script to build. 2009-01-16 01:59:23 +00:00
haad f42e53f384 Add lvm script to the lists. 2009-01-16 01:58:32 +00:00
haad 6fa32f841f Add lvm rc script for starting LV's during boot. starting lvm is turn off
by default, until MKLVM is enabled by default. This script can be used
without /usr/bin.
2009-01-14 22:07:55 +00:00
apb 578d3b717e Add rndctl 2009-01-08 12:12:38 +00:00
lukem 006b668ed0 attempt to make the NOTE a bit more prominent 2009-01-08 02:07:28 +00:00
apb a0398a9d79 * Add etc/rc.d/rndctl script, based on work by Brian A. Seklecki. This
allows you to invoke rndctl(8) during the boot.
* Add rndctl=NO and rndctl_flags="" to /etc/defaults/rc.conf.
* Document rndctl and rndctl_flags variables in rc.conf(5).
2009-01-04 12:10:30 +00:00
apb 04973974b4 * When testing whether the fdesc file system is mounted, parse the
output from mount(8) rather than df(1), because mount is more likely
  to be available on install media.  mount is invoked in a way that
  always prints an error message, and the content of the error message
  tells us whether fdesc is mounted.  This should fix PR 40316 from
  David Ross.
* Don't use negative variable names.  Instead of nofdesc=false, use
  fdesc_mounted=true.
* Add a comment explaining that MAKEDEV may be executed in an environment
  that is missing some common commands.
2009-01-03 08:49:03 +00:00
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
isaki cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
macallan 1cbbd12ac0 do as sparc64 does 2008-12-14 03:37:21 +00:00
christos 4cc3f6a334 add clear=1 2008-12-13 23:30:03 +00:00
mishka 43e91ff9f2 Import rc.d/httpd script for httpd(8) daemon control.
See rc.conf(5) for options explanation.
2008-12-11 13:55:16 +00:00
salo 74bbb8ef72 A very old patch sitting in my tree..
When rc scripts are started from interactive shell, be nice and when user
tries to start an unconfigured service, point him to rc.conf(5) and tell
him about the one* keyword.  Also be more user friendly when an unknown
argument is entered.

Example:

 # /etc/rc.d/cron start
 $cron is not enabled - see rc.conf(5).
 Use the following if you wish to perform the operation:
   /etc/rc.d/cron onestart

 # /etc/rc.d/cron nonsense
 /etc/rc.d/cron: unknown directive 'nonsense'.
 Usage: /etc/rc.d/cron [fast|force|one](start stop restart rcvar  status poll)


Inspired by discussion on tech-userlevel:

 http://mail-index.netbsd.org/tech-userlevel/2007/02/13/0010.html
 http://mail-index.netbsd.org/tech-userlevel/2007/02/13/0011.html
 http://mail-index.netbsd.org/tech-userlevel/2007/02/13/0012.html

Reminded about it and reviewed by <lukem>
2008-12-06 23:21:32 +00:00
cube 4edff860d5 - Generate xdm and xfs depending on the value of X11FLAVOUR
- Only generate and install them for MKX11 builds
2008-12-05 18:55:22 +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
tsutsui 63156ee6a4 /etc/rc.d/mountall should obviously REQUIRE mountcritremote, and
may also REQUIRE named and ypbind for NFS hostname in fstab(5).
2008-12-01 14:47:14 +00:00
tsutsui 587f6b4f8e Add RCS Id. 2008-11-30 08:49:25 +00:00
joerg d235df969a Change the formula for tmpfs size. The per-inode memory usage is
higher than old estimate on 64bit platforms and the resulting tmpfs
wouldn't be able to hold the required number of devices.
2008-11-28 16:04:31 +00:00
tsutsui 3381903ec0 Add "bootconf" to REQUIRE: lines which had beforenetlkm
since removed beforenetlkm required bootconf.
2008-11-22 20:23:33 +00:00
ad bf92e35013 Don't warn about missing MAKEDEV.local. It doesn't exist in some
environments.
2008-11-21 11:44:38 +00:00
cube b2c01596ed Sprinkle /usr/X11R7 where relevant. rc.d/x{fs,dm} are left to be done. 2008-11-19 18:07:19 +00:00
uch 7d97b81648 add dialout device for scif, sci 2008-11-17 12:54:57 +00:00
abs 845c5d6f11 Add a 'reload' option - from Peter Bex 2008-11-17 11:34:04 +00:00
hubertf a414fb10be Also search /usr/X11R7, and do it before X11R6 2008-11-17 01:31:35 +00:00
tsutsui 7181375540 Create USB devices on all_md target. 2008-11-12 15:57:29 +00:00
tsutsui c65516ce24 Create audio devices on all_md target. 2008-11-12 13:54:10 +00:00
jmcneill 9533ff8b39 My previous change should have read 'makedev video', not audio. 2008-11-12 13:14:28 +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
agc d36ba31209 Fix csh syntax in last 2008-11-11 01:05:48 +00:00
joerg 0a197de3d4 Add commented out example of PKG_PATH to make using binary packages
easier.
2008-11-10 23:17:13 +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
abs ee60a76c5e The NetBSD/atari installer can use md2a as a root device, so ensure the
'floppy' target creates md2
2008-11-08 22:34:57 +00:00
joerg d490657a1e Now that the installation floppies are including tmpfs as well, stop
distinguishing MAKEDEV init and MAKEDEV all for x86.
2008-11-04 14:25:10 +00:00
tsutsui b7bfe94ded Create bpf(4) device node on ramdisk for sysinst. 2008-11-01 08:01:29 +00:00
joerg 3c39079d4a Create 8 dk instances by default. 2008-10-31 16:26:47 +00:00
joerg 3ecd0576c6 Can't type. xkbd -> xbd. 2008-10-31 16:25:29 +00:00
joerg 0a4bf6163b Create 4 Xen disks by default and all three Xen devices to make it
usable out-of-the-box.
2008-10-31 16:14:23 +00:00
christos f8537c96cf don't keep building the directories for old vi. 2008-10-30 21:45:55 +00:00
cliff a9ea660409 add GEMINI to EVBARM_BOARDS list 2008-10-30 15:41:33 +00:00
joerg 68ab5fbb16 Add glue to ship Intel firmware images. For ipw and iwi require user to
accept the EULA via sysctl as discussed with core@.
2008-10-30 00:27:31 +00:00
christos f2fd40685c add /usr/share/examples/pppd 2008-10-25 17:44:32 +00:00
matt 4e381b86bf Build TISDP2420 kernels 2008-10-21 23:46:10 +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
tsutsui f7ae49faa5 Create audio devices on all_md. 2008-10-19 04:53:41 +00:00
tsutsui 51a50a798f Create ld, altq and nsmb devices on all_md. 2008-10-18 16:52:35 +00:00
mrg f4084919ef catch up with share/ldscripts -> libdata/ldscripts. 2008-10-12 23:35:38 +00:00
christos 6536944397 eval arguments one more time so that quoting works. 2008-10-11 17:28:03 +00:00
abs 3388ad407f Add a constty entry, marked 'off', with otherwise the same settings
as the console. Now when coming up in single user mode the tset in
/.profile can set the terminal type correctly.
Note: I believe constty should be 'on' and console 'off', but thats a
separate discussion
2008-10-07 10:00:00 +00:00
apb 9b7231008d Move default route configuration after interface alias address
configuration, in case people have default routes over aliased
addresses.
2008-09-26 10:31:46 +00:00
rtr 01313ea852 install font configurations to /etc/fonts/conf.d 2008-09-26 07:02:57 +00:00
cube 2cb1e2f875 Add the directory in which the DRI modules are installed. 2008-09-21 00:48:44 +00:00
apb c44f01fe5d remove an unecessary "eval" 2008-09-20 14:22:57 +00:00
apb 94f952dfe5 * Allow multiple commands in $ifconfig_xxN variables in rc.conf(5).
This may be done either by embedding newlines in the value,
  or by using semicolons to represent line breaks (but not both at once).
* Allow shell quoting insode $ifconfig_xxN variables or /etc/ifconfig.xxN
  files.  This allows something like ifconfig_wi0="ssid 'my network'; dhcp"
2008-09-20 12:12:38 +00:00
tsutsui 3e414a4b6b Invoke ${MAKESUMS} for ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation files
as snap_md_post target in etc/etc.${MACHINE}/Makefile.inc rather than
as release target in distrib/${MACHINE}/Makefile so that builds for
release in distrib/${MACHINE}/Makefile don't have to be serialized.

XXX: maybe ramdisk kernels should be installed into binary/kernel dir
XXX: as other ports rather than installation dir, and
XXX: kernel config names should be preserved in their filenames.
2008-09-19 17:38:43 +00:00
tsutsui 56f85b37f1 - add INSTALLATION_DIRS+=installation/miniroot so that miniroot.fs.gz
image is installed properly
- INSTALL_IPAQ should be in BUILD_KERNELS rather than KERNEL_SETS
  since it requires ramdisk image by mdsetimage(8) in src/distrib
2008-09-19 16:58:26 +00:00
jmcneill 76996204b2 Create /dev/videoN with all target 2008-09-14 13:59:54 +00:00
jmcneill 9be41b46ae Don't bother with /dev/video -> /dev/video0 symlink, nobody uses it 2008-09-14 13:58:25 +00:00
tsutsui 0a62739633 Remove duplicated cfs0. 2008-09-13 13:11:38 +00:00
tsutsui d6a9de7378 Move "makedev cfs" for the vcoda device from MI MAKEDEV.tmpl to
MD MAKEDEV.conf.  Not all ports have vcoda in their majors.foo files
and we shouldn't (re)assign major numbers on all ports before 5.0.

Should close PR port-sgimips/38962.
2008-09-13 11:46:18 +00:00
jmcneill 7f709a236a Add /dev/video* 2008-09-06 19:21:21 +00:00
wiz 9a92242aa3 ascii -> ASCII
ethernet -> Ethernet
in comment.
2008-09-04 18:22:47 +00:00
bouyer db3a18456b Add a run_fsck_flags variable to daily.conf(5), allowing extra flags to
be passed to to daily fsck run.
For example, run_fsck_flags="-Tffs:-X" will run the nighly fsck_ffs on a
snapshot :)
2008-08-30 10:53:22 +00:00
lukem 2ffbf6203d Add directories for X11R6 and X11R7 html man pages 2008-08-29 04:51:57 +00:00
mrg 644d129f67 add /usr/X11R7 dirs. 2008-08-28 09:01:23 +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
pgoyette 09cc50c97b Enclose the ifconfig commands in $(...) so they actually do something.
Reported on current-users by Pierre Pronchery <khorben at defora dot org>
2008-08-22 11:18:21 +00:00
mrg 91ab1550a1 add X11R6/include/{pixman-1,xorg} entries.
(probably will move to X11R7 ... later, but before native xorg is done.)
2008-08-02 04:39:41 +00:00
pooka bdf6e0b034 Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
  * install relevant headers into /usr/include/rump
  * build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
    from src/lib and install as librumpuser and librump, respectively
    + this retains the ability to test a librump build with just the
      kernel sources at hand
  * move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
    for general consumption, they are not kernel-space dwellers anyway
  * build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
  * add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
  * build and install userspace kernel file system daemons if MKPUFFS=yes
    is spexified
  * retire fsconsole for now, it will make a comeback with an actually
    implemented version shortly
2008-07-29 13:17:40 +00:00
mrg 7c507325f2 add several new subdirs to /usr/X11R6 to cope with native Xorg.
XXX: should native Xorg use /usr/X11R6?  input required.
2008-07-29 04:50:52 +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
reed 2ae533f9b5 Use absolute path for various /sbin tools.
This is consistent with several other rc.d scripts
and fixes problem with /sbin not in PATH.

(Tested several times for over three weeks, but not all
parts of this code were used by me.)
2008-07-24 19:48:19 +00:00
dholland 7c82bc00af The default named.conf should not contain a query-source statement.
Comment it out and describe what it's for and why not to use it.
2008-07-23 05:47:48 +00:00
dyoung d4ef85aece Add MKNVI to RELEASEVARS. Thanks lukem@. 2008-07-23 01:57:19 +00:00
apb a41d4962be s/msgs/msgs(1)/ in a comment. From PR 39167. 2008-07-18 21:12:03 +00:00
perry 654ac37d1c so long, mom. 2008-07-16 21:27:36 +00:00
apb b09e1b8e1d Let "MAKEDEV ptm" create the /dev/pts directory. Requested
in pkgsrc-users by Christian Biere.
2008-07-13 15:22:39 +00:00
mishka bdb4f49309 The wscons.conf syntax is assuming all arguments on their own fields. 2008-07-03 11:19:34 +00:00
christos fc2d56c7e9 Fix perms for /var/db/postfix thanks to Matthias Drochner for the report. 2008-06-27 14:29:30 +00:00
christos c210eb854d /var/lib/postfix -> /var/db/postfix 2008-06-25 01:36:03 +00:00
dholland dbdaee06a4 fix typo 2008-06-23 03:26:18 +00:00
jnemeth f2370a7841 Add /var/lib before /var/lib/postfix as all parent directories MUST exist
as per mtree(8).  Unbreak build.
2008-06-23 03:12:19 +00:00
christos 0d8a2b1868 add /var/lib/postfix 2008-06-22 23:12:33 +00:00
peter 5f47c5620b Add entries for /etc/pf.conf and /etc/pf.os.
Suggested by Luke Mewburn in PR/35188.
2008-06-20 17:05:26 +00:00
yamt 86a4e26fc8 add a default for ftp_proxy as reminded by Geoff Wing and others. 2008-06-20 15:21:56 +00:00
jmcneill 0814e53527 Don't try to standby on a lid_switch pressed event, this has a few problems:
1. ACPI S1 doesn't work properly for many people on NetBSD
  2. It prevents someone from using their laptop with an external display
2008-06-20 02:38:00 +00:00
yamt fff57c5525 merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)

ok'ed by peter@.  requested by core@
2008-06-18 09:06:25 +00:00
lukem e042dc6573 Provide /etc/openldap/ 2008-06-11 23:56:15 +00:00
perry dc28a7678e make the example more generic, and include a test 2008-06-11 17:14:52 +00:00
aymeric 2974b82da3 enable the wcurses-enabled vi as 'nvi', 'nex', and 'nview'.
Will be put in place of the default "non-n" variants when they are stable.
2008-06-10 18:41:47 +00:00
ad 0964f00a45 Replace the example with something a bit more up to date. 2008-06-09 21:58:57 +00:00
jmcneill e0099699ff Stop and start bluetooth services across suspend. 2008-06-06 23:13:58 +00:00
ad 51a52ea260 i386 doesn't need ld.so.conf at this time. 2008-06-03 18:49:59 +00:00
joerg 32455b2087 Allow per-interface DHCP configuration using dhcpcd via
ifconfig_xxN=dhcp or a dhcp line in /etc/ifconfig.xxN.
2008-05-29 15:38:35 +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
hauke f5ede5dc2e Added driver for the Creative Systems Inc. Hurdler CPI parallel printer card.
Timecounter support for the Z8536 counters A + B is not complete, yet.

Reviewed by Martin Husemann.
2008-05-22 19:49:43 +00:00
lukem 1b6b1060cc MKLDAP, USE_LDAP 2008-05-22 14:09:27 +00:00
he 4ff90c621b Add support for optionally setting some environment variables before
starting ${command}, via ${name}_env.

Discussed with lukem.
2008-05-22 14:03:26 +00:00
jmcneill 1cba716bb9 If machdep.sleep_state is present, use it in favour of apm. Also stop and
start wpa_supplicant across suspend/resume just to be safe.
2008-05-21 13:06:10 +00:00
ad 14cd43625f Install kernel modules into the proper locations, taking machine and
kernel version into account.
2008-05-20 19:01:10 +00:00
nonaka 511069cd63 copy zbsdmod.o into installation/ and create sums. 2008-05-18 01:45:47 +00:00
jmcneill 911f972dcf Add sgi_fam, one less thing that has to be done when one wants to run
GNOME on NetBSD.
2008-05-17 21:37:09 +00:00
chris 2d9b8b788b As part of make release copy the miniroot.kmod into installation/miniroot/
and create sums for it.

This means all the pieces to do network installation are easily accessible
following a release build (and will also come out of the build servers).

netbsd-GENERIC is in binary/kernel/
pxeboot_ia32.bin is in installation/misc/
miniroot.kmod is in installation/miniroot/
2008-05-11 12:31:45 +00:00
macallan 3b2abbc7b0 add ttyE1-3 2008-05-08 16:15:05 +00:00
tsutsui a48fac26d7 vt100 is better than unknown for ttyZ[01]. 2008-05-08 16:03:09 +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
ad 59978d093b Put the GENERIC kernel onto i386 installation CDs and load a kernel module
from the boot loader to provide the miniroot.
2008-05-02 23:13:05 +00:00
ad 7d1f779aa2 Build and install modules into /kernel/modules. Each module gets a
directory for properties, blobs, etc. It's not fixed in stone and
can easily be changed if there are issues with the location/layout.
2008-05-02 23:12:00 +00:00
jmmv 322798e84e Adjust directory list after import of atf-0.5. 2008-05-01 15:32:46 +00:00
garbled 4b476699e2 Add a netboot directory to releasedir/installation. Put symlinks to the
kernels and ofwboot in there.
2008-05-01 01:58:10 +00:00
ad 928d6a0983 Give i386 and amd64 a default boot.cfg. 2008-04-30 16:48:53 +00:00
ad da694a1ffc For PR kern/38537:
- Make MULTIPROCESSOR mandatory on i386.

Installation changes:

- Update installation section of release notes to match reality.
- Rename INSTALL to INSTALL_FLOPPY, retire INSTALL_LARGE.
- Build INSTALL kernel from GENERIC, like on amd64.
- Update boot menu to allow disabling ACPI and/or SMP.
- Remove GENERIC.NOACPI from the installed kernel list.
- TODO: install default boot.cfg in etc.tgz.
- TODO: possibly enable PCI fixup stuff at runtime if ACPI is disabled.

Build changes:

- No longer build ALL, it's for verification, is slow to build and the
  build process is already crippled by the number of kernels built.
- No longer build GENERIC.NOACPI.
2008-04-30 15:29:11 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
xtraeme fe3dc8ad88 Fixup the rfact for the -12V sensor in the Gigabyte P35C-DS3R
motherboard.
2008-04-26 13:02:35 +00:00
jmmv 44baf61c66 Add sample (commented-out) entries to change the keyboard's repeat rate.
I always do this after a system install but never remember the correct
syntax.
2008-04-25 13:09:13 +00:00
xtraeme 1b916313b0 - Fixup rfact values for itesio(4) in the Gigabyte P35C-DS3R mobo.
Only a sensor is only returning unknown data, all the other ones
  match what the BIOS returns.

- Improve comments and add a note for contacting me if the values
  returned by drivers are not correct.
2008-04-22 13:16:32 +00:00
plunky 486e4624e5 some changes to serial bluetooth host controller interfaces
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00