mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
de0af67d87
Details: - Bugfix release, details see: https://github.com/containous/traefik/releases/tag/v1.7.14 - Includes HTTP/2 denial of service fixes as described in CVE-2019-9512 and CVE-2019-9514 MFH: 2019Q3 (hat: ports-secteam) Security: CVE-2019-9512 CVE-2019-9514
69 lines
2.0 KiB
Makefile
69 lines
2.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= traefik
|
|
PORTVERSION= 1.7.14
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= net
|
|
MASTER_SITES= LOCAL/riggs/${PORTNAME}:webui
|
|
DISTFILES= ${PORTNAME}-webui-static-${PORTVERSION}${EXTRACT_SUFX}:webui
|
|
|
|
MAINTAINER= riggs@FreeBSD.org
|
|
COMMENT= High availability reverse proxy and load balancer
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
BUILD_DEPENDS= go-bindata:devel/go-bindata
|
|
|
|
USES= go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= containous
|
|
GH_SUBDIR= src/github.com/containous/traefik
|
|
|
|
USE_RC_SUBR= traefik
|
|
|
|
USERS= traefik
|
|
GROUPS= traefik
|
|
|
|
PLIST_FILES= bin/traefik \
|
|
"@sample etc/traefik.toml.sample"
|
|
|
|
TRAEFIK_BUILD_ENV= ${MAKE_ENV} \
|
|
CGO_ENABLED=0
|
|
|
|
TRAEFIK_LDARGS= -ldflags "-s -w \
|
|
-X github.com/containous/traefik/version.Version=${DISTVERSION} \
|
|
-X github.com/containous/traefik/version.BuildDate=`date -u '+%Y-%m-%d_%I:%M:%S%p'`"
|
|
|
|
# Recipe for building the web UI
|
|
# Note this is not done during a standard port build as
|
|
# it downloads node modules from the internet during build.
|
|
# Instead, we use the pre-generated from LOCAL.
|
|
# (20180510: the upath module requires node < 10)
|
|
# BUILD_DEPENDS+= npm:www/npm \
|
|
# yarnpkg:www/yarn
|
|
#USES+= python:2.7,build
|
|
#pre-build:
|
|
# @cd ${WRKSRC}/webui; \
|
|
# yarn install && \
|
|
# yarn run build
|
|
|
|
post-extract:
|
|
@${MV} ${WRKDIR}/static ${WRKSRC}
|
|
# Install a sample configuration file which works by default
|
|
# without manual tweaking
|
|
${REINPLACE_CMD} -e 's|:80|:8088|' \
|
|
-e 's|\[docker|# \[docker|' ${WRKSRC}/traefik.sample.toml
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/src/github.com/containous/traefik; \
|
|
${SETENV} ${BUILD_ENV} ${TRAEFIK_BUILD_ENV} GOPATH=${WRKSRC} go generate && \
|
|
${SETENV} ${BUILD_ENV} ${TRAEFIK_BUILD_ENV} GOPATH=${WRKSRC} go build ${TRAEFIK_LDARGS} -v -x ./cmd/traefik
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/containous/traefik/traefik ${STAGEDIR}${PREFIX}/bin/traefik
|
|
${INSTALL_DATA} ${WRKSRC}/src/github.com/containous/traefik/traefik.sample.toml ${STAGEDIR}${PREFIX}/etc/traefik.toml.sample
|
|
|
|
.include <bsd.port.mk>
|