aboutsummaryrefslogtreecommitdiff
path: root/net/traefik
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2018-03-10 22:28:59 +0000
committerThomas Zander <riggs@FreeBSD.org>2018-03-10 22:28:59 +0000
commitb727cbe3aa44545899c2c2b5a99f2d6fb536c021 (patch)
treebfdac8a373bc8b6187a4a33262bc3af89dbd8899 /net/traefik
parentcf90ac587955263a8571cfaee1661cf1a9c3e4dd (diff)
downloadports-b727cbe3aa44545899c2c2b5a99f2d6fb536c021.tar.gz
ports-b727cbe3aa44545899c2c2b5a99f2d6fb536c021.zip
Include web UI; bump PORTREVISION
Submitted by: swills (via e-mail)
Notes
Notes: svn path=/head/; revision=464093
Diffstat (limited to 'net/traefik')
-rw-r--r--net/traefik/Makefile18
-rw-r--r--net/traefik/distinfo6
2 files changed, 21 insertions, 3 deletions
diff --git a/net/traefik/Makefile b/net/traefik/Makefile
index d3ac0a205e4b..6b5ccd0bbd5e 100644
--- a/net/traefik/Makefile
+++ b/net/traefik/Makefile
@@ -3,7 +3,10 @@
PORTNAME= traefik
PORTVERSION= 1.5.3
DISTVERSIONPREFIX= v
+PORTREVISION= 1
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
@@ -34,6 +37,21 @@ 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.
+# 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}
+
do-build:
@cd ${WRKSRC}/src/github.com/containous/traefik; \
${SETENV} ${BUILD_ENV} ${TRAEFIK_BUILD_ENV} GOPATH=${WRKSRC} go generate && \
diff --git a/net/traefik/distinfo b/net/traefik/distinfo
index 67f6a6fb5029..d97c55c4ebea 100644
--- a/net/traefik/distinfo
+++ b/net/traefik/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1520063170
+TIMESTAMP = 1520701876
+SHA256 (traefik-webui-static-1.5.3.tar.gz) = ddc0d6311b892e4dee6342068181a3365ef46e0cff1c804b26f18ebb6a271167
+SIZE (traefik-webui-static-1.5.3.tar.gz) = 647897
SHA256 (containous-traefik-v1.5.3_GH0.tar.gz) = b6876834290dd3f916c78f6810597d40dbbd461e1d1d25fd30d31cd99b9c062b
SIZE (containous-traefik-v1.5.3_GH0.tar.gz) = 7828055
-SHA256 (jteeuwen-go-bindata-a0ff256_GH0.tar.gz) = 06c7bb64ab428a28eb3633ae19fafb6b7b241d384ef45ac0728b1c5fbec64961
-SIZE (jteeuwen-go-bindata-a0ff256_GH0.tar.gz) = 17868