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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/statik | 0.1.2_47,1 |
| DragonFly | devel/statik | 0.1.2_24,1 |
| HardenedBSD | devel/statik | 0.1.2_45,1 |
| GhostBSD | devel/statik | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.1.2_46,1 | 0.1.2_46,1 | - | 0.1.2_29,1 | 0.1.2_46,1 |
| FreeBSD:14:quarterly | 0.1.2_46,1 | 0.1.2_46,1 | n/a | 0.1.2_27,1 | 0.1.2_46,1 |
| FreeBSD:15:latest | 0.1.2_46,1 | 0.1.2_46,1 | n/a | - | 0.1.2_29,1 |
| FreeBSD:15:quarterly | 0.1.2_46,1 | 0.1.2_46,1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.1.2_45,1 | 0.1.2_46,1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| File | Size | SHA256 |
|---|---|---|
| rakyll-statik-v0.1.2_GH0.tar.gz | 172864 | c9eee1ba676b20ac83ec28315580ed36b4018225fbef1f82acdf8e7c92078174 |
Commit history 6
The latest 5 of 6 in the history this site was built from.