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>
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mbusd
|
|
PKG_VERSION:=0.5.0
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/3cky/mbusd/tar.gz/v$(PKG_VERSION)?
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_HASH:=a41fc1254972d41d184d47e82b13c83577f22023f7a540d02062b704bce5c710
|
|
|
|
PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/mbusd
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Modbus TCP gateway
|
|
URL:=https://github.com/3cky/mbusd
|
|
endef
|
|
|
|
define Package/mbusd/description
|
|
Mbusd is open-source Modbus TCP to Modbus RTU (RS-232/485) gateway.
|
|
It presents a network of RTU slaves as single TCP slave.
|
|
|
|
That is a TCP-Slave (or server) which acts as a RTU-master to get
|
|
data from Modbus RTU-slave devices.
|
|
endef
|
|
|
|
define Package/mbusd/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbusd $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DATA) ./files/mbusd.conf $(1)/etc/config/mbusd
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/mbusd.init $(1)/etc/init.d/mbusd
|
|
endef
|
|
|
|
define Package/mbusd/conffiles
|
|
/etc/config/mbusd
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,mbusd))
|