2021-08-03 18:59:44 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#
|
|
|
|
# Copyright (C) 2021 Simon Polack <spolack+git@@mailbox.org>
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=airos-dfs-reset
|
|
|
|
PKG_VERSION:=1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=1
|
2021-08-03 18:59:44 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Simon Polack <spolack+git@mailbox.org>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/airos-dfs-reset
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Companion app for Ubiquity AirOS to help with DFS
|
|
|
|
PKGARCH:=all
|
|
|
|
EXTRA_DEPENDS:=dropbear
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/airos-dfs-reset/description
|
|
|
|
Companion app for Ubiquity AirOS Gear to enforce fallback to original frequency after DFS event is over.
|
|
|
|
It works by soft-rebooting if running-frequency doesnt match the configured frequency.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/airos-dfs-reset/conffiles
|
|
|
|
/etc/config/airos-dfs-reset
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/airos-dfs-reset/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/airos-dfs-reset.init $(1)/etc/init.d/airos-dfs-reset
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) ./files/airos-dfs-reset $(1)/usr/bin/airos-dfs-reset
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/airos-dfs-reset.config $(1)/etc/config/airos-dfs-reset
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,airos-dfs-reset))
|