Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
- Balanced, a new disguise for AmneziaWG 2.0 apps (AmneziaVPN 4.8.12 and newer): junk packets, padded cookie and data packets and DNS-shaped signature packets, for networks that learned to spot 1.0-style junk; offered when both the tools and the kernel module are 2.0 or newer - The junk count and sizes in a device's configuration are the device's own (shifted a little, deterministically), so two phones of one family do not share one profile; they never require importing again - Components remembers which AmneziaWG build was installed on which kernel; after a firmware upgrade Health says the build was for the old one and offers the build for the new firmware. A SNAPSHOT firmware is told there are no builds for it - Location lookups moved off the agent's 1-second watcher to its minute tick, a few per minute within a time budget; the cache lives in tmpfs and goes to flash hourly, and addresses still shown on the map are never pushed out of it (and looked up again) - The map library from the CDN is checked against its expected hash before it runs inside the LuCI page - The activity log is copied to flash only when something was logged; the person page and the device drawer fetch only that person's events - Admin UI: live updates survive the theme's in-page navigation, pollers stop with their page and sleep while the tab is hidden, the map is freed when leaving the Overview, a router that stops answering is said once (and when it is back), and an update of Dawnline under an open page asks for a reload - Watchdog: no repairs while an update runs; a target that keeps failing keeps its back-off (repairs are forgotten after ten good minutes, not one); the LuCI link is reloaded or restarted three times at most, not every hour for good; the one-click "ifup" fix accepts only Dawnline's own tunnels - Health warns when the router's flash is nearly full (settings would stop saving); the portal runs two processes instead of four on routers with little memory - "Remove their devices" at an end date is never done on a clock that has not been set yet
59 lines
2.1 KiB
Makefile
59 lines
2.1 KiB
Makefile
# SPDX-License-Identifier: MIT
|
|
#
|
|
# Dawnline — AmneziaWG access server for OpenWrt with a LuCI admin UI and a
|
|
# personal self-service portal.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-dawnline
|
|
PKG_VERSION:=0.7.0
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=MIT
|
|
|
|
LUCI_TITLE:=Dawnline - AmneziaWG access server
|
|
# AmneziaWG itself (kmod-amneziawg, amneziawg-tools, luci-proto-amneziawg) is not
|
|
# in the OpenWrt feeds: install.sh and the Components page install a build made for
|
|
# the router's firmware. The portal's HTTPS needs any libustream TLS module and
|
|
# openssl-util; Settings offers to install them when the portal is turned on.
|
|
# Runtime dependencies only (control file Depends): the package ships scripts
|
|
# and web files, so the SDK has nothing to build for them, and as build
|
|
# dependencies ip-full (iproute2) and kmod-veth would pull in the whole kernel.
|
|
# OpenWrt 25.12's luci.mk wants a version on each; (>=0) means any.
|
|
LUCI_EXTRA_DEPENDS:=luci-base (>=0), rpcd-mod-ucode (>=0), ucode (>=0), ucode-mod-fs (>=0), ucode-mod-uci (>=0), \
|
|
ucode-mod-ubus (>=0), ucode-mod-uloop (>=0), ip-full (>=0), kmod-veth (>=0), uhttpd (>=0)
|
|
LUCI_PKGARCH:=all
|
|
# The web bundles are already minified by esbuild (LuCI's jsmin cannot parse modern JS).
|
|
LUCI_MINIFY_JS:=0
|
|
LUCI_MINIFY_CSS:=0
|
|
|
|
PKG_MAINTAINER:=tickcount
|
|
LUCI_MAINTAINER:=tickcount
|
|
LUCI_URL:=https://github.com/tickcount/luci-app-dawnline
|
|
|
|
define Package/luci-app-dawnline/conffiles
|
|
/etc/config/dawnline
|
|
endef
|
|
|
|
# /etc/dawnline (keys, backups, usage, history) survives a sysupgrade too:
|
|
# root/lib/upgrade/keep.d/dawnline-data (the package's own keep.d file is
|
|
# generated from conffiles).
|
|
|
|
define Package/luci-app-dawnline/prerm
|
|
#!/bin/sh
|
|
[ -n "$${IPKG_INSTROOT}" ] && exit 0
|
|
# An upgrade keeps everything running; only a removal tears down.
|
|
[ "$$1" = "upgrade" ] && exit 0
|
|
/etc/init.d/dawnline stop 2>/dev/null
|
|
/usr/bin/dawnline teardown 2>/dev/null
|
|
# The heartbeat check would point at a removed file.
|
|
grep -qs /usr/libexec/dawnline/ /etc/crontabs/root && {
|
|
sed -i '\#/usr/libexec/dawnline/#d' /etc/crontabs/root
|
|
/etc/init.d/cron restart 2>/dev/null
|
|
}
|
|
exit 0
|
|
endef
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
# call BuildPackage - OpenWrt buildroot signature
|