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:
parent
a8e1a12d82
commit
00f0aee849
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451012
@ -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
|
||||
|
||||
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
||||
GH_ACCOUNT= nbari:DEFAULT
|
||||
GH_TUPLE= golang:crypto:847319b:crypto/src/golang.org/x/crypto
|
||||
GH_SUBDIR= src/github.com/nbari/${PORTNAME}
|
||||
|
||||
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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user