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
- Portal redesigned from scratch. No header bar: the page opens with the server's name and the person's and fades under the edges. Device cards show the status, the last 7 days (hover a day for its figures) and a Connect or Update button; "Your access" folds into rows: what they can reach (with the names at home), data this month day by day, and when access ends. The page follows the system's light or dark theme - Adding a device: pick the kind (PC, Mobile, Router, Other) and a name, or add it from the device itself with the page's QR code. The set-up sheet then shows the app for that system and the connection, waits for the first connection, says "<device> connected" and closes on its own - Switching apps in the set-up sheet changes only what differs: the old words blur into the new ones, and the menu path is shown for iOS and Android in one line. Names, numbers and statuses that change on the page morph in place - Dialogs open in the middle on a computer, on the same spring as the menu; buttons that wait for the router show a spinner at once - A paused account gets one card that says so; the page's messages are short and no longer send people to the admin. A QR code of the page sits beside the breadcrumb, to open it on another device - Allowed hours are shown in the visitor's own time zone - The portal's Title setting is gone: the page and its tab take the server's name. A title set before is removed on upgrade - The admin names .conf files after the server too, as the portal does (Outline-Home.conf); its device menu says "Download AmneziaWG config" and "Copy AmneziaVPN config", and its QR codes use the portal's round look in the admin's light or dark colours - README rewritten, with screenshots made from a demo cast (scripts/capture-screenshots.mjs --demo)
59 lines
2.2 KiB
Makefile
59 lines
2.2 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.10.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
|