xref: /mports/security/crowdsec-firewall-bouncer/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	crowdsec-firewall-bouncer
2DISTVERSIONPREFIX=	v
3DISTVERSION=	0.0.28
4PORTREVISION=	10
5CATEGORIES=	security
6
7MAINTAINER=	ports@MidnightBSD.org
8COMMENT=	CrowdSec bouncer written in golang for firewalls
9WWW=		https://github.com/crowdsecurity/cs-firewall-bouncer
10
11LICENSE=	mit
12LICENSE_FILE=	${WRKSRC}/LICENSE
13
14USES=		go:modules
15_COMMIT=	af6e7e2
16_BUILD_DATE=	$$(date -u "+%F_%T")
17USE_RC_SUBR=	crowdsec_firewall
18
19GO_MODULE=	github.com/crowdsecurity/cs-firewall-bouncer
20GO_TARGET=	${PORTNAME}:./${PORTNAME}
21GO_BUILDFLAGS=	-trimpath -tags netgo \
22		-ldflags="\
23		-a -s -w -extldflags '-static' \
24		-X github.com/crowdsecurity/go-cs-lib/version.Version=${DISTVERSIONPREFIX}${DISTVERSION}-freebsd \
25		-X github.com/crowdsecurity/go-cs-lib/version.BuildDate=${_BUILD_DATE} \
26		-X github.com/crowdsecurity/go-cs-lib/version.Tag=${_COMMIT}"
27
28CGO_ENABLED=	0
29
30SUB_FILES=	pkg-deinstall \
31		pkg-install \
32		pkg-message
33
34ETCDIR=		${PREFIX}/etc/crowdsec/bouncers
35
36do-install:
37	#
38	# Binaries
39	#
40
41	${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} \
42		${PREFIX}/bin/${PORTNAME}
43
44	#
45	# Configuration
46	#
47
48	@${MKDIR} ${ETCDIR}
49	${INSTALL_DATA} ${WRKSRC}/config/${PORTNAME}.yaml \
50		${ETCDIR}/${PORTNAME}.yaml.sample
51
52.include <bsd.port.mk>
53

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026