From owner-svn-ports-head@freebsd.org Sun Oct 11 09:27:50 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F3FD943D8B7; Sun, 11 Oct 2020 09:27:49 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C8GgT6F1sz3fs1; Sun, 11 Oct 2020 09:27:49 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0D621996F; Sun, 11 Oct 2020 09:27:49 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09B9Rnut030590; Sun, 11 Oct 2020 09:27:49 GMT (envelope-from riggs@FreeBSD.org) Received: (from riggs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09B9RmPZ030587; Sun, 11 Oct 2020 09:27:48 GMT (envelope-from riggs@FreeBSD.org) Message-Id: <202010110927.09B9RmPZ030587@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: riggs set sender to riggs@FreeBSD.org using -f From: Thomas Zander Date: Sun, 11 Oct 2020 09:27:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r552040 - in head/net/traefik: . files X-SVN-Group: ports-head X-SVN-Commit-Author: riggs X-SVN-Commit-Paths: in head/net/traefik: . files X-SVN-Commit-Revision: 552040 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2020 09:27:50 -0000 Author: riggs Date: Sun Oct 11 09:27:48 2020 New Revision: 552040 URL: https://svnweb.freebsd.org/changeset/ports/552040 Log: Update to upstream release 2.3.1 Details: - The Traefik v1 branch has been on maintenance mode for over a year and is no longer guaranteed to receive security updates, see: https://community.traefik.io/t/end-of-support-of-1-x/2451 - Updating of configuration files will be necessary for users who have not previously used net/traefik2 (which was introduced in 2020Q2 to allow for the eventual depreciation of the v1 branch). Instructions and a link to an automated migration tool are provided in pkg-message. Modified: head/net/traefik/Makefile head/net/traefik/distinfo head/net/traefik/files/traefik.in head/net/traefik/pkg-message Modified: head/net/traefik/Makefile ============================================================================== --- head/net/traefik/Makefile Sun Oct 11 09:14:12 2020 (r552039) +++ head/net/traefik/Makefile Sun Oct 11 09:27:48 2020 (r552040) @@ -1,11 +1,9 @@ # $FreeBSD$ PORTNAME= traefik -PORTVERSION= 1.7.26 -DISTVERSIONPREFIX= v +PORTVERSION= 2.3.1 CATEGORIES= net -MASTER_SITES= LOCAL/riggs/${PORTNAME}:webui -DISTFILES= ${PORTNAME}-webui-static-${PORTVERSION}${EXTRACT_SUFX}:webui +MASTER_SITES= LOCAL/riggs/${PORTNAME} MAINTAINER= riggs@FreeBSD.org COMMENT= High availability reverse proxy and load balancer @@ -15,17 +13,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= go-bindata:devel/go-bindata -USES= go +USES= go:modules tar:xz -USE_GITHUB= yes -GH_ACCOUNT= containous -GH_SUBDIR= src/github.com/containous/traefik - USE_RC_SUBR= traefik GO_BUILDFLAGS= -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'`" + -X github.com/traefik/traefik/v2/pkg/version.Version=${DISTVERSION} \ + -X github.com/traefik/traefik/v2/pkg/version.Codename=portbuild \ + -X github.com/traefik/traefik/v2/pkg/version.BuildDate=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" GO_TARGET= ./cmd/traefik CGO_ENABLED= 0 @@ -35,25 +30,16 @@ 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 +# Preparing the vendor dir for a self-contained tarball now works by just +# executing 'make gomod-vendor' and bundling the resulting ${WRKSRC}/vendor. +# Building the UI with node + yarn is no longer necessary. post-patch: - @${MV} ${WRKDIR}/static ${WRKSRC} - # Install a sample configuration file which works by default - # without manual tweaking + # Install a sample configuration file which at least allows the daemon + # to start without manual tweaking. ${REINPLACE_CMD} -e 's|:80|:8088|' \ - -e 's|\[docker|# \[docker|' ${WRKSRC}/traefik.sample.toml + -e 's|:443|:8433|' \ + -e 's|\[providers.docker|# \[providers.docker|' ${WRKSRC}/traefik.sample.toml pre-build: cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} generate Modified: head/net/traefik/distinfo ============================================================================== --- head/net/traefik/distinfo Sun Oct 11 09:14:12 2020 (r552039) +++ head/net/traefik/distinfo Sun Oct 11 09:27:48 2020 (r552040) @@ -1,5 +1,3 @@ -TIMESTAMP = 1599285554 -SHA256 (traefik-webui-static-1.7.26.tar.gz) = 80cd113b5b250fc9ebba26471667ad594d33ec214884d5b7ad7ef7477d5d9289 -SIZE (traefik-webui-static-1.7.26.tar.gz) = 920348 -SHA256 (containous-traefik-v1.7.26_GH0.tar.gz) = 440e8f3fa9cd5f3da2a4e9654f5216c89209de84590651d0ffff25f8155c8b20 -SIZE (containous-traefik-v1.7.26_GH0.tar.gz) = 11392194 +TIMESTAMP = 1602282919 +SHA256 (traefik-2.3.1.tar.xz) = 4c270456282773e234057d8a7959856d7a61eac930a5f159cb4f7ea19dabcab6 +SIZE (traefik-2.3.1.tar.xz) = 13105328 Modified: head/net/traefik/files/traefik.in ============================================================================== --- head/net/traefik/files/traefik.in Sun Oct 11 09:14:12 2020 (r552039) +++ head/net/traefik/files/traefik.in Sun Oct 11 09:27:48 2020 (r552040) @@ -39,7 +39,7 @@ load_rc_config $name pidfile=/var/run/traefik.pid procname="%%PREFIX%%/bin/traefik" command="/usr/sbin/daemon" -command_args="-f -p ${pidfile} /usr/bin/env ${traefik_env} ${procname} --configFile=${traefik_conf} ${traefik_args}" +command_args="-f -p ${pidfile} /usr/bin/env ${traefik_env} ${procname} --configfile=${traefik_conf} ${traefik_args}" start_precmd=traefik_startprecmd Modified: head/net/traefik/pkg-message ============================================================================== --- head/net/traefik/pkg-message Sun Oct 11 09:14:12 2020 (r552039) +++ head/net/traefik/pkg-message Sun Oct 11 09:27:48 2020 (r552040) @@ -15,4 +15,17 @@ are options to achieve this: to bind to privileged ports. EOM } +{ type: upgrade + maximum_version: "2.0" + message: <