From owner-svn-ports-head@freebsd.org Sat Sep 30 21:11:26 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70578E2F7B2; Sat, 30 Sep 2017 21:11:26 +0000 (UTC) (envelope-from cpm@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 mx1.freebsd.org (Postfix) with ESMTPS id 2BCD381286; Sat, 30 Sep 2017 21:11:26 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8ULBPrY051834; Sat, 30 Sep 2017 21:11:25 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8ULBOCd051831; Sat, 30 Sep 2017 21:11:24 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201709302111.v8ULBOCd051831@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Sat, 30 Sep 2017 21:11:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r451012 - head/www/go-www X-SVN-Group: ports-head X-SVN-Commit-Author: cpm X-SVN-Commit-Paths: head/www/go-www X-SVN-Commit-Revision: 451012 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.23 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: Sat, 30 Sep 2017 21:11:26 -0000 Author: cpm Date: Sat Sep 30 21:11:24 2017 New Revision: 451012 URL: https://svnweb.freebsd.org/changeset/ports/451012 Log: www/go-www: Update to 1.1.1 - Now capable of creating valid certificates by passing ACME letsencrypt * option -s "valid-domain.tld" will create a valid certificate (listen on port 443) * if using -s "localhost" it will create a self-signed certificate - Update comment and WWW in pkg-descr PR: 222236 Submitted by: Nicolas Embriz (maintainer) Modified: head/www/go-www/Makefile head/www/go-www/distinfo head/www/go-www/pkg-descr Modified: head/www/go-www/Makefile ============================================================================== --- head/www/go-www/Makefile Sat Sep 30 21:00:54 2017 (r451011) +++ head/www/go-www/Makefile Sat Sep 30 21:11:24 2017 (r451012) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= www -PORTVERSION= 0.3.1 +PORTVERSION= 1.1.1 CATEGORIES= www PKGNAMEPREFIX= go- @@ -15,26 +15,24 @@ LICENSE_FILE= ${WRKSRC}/LICENSE USES= go USE_GITHUB= yes -GH_ACCOUNT= nbari:DEFAULT,violetear -GH_PROJECT= violetear:violetear -GH_TAGNAME= 2.2.0:violetear +GH_ACCOUNT= nbari:DEFAULT +GH_TUPLE= golang:crypto:847319b:crypto/src/golang.org/x/crypto +GH_SUBDIR= src/github.com/nbari/${PORTNAME} -GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} - STRIP= # stripping can break go binaries PLIST_FILES= bin/www post-patch: - @${LN} -sf ${WRKDIR}/${GH_PROJECT_violetear}-${GH_TAGNAME_violetear} \ - ${GO_WRKDIR_SRC}/github.com/${GH_ACCOUNT_violetear}/${GH_PROJECT_violetear} + @${MKDIR} ${WRKSRC}/src/golang.org + @${LN} -sf ${LOCALBASE}/share/go/src/golang.org/x ${WRKSRC}/src/golang.org/x do-build: - @(cd ${GO_WRKSRC} && \ - ${SETENV} ${BUILD_ENV} GOPATH=${WRKDIR} go build -ldflags \ - "-X main.version=${PORTVERSION}" -o www cmd/www/main.go) + @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ + ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \ + "-s -w" -o www; do-install: - ${INSTALL_PROGRAM} ${GO_WRKSRC}/www ${STAGEDIR}${PREFIX}/bin/www + ${INSTALL_PROGRAM} ${WRKSRC}/www ${STAGEDIR}${PREFIX}/bin/www .include Modified: head/www/go-www/distinfo ============================================================================== --- head/www/go-www/distinfo Sat Sep 30 21:00:54 2017 (r451011) +++ head/www/go-www/distinfo Sat Sep 30 21:11:24 2017 (r451012) @@ -1,5 +1,5 @@ -TIMESTAMP = 1486283285 -SHA256 (nbari-www-0.3.1_GH0.tar.gz) = 322612b8ad3167df0a6bf84b283db958f670d6f0e4770376ae24fc4ea39d9f68 -SIZE (nbari-www-0.3.1_GH0.tar.gz) = 3633 -SHA256 (nbari-violetear-2.2.0_GH0.tar.gz) = a71a2355548ae5adef5578552dc522c1a6174f9ac88b36db25c8bba1c39ab01e -SIZE (nbari-violetear-2.2.0_GH0.tar.gz) = 14408 +TIMESTAMP = 1506548170 +SHA256 (nbari-www-1.1.1_GH0.tar.gz) = eea1a8beb69556d984eed63967c569c7bace2add3752a94241de0def5df012eb +SIZE (nbari-www-1.1.1_GH0.tar.gz) = 4211 +SHA256 (golang-crypto-847319b_GH0.tar.gz) = f471dac9d970154c00dba9b9772752f0feb368713ee1b11418d22f11ba6fd5df +SIZE (golang-crypto-847319b_GH0.tar.gz) = 1432733 Modified: head/www/go-www/pkg-descr ============================================================================== --- head/www/go-www/pkg-descr Sat Sep 30 21:00:54 2017 (r451011) +++ head/www/go-www/pkg-descr Sat Sep 30 21:11:24 2017 (r451012) @@ -1,8 +1,8 @@ www is a static web server, useful for sharing and testing the contents of a -directory via HTTP. +directory via HTTP or HTTPS with a valid certificate. www will start a web server listening on port 8000 and use as document root the directory where the command was called. Different document root may be -specified as also the port and use of SSL, more info using the -h option. +specified as also the port and use of TLS, more info using the -h option. -WWW: https://github.com/nbari/www +WWW: https://go-www.com