From 9dcaa2b46b8df517dcb45ac77bbca0ce64fcfdc9 Mon Sep 17 00:00:00 2001 From: lotherk Date: Wed, 11 Nov 2026 19:18:12 +0000 Subject: [PATCH] makronix set: samba4, netatalk4, sshfs, afpfs-ng and borg; FUSE mounts for users MCDE's Sharing (SMB, AFP), Backup (borg) and the network in the file manager (sshfs, afpfs through FUSE) need these packages; they are built in the build VM. Users mount shares themselves: vfs.generic.usermount=1 in sysctl.conf and /dev/putter 666 (NetBSD: 600) -- a finding, kept here. Co-Authored-By: Claude Opus 5.5 --- packages.list | 9 +++++++++ src/etc/MAKEDEV.tmpl | 5 ++++- src/etc/sysctl.conf | 6 ++++++ tools/packages.vm.list | 8 ++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/packages.list b/packages.list index 9c1c4ab1d1..f2b78f6af6 100644 --- a/packages.list +++ b/packages.list @@ -7,6 +7,15 @@ editors/vim wm/mcde devel/git-base +# MCDE's Sharing and Backup (System Settings) and the network in the file +# manager: the servers SMB and AFP, the FUSE clients for SFTP and AFP, borg. +# Built natively in the build VM (tools/packages.vm.list). +net/samba4 +net/netatalk4 +filesystems/fuse-sshfs +filesystems/fuse-afpfs-ng +sysutils/py-borgbackup + # X comes from pkgsrc (X11_TYPE=modular): the base has no xsrc any more. # Built natively in the build VM (tools/packages.vm.list), not cross. x11/modular-xorg-server diff --git a/src/etc/MAKEDEV.tmpl b/src/etc/MAKEDEV.tmpl index d686320193..ba21ec4eee 100644 --- a/src/etc/MAKEDEV.tmpl +++ b/src/etc/MAKEDEV.tmpl @@ -2223,7 +2223,10 @@ fw[0-9]*) # create putter device and symlinks for all subsystems using it putter) - mkdev putter c %putter_chr% 0 600 + # Makronix: FUSE (puffs) for every user, with vfs.generic.usermount=1 + # in sysctl.conf -- a user mounts a share of the network in the file + # manager. NetBSD has 600, root only; a finding, not upstream. + mkdev putter c %putter_chr% 0 666 mkdev pud c %putter_chr% 1 600 lndev putter puffs ;; diff --git a/src/etc/sysctl.conf b/src/etc/sysctl.conf index a620f073bc..48c5b308bd 100644 --- a/src/etc/sysctl.conf +++ b/src/etc/sysctl.conf @@ -21,3 +21,9 @@ ddb.onpanic?=0 # Default tty/pty character queue sizes. Should be bumped to 32K or so if # used in networking (ppp/pppoe) #kern.tty.qsize=1024 + +# Makronix: users mount the shares of the network themselves (MCDE's file +# manager: sshfs and afpfs through FUSE, McdeSys netmount.c); such mounts +# are nodev and nosuid (sysctl(7), vfs.generic.usermount). Goes with +# /dev/putter readable and writable by all (MAKEDEV.tmpl, putter). +vfs.generic.usermount=1 diff --git a/tools/packages.vm.list b/tools/packages.vm.list index 147129dd55..86a4fa7677 100644 --- a/tools/packages.vm.list +++ b/tools/packages.vm.list @@ -18,3 +18,11 @@ x11/xrdb x11/xsetroot x11/xmodmap x11/xhost +# MCDE's Sharing, Backup and network mounts (packages.list). Put here, not +# tried in cross mode: like X they need build tools of their own, and the VM +# builds them natively (added 2026-11-11, not yet built). +net/samba4 +net/netatalk4 +filesystems/fuse-sshfs +filesystems/fuse-afpfs-ng +sysutils/py-borgbackup