1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

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)
This commit is contained in:
Carlos J. Puga Medina 2017-09-30 21:11:24 +00:00
parent a8e1a12d82
commit 00f0aee849
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451012
3 changed files with 18 additions and 20 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= www PORTNAME= www
PORTVERSION= 0.3.1 PORTVERSION= 1.1.1
CATEGORIES= www CATEGORIES= www
PKGNAMEPREFIX= go- PKGNAMEPREFIX= go-
@ -15,26 +15,24 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go USES= go
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= nbari:DEFAULT,violetear GH_ACCOUNT= nbari:DEFAULT
GH_PROJECT= violetear:violetear GH_TUPLE= golang:crypto:847319b:crypto/src/golang.org/x/crypto
GH_TAGNAME= 2.2.0:violetear GH_SUBDIR= src/github.com/nbari/${PORTNAME}
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
STRIP= # stripping can break go binaries STRIP= # stripping can break go binaries
PLIST_FILES= bin/www PLIST_FILES= bin/www
post-patch: post-patch:
@${LN} -sf ${WRKDIR}/${GH_PROJECT_violetear}-${GH_TAGNAME_violetear} \ @${MKDIR} ${WRKSRC}/src/golang.org
${GO_WRKDIR_SRC}/github.com/${GH_ACCOUNT_violetear}/${GH_PROJECT_violetear} @${LN} -sf ${LOCALBASE}/share/go/src/golang.org/x ${WRKSRC}/src/golang.org/x
do-build: do-build:
@(cd ${GO_WRKSRC} && \ @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \
${SETENV} ${BUILD_ENV} GOPATH=${WRKDIR} go build -ldflags \ ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \
"-X main.version=${PORTVERSION}" -o www cmd/www/main.go) "-s -w" -o www;
do-install: do-install:
${INSTALL_PROGRAM} ${GO_WRKSRC}/www ${STAGEDIR}${PREFIX}/bin/www ${INSTALL_PROGRAM} ${WRKSRC}/www ${STAGEDIR}${PREFIX}/bin/www
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1486283285 TIMESTAMP = 1506548170
SHA256 (nbari-www-0.3.1_GH0.tar.gz) = 322612b8ad3167df0a6bf84b283db958f670d6f0e4770376ae24fc4ea39d9f68 SHA256 (nbari-www-1.1.1_GH0.tar.gz) = eea1a8beb69556d984eed63967c569c7bace2add3752a94241de0def5df012eb
SIZE (nbari-www-0.3.1_GH0.tar.gz) = 3633 SIZE (nbari-www-1.1.1_GH0.tar.gz) = 4211
SHA256 (nbari-violetear-2.2.0_GH0.tar.gz) = a71a2355548ae5adef5578552dc522c1a6174f9ac88b36db25c8bba1c39ab01e SHA256 (golang-crypto-847319b_GH0.tar.gz) = f471dac9d970154c00dba9b9772752f0feb368713ee1b11418d22f11ba6fd5df
SIZE (nbari-violetear-2.2.0_GH0.tar.gz) = 14408 SIZE (golang-crypto-847319b_GH0.tar.gz) = 1432733

View File

@ -1,8 +1,8 @@
www is a static web server, useful for sharing and testing the contents of a 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 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 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