Date: Sun, 5 Feb 2017 12:39:12 +0000 (UTC) From: Ben Woods <woodsb02@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433398 - in head/www: . go-www Message-ID: <201702051239.v15CdC5O064382@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: woodsb02 Date: Sun Feb 5 12:39:12 2017 New Revision: 433398 URL: https://svnweb.freebsd.org/changeset/ports/433398 Log: 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 Added: head/www/go-www/ head/www/go-www/Makefile (contents, props changed) head/www/go-www/distinfo (contents, props changed) head/www/go-www/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sun Feb 5 12:34:06 2017 (r433397) +++ head/www/Makefile Sun Feb 5 12:39:12 2017 (r433398) @@ -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 Added: head/www/go-www/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/go-www/Makefile Sun Feb 5 12:39:12 2017 (r433398) @@ -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> Added: head/www/go-www/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/go-www/distinfo Sun Feb 5 12:39:12 2017 (r433398) @@ -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 Added: head/www/go-www/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/go-www/pkg-descr Sun Feb 5 12:39:12 2017 (r433398) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702051239.v15CdC5O064382>