BSD Ports

devel/statik 0.1.2_47,1 FreeBSD

Embed static files into a Go executable

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
APACHE20
Categories
devel
Package size
708.3 KiB, 2071.9 KiB installed

Description

statik allows you to embed a directory of static files into your Go binary to be later served from an http.FileSystem. Is this a crazy idea? No, not necessarily. If you're building a tool that has a Web component, you typically want to serve some images, CSS and JavaScript. You like the comfort of distributing a single binary, so you don't want to mess with deploying them elsewhere. If your static files are not large in size and will be browsed by a few people, statik is a solution you are looking for.

In the other systems

SystemPortVersion
FreeBSDdevel/statik0.1.2_47,1
DragonFlydevel/statik0.1.2_24,1
HardenedBSDdevel/statik0.1.2_45,1
GhostBSDdevel/statik0.1.2_45,1

Install

Binary package:

pkg install statik

From the ports tree:

cd /usr/ports/devel/statik/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	statik>0:devel/statik

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.1.2_46,10.1.2_46,1-0.1.2_29,10.1.2_46,1
FreeBSD:14:quarterly0.1.2_46,10.1.2_46,1n/a0.1.2_27,10.1.2_46,1
FreeBSD:15:latest0.1.2_46,10.1.2_46,1n/a-0.1.2_29,1
FreeBSD:15:quarterly0.1.2_46,10.1.2_46,1n/an/an/a
FreeBSD:16:latest0.1.2_45,10.1.2_46,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
go
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rakyll-statik-v0.1.2_GH0.tar.gz172864c9eee1ba676b20ac83ec28315580ed36b4018225fbef1f82acdf8e7c92078174

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.