Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2020 12:54:55 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528852 - in head/net: . traefik2
Message-ID:  <202003211254.02LCstbu017353@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sat Mar 21 12:54:54 2020
New Revision: 528852
URL: https://svnweb.freebsd.org/changeset/ports/528852

Log:
  New port: net/traefik2 High availability reverse proxy and load balancer 2.x
  
  Traefik (pronounced like traffic) is a modern HTTP reverse proxy and load
  balancer made to deploy microservices with ease. It supports several backends
  (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS,
  and a lot more) to manage its configuration automatically and dynamically.
  
  WWW: https://traefik.io/
  
  PR:		244913
  Submitted by:	Christopher Beppler <freebsd@funzi.org>

Added:
  head/net/traefik2/
     - copied from r528824, head/net/traefik/
Modified:
  head/net/Makefile
  head/net/traefik2/Makefile
  head/net/traefik2/distinfo
  head/net/traefik2/pkg-message

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Sat Mar 21 12:51:29 2020	(r528851)
+++ head/net/Makefile	Sat Mar 21 12:54:54 2020	(r528852)
@@ -1469,6 +1469,7 @@
     SUBDIR += toonel
     SUBDIR += torsocks
     SUBDIR += traefik
+    SUBDIR += traefik2
     SUBDIR += traff
     SUBDIR += trafshow
     SUBDIR += trafshow3

Modified: head/net/traefik2/Makefile
==============================================================================
--- head/net/traefik/Makefile	Sat Mar 21 03:05:02 2020	(r528824)
+++ head/net/traefik2/Makefile	Sat Mar 21 12:54:54 2020	(r528852)
@@ -1,24 +1,22 @@
 # $FreeBSD$
 
-PORTNAME=	traefik
-PORTVERSION=	1.7.21
+PORTNAME=	traefik2
 DISTVERSIONPREFIX=	v
+DISTVERSION=	2.1.8
+DISTVERSIONSUFFIX=	-vendor
 CATEGORIES=	net
-MASTER_SITES=	LOCAL/riggs/${PORTNAME}:webui
-DISTFILES=	${PORTNAME}-webui-static-${PORTVERSION}${EXTRACT_SUFX}:webui
 
-MAINTAINER=	riggs@FreeBSD.org
+MAINTAINER=	freebsd@funzi.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:modules
 
-USES=		go
-
 USE_GITHUB=	yes
-GH_ACCOUNT=	containous
+GH_ACCOUNT=	Funzinator
+GH_PROJECT=	traefik
 GH_SUBDIR=	src/github.com/containous/traefik
 
 USE_RC_SUBR=	traefik
@@ -35,28 +33,11 @@ GROUPS=		traefik
 PLIST_FILES=	bin/traefik \
 		"@sample etc/traefik.toml.sample"
 
-# 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-node8 \
-#		yarnpkg:www/yarn-node8
-#USES+=		python:2.7,build
-#build-ui:
-#	@cd ${WRKSRC}/webui; \
-#	yarn install && \
-#	yarn run build
-
 post-patch:
-	@${MV} ${WRKDIR}/static ${WRKSRC}
 	# Install a sample configuration file which works by default
 	# without manual tweaking
-	${REINPLACE_CMD} -e 's|:80|:8088|' \
+	${REINPLACE_CMD} -e 's|:80|:8088|' -e 's|:443|:8443|' \
 			 -e 's|\[docker|# \[docker|' ${WRKSRC}/traefik.sample.toml
-
-pre-build:
-	cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} generate
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/traefik.sample.toml ${STAGEDIR}${PREFIX}/etc/traefik.toml.sample

Modified: head/net/traefik2/distinfo
==============================================================================
--- head/net/traefik/distinfo	Sat Mar 21 03:05:02 2020	(r528824)
+++ head/net/traefik2/distinfo	Sat Mar 21 12:54:54 2020	(r528852)
@@ -1,5 +1,3 @@
-TIMESTAMP = 1582356127
-SHA256 (traefik-webui-static-1.7.21.tar.gz) = 6e4dbe74313a27333579f9826a9668d24852fa2e6f5c07a9f9aa1a3552c88abe
-SIZE (traefik-webui-static-1.7.21.tar.gz) = 923805
-SHA256 (containous-traefik-v1.7.21_GH0.tar.gz) = c014138b4992515474865e1ac7191aa7b0f788d0528ec3a81527164926ec62e8
-SIZE (containous-traefik-v1.7.21_GH0.tar.gz) = 11386410
+TIMESTAMP = 1584705603
+SHA256 (Funzinator-traefik-v2.1.8-vendor_GH0.tar.gz) = b18397fbec5fd1948a3ecf3b111b25ca2712683298792ed2aebd4cfbfe5c21ab
+SIZE (Funzinator-traefik-v2.1.8-vendor_GH0.tar.gz) = 19161792

Modified: head/net/traefik2/pkg-message
==============================================================================
--- head/net/traefik/pkg-message	Sat Mar 21 03:05:02 2020	(r528824)
+++ head/net/traefik2/pkg-message	Sat Mar 21 12:54:54 2020	(r528852)
@@ -1,7 +1,7 @@
 [
 { type: install
   message: <<EOM
-Note that traefik starts as unpriviliged user. Thus, it cannot
+Note that traefik starts as unprivileged user. Thus, it cannot
 bind to privileged ports (by default, ports below 1024) and
 will exit when configured to do so.
 
@@ -13,6 +13,9 @@ are options to achieve this:
   traefik's configuration file e.g. the rdr rules in pf(4).
 - The mac_portacl kernel module allows unprivileged processes
   to bind to privileged ports.
+
+Note: If you are upgrading from traefik 1.x keep in mind that
+the configuration is not compatible.
 EOM
 }
 ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003211254.02LCstbu017353>