- ptp4l.init: bound wait_disciplined with clock_sync_max_tries (default
8 attempts, ~2 min) so a server-role device with no time source does
not stall rcS indefinitely; set to 0 to wait without limit
- ptp4l.init: validate that at least one [interface] section was written
to ptp4l.conf (by counting section headers); a config with only
[global] is now rejected with a clear error rather than launching
ptp4l into a respawn loop
- phc2sys.init: require phc_device to be explicitly configured; removes
the /dev/ptp0 default so phc2sys does not auto-start on upgrade and
slew CLOCK_REALTIME from an undisciplined PHC
- linuxptp.config: comment out the config ptp_interface section header
so the shipped default contains no load-bearing anonymous section;
validation is now in the init script rather than the config structure
- linuxptp.config: comment out phc_device so both daemons require
explicit admin opt-in before starting
- linuxptp.config: document clock_sync_max_tries option
Signed-off-by: Aleks Mariusz <a+git-commit@alek.cx>
- ptp4l.init: move procd_open_instance block to after validation so
clock-sync wait and config-generation failures actually prevent startup
- ptp4l.init: add mkdir -p for /var/etc before writing ptp4l.conf
- phc2sys.init: propagate make_cmdline failure to prevent launch with
an incomplete command line
- Both init scripts: add service_triggers() for reload_config support
- ptp4l.init: quote all variable expansions in [ ] tests
- sysclock-discipline-check.c: zero-initialise struct timex via
memset, use int main(void), drop unused stdlib.h, cast txc.status
to unsigned int for printf
- linuxptp.config: comment out the active ptp_interface/interface
option so services do not auto-start on upgrade without explicit
admin opt-in
- linuxptp.config: comment out active list extra_args and document
clock_sync_check_interval and ptp4l extra_args options
- Fix typos: exitting->exiting, syncronized->synchronized
- ptp4l stop_service: remove generated config file on stop
Signed-off-by: Aleks Mariusz <a+git-commit@alek.cx>
This adds configuration and init scripts for ptp4l and phc2sys, the
daemons included with the linuxptp package.
A helper utility (sysclock-discipline-check) delays ptp4l startup when
in 'server' mode until the kernel confirms clock accuracy. This is
critical for systems without RTC that boot with incorrect timestamps.
Signed-off-by: Aleks Mariusz <a+git-commit@alek.cx>
Shorewall's last release, 5.2.8, dates from September 2020, and it only
generates iptables rulesets, while OpenWrt's default firewall (fw4) is
based on nftables.
Remove shorewall, shorewall6, shorewall-core, shorewall-lite and
shorewall6-lite. Nothing in the feeds depends on them.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Upstream has deprecated netdisco: "This library is deprecated. We will
no longer release new versions, fix bugs or accept pull requests."
The last release, 3.0.0, dates from October 2021, and the upstream
repository (https://github.com/home-assistant-libs/netdisco) was
archived on 1 October 2021 and is now read-only.
Nothing in the feeds depends on it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The boost-context-exclude switch, and the coroutine and fiber
exclusions chained to it, only ever applied to the arc770 and archs38
targets, because Boost.Context has no ARC support. Both targets have
been removed from openwrt.git, in
commit fcb29171bc9a ("arc770: Remove arc770 target") and
commit df9ffedb75b5 ("archs38: drop target").
With no target left to set them, these hidden symbols are always
disabled. Remove them and the dependencies on them.
There is no functional change: the dependencies of the boost-context,
boost-coroutine, boost-fiber and boost packages only lose conditions
that were always true.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Since alpine 2.24, upstream requires OpenSSL, so the nossl variant was
marked @BROKEN in commit 29b91b0141 ("alpine: update to 2.24") and
cannot be built.
Drop it. With only the OpenSSL variant left, also drop the build
variant handling and pass the OpenSSL configure arguments
unconditionally. The resulting alpine package is unchanged.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The sniffer subpackage was marked @BROKEN as untested when rp-pppoe was
added back in commit 847706ba5a ("rp-pppoe: Add back from oldpackages
with build fixes and enhanced packaging"), in 2016. It has never been
re-enabled since, so it has not been built or shipped in ten years.
Drop it. The other rp-pppoe packages are unchanged.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The octeontx target was removed from openwrt.git in
commit 169a6952802d ("octeontx: drop target"). Drop it from the
DEPENDS exclusion list.
TARGET_octeontx can no longer be set, so there is no functional change.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The package has never had a Thread firewall: the OpenThread posix
platform's own one (OT_FIREWALL) produces ipset/ip6tables rules, so it
is disabled here, and the README documents waiting for
openthread/ot-br-posix#1675 to revisit that. v2026.09.0 delivered what
that issue asked for: an in-process nftables backend.
Build with OTBR_NFTABLES=ON: otbr-agent then installs the Thread
ingress filter itself, through nftables in a table of its own (inet
otbr_<thread-if>), matching what an fw4-based OpenWrt runs, and puts the
table back when something else deletes it, as fw4 flush does on every
firewall stop. This needs nf_tables kernel support at runtime, so add
kmod-nft-core alongside the userspace libmnl/libnftnl: with the backend
compiled in, a failed firewall install aborts the agent rather than
silently forwarding unfiltered traffic. The NAT44 masquerade is only
installed with OTBR_NAT64, which this package builds without, so
kmod-nft-nat is not needed. OT_FIREWALL deliberately stays off; the
in-process backend replaces its ipset producer wholesale.
Also ship the marker file the build writes. Nothing on the target reads
it today - it records which backend owns the rules, as a debugging aid
and for anything that later needs to tell the backends apart.
Assisted-By: AI
Signed-off-by: Christian Glombek <c.glombek@cosa.systems>
Switch OTBR_MDNS from mDNSResponder to openthread, drop the mdnsd and
mDNSResponder dependencies, and remove the proto handler's mdnsd service
check, which would otherwise refuse to start otbr-agent now that mdnsd is
no longer installed.
This follows upstream, which made the internal implementation the default
in openthread/ot-br-posix#2996 and uses it in its own OpenWrt example
package, and it lets otbr-agent share a router with umdns, which is what
advertises the router's procd-registered services (ssh, samba and the
like) and resolves <hostname>.local.
The two can coexist because they never contend for a name: OpenThread's
mDNS names its host after the Thread extended address, while umdns keeps
<hostname>.local. Both bind UDP 5353 with SO_REUSEADDR and each answers
only for its own records. mDNSResponder instead takes its name from
gethostname(), so it and umdns race for the same name, and the loser
either stops announcing without logging anywhere procd captures or, if
neither notices, both keep claiming it. That is the conflict with a
running mdnsd noted in openwrt/packages#29784.
Border router discovery is unaffected: in this mode OpenThread's own
border agent registers the _meshcop._udp service (its
OPENTHREAD_CONFIG_BORDER_AGENT_MESHCOP_SERVICE_ENABLE follows
OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE), and OTBR's publisher is disabled
by design, so clients such as Home Assistant still find the border router.
Note that OpenThread's mDNS serves a single interface, the one given by
the backbone_network option, so Thread service records are announced on
that network only.
(cherry picked from commit 233cfaa72c)
Assisted-By: AI
Signed-off-by: Christian Glombek <c.glombek@cosa.systems>
As of the 2026.07.0 update, otbr-agent's REST API defaults to listening
on 127.0.0.1, so remote clients (e.g. Home Assistant on another host) can
no longer reach it. Add rest_listen_address and rest_listen_port proto
options and pass them through to otbr-agent when set; leaving them unset
keeps the secure loopback-only default.
Also drop the leftover unused 'foobar' proto config option.
(cherry picked from commit caacf174a8)
Assisted-By: AI
Signed-off-by: Christian Glombek <c.glombek@cosa.systems>
Update from a 2025-06-12 snapshot to the v2026.10.0 release and switch
to release-tag versioning.
The in-tree LuCI app is gone: upstream removed it in the 2026.09.0
release (openthread/ot-br-posix#3326), so the luci-app-openthread
package cannot be built from this source any more. A maintained
replacement is proposed as a proper LuCI app in openwrt/luci#8871.
OTBR_VENDOR_NAME and OTBR_PRODUCT_NAME are now required (the 2026.08.0
release removed the built-in defaults) and are set to the values those
defaults had, so existing users' border routers keep their MeshCoP
instance name. OTBR_VERSION is set so --version reports the release
rather than the CMake project version; see the README for the
reasoning on both.
The gcc14 build fix is still needed: the bundled mbedtls still lacks
the upstream fix at this release's submodule pins.
Three CMake options also leave the invocation: OTBR_DUA_ROUTING no
longer exists upstream, and OTBR_DNSSD_DISCOVERY_PROXY and
OTBR_SRP_ADVERTISING_PROXY now default appropriately from OTBR_MDNS
(forcing them ON alongside the OT-core proxies is a CMake FATAL_ERROR
once the internal mDNS is selected).
Also add a functional smoke test.
Assisted-By: AI
Signed-off-by: Christian Glombek <c.glombek@cosa.systems>
Specify correct make targets instead of source patching. Avoid noisy
gitdir lookup failures triggered repeatedly by the podman build system.
Follow upstream's switch from slirp4netns to passt.
Supply an upgraded v2-format registries.conf with entries matching those
previously pulled from the old Fedora Atomic vendor repo. Though we
retain them for now, these entries are specific to RedHat products and
are likely not meaningful long-term defaults for OpenWrt.
Link: https://github.com/podman-container-tools/podman/releases/tag/v6.1.2
Signed-off-by: Gary Dotzler <geldot@protonmail.com>
Reduce installed footprint by ~30 MiB: The main podman executable
already includes podman-remote via its --remote flag, so there is never
a reason to install both binaries simultaneously. Provide a tiny
podman-remote wrapper script for compatibility instead.
This commit does not introduce a subpackage for the standalone
podman-remote binary though we can do so in future if a use-case arises.
Signed-off-by: Gary Dotzler <geldot@protonmail.com>
This is a modern slirp4netns alternative. Upstream recently fixed the
musl build, unlocking this patch-free integration.
Prerequisite for the upcoming podman 6 version bump.
Link: https://passt.top/passt/about/
Signed-off-by: Gary Dotzler <geldot@protonmail.com>
Maintenance release on top of 4.6.0.
Version 4.6.0 includes multiple optimizations and enhancements for speed,
caching, coexistence with Samba/NFS, and use of modern database backends.
It deprecates the Berkeley DB (dbd) backend; this is the last release to
support it.
Release notes: https://github.com/Netatalk/netatalk/releases
Notable:
- full variant will default to sqlite backend. If currently using dbd,
pin 'cnid scheme = dbd' on configuration file after upgrade
- with-afpstats, with-shell-check, with-cnid-default-backend options
have been removed
- an additional link path has been added to address linking issues on
build of full package with iconv support; this is only relevant to this
release
Signed-off-by: Antonio Pastor <antonio.pastor@gmail.com>
The KERNEL_DIRECT_IO option was removed from OpenWrt in 2017 together
with the out-of-tree hack to disable direct I/O, and direct I/O is
always available. Selecting the undefined symbol has no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
KERNEL_MEMCG_SWAP_ENABLED and KERNEL_CFQ_GROUP_IOSCHED refer to kernel
symbols that no longer exist (MEMCG swap accounting is no longer a
separate option, and CFQ was removed in Linux 5.0). The selects have
no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
KERNEL_MEMCG_KMEM and KERNEL_DEVPTS_MULTIPLE_INSTANCES refer to kernel
symbols that no longer exist: kernel memory accounting is always part of
MEMCG, and devpts always supports multiple instances. The selects have
no effect.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
This is a security release.
Security:
* Memory corruption when an application cancels its lookups after a connection failure.
* A DNS reply that arrived from a different server than the one queried could be accepted.
* Use-after-free of a lookup after shutting down a failed connection.
* Use-after-free when an application cancels lookups from a callback, or shuts a channel down.
* Use-after-free of a connection after the socket-state callback returns.
* Use-after-free when an application cancels lookups from a server-state callback.
* Use-after-free of a server record when an application changes its DNS servers from a callback.
* Use-after-free of a cached DNS answer while the application is still reading it.
* Buffer overflow when ares_dup() or ares_save_options() runs while another thread changes the srv
* Uninitialized memory returned for a numeric IPv6 name with a prefix length.
* The query cache could return an answer obtained using different EDNS options.
Fixes:
GHSA-wpr3-8q3r-4q8c
GHSA-fqh5-3x7m-wp44
GHSA-97vq-4mxv-7vhm
GHSA-rf6g-ww74-97qh
GHSA-mw23-pfg6-2x9r
GHSA-v33j-65h4-4ch8
GHSA-pj7p-v3cw-hq66
GHSA-grv7-fq5q-9vfc
GHSA-ph6c-3cvx-mq6v
GHSA-cfcv-8v2j-qj6r
GHSA-wrgc-prmw-27xh
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
With vnstat removed, let vnstat2 and vnstati2 provide vnstat and
vnstati, so apk can replace an installed vnstat with vnstat2 on upgrade.
Switching over keeps the existing setup working:
- /etc/config/vnstat uses the same section type and interface list in
both versions; options only vnstat 1.x knew are ignored.
- vnstatd imports vnStat 1.x databases from its DatabaseDir on first
start, also when run with --initdb as the init script does.
- vnStat 2.x ignores configuration keywords it doesn't know, so an
existing /etc/vnstat.conf keeps working.
The versioned provide also prevents vnstat and vnstat2 from being
installed side by side, so drop CONFLICTS:=vnstat, which apk ignores.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
vnstat 1.18 dates from 2018, and upstream has since moved to the 2.x
series, which is packaged as vnstat2. Nothing in the feeds depends on
vnstat; luci-app-vnstat2 already uses vnstat2.
The next commit lets vnstat2 provide vnstat, so existing installations
are upgraded to it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
OVN 22.03 is built against the Open vSwitch 2.17 tree and does not build
with 3.7. Update to 26.03.2, the latest release of the 26.03 LTS branch
whose ovs submodule matches Open vSwitch 3.7 (3.7.0). 26.03.3 already
requires changes from Open vSwitch branch-3.7 that are not in 3.7.1,
e.g. the new compose_nd_ns() signature.
Patches:
- 0001: refreshed
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The 2.17 LTS branch reached end of life in February 2025. Update to
3.7.1 from the current 3.7 LTS branch.
Patches:
- 0007: refreshed, libbpf linking was removed upstream
- 0008: dropped, included upstream
The version bump checklist no longer needs to check the kernel versions
supported by the datapath module, as the Open vSwitch source tree does
not contain one anymore. Note instead that net/ovn has to be updated
along with it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
The kmod-openvswitch-*-intree packages build the datapath shipped in the
Open vSwitch source tree, which only supports kernels 3.10 to 5.5. They
have not been buildable on any supported OpenWrt kernel since 22.03
(Linux 5.10). They still show up in menuconfig because kernel_version_cmp
is empty during the metadata scan, but selecting one only prints "intree
kmods selected but not supported".
Open vSwitch removed the out-of-tree datapath in 3.0. Remove the
packages together with the configure plumbing (--with-linux, KARCH,
OVS_KERNEL_MAKE_FLAGS), the patch for passing kernel make flags and the
README section. The kmod-openvswitch packages built from the kernel's
net/openvswitch are unchanged.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
kmod-lib-crc32c is only available with kernel 6.12 and is being removed
together with kernel 6.12 support. With kernel 6.18, CRC32C is provided
by the built-in CRC library, so the dependency is no longer needed.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
xkcptun is a lightweight, high-performance KCP-based secure tunnel
written in C (libevent2 + ikcp). This package ships both the client
(xkcp_client) and server (xkcp_server) daemons plus the xkcp_spy
monitoring tool, with a procd init script that renders per-instance
TOML configs from /etc/config/xkcptun.
Tunnels support tcp/udp forwarding, SOCKS5 and transparent REDIRECT
proxy modes, and can integrate with eBPF-based xdns-bpf for
domain-based transparent steering.
Compile tested: aarch64_cortex-a53 (chawrt 25.12 / OpenWrt snapshot)
Run tested: aarch64_cortex-a53 (clawwifi M3000 v1 router, client+server
pair with DNS and transparent TCP tunnels)
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
Add a policy requiring human-written comments and contributions, with a
human in the loop responsible for LLM-generated code.
Signed-off-by: George Sapkin <george@sapk.in>
With gnupg removed, let gnupg2, gpgv2 and gnupg2-utils provide gnupg,
gpgv and gnupg-utils, so apk can replace an installed GnuPG 1.4 with
GnuPG 2 on upgrade.
gnupg2 already installs /usr/bin/gpg and /usr/bin/gpgv as alternatives,
and GnuPG 2 migrates a GnuPG 1.x secret keyring on first use.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
GnuPG 1.4 is the legacy branch; its last release, 1.4.23, dates from
June 2018. gnupg2 covers its uses, and fwknop, the last package
depending on it, now uses gnupg2.
The next commit lets gnupg2 provide gnupg, so existing installations
are upgraded to it.
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
GnuPG 1.4 is being removed from the feed. Use gnupg2 for GPG support
instead. GPGME 2.x still works with either, but GnuPG 2 does all secret
key operations through gpg-agent, which is packaged in gnupg2-utils, so
depend on that as well.
While at it:
- fix fwknopd depending on the nonexistent FWKNOP_GPG symbol instead of
FWKNOPD_GPG; it only got gnupg through libfko so far.
- pass --with-gpg=/usr/bin/gpg. Without it, configure looks for gpg on
the build host, and libfko fails to build with GPG support if there
is none.
With GnuPG 2, the GPGME passphrase callback libfko uses only works in
loopback pinentry mode, which libfko does not select. Passphrase-
protected keys therefore need "pinentry-mode loopback" in gpg.conf, or
a key without a passphrase together with GPG_ALLOW_NO_PW, as described
in fwknopd(8).
Signed-off-by: Sander van Deijck <sander@vandeijck.com>