Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2017 21:11:24 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r451012 - head/www/go-www
Message-ID:  <201709302111.v8ULBOCd051831@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <nbari@tequila.io> (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 <bsd.port.mk>

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



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