28 lines
762 B
Bash
28 lines
762 B
Bash
# Template file for 'caddy'
|
|
pkgname=caddy
|
|
version=1.0.4
|
|
revision=2
|
|
build_style=go
|
|
go_import_path=github.com/caddyserver/caddy
|
|
go_package="${go_import_path}/caddy"
|
|
hostmakedepends="git"
|
|
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=bf81245d2b347c89a8e8aa358a224b722d55cb6e1c266bbdffbe6acc54d130a5
|
|
|
|
system_accounts="caddy"
|
|
make_dirs="
|
|
/etc/caddy 0700 caddy caddy
|
|
/var/lib/caddy 0700 caddy caddy"
|
|
|
|
pre_build() {
|
|
vsed -e 's,var EnableTelemetry = true,var EnableTelemetry = false,g' -i caddy/caddymain/run.go
|
|
}
|
|
|
|
post_install() {
|
|
vsv caddy
|
|
}
|