Commit Graph

4734 Commits

Author SHA1 Message Date
apb 162b6b9919 The console major number is not always 0; when creating a temporary
console while populating a memory disk, use %CONSOLE_CMAJOR% instead
of 0, and let MAKEDEV.awk substitute the appropriate machine-dependent
major number.

This fixes a bug that I introduced in revision 1.82 dated 2007-03-11.
2013-01-26 18:44:21 +00:00
joerg fa9d9d71df Update LLVM/Clang snapshot to r172366. Catch up with the move past 3.2
release.
2013-01-23 15:02:52 +00:00
mlelstv e6e5cc51b8 Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.
2013-01-14 20:05:42 +00:00
tsutsui bf86f39b04 Add an entry for wscons ttyE0. 2013-01-14 09:23:45 +00:00
tsutsui a91aefab1f Tweak ramdisk devices.
- create sd2 and sd3 for external SCSI disks on LUNA-II
 - ipty (2 ptys) is enough for sysinst rather than opty (16 ptys)
2013-01-14 09:15:57 +00:00
prlw1 281a5e1fdb Add ppp=YES variable. Currently pppd(8) starts automatically if ppp_peers
is not empty. Adding a ppp variable allows the default peer to be set,
and ppp set to NO so that dialing can happen with /etc/rc.d/ppp onestart.
Default set to YES so that old behaviour is preserved.
http://mail-index.netbsd.org/tech-userlevel/2012/08/21/msg006656.html
2013-01-13 18:47:57 +00:00
riastradh 9dc19ed03b Nix `-b 1024' from ssh_keygen_flags in /etc/defaults/rc.conf.
No objections on tech-security:

http://mail-index.NetBSD.org/tech-security/2012/09/03/msg000548.html

The security of generating keys at boot remains questionable, but
this change makes that no worse.
2013-01-11 04:32:41 +00:00
skrll 5c014ba1cf Create a plcom0 device node for RaspberryPI 2013-01-10 13:38:37 +00:00
taca 43eb4b820e D.ROOT-SERVERS.NET changes IPv4 address. 2013-01-08 11:15:49 +00:00
christos 191ca062bf add a sync to make it less likely to boot with /etc pointing to nothing after
a crash.
2012-12-31 23:21:27 +00:00
christos 7c8b13934d better messages, more quoting. 2012-12-29 22:15:07 +00:00
spz 93a9300055 add entries built for MKDEBUG and MKDEBUGLIB to the set lists
Thanks to Hisashi T Fujinaka <htodd@twofifty.com> for pointing out the gap.
2012-12-18 22:45:12 +00:00
apb 448aa50d4c Reinstate the dirname invocations that were recently removed from
rc.d/random_seed.  The new dirname shell function provided by rc.subr
will be used, so it should work before the /usr file system is mounted.

This should fix a problem in which the fs_safe shell function failed when
passed the name of a file that did not exist.
2012-12-17 18:20:50 +00:00
apb 532fa0d9ae Add shell implementations of basename and dirname to rc.subr. They
are supposed to mimic basename(1) and dirname(1), except that they
are usable before /usr/bin is mounted.
2012-12-17 18:17:27 +00:00
apb c755e023f2 Avoid using programs from /usr/bin. This should fix PR 47326.
- no need for "dirname", because "df -G" can take a file name directly.
- replace use of "awk" with a shell while read loop.
- replace use of "stat -s" with "ls -ldn".
- no need for "tail" now that the use of "stat" has changed.

While here, also add some shell quotes and improve the grammar in a comment.
2012-12-14 18:42:25 +00:00
wiz 0450412e67 Revert previous.
At the least, it was committed with the wrong commit message.
2012-12-13 21:51:52 +00:00
roy 8c91938135 Add a pidfile and the reload command. 2012-12-13 15:51:17 +00:00
spz 0d6a8650f8 Make the compat libs of npf extension shared libraries go to the
compat directories instead of overwriting the arch native libs.
Also, make sure the compat directories get created. Tested on amd64.
2012-12-09 22:06:21 +00:00
prlw1 4d6ed13889 Make sure that ntpd creates a pid file for the rc machinery to work.
http://mail-index.netbsd.org/current-users/2012/11/19/msg021518.html
2012-12-04 16:38:40 +00:00
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
njoly a23dfbdc09 Adjust for usr/tests/lib/libc/c063 debug entries. 2012-11-23 08:36:47 +00:00
pgoyette 7feb2e8135 Also give install a place to put the atf tests for netpgpverify 2012-11-20 15:41:43 +00:00
pgoyette 7e4aef559e Fix the build - give install a place to put verify.h ! 2012-11-20 15:02:44 +00:00
manu a76c1cc17f Add most system calls for POSIX extended API set, part 2, with test cases:
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2),
mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2),
utimensat(2), openat(2).

Also implement O_SEARCH for openat(2)

Still missing:
- some flags for openat(2)
- fexecve(2) implementation
2012-11-18 17:41:51 +00:00
uwe 00ed5c3931 We don't need to include <bsd.prog.mk> to install a few config files
just <bsd.files.mk> and <bsd.links.mk> is enough.

Noticed because <bsd.prog.mk> sets LINKSMODE to BINMODE and that does
the wrong thing at least for unprivileged builds.
2012-11-17 23:08:38 +00:00
njoly a02a44ee48 Adjust for tests/lib/{libbpfjit,libsljit} debug entries. 2012-11-12 09:03:52 +00:00
alnsn 062bf78a84 Build libbpfjit test to the build. 2012-11-11 17:41:31 +00:00
apb 5f5f1a05cc Cause /etc/rc.d/random_seed to be the first script to run
after mountcritlocal.  Everything else that runs after
mountcritlocal depends directly or indirectly on bootconf, so
making random_seed run before bootconf has the desired result.
2012-11-10 15:10:22 +00:00
apb e36b9f4a97 Make /etc/rc.d/ttys run after /etc/rc.d/bootconf.sh,
because bootconf could conceivably change /etc/ttys.
2012-11-10 15:08:36 +00:00
alnsn ffd8736098 Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386. 2012-11-05 00:57:39 +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
yamt a015b2b8c4 print something before sleeping so that a user like me can see
what the mysterious pause is.
2012-11-02 08:36:13 +00:00
mrg 578c31536d catch up with npfctl moving to /sbin.
untested, but i guess so was the move itself ;)
2012-11-01 06:06:14 +00:00
apb 410421ee21 Avoid using glob patterns that might match enough files to give
"Arg list too long" errors.  Change the "find" command to use
"-exec ... +" instead of "-exec ... \;" to make it more efficient.
2012-10-24 21:23:55 +00:00
jakllsch d5c3f2d0b1 Add the next three /dev/pci nodes.
Marvell Orion already exposes two.
2012-10-13 01:13:59 +00:00
wiz b1203a9851 Make mandb path configurable. makemandb (and related tools) use
the path from the _mandb variable from man.conf now.

Set _mandb in man.conf to same value as was used before.

From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2012-10-06 15:33:59 +00:00
christos d60db5e056 PR/47024: Taylor R Campbell: handle "keys" directory and directory
permissions in general
2012-10-01 18:46:43 +00:00
chs 35b7579ba4 add more sd and pci devices.
remove duplicate ch0.
2012-09-23 01:15:17 +00:00
bouyer f2b31f39d0 Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.
2012-09-19 21:24:28 +00:00
skrll 2d427fcfd7 Add ./usr/libdata/debug/usr/lib/npf for rmind 2012-09-18 15:12:31 +00:00
msaitoh 9ee81fc63b - Add OPENRD.
- Compile BEAGLEBOARD_INSTALL.
2012-09-17 15:37:33 +00:00
rmind 94cf4e2062 Add /usr/lib/npf. 2012-09-16 16:15:29 +00:00
martin e8e9f65b79 New test directory for npf 2012-09-12 14:07:10 +00:00
martin 647d3a97c1 Make the "init" target create optys as well - those were removed from "all",
but we still need them in emergency setups and some install media.
Should fix PR install/46902.
2012-09-05 08:25:53 +00:00
matt 982f691177 Add BCM5301X 2012-09-01 02:03:35 +00:00
matt 47aef1fbf4 Add lots more ldN dkN
Add drvctl to md
2012-09-01 01:45:17 +00:00
wiz c9ea1856a7 Use new makemandb -Q flag to be really quiet. 2012-08-29 20:34:18 +00:00
christos 0ac85cc05d - fix manet alias to MANET; giving an alias with the same name is a no/op
- protocol 84 is defined for as ttp and iptm, merge the two entries since
  libc getprotoent() does not read the whole file and merge in the "files"
  implementation.
2012-08-28 07:53:45 +00:00
pgoyette 9f498223f2 Handle any reports of state changes for INDICATORs 2012-08-27 21:50:19 +00:00
jmmv 80b30d8cdf Add placeholder test programs for share/mk files.
The main goal of this change is to simplify the further addition of test
cases for the share/mk infrastructure by adding a few placeholder test
programs to the tests tree.

To not leave these test programs empty, I have added a bunch of extremely
simple test cases to them.
2012-08-26 23:03:20 +00:00
christos 1ebd502870 Fresh from IANA 2012-08-25 11:14:33 +00:00
spz c60c5ec2d8 actually install the new npf examples
add examples for a hash table file and a tree table file
add an ID string to host-npf.conf
2012-08-22 06:45:15 +00:00
abs 6b4ba5789b Seems like all the trendy ramdisks are using "makedev ipty" rather than
"makedev pty0" now. Update vax to match so install media doesn't fail
with
.../MAKEDEV: pty0: creating BSD style tty nodes with ptyfs is a security issue
2012-08-18 00:50:37 +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
abs 7e916bb8a9 Add 'bpf' to all ramdisk targets (*), or floppy targets if ramdisk calls that.
Sort bpf to come directly after 'std' where relevant.
* (apart from etc.evbppc who's ramdisk target *only* builds md0,
  which just doesn't make sense).
Should allow a fighting chance for dhcpcd to get an IP address.
2012-08-16 13:31:24 +00:00
alnsn e7e64dcaa1 Build and install t_bpfilter. 2012-08-14 19:13:54 +00:00
christos 79aa9f3662 add fdpass directories 2012-08-13 11:17:43 +00:00
christos a0fa559338 Don't create BSD style pty nodes by default anymore since ptyfs is mounted
by default. Mention that this is a security issue, since it allows pty access
through the old style node.
2012-08-13 08:30:51 +00:00
christos ba9bed30be No need to specify nfsd flags anymore. The defaults DTRT. 2012-08-13 08:20:44 +00:00
matt 127e888ae2 Add earm/earmeb changes 2012-08-06 07:51:13 +00:00
christos 3351729a81 only announce fetching vulnerabilities file if we do. 2012-08-03 10:52:46 +00:00
kiyohara ba9c08beed Add ub to KERNEL_SUFFIXES. 2012-08-03 09:11:31 +00:00
matt 93654fca4a Add TWRP1025 and INSTALL_TWRP1025 2012-08-01 05:46:13 +00:00
jdf 45c7c05a4b Call `makemandb -f -q` instead of `makemandb -f`, as Edgar Fuß proposed for daily. 2012-07-31 12:11:50 +00:00
christos 778f4384b4 PR/46757: Check for fetch_pkg_vulnerabilities unset first. 2012-07-31 09:23:09 +00:00
jdf 890333e6c9 Call `makemandb -q` instead of `makemandb`, as proposed by Edgar Fuss on
tech-userlevel on 20th of July 2012, 12:38.
2012-07-30 22:13:38 +00:00
christos da43ca12af PR/46757: Edgar Fuß: Change default to pkg_vulnerabilities from NO to unset,
and make unset insted of NO to produce warnings, so that setting it to NO does
produce warnings (if it is inappropriate for the machine to warn about this).
2012-07-30 17:09:33 +00:00
christos e763a079db PR/46756: Edgar Fuß: Enable ignoring subdirectories in daily's find_core 2012-07-30 17:06:51 +00:00
njoly 734339d201 Add testcase for PR/46743 2012-07-28 16:08:39 +00:00
skrll b6cf8ec026 Add RPI to KERNEL_SETS 2012-07-26 20:50:44 +00:00
joerg c91c5846f7 + /usr/tests/usr.bin/nbperf 2012-07-22 21:04:44 +00:00
christos bdb2cc007b MKCRYPTO_{IDEA,MDC2} is no more 2012-07-14 04:01:11 +00:00
rkujawa fd0228cf47 Also build WSCONS kernel. 2012-07-09 18:12:11 +00:00
hans f9669c1ea4 It's msdos, not msdosfs. 2012-07-08 14:25:49 +00:00
reinoud 40d2eec2c6 Disable GENERIC_USERMODE kernel auto-build to avoid problems with the current
autobuild-system.
2012-07-04 13:54:20 +00:00
abs da54453f2c Ensure the ramdisk has bpf for dhcpcd 2012-07-04 08:03:08 +00:00
abs bd1c4855ff All apply to vax only:
- Drop KERNFS from INSTALL kernel
- Add dmesg to sysinst ramdisk
- Add 'ramdisk' target to MAKEDEV and use
- Add dhcpcd to sysinst ramdisk
- Drop old install.md script
- Misc install image cleanup (reduce diff to zaurus of all things)
2012-07-03 21:49:55 +00:00
reinoud e631798833 Move i386 and amd64 usermode configurations to their respective directories
and make the usermode kernels buildalbe under build.sh.

The resulting kernels are build and packaged correctly as are the associated
modules.
2012-06-30 15:03:56 +00:00
kefren 690d3837f6 add ldpd rc.d script here too 2012-06-28 16:34:06 +00:00
macallan cb9b109d3a do as sparc64 does and switch the default terminal type to wsvt25 2012-06-26 02:05:43 +00:00
jnemeth 55657a2741 PR/46601 - Jim Bernard -- add support for rc_directories 2012-06-25 07:22:45 +00:00
abs 351c7b5d8f - Add racd* devices for MSCP based CD-ROM drives (RRD40s), as opposed
to mixing them in with the ra* disks, modelled loosely on how MSCP
  rx* floppies are handled
- racd* defaults to the same single iso9660 partition as cd*
- Cleanup config option handling slightly so any combination of ra*,
  rx* (and now raccd*) can be defined without build errors.
- Avoid ugly printf when disks have all zero disklabel magic number
2012-06-22 20:42:22 +00:00
jdc a1f0720d45 Add raid0 to init), in case we have /tmp on mfs. 2012-06-21 19:22:07 +00:00
pgoyette ef11cb81d1 Add directory for usr/include/dev/filemon/ 2012-06-21 04:30:04 +00:00
isaki b1d94e60d6 Remove unnecessary checkyesno which I commited before.
${rcvar}_start is skipped if rcvar is not set to YES.
Pointed out by joerg@ and tsutsui@.
Should be pulled up to netbsd-6.
2012-06-17 02:13:13 +00:00
joerg c9196b81ce Update LLVM/Clang snapshot to r158533. This brings in support for
stack-realignment in functions using alloca on x86. Move to
/usr/include/clang-3.2 to reflect the version.
2012-06-16 17:01:02 +00:00
sborrill 25290a5966 Set commented out maxproc-cur and openfiles-cur default values to the actual
defaults from sys/sys/syslimits.h. Bump maxproc-max too to a typical value.
2012-06-14 09:28:02 +00:00
riz 49449523c7 Add firmware for the RealTek RTL8192CU family of wireless chipsets, and
adapt the urtwn(4) driver to use the new files.  The firmware files were
extracted from the Linux driver at www.realtek.com, version 0005.1230.2011
and the license permits redistribution without modification.

While I'm here, install the files in /libdata/firmware/if_urtwn, like
most of the other network adapter firmware.

urtwn(4) can now operate without needing external files installed.  Tested
on my Edimax adapter.
2012-06-14 04:14:35 +00:00
martin c2e51849fc Per discussion on tech-userlevel, finally fix PR 10127:
move all ttyE* entries that use "vt100" emulation to wsvt25 term type.
The terminfo vt220 entry lacked (correctly) a delete key entry, which
was a regression against the netbsd-5 termcap entry. On the other hand,
only a very small number of foreign systems lacks support for wsvt25
nowadays.
2012-06-13 20:49:11 +00:00
isaki f28248caf4 Allows you to disable it if makemandb=NO in rc.conf.
Thanks tsutsui@ and Yasushi Oshima.
2012-06-12 02:25:29 +00:00
martin c1004a7836 Add a basic test for infocmp - this would have cought todays terminfo
lossage (PR lib/46553).
2012-06-06 21:23:10 +00:00
tsutsui ac2c5cf13a Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh}) instead of
hardcoded "sh" to avoid unexpected errors on cross build hosts in
src/distrib/common/Makefile.makedev etc.

Should fix PR toolchain/46537, ok apb@
2012-06-05 13:20:01 +00:00
joerg 1907ec3a61 Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
christos 44184cf8bf PR/46521: Jim Bernard: remove duplicate -o 2012-06-02 15:52:24 +00:00
nonaka c9051a9fd6 Use /libdata/firmware/run instead of /libdata/firmware/rum for run(4) firmwares. 2012-06-01 13:19:38 +00:00
martin f1b12ec580 Add new test directory 2012-05-27 23:03:24 +00:00
riz 3debe0af82 Create /dev/iscsi0 as part of 'all'. 2012-05-26 00:36:15 +00:00
skrll bc77bb37cd Add a GENERIC.MP kernel config and add it to the build list so that it
gets build tested.
2012-05-23 08:19:40 +00:00
jruoho af62c3b4d8 Add a test case for PR kern/46463. From Richard Hansen. 2012-05-18 15:25:25 +00:00