2021-11-29 03:38:30 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cni-route-override
|
|
|
|
PKG_VERSION:=0.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-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=2
|
2021-11-29 03:38:30 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/redhat-nfvpe/$(PKG_NAME).git
|
|
|
|
PKG_SOURCE_DATE:=2021-11-29
|
|
|
|
PKG_SOURCE_VERSION:=6263d6876c6aa52d6b660e4b54da6b0b58b04022
|
|
|
|
PKG_MIRROR_HASH:=c74763b44b2b97927a75aecc8d2e2681784888e20be1a456c34a270fd642d1f0
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-03-23 07:39:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2021-11-29 03:38:30 +00:00
|
|
|
|
|
|
|
GO_PKG:=github.com/redhat-nfvpe/$(PKG_NAME)/
|
|
|
|
GO_PKG_BUILD_PKG:=github.com/redhat-nfvpe/$(PKG_NAME)/cmd/route-override
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
|
|
|
|
define Package/cni-route-override
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Meta CNI plugin for overriding IP route
|
|
|
|
URL:=https://github.com/redhat-nfvpe/cni-route-override/
|
|
|
|
DEPENDS:=$(GO_ARCH_DEPENDS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cni-route-override/description
|
|
|
|
route-override IPAM works as meta CNI plugin to override IP route given by previous CNI plugins.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cni-route-override/install
|
|
|
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/cni
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/lib/cni
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call GoBinPackage,cni-route-override))
|
|
|
|
$(eval $(call BuildPackage,cni-route-override))
|