Commit Graph

5733 Commits

Author SHA1 Message Date
christos 2f8da1f3f1 fix compat build of filter-aaaa.so.0 2024-04-16 19:15:36 +00:00
christos 7ca2862ebe kre says this should be obsolete 2024-04-08 12:38:59 +00:00
christos 28f1742a3b put back /var/run/named 2024-04-08 12:32:15 +00:00
christos 6b2da37d70 - Create 3 new variables:
MAKELINKLIB that follows MKLINKLIB but can be overwritten by Makefiles
  MAKESTATICLIB that follows MKSTATICLIB but can be overwritten by Makefiles
  LINKINSTALL that follows MAKELINKLIB but can be overwritten by Makefiles
  These give enough control to the module Makefiles so that they don't need
  to override the default library install rules which break the debug sets.
- Remove /usr/libexec/named which duplicated /usr/lib/named
2024-04-05 01:15:59 +00:00
riastradh 717c76abf5 MAKEDEV: Tidy some entries on x86 and Arm.
While here, reduce some diffs arising from ordering and formatting
between these architectures.

Only difference between evbarm and aarch64 now is /dev/vchiq.  Not
sure offhand if it makes sense on aarch64 or only 32-bit Arm.

PR port-amd64/58093: /dev/efi missing on x86
PR port-arm/58100: /dev/ttyVI* missing on aarch64
PR port-arm/58101: /dev/nvme* missing on aarch64
PR port-arm/58102: /dev/raid* missing on aarch64
2024-04-02 22:29:35 +00:00
thorpej 870369fb30 Add an examples directory for devpubd hooks. 2024-03-30 06:11:58 +00:00
skrll ab571aa8ad Add ld[4-7] and scsibus[123] 2024-03-23 12:34:06 +00:00
riastradh 9a55048f5c x86: Release the ramdisks too.
This way we will get cgdroot.fs (and zfsroot.fs too) in the release.

PR misc/57534
2024-03-20 13:51:35 +00:00
rillig 897cdf26ba tests/stat: test the left-aligned and right-aligned 'S' format 2024-03-14 21:00:32 +00:00
christos 04af249a7e remove obsolete option "dnssec-enable" 2024-03-07 14:21:03 +00:00
andvar 31d79895e7 s/substract/subtract/ in comments. 2024-02-04 20:50:29 +00:00
tsutsui f34329fea5 Use "wsvt25" rather than "sun" for (commented out) wscons tty lines.
Note historically vax port seems to use "ttyw?" rather than common "ttyE?"
for wscons (wsdisplay) tty devices in ttys(5).

No particular comment on port-vax@:
 https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828
2024-02-01 22:26:19 +00:00
tsutsui c33d2bc4b7 Make sure to create wscons devices on the default "MAKEDEV all" target.
Necessary to make the X.org server work on the default installation.
Proposed on port-vax@, and ok'ed by mrg@:
 https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828

Worth to pull up to netbsd-10.
2024-02-01 22:22:05 +00:00
riastradh bbd1e6c887 NetBSD.dist.base: Nix /var/run/named.
/var/run is emptied at boot time by /etc/rc.d/mountcritlocal, so
there's no point in creating this at install time -- it has to be
created on the fly after /var/run is cleared on every boot anyway.

Mark /var/run/named obsolete in the set lists.  XXX This isn't quite
right, because it is legitimate for /var/run/named to exist in a
running installation, but it doesn't exist in a freshly installed
system any more.  Maybe we should just remove the entry from the set
lists and add a note to UPDATING about deleting it manually from the
destdir in incremental builds.

PR misc/57877
2024-01-27 21:06:09 +00:00
riastradh 220d69d827 NetBSD.dist.base: Fix permissions on /dev/pts.
No reason to write to this -- it's expected to have ptyfs mounted,
and ptyfs doesn't allow changing the directory.  So use 0555
(-r-xr-xr-x) instead of 0755 (-rwxr-xr-x), like it is by default with
ptyfs mounted.

PR misc/57877
2024-01-27 21:01:08 +00:00
jmcneill 0a9a95c77d Add wsvt25 entries (off by default) for ttyE0-ttyE3. 2024-01-26 09:41:42 +00:00
riastradh 00b317fce9 mtree(8): Test the installed sets.
Except etc and xetc, which likely won't match for reasons that aren't
great, like etc including empty log files which in an installed
system have probably changed.

This test will probably fail, but we should make sure it doesn't!

PR misc/57877
2024-01-25 00:30:57 +00:00
jmcneill 8d626ee2f8 evbppc: Add initial support for the Nintendo Wii 2024-01-20 21:35:59 +00:00
skrll 2a2a8bc72b Create some more nodes. 2024-01-20 17:20:09 +00:00
thorpej 67fce847d8 Add virt68k etc stuff. 2024-01-07 00:58:11 +00:00
uwe ea03157bde newsyslog.conf: collate npflog0.pcap properly 2023-12-31 03:57:48 +00:00
kre 31fcb5661e Stop using the obsolete test(1) -o operator, use sh || instead.
Prefer sh ! over test's ! (though that one is not completely obsolete).
2023-12-25 08:38:32 +00:00
kre b151f12f8e Do away with the obsolete text(1) -a operator, use sh && instead.
Prefer sh ! operator over test's ! (less question what it means).
A few minor formatting changes.
2023-12-25 08:37:08 +00:00
kre 78a2289357 Clean up obsolete test(1) usage - use sh's || instead of test's obsolete -o,
and sh's && instead of test's obsolete -a.

Minor formatting cleanups, including removing unneeded \ line continuations.

The somewhat bizarre way that named_migrate() was made to work in a
subshell (which of itself is fine, and looks needed) has been made more
rational.  Because of that, the need to use local vars is no longer there,
(subshells can't affect the parent) and "local" in that func could be deleted
(but hasn't been).
2023-12-25 08:35:07 +00:00
kre 50379ee0d8 Clean up obsolere test(1) -a option/operator - use sh && instead.
Take the opportunity to do a little sh formatting cleanups, the \
line continuation can ususually be avoided by placing sh operators at
the appropriate places.

Note the [ x"$var" = x"$other" ] usage no longer needs the 'x',
avoiding that kind of nonsense is partly why test was much more
precisely specified, and a lot of the unnecessary stuff made obsolete.
Those however I did not remove (they're harmless).
2023-12-25 08:29:05 +00:00
kre 7ebc15ba84 Clean up obsolete test(1) usage, use sh && rather than test's old -a
(and while here prefer sh's ! operator over test's - it simplifies
things for test).
2023-12-25 08:24:58 +00:00
kre 80f0b9f9ed Clean up obsolete test(1) usage - don't use -o, use sh || instead.
This one was particularly bad:

	if [ -z ${dev} -o ${junk} ]; then

was supposed to be validating an entry read from a config file,
dev should be not empty, and junk should be empty (ie: correct
number of fields present).   If that test succeeds, the line is
bad, and we error out.

But if dev was empty, and junk was also empty, that turned into

	if [ -z -o ]; then

which tests if "-o" is the empty string, which it isn't, so instead
of succeeding, and considering the entry invalid (no dev specified)
the code would just carry on as if all was good.

Because of this, a bunch of quoting fixes were also made (there might
perhaps be more needed).
2023-12-25 08:23:35 +00:00
kre 0367de1d4a Don't use obsolete test(1) -a option/operator - use sh && instead. 2023-12-25 07:49:22 +00:00
kre 7a4bb62b07 Whitespace: 8 spaces -> tab 2023-12-25 07:46:12 +00:00
kre 4fa06fab58 No longer use obsolete test(1) -a option/operator, use sh && instead.
While here a couple of minor formatting improvements - in general it
is always a good idea to surround sh operator chars (like '>' '(' ...)
with white space, to guard against thet possibility that some other (or
later enhanced) sh might have additional operators which happen to be
the character string used.

I don't understand while the final part of the condition for not doing
anything needs to run in a subshell, but that can stay for now.
2023-12-25 07:43:03 +00:00
kre 7d757c9675 No longer use obsolete test "-a" option - use sh && instead. 2023-12-25 07:39:59 +00:00
christos e99825a287 PR/57759: Hauke Fath: Restore local additions, lost in revision 1.104 2023-12-09 16:18:48 +00:00
taca a18ccbce03 Update to 2023112702 (November 27, 2023). 2023-11-28 09:48:57 +00:00
christos 89a5116e81 Add missing backslash (Jan-Benedict Glaw) 2023-11-10 20:44:58 +00:00
christos 1b6b54c016 add umask for kernel creation consistency 2023-11-08 13:02:03 +00:00
brad 77871fbede gpioirq(4) version 2
This update makes this driver more than just an example and allows for:

o More than one pin to be attached to a gpioirq instance.  That is,
  the mask parameter can be greater than 0x01 now.

o A /dev/gpioirqN device that allows GPIO pin interrupts to be
  transported into userland.  This is a device that can be opened for
  reading with a simple fixed output indicating the device unit, pin
  number and current pin state.


This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.
2023-11-06 00:35:05 +00:00
abs 011f078b4d Add support to npf_rules to rc.conf
- Allows overriding default from /etc/npf.conf
- Indicate rules file used in output
- Drop check for file presence in script - rely on npf exiting with error
2023-10-05 08:19:27 +00:00
gutteridge b23f276898 resize_root: quote $rootdev consistently in resize_ffs(8) calls 2023-10-04 00:04:42 +00:00
riastradh 555079d39b /etc/rc.d/certctl_init: Default off.
Otherwise in systems without certctl_init=YES, such as systems
installed with sysinst(8) where it's unnecessary because the rehash
has already happened at install time, you'll get spurious warnings.

PR install/57629

XXX pullup-10
2023-09-27 01:27:32 +00:00
riastradh bb38adb487 /etc/rc.d/cerctl_init: New script for certctl rehash in live images.
This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10
2023-09-27 00:24:12 +00:00
riastradh 24bd4d73cb certctl(8): Install certs.conf in /usr/share/examples too.
This way postinstall(8) can refer to the default one when you've done
an upgrade without etcupdate or similar to pull in new config files
from etc.tgz.

Not great -- we should do this systematically for all config files in
/etc, but this one-off hack is less risky for 10.
2023-09-03 18:31:01 +00:00
riastradh f743f689fc etc/mtree/special: Fix spaces/tabs.
No functional change intended.
2023-09-02 17:39:43 +00:00
martin f592fe5c33 Now that we have /etc/openssl/certs.conf mentioned here, also
list /etc/openssl.
2023-08-30 08:09:38 +00:00
riastradh ae64820710 certctl(8): Set certs.conf 644 and add it to etc/mtree/special. 2023-08-28 23:57:24 +00:00
rillig 92925e854e tests/usr.bin/error: add basic tests for several error message styles 2023-08-26 10:06:16 +00:00
riastradh 427e5e62a8 mozilla-certdata: Connect it up to the build. 2023-08-26 05:58:48 +00:00
riastradh 50a8b41245 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.
2023-08-26 05:27:13 +00:00
riastradh 22a55953ad etc/mtree/NetBSD.dist.tests: Update for new compat linux tests. 2023-08-20 10:27:11 +00:00
mrg dc52c1af5c add gcc 12 subdirs, remove gcc 9. 2023-08-01 06:46:52 +00:00
tron ac6e544e51 Resolve the port 2049 conflict by commenting out the entries for "shilp".
Now "netstat" will produce sensible output for NFS connections again.
2023-07-30 09:09:38 +00:00