@ -1,19 +1,17 @@
# SPDX-License-Identifier: MIT
# SPDX-License-Identifier: MIT
#
#
# Copyright (C) 2021 Gerald Kerma
# Copyright (C) 2021-2022 Gerald Kerma
#
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := crowdsec
PKG_NAME := crowdsec
PKG_VERSION := 1.2.1
PKG_VERSION := 1.2.2
PKG_RELEASE := $( AUTORELEASE)
PKG_RELEASE := $( AUTORELEASE)
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/crowdsecurity/crowdsec
PKG_SOURCE_VERSION := v$( PKG_VERSION)
PKG_SOURCE_DATE := 20211117
PKG_MIRROR_HASH := dfe50e5fb4d32fb6c21275b3f13a837ad64a9054e78076b44325376dc003fc64
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/crowdsecurity/crowdsec/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := b815ac4fafa25f0e657b56baaba9a093ef64fbe7336e4bc29208eb47ed1af5e6
PKG_LICENSE := MIT
PKG_LICENSE := MIT
PKG_LICENSE_FILES := LICENSE
PKG_LICENSE_FILES := LICENSE
@ -24,16 +22,17 @@ PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16 := 0
PKG_USE_MIPS16 := 0
CWD_SYSTEM := openwrt
CWD_SYSTEM := openwrt
CWD_BUILD_VERSION ?= $( PKG_SOURCE_VERSION)
CWD_BUILD_VERSION ?= v$( PKG_VERSION)
CWD_BUILD_GOVERSION := $( shell go version | cut -d " " -f3 | sed -E 's/[go]+//g' )
CWD_BUILD_GOVERSION := $( shell go version | cut -d " " -f3 | sed -E 's/[go]+//g' )
CWD_BUILD_CODENAME := alphaga
CWD_BUILD_CODENAME := alphaga
CWD_BUILD_TIMESTAMP := $( SOURCE_DATE_EPOCH )
CWD_BUILD_TAG := openwrt
CWD_BUILD_TIMESTAMP := $( shell date +%F"_" %T )
CWD_BUILD_TAG := openwrt-$( PKG_VERSION) -$( PKG_RELEASE)
CWD_VERSION_PKG := github.com/crowdsecurity/crowdsec/pkg/cwversion
CWD_VERSION_PKG := github.com/crowdsecurity/crowdsec/pkg/cwversion
GO_PKG := github.com/crowdsecurity/crowdsec
GO_PKG := github.com/crowdsecurity/crowdsec
GO_PKG_INSTALL_ALL := 1
GO_PKG_LDFLAGS_X := $( CWD_VERSION_PKG) .Version= $( CWD_BUILD_VERSION) \
GO_PKG_LDFLAGS_X := $( CWD_VERSION_PKG) .Version= $( CWD_BUILD_VERSION) \
$( CWD_VERSION_PKG) .System= $( CWD_SYSTEM) \
$( CWD_VERSION_PKG) .System= $( CWD_SYSTEM) \
$( CWD_VERSION_PKG) .BuildDate= $( CWD_BUILD_TIMESTAMP) \
$( CWD_VERSION_PKG) .BuildDate= $( CWD_BUILD_TIMESTAMP) \
@ -41,8 +40,6 @@ GO_PKG_LDFLAGS_X:=$(CWD_VERSION_PKG).Version=$(CWD_BUILD_VERSION) \
$( CWD_VERSION_PKG) .Tag= $( CWD_BUILD_TAG) \
$( CWD_VERSION_PKG) .Tag= $( CWD_BUILD_TAG) \
$( CWD_VERSION_PKG) .GoVersion= $( CWD_BUILD_GOVERSION)
$( CWD_VERSION_PKG) .GoVersion= $( CWD_BUILD_GOVERSION)
GO_PKG_INSTALL_ALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / . . / l a n g / g o l a n g / g o l a n g - p a c k a g e . m k
i n c l u d e . . / . . / l a n g / g o l a n g / g o l a n g - p a c k a g e . m k