Commit Graph

5744 Commits

Author SHA1 Message Date
tsutsui fbc71c25d4 Use tools/mkhybrid as MKISOFS for mac68k and future macppc. 2024-05-31 20:58:52 +00:00
tsutsui 1fe42822fe Drop -data-change-warn from MKISOFS_FLAGS.
It's available only on cdrtools-3.x and later.
2024-05-31 20:57:32 +00:00
christos 5c7c1d2b1c Allow specific subdirectories to be added to the list 2024-05-14 14:57:08 +00:00
christos d6c3c02a1d Simple script to create an mtree spec file from a directory tree with
fixed default owner/group/perms.
2024-05-07 20:30:33 +00:00
nakayama f13fcfc711 Allow DHCPv6 so that dhcpcd(8) does not complain at boot when using
ia_pd option.
2024-05-03 20:48:58 +00:00
gutteridge 8eac085035 etc.evbppc/MAKEDEV.conf: drop unused block and fix comment 2024-05-01 02:16:15 +00:00
mrg d9076a8b46 xdm(1) was renamed xdm(8) a long while ago. catch up location.
add support for section 8 X manuals.  amusingly, we already knew
to convert __adminmansuffix__ into "8", but not how to create
.8 from X .man.
2024-04-29 22:09:10 +00:00
rillig de973ec253 tests/cd9660: replace compressed blob with readable hexdump
This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB.  It's an ISO 9660 image though,
containing mostly null bytes.  Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.

If the test is run, the ISO image is uncompressed, which takes several
minutes.  Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.
2024-04-28 14:39:22 +00:00
riastradh 2a7fd23976 libstdc++: Add test for PR lib/58206, sync_with_stdio busted. 2024-04-28 01:21:26 +00:00
tsutsui aa367d9f1e Disable dmf* and dmz* entries and add warns "not integrated yet."
Also note tty[EFGH]? have been used by MI wscons and new tty node names
should be assigned once dmf(4) is committed.

Ok'ed by ragge@ on port-vax@.
 https://mail-index.netbsd.org/port-vax/2024/02/13/msg004859.html
2024-04-27 14:42:21 +00:00
christos fea798ae18 PR/58200: Kouichi Hashikawa: ./makeobsolete uses platform's sed 2024-04-26 18:06:02 +00:00
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