diff options
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/Manifest.gz | bin | 4703 -> 4707 bytes | |||
-rw-r--r-- | www-servers/caddy/Manifest | 5 | ||||
-rw-r--r-- | www-servers/caddy/caddy-2.7.4-r1.ebuild | 86 | ||||
-rw-r--r-- | www-servers/caddy/caddy-9999.ebuild | 86 | ||||
-rw-r--r-- | www-servers/caddy/metadata.xml | 24 |
5 files changed, 193 insertions, 8 deletions
diff --git a/www-servers/Manifest.gz b/www-servers/Manifest.gz Binary files differindex 30c9b0d53f95..9fa1ec5fc14d 100644 --- a/www-servers/Manifest.gz +++ b/www-servers/Manifest.gz diff --git a/www-servers/caddy/Manifest b/www-servers/caddy/Manifest index 35883ad9c27f..ab55d2987ea8 100644 --- a/www-servers/caddy/Manifest +++ b/www-servers/caddy/Manifest @@ -10,9 +10,12 @@ DIST caddy-2.6.2.tar.gz 556197 BLAKE2B a3fd7e69a33ee045de7f4b8218d5bb41e1f740c74 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-docs.tar.gz 25264 BLAKE2B 2282ac0ddd76b0837d33cf24d01f13ac9c0c8e0abf043cf5ade0ec3a51fda2d7c15589574b159df00e2c25733f10ccc6f4cf6b3a97f9f831aa276f3adee84fd9 SHA512 179a13b89b0da1771dcaf798e33000b60f202804e728d8aca85a23a68b055ee6d12e5f75eb30257a412621ffd105035bd371bd7e448f876eeb91544fd3092344 DIST caddy-2.7.4.tar.gz 625647 BLAKE2B be4749a2298d2e00e2a24324ee31090847be9ec4de49f47715c86e65750d01698b5a4a21990430cc7622fecce5b375ae8e3fb2ef832515ce9dcca8f2d26a9911 SHA512 e988ec4fa526d16b91a86f28fc13c606ab159815d5be45a2ea65bf91b5579a25efc8ff415b0aa98699f72bd3106ed02d49e48303d9c80e7fe6805ade416e7dff EBUILD caddy-2.5.2.ebuild 1041 BLAKE2B 5cfba3fe9efd2217f476ccc991692a34b366183407710e8d6ca178d40020e4bded01c2238d775c5a65221e2943a168824da12650b8500e8824650f99eb24191d SHA512 5c7724e4e150f1829cb43d452e716f6acd5e98dd636a4d00ff2c547d61b41bf908b80e15f7f295fb2c0908461d1940cb1a5d357bfb2d558b3a6920c1cbeb1667 EBUILD caddy-2.6.2.ebuild 1041 BLAKE2B 5cfba3fe9efd2217f476ccc991692a34b366183407710e8d6ca178d40020e4bded01c2238d775c5a65221e2943a168824da12650b8500e8824650f99eb24191d SHA512 5c7724e4e150f1829cb43d452e716f6acd5e98dd636a4d00ff2c547d61b41bf908b80e15f7f295fb2c0908461d1940cb1a5d357bfb2d558b3a6920c1cbeb1667 EBUILD caddy-2.6.4.ebuild 1039 BLAKE2B 0c850af6033ab4eb9778538235e6e52d39efd02cf8f74f30408f1ea6f813fcb8c014114db1f8bab12cc96fee35918a49eaa744198c01e4fdcd7525bc3f80e95c SHA512 2374b3d5a7cb2e23b65924e80c8ceb2e67e81295cbfcba659e8437f4f5ffa1b449732cceaf20c1b8c0d2170b4e2e46a50bac84857ec34464b0cff57f6fc9a10c +EBUILD caddy-2.7.4-r1.ebuild 2163 BLAKE2B c6aa9556673118123656dc365015abd2d2614066771828f9bb65530aeee942ae46ad1727672409018a6ae106e6189d5a422e4551d41d5c8f87e04b5efe35ac10 SHA512 17cc2ae3b5b8a16c9148f4415054a5b09a5eecc30d8ec67ddf76fe0c2ed682a25e92b27f425f37753388681cefb30e27172601558d09b0e3ffa639495a6fa434 EBUILD caddy-2.7.4.ebuild 1051 BLAKE2B 0b8c0c2488872aa55de08268187639b2b32d963d96cd9d1ac9403493b4337e86edf0a88a90f147c6618e0a9bacaba546b422052ef7a96931f1676a85873645fe SHA512 b6d76553c27ff5c152399728783cb4a71327ddcfc4d103b8134a90ddf8f9e5c52b29bbb8dd0766c6c3aeb5517be6d1ae0b1ca789481b0b6c0ec9738d881cf562 -MISC metadata.xml 327 BLAKE2B c733fe2ddb3626e38631dea64fc3edf837fc52c8454ed7a37f2859a9759db43db0ef018753649276f846cf4a67b705f2080d7bf55856848c8fb2a2a5db43cb4a SHA512 c52162e031367163930279cf1ebb06b5a59a5d0d13769fe79f6ee146c4752865ac6e4bb13fb8087a569be125dc6d8ee0b2d052088f27d2ae327ba6a31160252b +EBUILD caddy-9999.ebuild 2163 BLAKE2B c6aa9556673118123656dc365015abd2d2614066771828f9bb65530aeee942ae46ad1727672409018a6ae106e6189d5a422e4551d41d5c8f87e04b5efe35ac10 SHA512 17cc2ae3b5b8a16c9148f4415054a5b09a5eecc30d8ec67ddf76fe0c2ed682a25e92b27f425f37753388681cefb30e27172601558d09b0e3ffa639495a6fa434 +MISC metadata.xml 719 BLAKE2B 45438c09f8b79545010ea772b979a89e01967e062e079183afcf75535f470ba802383ffa62033db16f3c052a2bed4a807e51478c9a9fefb2c8511d1956fce517 SHA512 910e936579bfbde8594a6d62cfe45eccb5e53a45b342b81cc42ff0964b0a6be95008bbbc469bc3288be19f3efaa7fc2c7d84e42cebb93cd5f13bd8d2f35a6367 diff --git a/www-servers/caddy/caddy-2.7.4-r1.ebuild b/www-servers/caddy/caddy-2.7.4-r1.ebuild new file mode 100644 index 000000000000..a4fc915a0230 --- /dev/null +++ b/www-servers/caddy/caddy-2.7.4-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps go-module systemd shell-completion + +DESCRIPTION="Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS" +HOMEPAGE="https://caddyserver.com" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/caddyserver/caddy.git" +else + 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" + SRC_URI+=" https://github.com/caddyserver/dist/archive/refs/tags/v${PV}.tar.gz -> ${P}-docs.tar.gz" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +LICENSE="Apache-2.0 BSD ECL-2.0 MIT CC0-1.0" +SLOT="0" +RESTRICT="test" +RDEPEND=" + acct-user/http + acct-group/http" +DEPEND="${RDEPEND}" + +FILECAPS=( + -m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}" +) + +src_unpack() { + if [[ "${PV}" == *9999* ]]; then + # unpack code + git-r3_src_unpack + + # unpack docs and misc + EGIT_REPO_URI="https://github.com/caddyserver/dist.git" + EGIT_CHECKOUT_DIR="${WORKDIR}/dist-${PV}" + git-r3_src_unpack + + go-module_live_vendor + else + go-module_src_unpack + fi +} + +src_prepare(){ + default + sed -i -e "s|User=caddy|User=http|g;" ../dist-"${PV}"/init/*service || die + sed -i -e "s|Group=caddy|Group=http|g;" ../dist-"${PV}"/init/*service || die +} + +src_compile() { + ego build ./cmd/caddy + for sh in bash fish zsh; do + ./caddy completion "${sh}" > completion."${sh}" || die + done + ./caddy manpage -o manpages || die +} + +src_install() { + default + + dobin "${PN}" + insinto /etc/"${PN}" + newins ../dist-"${PV}"/config/Caddyfile Caddyfile.example + systemd_dounit ../dist-"${PV}"/init/*.service + newinitd "${FILESDIR}/initd" "${PN}" + newconfd "${FILESDIR}/confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotated" "${PN}" + insinto /usr/share/"${PN}" + doins ../dist-"${PV}"/welcome/index.html + + newbashcomp completion.bash "${PN}" + newfishcomp completion.fish "${PN}".fish + newzshcomp completion.zsh _"${PN}" + newdoc ../dist-"${PV}"/init/README.md systemd-services-README.md + doman manpages/* +} + +pkg_postinst() { + fcaps_pkg_postinst +} diff --git a/www-servers/caddy/caddy-9999.ebuild b/www-servers/caddy/caddy-9999.ebuild new file mode 100644 index 000000000000..a4fc915a0230 --- /dev/null +++ b/www-servers/caddy/caddy-9999.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps go-module systemd shell-completion + +DESCRIPTION="Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS" +HOMEPAGE="https://caddyserver.com" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/caddyserver/caddy.git" +else + 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" + SRC_URI+=" https://github.com/caddyserver/dist/archive/refs/tags/v${PV}.tar.gz -> ${P}-docs.tar.gz" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +LICENSE="Apache-2.0 BSD ECL-2.0 MIT CC0-1.0" +SLOT="0" +RESTRICT="test" +RDEPEND=" + acct-user/http + acct-group/http" +DEPEND="${RDEPEND}" + +FILECAPS=( + -m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}" +) + +src_unpack() { + if [[ "${PV}" == *9999* ]]; then + # unpack code + git-r3_src_unpack + + # unpack docs and misc + EGIT_REPO_URI="https://github.com/caddyserver/dist.git" + EGIT_CHECKOUT_DIR="${WORKDIR}/dist-${PV}" + git-r3_src_unpack + + go-module_live_vendor + else + go-module_src_unpack + fi +} + +src_prepare(){ + default + sed -i -e "s|User=caddy|User=http|g;" ../dist-"${PV}"/init/*service || die + sed -i -e "s|Group=caddy|Group=http|g;" ../dist-"${PV}"/init/*service || die +} + +src_compile() { + ego build ./cmd/caddy + for sh in bash fish zsh; do + ./caddy completion "${sh}" > completion."${sh}" || die + done + ./caddy manpage -o manpages || die +} + +src_install() { + default + + dobin "${PN}" + insinto /etc/"${PN}" + newins ../dist-"${PV}"/config/Caddyfile Caddyfile.example + systemd_dounit ../dist-"${PV}"/init/*.service + newinitd "${FILESDIR}/initd" "${PN}" + newconfd "${FILESDIR}/confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotated" "${PN}" + insinto /usr/share/"${PN}" + doins ../dist-"${PV}"/welcome/index.html + + newbashcomp completion.bash "${PN}" + newfishcomp completion.fish "${PN}".fish + newzshcomp completion.zsh _"${PN}" + newdoc ../dist-"${PV}"/init/README.md systemd-services-README.md + doman manpages/* +} + +pkg_postinst() { + fcaps_pkg_postinst +} diff --git a/www-servers/caddy/metadata.xml b/www-servers/caddy/metadata.xml index 60a7e98c05ef..e6118a3504ff 100644 --- a/www-servers/caddy/metadata.xml +++ b/www-servers/caddy/metadata.xml @@ -1,11 +1,21 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>zmedico@gentoo.org</email> - <name>Zac Medico</name> - </maintainer> - <upstream> - <remote-id type="github">caddyserver/caddy</remote-id> - </upstream> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>rahil3108@gmail.com</email> + <name>Rahil Bhimjiani</name> + </maintainer> + <upstream> + <remote-id type="github">caddyserver/caddy</remote-id> + <bugs-to>https://github.com/caddyserver/caddy/issues</bugs-to> + <doc>https://caddyserver.com/docs/</doc> + </upstream> </pkgmetadata> |