1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add www/go-www: Web server for static content

www is a static web server, useful for sharing and testing the contents of a
directory via HTTP.

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.

WWW: https://github.com/nbari/www

PR:		214820
Submitted by:	Nicolas de Bari Embriz Garcia Rojas
This commit is contained in:
Ben Woods 2017-02-05 12:39:12 +00:00
parent 925bfbf0dd
commit ed1c866570
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433398
4 changed files with 54 additions and 0 deletions

View File

@ -207,6 +207,7 @@
SUBDIR += glpi
SUBDIR += gnome-user-share
SUBDIR += gnome-web-photo
SUBDIR += go-www
SUBDIR += gohugo
SUBDIR += google-appengine
SUBDIR += google-sitemapgen

40
www/go-www/Makefile Normal file
View File

@ -0,0 +1,40 @@
# Created by: Nicolas de Bari Embriz Garcia Rojas <nbari@tequila.io>
# $FreeBSD$
PORTNAME= www
PORTVERSION= 0.3.1
CATEGORIES= www
PKGNAMEPREFIX= go-
MAINTAINER= nbari@tequila.io
COMMENT= Web server for static content
LICENSE= BSD3CLAUSE
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}
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}
do-build:
@(cd ${GO_WRKSRC} && \
${SETENV} ${BUILD_ENV} GOPATH=${WRKDIR} go build -ldflags \
"-X main.version=${PORTVERSION}" -o www cmd/www/main.go)
do-install:
${INSTALL_PROGRAM} ${GO_WRKSRC}/www ${STAGEDIR}${PREFIX}/bin/www
.include <bsd.port.mk>

5
www/go-www/distinfo Normal file
View File

@ -0,0 +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

8
www/go-www/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
www is a static web server, useful for sharing and testing the contents of a
directory via HTTP.
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.
WWW: https://github.com/nbari/www