iputils: bump to 20240905
[feed/packages.git] / utils / airos-dfs-reset / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2021 Simon Polack <spolack+git@@mailbox.org>
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=airos-dfs-reset
9 PKG_VERSION:=1
10 PKG_RELEASE:=1
11
12 PKG_MAINTAINER:=Simon Polack <spolack+git@mailbox.org>
13 PKG_LICENSE:=GPL-2.0-only
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/airos-dfs-reset
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=Companion app for Ubiquity AirOS to help with DFS
21 PKGARCH:=all
22 EXTRA_DEPENDS:=dropbear
23 endef
24
25 define Package/airos-dfs-reset/description
26 Companion app for Ubiquity AirOS Gear to enforce fallback to original frequency after DFS event is over.
27 It works by soft-rebooting if running-frequency doesnt match the configured frequency.
28 endef
29
30 define Package/airos-dfs-reset/conffiles
31 /etc/config/airos-dfs-reset
32 endef
33
34 define Build/Compile
35 endef
36
37 define Package/airos-dfs-reset/install
38 $(INSTALL_DIR) $(1)/etc/init.d
39 $(INSTALL_BIN) ./files/airos-dfs-reset.init $(1)/etc/init.d/airos-dfs-reset
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) ./files/airos-dfs-reset $(1)/usr/bin/airos-dfs-reset
42 $(INSTALL_DIR) $(1)/etc/config
43 $(INSTALL_DATA) ./files/airos-dfs-reset.config $(1)/etc/config/airos-dfs-reset
44 endef
45
46 $(eval $(call BuildPackage,airos-dfs-reset))