void-packages/srcpkgs/caddy/template

36 lines
891 B
Bash

# Template file for 'caddy'
pkgname=caddy
version=2.5.2
revision=1
build_style=go
go_import_path=github.com/caddyserver/caddy/v2
go_package="${go_import_path}/cmd/caddy"
depends="shared-mime-info"
short_desc="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="Apache-2.0"
homepage="https://caddyserver.com"
distfiles="https://github.com/caddyserver/caddy/archive/v${version}.tar.gz"
checksum=6a3e03774658af8009c0ece287301d73c1ea961d01e6ef7c6f44962e4349f5e5
system_accounts="caddy"
caddy_homedir="/var/lib/caddy"
caddy_descr="caddy daemon"
conf_files="/etc/caddy/Caddyfile"
make_dirs="
/etc/caddy 0700 caddy caddy
/var/lib/caddy 0700 caddy caddy"
post_extract() {
vsed -e "s,unknown,${version},g" -i ${wrksrc}/caddy.go
}
post_install() {
vsv caddy
printf "\n" > Caddyfile
vinstall Caddyfile 600 etc/caddy
}