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>
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=generate-ipv6-address
|
|
PKG_VERSION:=0.1
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=generate-ipv6-address-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://www.irif.fr/~jch/software/files/
|
|
PKG_HASH:=e1356d245d5f891fa39b796a8a2deefdaa89f08130dc97a378738ca5ed9a20fa
|
|
|
|
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
|
PKG_LICENSE:=MIT
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/generate-ipv6-address
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Generate IPv6 Addresses
|
|
URL:=https://www.irif.fr/~jch/
|
|
DEPENDS:=@IPV6
|
|
endef
|
|
|
|
define Package/generate-ipv6-address/description
|
|
Generates IPv6 addresses from a given prefix and either a given MAC-48
|
|
address (an Ethernet hardware address) or a randomly drawn host number.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(PKG_BUILD_DIR)/generate-ipv6-address.c -o $(PKG_BUILD_DIR)/generate-ipv6-address
|
|
endef
|
|
|
|
define Package/generate-ipv6-address/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/generate-ipv6-address $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,generate-ipv6-address))
|