# Maintainer: psykose pkgname=caddy-extended pkgver=2.5.1 pkgrel=0 pkgdesc="Fast, multi-platform web server with automatic HTTPS" url="https://caddyserver.com/" license="Apache-2.0" arch="all" depends="ca-certificates" makedepends="go libcap" subpackages="$pkgname-openrc" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" source="$pkgname-$pkgver.tar.gz::https://github.com/caddyserver/caddy/archive/v$pkgver.tar.gz $pkgname.initd Caddyfile extra-modules.patch " builddir="$srcdir/caddy-$pkgver" options="net" # for downloading Go modules export CGO_ENABLED=0 build() { go build -o bin/caddy ./cmd/caddy } check() { go test ./... } package() { install -Dm755 bin/caddy "$pkgdir"/usr/sbin/caddy setcap cap_net_bind_service=+ep "$pkgdir"/usr/sbin/caddy install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/caddy install -Dm644 "$srcdir"/Caddyfile "$pkgdir"/etc/caddy/Caddyfile } sha512sums=" fe110e9f71f58cd090f695dfaf3e129cd03e4eefabfeddc4d92b2ae8686c849fc7d0e3911014f9a0ce214add9af28b8668af383b83d3dd833ff3666cd14c66b8 caddy-extended-2.5.1.tar.gz 4304276ef17f00bbed67d0865313feef14a73c58347f2816ff5721aabd28d3c5aabb61ceeda6750ba18c5c8b0d6208daefb44c0a3152101ccb897675933b71c6 caddy-extended.initd d3110dd79f7d5e602a34d42569104dc97603994e42daf5f6b105303a3d034b52b91ef5fb156d5bf7b7a3a58ec0aeff58afc402618d0555af053771952a866f76 Caddyfile 7acf095440656e59e727601b30f2fa3006f2828c7e99b42235a0a6f1bcafedf8aed444e335bb1c3ecda0d17b501a26eb81266e6af8351170e04b98d32b35b628 extra-modules.patch "