c7b44c1d8a
Details: - Mostly bug and doc fixes, detailed upstream log: https://github.com/containous/traefik/releases/tag/v1.6.5 MFH: 2018Q3
68 lines
2 KiB
Makefile
68 lines
2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= traefik
|
|
PORTVERSION= 1.6.5
|
|
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>
|