f9013e2b7a
As there is currently a bug with go build info a patch is needed to fix printing the correct version number of the binary. Once the bug is fixed, the patch can be dropped. Fixes #22092
34 lines
864 B
Bash
34 lines
864 B
Bash
# Template file for 'caddy'
|
|
pkgname=caddy
|
|
version=2.4.3
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/caddyserver/caddy/v2
|
|
go_package="${go_import_path}/cmd/caddy"
|
|
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=10317b5ab7bee861631a8d94d13aeafb62e9665759271a6c65422a70d6584d6b
|
|
|
|
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
|
|
}
|