summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2023-09-07 15:26:46 -0500
committerWilliam Hubbs <williamh@gentoo.org>2023-09-07 15:31:39 -0500
commit1542ce902d1f611dd89010f1418b132496340529 (patch)
tree354e43fc38b20f4c195b3b534958ae0272294134 /www-servers
parentsys-fs/lvm2: keyword 2.03.22-r2 for ~loong (diff)
downloadgentoo-1542ce902d1f611dd89010f1418b132496340529.tar.gz
gentoo-1542ce902d1f611dd89010f1418b132496340529.tar.bz2
gentoo-1542ce902d1f611dd89010f1418b132496340529.zip
www-servers/caddy: add 2.7.4
Closes: https://bugs.gentoo.org/912220 Closes: https://bugs.gentoo.org/912588 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/caddy/Manifest2
-rw-r--r--www-servers/caddy/caddy-2.7.4.ebuild45
2 files changed, 47 insertions, 0 deletions
diff --git a/www-servers/caddy/Manifest b/www-servers/caddy/Manifest
index c9746ab33df1..c40c19e7e203 100644
--- a/www-servers/caddy/Manifest
+++ b/www-servers/caddy/Manifest
@@ -4,3 +4,5 @@ DIST caddy-2.6.2-deps.tar.xz 157577068 BLAKE2B 4ee60155de108ae1a0c897f3cd95549ff
DIST caddy-2.6.2.tar.gz 556197 BLAKE2B a3fd7e69a33ee045de7f4b8218d5bb41e1f740c744bf633554c93d298c06506f3b8f2f8ff739b423641958459fed84d6783a2ffe764ff175ee329eab9dc7dc19 SHA512 01761de707668d589af7eeecdd694c94e867d5710f0b72285b4d2e6fb26cf9e10baeed3920e9b9b292c75568c84ff79b400026e37d7dcc003cebb839469b6c1b
DIST caddy-2.6.4-deps.tar.xz 126961712 BLAKE2B 45448376fb368639913360c96074a21b6907a0d573de403d46f150f004b24a0e328c210e6192d6540444bef6b33d4dbff7f44ad129bbe6cdfc344fb108500bf0 SHA512 f8d73a888c6f0e1c1467878162e3c34da35dcfc2ab7232db4f5e7ac5b51b2f91f6a98a07d732a8f17d9523226a21a8a9b1075a474e9d2b5f3c7869ef0a9e892a
DIST caddy-2.6.4.tar.gz 568213 BLAKE2B 4837c8511002538ed6d7ac92743a834e76bdba3a35e92a3587ee29911c4a623d37948725a4c20967f3893abe7ce05a88aeb93af294045d722193a68ca7c69bff SHA512 438869a24c0f68e8d742752d3573cf7894c566344f85d0e262ddf26d91c711dd27a0422396bfdd94823c8ee4c7fd24ce222938f3339f1c19e706e64207fc483f
+DIST caddy-2.7.4-deps.tar.xz 146920768 BLAKE2B 25d99c7d73f7c9a63868ab496f27571d15181cee298e16a83c02b652b8b89cab615969897d11faadfdc3e9ca389783c3b610e219a16b0a146748d0ea2e3309ca SHA512 5cdb95bcf7435a76385d0fc9277bdaa317261698f1bf15b54e081b89bd971927c0f5ca9f42a693127fabca9c6a6eae81978c6b4978ff9962f67a83591d104e6a
+DIST caddy-2.7.4.tar.gz 625647 BLAKE2B be4749a2298d2e00e2a24324ee31090847be9ec4de49f47715c86e65750d01698b5a4a21990430cc7622fecce5b375ae8e3fb2ef832515ce9dcca8f2d26a9911 SHA512 e988ec4fa526d16b91a86f28fc13c606ab159815d5be45a2ea65bf91b5579a25efc8ff415b0aa98699f72bd3106ed02d49e48303d9c80e7fe6805ade416e7dff
diff --git a/www-servers/caddy/caddy-2.7.4.ebuild b/www-servers/caddy/caddy-2.7.4.ebuild
new file mode 100644
index 000000000000..34194067147a
--- /dev/null
+++ b/www-servers/caddy/caddy-2.7.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit fcaps go-module systemd
+
+DESCRIPTION="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
+HOMEPAGE="https://caddyserver.com"
+SRC_URI="https://github.com/caddyserver/caddy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD ECL-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv"
+RDEPEND="
+ acct-user/http
+ acct-group/http"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+FILECAPS=(
+ -m 755 'cap_net_bind_service=+ep' usr/bin/${PN}
+)
+
+src_compile() {
+ ego build ./cmd/caddy
+}
+
+src_install() {
+ dobin caddy
+ dodoc README.md
+ keepdir /etc/caddy
+ insinto /etc/caddy
+ newins "${FILESDIR}"/caddy_config.json caddy_config.json.example
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ newinitd "${FILESDIR}/initd" "${PN}"
+ newconfd "${FILESDIR}/confd" "${PN}"
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logrotated" "${PN}"
+}
+
+pkg_postinst() {
+ fcaps_pkg_postinst
+}