summaryrefslogtreecommitdiff
path: root/www-servers/caddy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-23 17:40:32 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-23 17:40:32 +0000
commit9aeefa0bd7e7604816f3ce08002112f9965176c3 (patch)
treea321bc3114ba3db3c2375bff886cc0b4e9a324b6 /www-servers/caddy
parentedca36e835d0d4e929c1dd3e9688954ae0aa191a (diff)
gentoo auto-resync : 23:02:2024 - 17:40:32
Diffstat (limited to 'www-servers/caddy')
-rw-r--r--www-servers/caddy/Manifest13
-rw-r--r--www-servers/caddy/caddy-2.7.4-r1.ebuild86
-rw-r--r--www-servers/caddy/caddy-2.7.4.ebuild45
-rw-r--r--www-servers/caddy/caddy-2.7.5.ebuild98
-rw-r--r--www-servers/caddy/files/caddy.service17
-rw-r--r--www-servers/caddy/files/caddy_config.json31
-rw-r--r--www-servers/caddy/files/confd2
-rw-r--r--www-servers/caddy/files/initd26
8 files changed, 0 insertions, 318 deletions
diff --git a/www-servers/caddy/Manifest b/www-servers/caddy/Manifest
index ab31100c5578..c5986a7714fb 100644
--- a/www-servers/caddy/Manifest
+++ b/www-servers/caddy/Manifest
@@ -1,24 +1,11 @@
-AUX caddy.service 370 BLAKE2B 004bc9b9cec8217aa2cc173c65ef69bb804a7d0ab1d61375c23fee92f755d03726a708591cd8d7b7a5741ab756f1383860c3a5bf5374c3db445a0341df62a74f SHA512 2911f3b9b57fb02398c08d661693d3268968f4a8176e18fee921c1d87ec515121f412901966811ef477ede73130adfe5842b8ceea1b691830b31f22eb41e14d3
-AUX caddy_config.json 603 BLAKE2B e4d4cacdd947f0266da8017c1872897aa53a5bd74f4e26de6a6432606b532760e7db85f442f2638675b015d37336adbea0acec9474dbbbb511ab05705c50a21d SHA512 0801dc5e3fce02ba3562eb5a8a3adeac7b8f0534847a70b5c3d531d1a8c56e923a78598fe357860a638e7112fc32e24e95c5997557910b87f7d131264079214d
-AUX confd 86 BLAKE2B f75f8a9440b90a66fc4f56d5ed2f97ff428bc061a555c48b8c51c822050de6af6b7c81afc92f01c38ab90f16c863fed3ed49a312d04582952f4292ed7bc9dc62 SHA512 24e6eb385c739c470ea7a896c80340de5d3857f829a665edf17a82e44ea5580fd28b1678a68c72a528174e63be2a08fa1dc376163394d6db822f67e3e169c9e8
AUX confd-2.7.5 150 BLAKE2B cd6cb3f151c7c20dccc84b80802e7dfd375897961b6335ec8a7b0fd2338c1af14d20b5afbd5d704834c983ec52a7c286fbcd9f5feeb12fb4a6587a9c4cfbec7f SHA512 6adfa876ee1e2c01a74d462756e65b219c07bd61d16a9d5b8137472c808f36131e7309594d19862fa44eacc027131bb4bb5bce54a0caf22e4a2b91522c781ae6
-AUX initd 736 BLAKE2B 67baedfce797cb3aa51a953b9762f44a5fc0605152c124ed723607a93c01ec83fad1aa22d2b4faa9e4d38d8f74fcd1bf4da0fa34f2411259dd0f333649e3c3ce SHA512 e79a77050ac127f7416137eee8247b8bf455fb80616b4efd53b331ea4dba08f984c150b546ec075c8bd99bce8e1d1dea45c1646f8d20eaaf8e92314a1d8267c1
AUX initd-2.7.5 1562 BLAKE2B ee67b1f2c1a809454ec1b8b860300108d4b21183148ec28b881d096587c7728d765e7d15f0ba1587cf4f607e9e129ae8b4769b3afef1992128ed3a1c13fa4e36 SHA512 636e28583673dcb7c9756a684bb52700987e0d3a8cbd7084c7322c220ea4033206d050a64e66c609bf69d38d49e000df3fe15b969d6d7daabe05e5d8cc83a899
AUX logrotated 39 BLAKE2B 2801a25d70fe62aa7487da24561fe9d0efd96c0c76764edcbb2332dfb7f9e9ae7a2dee2abf0f5877a378618ac6a56ca8494800465cdfae839af84606db0f920e SHA512 2aa59645a23d8a7a8566532830883393b4b5ead245fe2fd2d752603bbdbe5beddcce522a22add725899995b87be44f801d0bfa721e5da1ac18273f1119e73d26
AUX remove-binary-altering-commands-2.7.5.patch 2269 BLAKE2B a87a3f7fc6dcb4754f859eec96ab582b85472137fd11a620786f9f6257165e3878fd14d24bead78758cc3e6288ca2024fef5f7415fea373c1b9cd4ad75b1468d SHA512 f06938b2c737c0c3eb4c721b7625fcc06308fd34fe595eec0986a8f65f5983f0af9033e23540e5be882590d566b4a753e9a4fd1bcda502d5e4578d9f3aac9b4e
-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
-DIST caddy-2.7.5-deps.tar.xz 161234532 BLAKE2B 130e3fd75d7d2976ef27c2afe0cede8da957ad1c8db7b2140ef69a732cf25c6a04bde43c836832a0f7c14dbb4ab9cd48b496b8ea644da411181ba79b4116d892 SHA512 3dcc834e8cc9851f114d173a812de4b3a5256f8458f2d20ed0c66109d1ede1ee8e1d85053347a194818495cdfcaab2bf86d1b12f94fe2f917e22bf25b8d9c411
-DIST caddy-2.7.5-docs.tar.gz 24578 BLAKE2B e08bfa37b157d8d4300198384bfc4c19cb0f539cc293311eaedcddffd4469026605c92f4388202db68beeadb2353666860daf3845ff5d69bb11afdb29eefe02b SHA512 635fdc1f2767cceacbddbbf56ba7207d558475c66ff9434a2b6edffd59d3711be0c6a4b4ffd2a6cf2eee53dcf22097c2b11eb44f0e9cc1d8455c1ea7c01bc498
-DIST caddy-2.7.5.tar.gz 611282 BLAKE2B 86c28922f80f931452e81b0c3fa52ed0b86b2325eb2a1adf1de830a7a339772063955fd3cb5ee888cbf8c1c905b98bb6a292b592a2983012ad4fefe33c361e82 SHA512 45f6790b7c3683a8001445e932d5678fd27d204500f7301d92c4d8421f24574e113bf7c335bd277b16abe07eb3d24258358f87c68cee38905fa6d0e6bcc1c24c
DIST caddy-2.7.6-deps.tar.xz 128958740 BLAKE2B ffbe682df64a88dac9f50e9712f1d6697e58f2d9854c270321f7a0325f0b5ead7f93316756136a4435b70c5e08742c7130ce507ee4aa4696f4fb906f4eba8754 SHA512 f467144e235e09a7718cffe5ed3c40ec2d63038a6a948fe4f85d34717877af8a9959ef7e2c3ac32fd0cce522d693ccac883877f061f5cefc9512f7eed556b336
DIST caddy-2.7.6-docs.tar.gz 24583 BLAKE2B d3dbbb701d86cbfaf538f10911fdd3613b8c3c0f49ef9e229487d2a4fcef9eff79b56e9852d5c1ccd5a8d1d1898861fc8183c343c129901562b03a9092af9e61 SHA512 62e534d41e714b47265fd8089ad9e03a1a89903460976d8af27fa5f71173e076bab8574282213595e495be701b769e1a70ff9e7ec9576fbf8e821e672207faa5
DIST caddy-2.7.6-r1-deps.tar.xz 129331604 BLAKE2B 50b83c012c70637936c83ec765758cdcd80014ca224d76a746de8640a6b36ae15ce11ec57d9fdb20a5f7b3add946209c6dde7bb4e4bd4a47ffe3ffc8971725db SHA512 a4bc56de4f7ec8e9967dde3d7ca4cbb74cba9ce0b8906ffe16f8dae3f52fff1164827942df8154eadbae80cce3ee603535b9135cf8a5126d84a9017e8aece078
DIST caddy-2.7.6.tar.gz 606077 BLAKE2B 1237edc164ec6095c9dff27c332925c4ce9d91a60e629770463bbffb1503b8b11e36033e852df3eb5bb69ffa448833b6ee2891dc0ba6dc9b43b6cce27d492179 SHA512 ef0cb6fd7f6f2a296290b4bb520300e043ad31cc612e734632ffa25cdaa23fd7d601ac4ceaa1c76285d54a07ee773360f795103ef3c2ec79516a4f18a5e844b5
-EBUILD caddy-2.7.4-r1.ebuild 2170 BLAKE2B 2935ddec1231907e4baae92fbcbac0d295f5d729e78732491e5d00a1bd6b27b2b3d637eb091455cc36533fb39becfbaaff3cc1207982c1a19159fe02ef5092db SHA512 060e5d6a4d5adfb92f19d055d07b504fd6a480a80301f076ac9dc29ddd14476a104ca903b437cd7f65bd6d6aec1c0df842a7c461c0f247ebca5a2ed5e9a05ee0
-EBUILD caddy-2.7.4.ebuild 1051 BLAKE2B 0b8c0c2488872aa55de08268187639b2b32d963d96cd9d1ac9403493b4337e86edf0a88a90f147c6618e0a9bacaba546b422052ef7a96931f1676a85873645fe SHA512 b6d76553c27ff5c152399728783cb4a71327ddcfc4d103b8134a90ddf8f9e5c52b29bbb8dd0766c6c3aeb5517be6d1ae0b1ca789481b0b6c0ec9738d881cf562
-EBUILD caddy-2.7.5.ebuild 2468 BLAKE2B 3807de02e87cabf997015d2b2d2b3effe285d3ad141587cdb8c95658606fdb06ea35c13ff160bd27760d2e9e6618f80be5a35436aad6d4e4e3dc43b509dbf336 SHA512 4220d31c8c5d2b2c9c3706a59c73efdef5025a1a3854371bafdb71a65d283e033687c29523e7d21385e39b390d36ff0c8718e93d3619b395a532cc6f9caa9b17
EBUILD caddy-2.7.6-r1.ebuild 3454 BLAKE2B b059dcc37cf0769184235cb557699e45840e4a7315cede6c710b5a102ed2bd0ff509387fd2e1cbce74b267be2834a08ad59f24c81e9e31981e662ba5bba587bb SHA512 b80496989acf47a77ae6767352e6cb77307ffa8dd2ff83e80c73d91022e2b29bcd5ed73150217898da4da11f3506c323badcfb5476c2f73a577547833169eebd
EBUILD caddy-2.7.6.ebuild 2425 BLAKE2B daa4f27f63e1de4bf4489856622c9a641ede71cc7aee0e6e9c9c15b8f7383b23935fc8456f7dfde5f163819317bed05b391b65b4f61346fd46928c0776403aa7 SHA512 3dc0ce07d782590c0a71a78de89d82489a6c9923912c676ac0985999f13a4e1313104386250a6a50eb94908bb0ddece6200b9a8772098c81a3ae6254a1e48fa2
EBUILD caddy-9999.ebuild 3502 BLAKE2B 82addf6fa72d3ba99c2582e3b0537940733b840b980490817241eb976342f4f44d40571845e6beb5d2cae0a5ff7ead1a09eca2efa27c086e3ba9536edea69eef SHA512 0376742cfca41e29afc3f87df49d931b2933220b66acef837f8117b89d2a2d37f17b24a8ebb6cad9512f2ee0f141e453cceaa01fba5f861fcc2f44ff6c70444a
diff --git a/www-servers/caddy/caddy-2.7.4-r1.ebuild b/www-servers/caddy/caddy-2.7.4-r1.ebuild
deleted file mode 100644
index e60c54e02eb3..000000000000
--- a/www-servers/caddy/caddy-2.7.4-r1.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# 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 ~loong ~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-2.7.4.ebuild b/www-servers/caddy/caddy-2.7.4.ebuild
deleted file mode 100644
index 83a56917b23a..000000000000
--- a/www-servers/caddy/caddy-2.7.4.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# 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
-}
diff --git a/www-servers/caddy/caddy-2.7.5.ebuild b/www-servers/caddy/caddy-2.7.5.ebuild
deleted file mode 100644
index 94e80cc06f04..000000000000
--- a/www-servers/caddy/caddy-2.7.5.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# 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/~zmedico/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 ~loong ~riscv"
-fi
-
-LICENSE="Apache-2.0"
-LICENSE+=" 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}"
-)
-
-PATCHES=(
- "${FILESDIR}"/remove-binary-altering-commands-2.7.5.patch
-)
-
-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;s|Group=caddy|Group=http|g;" ../dist-"${PV}"/init/*service || die
-}
-
-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-"${PV}"/config/Caddyfile
- systemd_dounit ../dist-"${PV}"/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-"${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/files/caddy.service b/www-servers/caddy/files/caddy.service
deleted file mode 100644
index b11d0827ef83..000000000000
--- a/www-servers/caddy/files/caddy.service
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=Caddy web server
-After=network.target
-
-[Service]
-Type=simple
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-AmbientCapabilities=CAP_NET_BIND_SERVICE
-NoNewPrivileges=true
-User=http
-Environment=CADDY_OPTS="run --config /etc/caddy/caddy_config.json"
-Restart=on-failure
-RestartSec=5s
-ExecStart=/usr/bin/caddy $CADDY_OPTS
-
-[Install]
-WantedBy=multi-user.target
diff --git a/www-servers/caddy/files/caddy_config.json b/www-servers/caddy/files/caddy_config.json
deleted file mode 100644
index 80918a3254fa..000000000000
--- a/www-servers/caddy/files/caddy_config.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "admin": {
- "disabled": true
- },
- "apps": {
- "http": {
- "servers": {
- "static": {
- "idle_timeout": 30000000000,
- "listen": [
- ":80"
- ],
- "logs": {},
- "max_header_bytes": 10240,
- "read_header_timeout": 10000000000,
- "routes": [
- {
- "handle": [
- {
- "browse": {},
- "handler": "file_server",
- "root": "/var/www/localhost/htdocs"
- }
- ]
- }
- ]
- }
- }
- }
- }
-}
diff --git a/www-servers/caddy/files/confd b/www-servers/caddy/files/confd
deleted file mode 100644
index 39e8468ed962..000000000000
--- a/www-servers/caddy/files/confd
+++ /dev/null
@@ -1,2 +0,0 @@
-# command_user="http:http"
-# command_args="run --config /etc/caddy/caddy_config.json"
diff --git a/www-servers/caddy/files/initd b/www-servers/caddy/files/initd
deleted file mode 100644
index 3f080d202e1e..000000000000
--- a/www-servers/caddy/files/initd
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/openrc-run
-
-description="Caddy web server"
-pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
-command="/usr/bin/caddy"
-command_user="${command_user:-"http:http"}"
-command_args="${command_args:-"run --config /etc/caddy/caddy_config.json"}"
-command_background="true"
-logfile=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
-start_stop_daemon_args="--user ${command_user%:*} --group ${command_user#*:}
- --stdout ${logfile} --stderr ${logfile}"
-
-: "${supervisor:=supervise-daemon}"
-: "${respawn_delay:=5}"
-: "${respawn_max:=10}"
-: "${respawn_period:=60}"
-
-depend() {
- need net
-}
-
-start() {
- checkpath --directory --mode 755 --owner root "${pidfile%/*}"
- checkpath --directory --mode 755 --owner "${command_user}" "${logfile%/*}"
- default_start
-}