summaryrefslogtreecommitdiff
path: root/www-servers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-01-01 06:30:58 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-01-01 06:30:58 +0000
commitc4d4d544a37efc45bd5482e62e1fcdbe7d5993d3 (patch)
treee97ec8b6356535412a838039bf7874aef3129f50 /www-servers
parent2e36bcecf24a3f583ae8f27b71ba13b3cfd39778 (diff)
gentoo auto-resync : 01:01:2025 - 06:30:57
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/Manifest.gzbin4543 -> 4546 bytes
-rw-r--r--www-servers/caddy/Manifest6
-rw-r--r--www-servers/caddy/caddy-2.9.0.ebuild127
-rw-r--r--www-servers/caddy/caddy-9999.ebuild4
4 files changed, 132 insertions, 5 deletions
diff --git a/www-servers/Manifest.gz b/www-servers/Manifest.gz
index 6bfc7f4a3050..5ccd5a0b37ce 100644
--- a/www-servers/Manifest.gz
+++ b/www-servers/Manifest.gz
Binary files differ
diff --git a/www-servers/caddy/Manifest b/www-servers/caddy/Manifest
index 73a4fe975611..8ef65587b0dd 100644
--- a/www-servers/caddy/Manifest
+++ b/www-servers/caddy/Manifest
@@ -8,7 +8,11 @@ DIST caddy-2.7.6.tar.gz 606077 BLAKE2B 1237edc164ec6095c9dff27c332925c4ce9d91a60
DIST caddy-2.8.4-deps.tar.xz 9995236 BLAKE2B c19901a458eae2d395fddb9ef8b02225f56e1cf5032a85493de58a9f797369997cb8be8fe52d6ec85333d26d879316f48af73fbd429ae2a4a3c6d2a5e57caea0 SHA512 2ff16025abb9b9a26abd2e2261b487ac34c31c09227ab573cdacad3a5206603a74a5585fa08041c2372469651d8a2a3410f2c562041aef3038c7ecc4fc8baec8
DIST caddy-2.8.4-docs.tar.gz 24660 BLAKE2B 39628524c155b97f20ba00dec592d33e363086278ef96bd216807347d7b61a1a10d7bb50be84f84f3c4a6a972ff5034840700bf2bcd763cbcec75414a667b964 SHA512 c40a3e2b911ac106706e54022563685a0c920e35fe4716d878b79a3ebd8f422aa3bec847b3a0767a53453e40d8b21a3af1804a3c7bf62ddf61fc290c4129de0b
DIST caddy-2.8.4.tar.gz 662064 BLAKE2B 77aa671c22e55dff6bab3d251fa9f0a082e41176bf82f5cc9be5b9bee4a234e568c73b8865da116d0db26efbccdd58eeadac80f9160a06946426277640cec11c SHA512 5c354d0ceb3e927b918594c8c7de51f658aba798ac23d41b751c55b728f9fc5c46fa1f8c2e86c838e58d7b3514bc11937a765b36fd87971ea1757c92a70e9665
+DIST caddy-2.9.0-deps.tar.xz 10147016 BLAKE2B 3f33fa41cea04e47ef30f3eba5de7b88731154e1598fd37bc55cb63905a98c2c3ee1119a7b386b2c9f278465484c6d4d00dd8bc90962d472fe0acd559f8675fa SHA512 74124dcb80f87eff1d6834569ac3e8428d55b99044f6cac043f6e997e3b2de1e31089ab712c1b2f4fb0d64b6732291dd30316bfc92c6b9000bd2cda39b4d0a90
+DIST caddy-2.9.0-docs.tar.gz 24713 BLAKE2B c022672d818bf56160a561c307bc2526f0e0c6cc920286a744fc800273c9240e2852955c8c7035edad7591a168a177bf5c15822bbaee8704c4c3ca44bc44314d SHA512 f6f8a8d465373b4b2672bdf5a8124d3cedc90c8eea933f1494e6e6eab85ee788320a04c6ca7ccedac0ecbb8a335e0e179a8dd4ba07aeca685f297e525d21c368
+DIST caddy-2.9.0.tar.gz 700749 BLAKE2B 299e5bcda972af0b50d51c135a844221222fef91a1b38d9fda70113087f3587253c8c1d6efda1895a1b64a42444b4d95cd4a80822bc9af7979b55b93b3e6a492 SHA512 e2e7f38d11a69159ef347acb93779a35778267440d55a80b90da75739aabc95ee385fb9256eb79e25326d5e16cf831746d98dc03ccfe97e11d8d52f521154a68
EBUILD caddy-2.7.6-r2.ebuild 3264 BLAKE2B bbf3b4e68064269d510c5f4a7b03ea26952d59e882b7c7d909f4536643a22d45d70b5b44fa81ad5952691c7509cb8adce110d2b5fff25663ea9728592beb58db SHA512 9803cd8094c42d845f6139f37f4d221009f6124d82eec36027d70f9a9ca4548b3ced4257b6e02a5ad306301ee232dc78534cb1a0a798f9b50f719f7c7f19f71a
EBUILD caddy-2.8.4.ebuild 3240 BLAKE2B 23f62d20d52aef5adb90970e863335f24d010b0d873d3e8a45a250171b948dac5f45cfe1b686794d91c6a677dc9f1a9af9cdbe9056d599652d5daca729ab0a99 SHA512 9f3ea82c74b08e48329e0ffb7149035193f4adc9b9cab96d0be064430ed104f9df5e57ae6b51c971cb052f1a617f5cc88812608f263f4ddbedfaa92ee29c2854
-EBUILD caddy-9999.ebuild 3288 BLAKE2B 982ffc4305109c2fb20f70e31ffbf933ceca6658d4f30aa507347a1917e2ab881e9cc04445673b5dc953ba012480819463cd9c4bc2053434199c6f751a4eac1d SHA512 18c549f002135e6a8e0c7f403dba8e3c2a30bf8252760674ee960de177bbf983069d2957aa10eb4695721bfe9e172b913f210cdea32737827ea09826df5d37f3
+EBUILD caddy-2.9.0.ebuild 3168 BLAKE2B 8409d4476068527f0f0b120cc2e71ddbb39574b55926e51d0b61b5d5689987308b78bbfa6af14dc04b52c9343cc3d8eb353b3bdca2f702e657f55e46d8fb59f4 SHA512 bf9deda2dfb2a518df969b1c65991d829d4252d9f7eb7d4ba0f60e3f9fae7f5f0ef1988223372a3476afe78f311c75a0444aeca0cbdb9b2ee7b3096ccb024a25
+EBUILD caddy-9999.ebuild 3216 BLAKE2B 95aaed16e788ee07c512a3599f3909059e5570cc72cd8c70115bc94ae318c746fa03cc137773ee2aee625cde6aaf504d47ef7d1f8c1a167e0d8d3ce89ac7dfa9 SHA512 db422066bfa0b43a0e2fdcadf88dbe6c4e83f3aa74e5ba5a4734ad6e7790b0676c9aec7cae6736ea71b54ad1bd27ec4c8c049a8f6ca0d7bdb5af42613cb405aa
MISC metadata.xml 1212 BLAKE2B d5395939287c1f47d7c6e6590492ead98297a229620056bfe220c5b19b5d980f51c3ace25415e5c8f2c30cf65ff6690861b20871cf7088763f7509c799e94242 SHA512 947fba49f76b506cdf9889fd120acf0eaa6b82243c649944319d37232dc8cdf7c4ab1b3c418761c99ff0404e92f7957a61e5be8e44ca2635f93b9c2161e36dc5
diff --git a/www-servers/caddy/caddy-2.9.0.ebuild b/www-servers/caddy/caddy-2.9.0.ebuild
new file mode 100644
index 000000000000..c5b4c02a8bcf
--- /dev/null
+++ b/www-servers/caddy/caddy-2.9.0.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2024 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
+ https://dev.gentoo.org/~zmedico/dist/${PF}-deps.tar.xz
+ https://github.com/caddyserver/dist/archive/refs/tags/v${PV}.tar.gz -> ${P}-docs.tar.gz
+"
+ KEYWORDS="~amd64 ~arm64 ~loong ~riscv"
+fi
+
+# MAIN
+LICENSE="Apache-2.0"
+# deps
+LICENSE+=" BSD ECL-2.0 MIT CC0-1.0"
+SLOT="0"
+
+IUSE='events-handlers-exec security'
+RESTRICT="test"
+
+RDEPEND="
+ acct-user/http
+ acct-group/http"
+DEPEND="${RDEPEND}"
+
+FILECAPS=(
+ -m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}"
+)
+
+# takes a module as an only arg
+add_custom_module() {
+ local LINE_NO=$(grep -n 'plug in Caddy modules here' cmd/caddy/main.go | awk -F: '{print $1;}' || die)
+ sed -i -e "${LINE_NO:?}a \ _ \"$1\"" cmd/caddy/main.go || die
+}
+
+src_unpack() {
+ declare -A MOOMODULES || die
+
+ use events-handlers-exec && { MOOMODULES[exec]="github.com/mholt/caddy-events-exec" || die ; }
+ use security && { MOOMODULES[sec]="github.com/greenpau/caddy-security" || die ; }
+
+ export MY_MODULES="${MOOMODULES[@]}" || die
+
+ if [[ "${PV}" == 9999* ]]; then
+ # clone main git repo
+ git-r3_src_unpack
+
+ # get extra modules
+ pushd "${P}" || die
+ for moo in ${MY_MODULES}; do
+ add_custom_module "${moo}"
+ ego get "${moo}"
+ done
+ popd || die
+
+ # clone dist repo (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
+ default
+ fi
+}
+
+src_prepare() {
+ default
+ sed -i -e "s|User=caddy|User=http|g;s|Group=caddy|Group=http|g;" ../dist-*/init/*service || die
+
+ if [[ "${PV}" != 9999* ]]; then
+ ln -sv ../vendor ./ || die
+ eapply ../go-mod-sum.patch
+
+ for moo in ${MY_MODULES}; do
+ add_custom_module "${moo}"
+ done
+ fi
+}
+
+src_compile() {
+ # https://github.com/caddyserver/caddy/blob/master/caddy.go#L843
+ if [[ ${PV} == 9999* ]]; then
+ local CUSTOM_VER="git-$(git rev-parse --short HEAD)"
+ else
+ local CUSTOM_VER="${PV}"
+ fi
+
+ ego build -ldflags "-X github.com/caddyserver/caddy/v2.CustomVersion=${CUSTOM_VER}" ./cmd/caddy
+ local sh
+ 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}"
+ doins ../dist-*/config/Caddyfile
+ systemd_dounit ../dist-*/init/*.service
+ newinitd "${FILESDIR}"/initd-2.7.5 "${PN}"
+ newconfd "${FILESDIR}"/confd-2.7.5 "${PN}"
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logrotated" "${PN}"
+ insinto /usr/share/"${PN}"
+ doins ../dist-*/welcome/index.html
+
+ newbashcomp completion.bash "${PN}"
+ newfishcomp completion.fish "${PN}".fish
+ newzshcomp completion.zsh _"${PN}"
+ newdoc ../dist-*/init/README.md systemd-services-README.md
+ doman manpages/*
+}
diff --git a/www-servers/caddy/caddy-9999.ebuild b/www-servers/caddy/caddy-9999.ebuild
index da0106f31184..15958c6dfe2c 100644
--- a/www-servers/caddy/caddy-9999.ebuild
+++ b/www-servers/caddy/caddy-9999.ebuild
@@ -38,10 +38,6 @@ FILECAPS=(
-m 755 'cap_net_bind_service=+ep' usr/bin/"${PN}"
)
-PATCHES=(
- "${FILESDIR}"/remove-binary-altering-commands-2.7.5.patch
-)
-
# takes a module as an only arg
add_custom_module() {
local LINE_NO=$(grep -n 'plug in Caddy modules here' cmd/caddy/main.go | awk -F: '{print $1;}' || die)