48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
|
# Maintainer: psykose <alice@ayaya.dev>
|
||
|
pkgname=caddy-extended
|
||
|
pkgver=2.5.0
|
||
|
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 GOPATH="$srcdir"
|
||
|
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="
|
||
|
f0c2dd29f17cd75f19ed33e672c3d9dc540a5ab4fad06c74fac0dc5c0f0664bd4588a7d44d14b1906c8db87184dd2411e359894761e08dc9ed9b19ad6b182040 caddy-extended-2.5.0.tar.gz
|
||
|
4304276ef17f00bbed67d0865313feef14a73c58347f2816ff5721aabd28d3c5aabb61ceeda6750ba18c5c8b0d6208daefb44c0a3152101ccb897675933b71c6 caddy-extended.initd
|
||
|
d3110dd79f7d5e602a34d42569104dc97603994e42daf5f6b105303a3d034b52b91ef5fb156d5bf7b7a3a58ec0aeff58afc402618d0555af053771952a866f76 Caddyfile
|
||
|
7acf095440656e59e727601b30f2fa3006f2828c7e99b42235a0a6f1bcafedf8aed444e335bb1c3ecda0d17b501a26eb81266e6af8351170e04b98d32b35b628 extra-modules.patch
|
||
|
"
|