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>
61 lines
1.9 KiB
Makefile
61 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2015 Bruno Randolf (br1@einfach.org)
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=pingcheck
|
|
PKG_VERSION:=2022-03-01
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/br101/pingcheck
|
|
PKG_SOURCE_VERSION:=13b63da97696806ec68638e006ae4fe421f579ae
|
|
PKG_MIRROR_HASH:=5d833681db6e5f168bd275d6c99f80f9758f21f7ee5d8d66b536361ad740af4d
|
|
|
|
PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/pingcheck
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libubus +libuci
|
|
MAINTAINER:=Bruno Randolf <br1@einfach.org>
|
|
TITLE:=Check Internet and interface connectivity
|
|
URL:=https://github.com/br101/pingcheck
|
|
endef
|
|
|
|
define Package/pingcheck/description
|
|
Checks by using "ping" (ICMP echo) or by opening connections to TCP port 80
|
|
whether a configured host (normally on the internet) can be reached via a
|
|
specific interface. Then makes this information available via ubus and triggers
|
|
"online" and "offline" scripts.
|
|
endef
|
|
|
|
define Package/pingcheck/conffiles
|
|
/etc/config/pingcheck
|
|
endef
|
|
|
|
define Package/pingcheck/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/pingcheck $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./pingcheck.init $(1)/etc/init.d/pingcheck
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/pingcheck.config $(1)/etc/config/pingcheck
|
|
$(INSTALL_DIR) $(1)/etc/pingcheck/online.d/
|
|
$(INSTALL_DIR) $(1)/etc/pingcheck/offline.d/
|
|
$(INSTALL_DIR) $(1)/etc/pingcheck/panic.d/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/example-script.sh $(1)/etc/pingcheck/online.d/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/example-script.sh $(1)/etc/pingcheck/offline.d/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,pingcheck))
|