From owner-dev-commits-ports-all@freebsd.org Fri Sep 10 15:43:18 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 155096AEFA1; Fri, 10 Sep 2021 15:43:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H5gBZ02vRz4v5s; Fri, 10 Sep 2021 15:43:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CBFBD74CE; Fri, 10 Sep 2021 15:43:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18AFhHg5064071; Fri, 10 Sep 2021 15:43:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18AFhHx9064070; Fri, 10 Sep 2021 15:43:17 GMT (envelope-from git) Date: Fri, 10 Sep 2021 15:43:17 GMT Message-Id: <202109101543.18AFhHx9064070@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lewis Cook Subject: git: 45909c67741f - main - devel/stuffbin: New port: Compress and embed static files and assets into Go binaries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lcook X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 45909c67741fd9d8f6aaccdd402721cb042fe080 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 15:43:18 -0000 The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=45909c67741fd9d8f6aaccdd402721cb042fe080 commit 45909c67741fd9d8f6aaccdd402721cb042fe080 Author: Lewis Cook AuthorDate: 2021-09-10 15:41:44 +0000 Commit: Lewis Cook CommitDate: 2021-09-10 15:41:44 +0000 devel/stuffbin: New port: Compress and embed static files and assets into Go binaries --- devel/Makefile | 1 + devel/stuffbin/Makefile | 26 ++++++++++++++++++++++++++ devel/stuffbin/distinfo | 5 +++++ devel/stuffbin/pkg-descr | 7 +++++++ 4 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index da32000c64b2..feaab76dd9b8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6947,6 +6947,7 @@ SUBDIR += strace SUBDIR += string_theory SUBDIR += stringencoders + SUBDIR += stuffbin SUBDIR += stxxl SUBDIR += subversion SUBDIR += subversion-book diff --git a/devel/stuffbin/Makefile b/devel/stuffbin/Makefile new file mode 100644 index 000000000000..6b888c37dfd3 --- /dev/null +++ b/devel/stuffbin/Makefile @@ -0,0 +1,26 @@ +PORTNAME= stuffbin +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.0 +CATEGORIES= devel + +MAINTAINER= lcook@FreeBSD.org +COMMENT= Compress and embed static files and assets into Go binaries + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +GO_MODULE= github.com/knadh/${PORTNAME} +GO_TARGET= ./${PORTNAME}:${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \ + ${STAGEDIR}${DOCSDIR} + +.include diff --git a/devel/stuffbin/distinfo b/devel/stuffbin/distinfo new file mode 100644 index 000000000000..f7102cab8245 --- /dev/null +++ b/devel/stuffbin/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1631287902 +SHA256 (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.mod) = 9d6d9f4e36cee45dbdbf23cc74248386b01dac85f77146e26493d732740dfe9a +SIZE (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.mod) = 42 +SHA256 (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.zip) = 4257e94899b069ce09cb74c6a5758a13721531de7344517c904b43ffc9778ad8 +SIZE (go/devel_stuffbin/stuffbin-v1.1.0/v1.1.0.zip) = 15483 diff --git a/devel/stuffbin/pkg-descr b/devel/stuffbin/pkg-descr new file mode 100644 index 000000000000..66f1833dda4f --- /dev/null +++ b/devel/stuffbin/pkg-descr @@ -0,0 +1,7 @@ +Utility to compress and embed static files and +assets into Go binaries for distribution. It +supports falling back to the local file system +when no embedded assets are available, for +instance, in development mode. + +WWW: https://github.com/knadh/stuffbin