aboutsummaryrefslogtreecommitdiffstats
path: root/community/caddy/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/caddy/APKBUILD')
-rw-r--r--community/caddy/APKBUILD22
1 files changed, 9 insertions, 13 deletions
diff --git a/community/caddy/APKBUILD b/community/caddy/APKBUILD
index 61b201ba64..71b02b4158 100644
--- a/community/caddy/APKBUILD
+++ b/community/caddy/APKBUILD
@@ -1,12 +1,13 @@
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=caddy
-pkgver=2.3.0
+pkgver=2.4.2
pkgrel=0
pkgdesc="Fast, multi-platform web server with automatic HTTPS"
url="https://caddyserver.com/"
license="Apache-2.0"
arch="all"
+options="chmod-clean"
depends="ca-certificates"
makedepends="go libcap"
subpackages="$pkgname-openrc"
@@ -15,8 +16,8 @@ pkggroups="$pkgname"
install="$pkgname.pre-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/caddyserver/caddy/archive/v$pkgver.tar.gz
$pkgname.initd
- $pkgname.confd
- Caddyfile"
+ Caddyfile
+ "
export GOPATH="$srcdir"
export CGO_ENABLED=0
@@ -34,16 +35,11 @@ package() {
setcap cap_net_bind_service=+ep "$pkgdir"/usr/sbin/caddy
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -Dm644 "$srcdir"/Caddyfile "$pkgdir"/etc/$pkgname/Caddyfile
}
-cleanup_srcdir() {
- go clean -modcache
- default_cleanup_srcdir
-}
-
-sha512sums="5416129f7152a0e2617cef0e32be27188d9248fff316fff9dc1ecaa13ec1287e11deb22eb84fe3dc88c234a8e8e8ff8e40b3ba23bcc60a7418c60b7c4fa24a1a caddy-2.3.0.tar.gz
-970fb6e9bd1e58118b056a8932c09fe75bb4dadcad167e32acd3bc17d35682bc83b073093074b05ce3c1641efcceb3f65380a5e68976fb69667c70af17251c59 caddy.initd
-c3f87910aa43633e406b1a575f1c98941077644fa5bc2378aa0d8b6cf182f4dca9555896f3ad04ccaae11d41590616ef64668eac8d980046e431e626bcf14d5e caddy.confd
-d3110dd79f7d5e602a34d42569104dc97603994e42daf5f6b105303a3d034b52b91ef5fb156d5bf7b7a3a58ec0aeff58afc402618d0555af053771952a866f76 Caddyfile"
+sha512sums="
+dbf23896693f14513fc7651665d237a4ee58e137f5f932a5468b773bb1be336223b16d7603bcc1031966f618d611a7a829172f20f91fbfce82296356e6234384 caddy-2.4.2.tar.gz
+919a7a4158dc38e56aad1ae6e2d65416f7267c03f429738a7d5d9831b34dc5f01a29d69a6d44677dd9bb96c56fee9b0d3dc0f7e4416925f4fe46d34aef88a2d7 caddy.initd
+d3110dd79f7d5e602a34d42569104dc97603994e42daf5f6b105303a3d034b52b91ef5fb156d5bf7b7a3a58ec0aeff58afc402618d0555af053771952a866f76 Caddyfile
+"