diff options
author | Zac Medico <zmedico@gentoo.org> | 2022-07-15 10:43:25 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2022-07-15 10:43:34 -0700 |
commit | f5f3cfbdb96edb5f1dc93736e5f833948787b16d (patch) | |
tree | 19a4e580dea31cdae6c681ac0ca534470ffcbe8d /www-servers/caddy | |
parent | net-firewall/xtables-addons: version bump to 3.21 (diff) | |
download | gentoo-f5f3cfbdb96edb5f1dc93736e5f833948787b16d.tar.gz gentoo-f5f3cfbdb96edb5f1dc93736e5f833948787b16d.tar.bz2 gentoo-f5f3cfbdb96edb5f1dc93736e5f833948787b16d.zip |
www-servers/caddy: add 2.5.2
Closes: https://bugs.gentoo.org/857807
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'www-servers/caddy')
-rw-r--r-- | www-servers/caddy/Manifest | 2 | ||||
-rw-r--r-- | www-servers/caddy/caddy-2.5.2.ebuild | 45 |
2 files changed, 47 insertions, 0 deletions
diff --git a/www-servers/caddy/Manifest b/www-servers/caddy/Manifest index 04c246844bf8..57baf8e96cb1 100644 --- a/www-servers/caddy/Manifest +++ b/www-servers/caddy/Manifest @@ -1,2 +1,4 @@ DIST caddy-2.5.1-deps.tar.xz 133130008 BLAKE2B 1ef818f057a46109cea61d4821981909a8da93227eb691611a1356415d56d829b4ae922e6dc0b67e7252e2bf5a2738935b4e15e0131c85d7e9a40781410ad202 SHA512 5c0c52d2e5349c32c59211de8b210f4e9a49d21ce0182f2b3999d4dfb220e9c99a5981b155db3ab425325615509e2ed7443654cfc72e11a186bb479e2471e631 DIST caddy-2.5.1.tar.gz 524858 BLAKE2B 727dbdecce1d16d7f53db0e1fd0a83d3739b0d19226683ed41a3831a8701c657aa49240f05f5985a1f381fc45a68e54420356bab56980e7b1afc85e47b942747 SHA512 fe110e9f71f58cd090f695dfaf3e129cd03e4eefabfeddc4d92b2ae8686c849fc7d0e3911014f9a0ce214add9af28b8668af383b83d3dd833ff3666cd14c66b8 +DIST caddy-2.5.2-deps.tar.xz 121709464 BLAKE2B d15157536916aae8a63dcdcdd01bef7fa37c2f7174b8a43222d3a150b16efa153274b0158a6e86893f02310453b9b176529295021c51b85956de69e60653414f SHA512 6600a30bf3b63ceeae98a60377be43f16723e6e0cbd65ed626c3777cb5c39eb3fea5769a6cc0f987da978df8efc917825e85f118810a23504d396a94f3e270ae +DIST caddy-2.5.2.tar.gz 538564 BLAKE2B dcdaacc63ec0481a9add35ac79c4d02d0a262dc4a1b5215877843797817832cf07e2ecaa2c8f73173f5e0bf38d4d15f2f6c5909f0dc3c8a178db9b001af5206f SHA512 98eb10075b6eacd93cfe893f7df6d8d8ce41649b6a6b78937c1ee7ba82ebdf483204d98c5e45501617abfe426d3b12a9a413e49304e1b62569ab3bad489e2c66 diff --git a/www-servers/caddy/caddy-2.5.2.ebuild b/www-servers/caddy/caddy-2.5.2.ebuild new file mode 100644 index 000000000000..e614f052fbc5 --- /dev/null +++ b/www-servers/caddy/caddy-2.5.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +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 + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD ECL-2.0 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +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 +} |