<commit_before>################################################################################
#
# cni
#
################################################################################

CNI_VERSION = v0.7.1
CNI_SITE = https://github.com/containernetworking/cni/archive
CNI_SOURCE = $(CNI_VERSION).tar.gz
CNI_LICENSE = Apache-2.0
CNI_LICENSE_FILES = LICENSE

CNI_DEPENDENCIES = host-go

CNI_GOPATH = $(@D)/_output
CNI_MAKE_ENV = \
	$(GO_TARGET_ENV) \
	CGO_ENABLED=0 \
	GO111MODULE=off \
	GOPATH="$(CNI_GOPATH)" \
	GOBIN="$(CNI_GOPATH)/bin" \
	PATH=$(CNI_GOPATH)/bin:$(BR_PATH)
	GOARCH=arm64

CNI_BUILDFLAGS = -a --ldflags '-extldflags \"-static\"'

define CNI_CONFIGURE_CMDS
        mkdir -p $(CNI_GOPATH)/src/github.com/containernetworking
        ln -sf $(@D) $(CNI_GOPATH)/src/github.com/containernetworking/cni
endef

define CNI_BUILD_CMDS
	(cd $(@D); $(CNI_MAKE_ENV) go build -o bin/cnitool $(CNI_BUILDFLAGS) ./cnitool)
endef

define CNI_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 0755 \
		$(@D)/bin/cnitool \
		$(TARGET_DIR)/opt/cni/bin/cnitool

	ln -sf \<commit_msg>fix cni make env<commit_after>################################################################################
#
# cni
#
################################################################################

CNI_VERSION = v0.7.1
CNI_SITE = https://github.com/containernetworking/cni/archive
CNI_SOURCE = $(CNI_VERSION).tar.gz
CNI_LICENSE = Apache-2.0
CNI_LICENSE_FILES = LICENSE

CNI_DEPENDENCIES = host-go

CNI_GOPATH = $(@D)/_output
CNI_MAKE_ENV = \
	$(GO_TARGET_ENV) \
	CGO_ENABLED=0 \
	GO111MODULE=off \
	GOPATH="$(CNI_GOPATH)" \
	GOBIN="$(CNI_GOPATH)/bin" \
	PATH=$(CNI_GOPATH)/bin:$(BR_PATH) \
	GOARCH=arm64

CNI_BUILDFLAGS = -a --ldflags '-extldflags \"-static\"'

define CNI_CONFIGURE_CMDS
        mkdir -p $(CNI_GOPATH)/src/github.com/containernetworking
        ln -sf $(@D) $(CNI_GOPATH)/src/github.com/containernetworking/cni
endef

define CNI_BUILD_CMDS
	(cd $(@D); $(CNI_MAKE_ENV) go build -o bin/cnitool $(CNI_BUILDFLAGS) ./cnitool)
endef

define CNI_INSTALL_TARGET_CMDS
	$(INSTALL) -D -m 0755 \
		$(@D)/bin/cnitool \
		$(TARGET_DIR)/opt/cni/bin/cnitool

	ln -sf \
{'fraction_non_alphanumeric': 0.28231451236584226, 'fraction_numerical': 0.013999066728884742, 'mean_word_length': 4.988826815642458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7653637', 'n_tokens_mistral': 878, 'n_tokens_neox': 836, 'n_words': 125}