Compare commits

...
31 Commits
Author SHA1 Message Date
balki defd5e72a0 merge aur 2026-07-31 15:34:52 -04:00
Carl Smedstad 86e1fb382b upgpkg: 2.11.4-1: Upstream release
https://github.com/caddyserver/caddy/releases/tag/v2.11.4
2026-06-04 23:09:15 +02:00
Carl Smedstad 15188a0895 upgpkg: 2.11.3-1: Upstream release
https://github.com/caddyserver/caddy/releases/tag/v2.11.3
2026-05-23 20:42:54 +02:00
Carl Smedstad 5394406420 upgpkg: 2.11.2-3: Apply Fedora patch disabling executable altering commands 2026-04-06 14:53:15 +02:00
Carl Smedstad 5ac2300bf3 upgpkg: 2.11.2-2: Change sysusers to fully locked system accounts
https://archlinux.org/todo/change-sysusers-to-fully-locked-system-accounts/

Also, align description with upstream (and Fedora).
2026-04-06 13:49:28 +02:00
Carl Smedstad 50f3000938 upgpkg: 2.11.2-1: Upstream release
https://github.com/caddyserver/caddy/releases/tag/v2.11.2
https://github.com/caddyserver/caddy/releases/tag/v2.11.1

Also:
- Remove signature verification, upstream signed with SSH key, not supported
- Handle version reporting with linker flags instead of patching
- Deselect integration tests (with -short) to ensure they pass
- Work from $srcdir in package(), most files are copied from there anyways
2026-04-06 13:42:45 +02:00
Carl Smedstad e9f46fa9c6 Consistently use 2-space indent 2026-04-06 11:58:47 +02:00
Carl Smedstad 160857be08 Update maintainer/contributor comments 2026-04-01 00:30:23 +02:00
balki 53aec3f3df Update to 2.11.2 2026-03-09 21:55:22 -04:00
balki f8cea4a9fe Update to 2.11.1
Remove signature verification
2026-02-26 14:25:07 -05:00
balki 9d61bdb9bb rename package 2026-01-17 17:44:07 -05:00
balki 28b5fbe4c5 Add wol, update shasums 2026-01-17 10:17:01 -05:00
balki 7bebdd9c24 Merge remote-tracking branch 'aur/main' 2026-01-17 09:57:52 -05:00
Balakrishnan Balasubramanian ac90dad217 Remove --environ flag in caddy.service 2026-01-02 02:26:05 +01:00
andrin.geiger 4a9dad0116 Make package reproducible by disabling LTO 2026-01-02 02:18:21 +01:00
Levente Polyak 5e718b7b6a reuse: add files to license declaration 2025-12-14 20:16:49 +01:00
balki a8cf5f52db Merge remote-tracking branch 'aur/main' 2025-11-02 11:51:48 -05:00
T.J. Townsend a4aa0558e5 upgpkg: 2.10.2-1: update to 2.10.2 2025-10-08 09:41:09 -04:00
balki 0b4de56e2c Merge remote-tracking branch 'aur/main' 2025-09-06 16:40:36 -04:00
Sven-Hendrik Haase 897cb3ba89 License package as 0BSD
This implements RFC40 and RFC52.
https://lists.archlinux.org/archives/list/arch-dev-public@lists.archlinux.org/thread/XR3VAUWC5LNMTVOCKFOHYYEGUQ4ZFCNG/
2025-07-26 05:24:53 +02:00
balki 69eaa41413 Merge remote-tracking branch 'aur/main' 2025-06-04 15:08:15 -04:00
balki 5bd5e71794 Merge remote-tracking branch 'aur/main' 2025-06-04 15:06:29 -04:00
Levente Polyak 2d9db1c1c7 upgpkg: 2.10.0-3: add mailcap dependency 2025-06-03 20:34:43 +02:00
nl6720 03383ef4a1 Add mailcap to dependencies
Without `/etc/mime.types` (from mailcap) or alternatively
`/usr/share/mime/globs2` (created by the pacman hook of
shared-mime-info), Caddy will not set a `Content-Type` header for the
files it serves.

See https://wiki.archlinux.org/title/Caddy#Missing_Content-Type
2025-05-27 15:58:23 +03:00
Levente Polyak 26a66c5bf5 chore: reformat for easiler diffs and conflict resolution 2025-05-25 14:33:26 +02:00
Levente Polyak 7f459138a3 use SPDX license identifier 2025-05-25 14:25:24 +02:00
Levente Polyak d34b34bf20 upgpkg: 2.10.0-2: fix config formatting warning 2025-05-25 14:22:56 +02:00
Dan Andresan 0fd3e1d543 Correct Caddyfile formatting
Running 'caddy validate' on included Caddyfile triggered the warning:
Caddyfile input is not formatted;
run 'caddy fmt --overwrite' to fix inconsistencies
{"adapter": "caddyfile", "file": "Caddyfile", "line": 12}

This fix removes the empty line (at line 12) and the validation will
no longer complain.

Fixing https://gitlab.archlinux.org/archlinux/packaging/packages/caddy/-/issues/5
2025-05-22 12:55:56 +02:00
Christian Rebischke 773d290185 upgpkg: 2.10.0-1 2025-05-17 22:30:40 +02:00
balki aed177d94b Merge remote-tracking branch 'origin/main' 2025-04-08 00:13:32 -04:00
Christian Rebischke fdad981001 upgpkg: 2.9.1-1 2025-03-07 00:26:29 +01:00
10 changed files with 136 additions and 125 deletions
+20 -16
View File
@@ -1,32 +1,36 @@
pkgbase = caddy pkgbase = caddy-balki
pkgdesc = Fast web server with automatic HTTPS pkgdesc = Fast web server with automatic HTTPS
pkgver = 2.9.1 pkgver = 2.11.4
pkgrel = 11 pkgrel = 1
url = https://github.com/caddyserver/caddy url = https://github.com/caddyserver/caddy
arch = x86_64 arch = x86_64
license = Apache license = Apache-2.0
makedepends = go
makedepends = git makedepends = git
makedepends = go
depends = glibc depends = glibc
depends = mailcap
provides = caddy
conflicts = caddy
options = !lto
backup = etc/caddy/Caddyfile backup = etc/caddy/Caddyfile
source = git+https://github.com/caddyserver/caddy.git#tag=v2.9.1?signed source = git+https://github.com/caddyserver/caddy.git#tag=v2.11.4
source = caddy-dist::git+https://github.com/caddyserver/dist.git#tag=v2.9.1 source = caddy-dist::git+https://github.com/caddyserver/dist.git#tag=v2.11.4
source = caddy.service source = caddy.service
source = caddy-api.service source = caddy-api.service
source = caddy.tmpfiles source = caddy.tmpfiles
source = caddy.sysusers source = caddy.sysusers
source = Caddyfile source = Caddyfile
source = use-data-dir-for-autosave.patch source = use-data-dir-for-autosave.patch
source = override-main-module-version.patch source = caddy-disable-executable-altering-commands.patch::https://src.fedoraproject.org/rpms/caddy/raw/rawhide/f/0001-Disable-commands-that-can-alter-the-binary.patch
validpgpkeys = 29D0817A67156E4F25DC24782A349DD577D586A5 validpgpkeys = 29D0817A67156E4F25DC24782A349DD577D586A5
sha512sums = 3123d18c29df7c3dcd88dcbeb143a9fede424d385a2c48434d7ee11e6ceb40ab0764ed72ffab617e4661eef76236dcd2de5ee701432b12e9f1492b904d3850d4 sha512sums = 43f5f0a48ec97be1a4ab7a1f0beca32c373134066611d2caacb935dd6865f3c367b0092a90021ca8d6c6629baab5b3d7c21898a6772573e30c52621310ba586c
sha512sums = f959f1486c170dad5f5efab80ca90c0e272b37e313cb47826b371854ae1937d98bdfc345fab8aac595c269bc617ed719aabdea0467d94ad88887d7449e902c09 sha512sums = 053b0a8d5311c8e0c6e40786b87e73e2e1205757cff3aa8aff6d22fad8cceb4f9acff7b66e5a29ab1ea624085dd41140c92693b887fd9a890e97a479e1f846fb
sha512sums = 78b01fa7156cab0df0d5923250a0e85f6e2dddb2b01b9ea66b49d3e17b228954491922fac6339fcc2caa8342168ca138061a9c4eff41a7a5b6a86e7f9ecb885e sha512sums = e6cdf5f81af01d0a6290ef9503d0bd90244684a6305e5638f079c234b2bc6454688daea3ea9d1b6a6f00eeba0375e9c4372e64c5cb49b5d1206384d2a7201273
sha512sums = 164037ea69ef02e9fdc55af3760849500fd90aa6d23ca29d55cc29c758041bef7e7cf89b23c7e0870bfbd2ecbb576fa9adf33c7c45bcabe68d15be4d6fc49145 sha512sums = 6c9d5dce22f1f0f4e222d4adeccd93c486b3be2ac221a7f8a58933b22ce91fe3da8ad38e6db7212846e4ab6336ebc058df16215a43636b965dfed469b3aaa2f6
sha512sums = 55ee8d3f8b14f9adddc7a1026addcea4f85b4bae4cd512fd4da2a5e8adaae4b6fd0f486d2e3847f75518f4710a897b4fca84e48ee15700b968bad762125c4742 sha512sums = 55ee8d3f8b14f9adddc7a1026addcea4f85b4bae4cd512fd4da2a5e8adaae4b6fd0f486d2e3847f75518f4710a897b4fca84e48ee15700b968bad762125c4742
sha512sums = c893d88fec89e37da6596030c8dce7103e7e575371e8542a24d2a0741e877358d85219f2d8ade9d6aa0f515efe1156a4badd9fef5f65f553a5b0c72330c4728f sha512sums = b24ff0fc8df05ac92ba6860ce1b9975ecce48492b08c1b03545e7b20d2956f130cdee215fc78c751f9ab4869008e2b9bf7f861311fe16c8f5a85a42e347337c6
sha512sums = 716da3f4edeb3561243aeaf5c32b01ff7a4ac810b6deba8364fb12a1f71b6a5278c34a97b289bcfdc48784679b942bf780f1f36d416a575791168c94b0d59fe0 sha512sums = 4be1ed23e6600d8072c7f4fabd2bd926708502a55d84ae4f62aff9885c7b8e45ad0554503d0fc796338577adfca9e467c468a82ba56ffd69e4ec2778d69bc198
sha512sums = 563d6b45e91fc584fb5a27caaa382f59c140cb0a1b28b8d8faced4f7c7cad86d8671eb6ac10056f41518a842c8f606130d7e0c71df2b731d5eb0b4c868ea5d41 sha512sums = 563d6b45e91fc584fb5a27caaa382f59c140cb0a1b28b8d8faced4f7c7cad86d8671eb6ac10056f41518a842c8f606130d7e0c71df2b731d5eb0b4c868ea5d41
sha512sums = 0fedec714604566fb0da995cdfb2dd2cb8f3995bfa1d6c2e9a38ddd1da11634c3e37f2da381f715df4fc9ebd9653c3aa4806de47ae5094ea1fc19b7f5b795a30 sha512sums = 42384fa3314e367c4d7ac3e07af66cf7000f68b6d6354183c5ee1579bd46ea6a29edfa84f9cdf5084d99d74af50ea5b14e3979d38ff806232756991bcac2e8db
pkgname = caddy pkgname = caddy-balki
-1
View File
@@ -9,7 +9,6 @@
# domain name. # domain name.
# #
# https://caddyserver.com/docs/caddyfile/concepts#addresses # https://caddyserver.com/docs/caddyfile/concepts#addresses
{ {
# Restrict the admin interface to a local unix file socket whose directory # Restrict the admin interface to a local unix file socket whose directory
# is restricted to caddy:caddy. By default the TCP socket allows arbitrary # is restricted to caddy:caddy. By default the TCP socket allows arbitrary
+12
View File
@@ -0,0 +1,12 @@
Copyright Arch Linux Contributors
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+1
View File
@@ -0,0 +1 @@
../LICENSE
+76 -62
View File
@@ -1,82 +1,97 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Christian Rebischke <chris.rebischke@archlinux.org> # Maintainer: Christian Rebischke <chris.rebischke@archlinux.org>
# Maintainer: Carl Smedstad <carsme@archlinux.org>
# Contributor: Wei Congrui < crvv.mail at gmail dot com > # Contributor: Wei Congrui < crvv.mail at gmail dot com >
# Contributor: Carl George < arch at cgtx dot us > # Contributor: Carl George < arch at cgtx dot us >
# Contributor: Eric Engeström <eric at engestrom dot ch> # Contributor: Eric Engeström <eric at engestrom dot ch>
# Contributor: Andreas Linz <klingt.net at gmail dot com> # Contributor: Andreas Linz <klingt.net at gmail dot com>
# Contributor: Akshay S Dinesh <asdofindia at gmail dot com> # Contributor: Akshay S Dinesh <asdofindia at gmail dot com>
pkgname=caddy pkgname=caddy-balki
pkgver=2.9.1 _pkgname=caddy
pkgrel=11 provides=(caddy)
conflicts=(caddy)
pkgver=2.11.4
pkgrel=1
pkgdesc='Fast web server with automatic HTTPS' pkgdesc='Fast web server with automatic HTTPS'
arch=(x86_64)
url='https://github.com/caddyserver/caddy' url='https://github.com/caddyserver/caddy'
arch=('x86_64') license=(Apache-2.0)
license=('Apache') depends=(
depends=('glibc') glibc
makedepends=('go' 'git') mailcap
backup=('etc/caddy/Caddyfile') )
source=("git+https://github.com/caddyserver/caddy.git#tag=v${pkgver}?signed" makedepends=(
caddy-dist::"git+https://github.com/caddyserver/dist.git#tag=v${pkgver}" git
caddy.service go
caddy-api.service )
caddy.tmpfiles backup=(etc/caddy/Caddyfile)
caddy.sysusers options=(!lto)
Caddyfile source=(
use-data-dir-for-autosave.patch "git+https://github.com/caddyserver/caddy.git#tag=v${pkgver}"
override-main-module-version.patch) "caddy-dist::git+https://github.com/caddyserver/dist.git#tag=v${pkgver}"
sha512sums=('3123d18c29df7c3dcd88dcbeb143a9fede424d385a2c48434d7ee11e6ceb40ab0764ed72ffab617e4661eef76236dcd2de5ee701432b12e9f1492b904d3850d4' caddy.service
'f959f1486c170dad5f5efab80ca90c0e272b37e313cb47826b371854ae1937d98bdfc345fab8aac595c269bc617ed719aabdea0467d94ad88887d7449e902c09' caddy-api.service
'78b01fa7156cab0df0d5923250a0e85f6e2dddb2b01b9ea66b49d3e17b228954491922fac6339fcc2caa8342168ca138061a9c4eff41a7a5b6a86e7f9ecb885e' caddy.tmpfiles
'164037ea69ef02e9fdc55af3760849500fd90aa6d23ca29d55cc29c758041bef7e7cf89b23c7e0870bfbd2ecbb576fa9adf33c7c45bcabe68d15be4d6fc49145' caddy.sysusers
Caddyfile
use-data-dir-for-autosave.patch
"$_pkgname-disable-executable-altering-commands.patch::https://src.fedoraproject.org/rpms/caddy/raw/rawhide/f/0001-Disable-commands-that-can-alter-the-binary.patch"
)
sha512sums=('43f5f0a48ec97be1a4ab7a1f0beca32c373134066611d2caacb935dd6865f3c367b0092a90021ca8d6c6629baab5b3d7c21898a6772573e30c52621310ba586c'
'053b0a8d5311c8e0c6e40786b87e73e2e1205757cff3aa8aff6d22fad8cceb4f9acff7b66e5a29ab1ea624085dd41140c92693b887fd9a890e97a479e1f846fb'
'e6cdf5f81af01d0a6290ef9503d0bd90244684a6305e5638f079c234b2bc6454688daea3ea9d1b6a6f00eeba0375e9c4372e64c5cb49b5d1206384d2a7201273'
'6c9d5dce22f1f0f4e222d4adeccd93c486b3be2ac221a7f8a58933b22ce91fe3da8ad38e6db7212846e4ab6336ebc058df16215a43636b965dfed469b3aaa2f6'
'55ee8d3f8b14f9adddc7a1026addcea4f85b4bae4cd512fd4da2a5e8adaae4b6fd0f486d2e3847f75518f4710a897b4fca84e48ee15700b968bad762125c4742' '55ee8d3f8b14f9adddc7a1026addcea4f85b4bae4cd512fd4da2a5e8adaae4b6fd0f486d2e3847f75518f4710a897b4fca84e48ee15700b968bad762125c4742'
'c893d88fec89e37da6596030c8dce7103e7e575371e8542a24d2a0741e877358d85219f2d8ade9d6aa0f515efe1156a4badd9fef5f65f553a5b0c72330c4728f' 'b24ff0fc8df05ac92ba6860ce1b9975ecce48492b08c1b03545e7b20d2956f130cdee215fc78c751f9ab4869008e2b9bf7f861311fe16c8f5a85a42e347337c6'
'716da3f4edeb3561243aeaf5c32b01ff7a4ac810b6deba8364fb12a1f71b6a5278c34a97b289bcfdc48784679b942bf780f1f36d416a575791168c94b0d59fe0' '4be1ed23e6600d8072c7f4fabd2bd926708502a55d84ae4f62aff9885c7b8e45ad0554503d0fc796338577adfca9e467c468a82ba56ffd69e4ec2778d69bc198'
'563d6b45e91fc584fb5a27caaa382f59c140cb0a1b28b8d8faced4f7c7cad86d8671eb6ac10056f41518a842c8f606130d7e0c71df2b731d5eb0b4c868ea5d41' '563d6b45e91fc584fb5a27caaa382f59c140cb0a1b28b8d8faced4f7c7cad86d8671eb6ac10056f41518a842c8f606130d7e0c71df2b731d5eb0b4c868ea5d41'
'0fedec714604566fb0da995cdfb2dd2cb8f3995bfa1d6c2e9a38ddd1da11634c3e37f2da381f715df4fc9ebd9653c3aa4806de47ae5094ea1fc19b7f5b795a30') '42384fa3314e367c4d7ac3e07af66cf7000f68b6d6354183c5ee1579bd46ea6a29edfa84f9cdf5084d99d74af50ea5b14e3979d38ff806232756991bcac2e8db')
validpgpkeys=( validpgpkeys=(
29D0817A67156E4F25DC24782A349DD577D586A5 # Matthew Holt <mholt@users.noreply.github.com> 29D0817A67156E4F25DC24782A349DD577D586A5 # Matthew Holt <mholt@users.noreply.github.com>
) )
#pkgver() {
# cd ${pkgname}
# git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
#}
prepare() { prepare() {
cd "${pkgname}"
sed -i '/plug in Caddy modules here/a _ "github.com/caddy-dns/cloudflare"' cmd/caddy/main.go
go mod tidy
# welcome page # welcome page
cp ../caddy-dist/welcome/index.html . sed 's|/var/www/html|/srv/http|g' -i caddy-dist/welcome/index.html
sed 's|/var/www/html|/srv/http|g' -i index.html
cd ${_pkgname}
sed -i '/plug in Caddy modules here/a _ "github.com/caddy-dns/cloudflare"' cmd/caddy/main.go
sed -i '/plug in Caddy modules here/a _ "github.com/dulli/caddy-wol"' cmd/caddy/main.go
go mod tidy
# do not write in /etc # do not write in /etc
patch -Np1 < "${srcdir}/use-data-dir-for-autosave.patch" patch -Np1 < ../use-data-dir-for-autosave.patch
# fix version identifier if not built from a module # disable commands that bypass the package manager
patch -Np1 < "${srcdir}/override-main-module-version.patch" patch -Np1 < ../$_pkgname-disable-executable-altering-commands.patch
sed 's|"unknown"|"v'"${pkgver}"'"|g' -i caddy.go
GOFLAGS="-mod=readonly" go mod vendor -v
} }
build() { build() {
cd "${pkgname}/cmd/caddy/" cd ${_pkgname}
export CGO_LDFLAGS="${LDFLAGS}" export CGO_LDFLAGS=${LDFLAGS}
export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CPPFLAGS=${CPPFLAGS}
export CGO_CFLAGS="${CFLAGS}" export CGO_CFLAGS=${CFLAGS}
export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_CXXFLAGS=${CXXFLAGS}
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" export GOFLAGS="-buildmode=pie -mod=vendor -modcacherw -buildvcs=false"
go build . export GOPATH="$srcdir"
local ld_flags=" \
-X github.com/caddyserver/caddy/v2.CustomVersion=v${pkgver} \
-compressdwarf=false \
-linkmode=external \
"
go build -v -ldflags "$ld_flags" -o build/caddy ./cmd/caddy
for i in zsh bash fish; do for i in zsh bash fish; do
./caddy completion $i >caddy.$i ./build/caddy completion $i > caddy.$i
done done
} }
check() { check() {
# Disabled for now, because of failing tests cd ${_pkgname}
cd "${pkgname}" go test -short ./...
go test ./... version=$(./build/caddy version)
version=$(./cmd/caddy/caddy version)
echo "Caddy version: ${version}" echo "Caddy version: ${version}"
if [[ $version != v$pkgver ]]; then if [[ $version != v$pkgver ]]; then
exit 1 exit 1
@@ -84,21 +99,20 @@ check() {
} }
package() { package() {
cd "${pkgname}" install -vDm 644 -t "${pkgdir}/usr/share/caddy" caddy-dist/welcome/index.html
install -Dm 755 cmd/caddy/caddy -t "${pkgdir}/usr/bin"
install -Dm 644 "${srcdir}/caddy.service" "${srcdir}/caddy-api.service" -t "${pkgdir}/usr/lib/systemd/system" install -vDm 644 -t "${pkgdir}/usr/lib/systemd/system" caddy.service caddy-api.service
install -Dm 644 "${srcdir}/caddy.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/caddy.conf" install -vDm 644 caddy.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/caddy.conf"
install -Dm 644 "${srcdir}/caddy.sysusers" "${pkgdir}/usr/lib/sysusers.d/caddy.conf" install -vDm 644 caddy.sysusers "${pkgdir}/usr/lib/sysusers.d/caddy.conf"
install -Dm 644 "${srcdir}/Caddyfile" -t "${pkgdir}/etc/caddy" install -vDm 644 -t "${pkgdir}/etc/caddy" Caddyfile
install -d "${pkgdir}/etc/caddy/conf.d" install -vd "${pkgdir}/etc/caddy/conf.d"
install -Dm 644 index.html "${pkgdir}/usr/share/caddy/index.html" install -vDm 644 caddy/caddy.zsh "${pkgdir}/usr/share/zsh/site-functions/_caddy"
install -vDm 644 caddy/caddy.bash "${pkgdir}/usr/share/bash-completion/completions/caddy"
install -vDm 644 caddy/caddy.fish "${pkgdir}/usr/share/fish/vendor_completions.d/caddy.fish"
install -Dm 644 "${srcdir}/caddy/cmd/caddy/caddy.zsh" "${pkgdir}/usr/share/zsh/site-functions/_caddy" install -vDm 755 -t "${pkgdir}/usr/bin" ${_pkgname}/build/caddy
install -Dm 644 "${srcdir}/caddy/cmd/caddy/caddy.bash" "${pkgdir}/usr/share/bash-completion/completions/caddy"
install -Dm 644 "${srcdir}/caddy/cmd/caddy/caddy.fish" -t "${pkgdir}/usr/share/fish/vendor_completions.d"
} }
# vim: ts=2 sw=2 et: # vim: ts=2 sw=2 et:
+24
View File
@@ -0,0 +1,24 @@
version = 1
[[annotations]]
path = [
"PKGBUILD",
"README.md",
"keys/**",
".SRCINFO",
".nvchecker.toml",
"*.install",
"*.sysusers",
"*.tmpfiles",
"*.logrotate",
"*.pam",
"*.service",
"*.socket",
"*.timer",
"*.desktop",
"*.hook",
"Caddyfile",
"use-data-dir-for-autosave.patch",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"
+1 -1
View File
@@ -21,7 +21,7 @@ User=caddy
Group=caddy Group=caddy
Environment=XDG_DATA_HOME=/var/lib Environment=XDG_DATA_HOME=/var/lib
Environment=XDG_CONFIG_HOME=/var/lib Environment=XDG_CONFIG_HOME=/var/lib
ExecStart=/usr/bin/caddy run --environ --resume ExecStart=/usr/bin/caddy run --resume
# Do not allow the process to be restarted in a tight loop. If the # Do not allow the process to be restarted in a tight loop. If the
# process fails to start, something critical needs to be fixed. # process fails to start, something critical needs to be fixed.
+1 -1
View File
@@ -28,7 +28,7 @@ Group=caddy
Environment=XDG_DATA_HOME=/var/lib Environment=XDG_DATA_HOME=/var/lib
Environment=XDG_CONFIG_HOME=/etc Environment=XDG_CONFIG_HOME=/etc
ExecStartPre=/usr/bin/caddy validate --config /etc/caddy/Caddyfile ExecStartPre=/usr/bin/caddy validate --config /etc/caddy/Caddyfile
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile ExecStart=/usr/bin/caddy run --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile --force ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile --force
ExecStopPost=/usr/bin/rm -f /run/caddy/admin.socket ExecStopPost=/usr/bin/rm -f /run/caddy/admin.socket
+1 -1
View File
@@ -1 +1 @@
u caddy - "caddy daemon" /var/lib/caddy u! caddy - "Caddy web server" /var/lib/caddy
-43
View File
@@ -1,43 +0,0 @@
--- a/caddy.go~ 2022-10-02 18:58:35.059343203 +0200
+++ b/caddy.go 2022-10-02 18:58:21.125992368 +0200
@@ -875,39 +875,7 @@
}
if full == "" {
- var vcsRevision string
- var vcsTime time.Time
- var vcsModified bool
- for _, setting := range bi.Settings {
- switch setting.Key {
- case "vcs.revision":
- vcsRevision = setting.Value
- case "vcs.time":
- vcsTime, _ = time.Parse(time.RFC3339, setting.Value)
- case "vcs.modified":
- vcsModified, _ = strconv.ParseBool(setting.Value)
- }
- }
-
- if vcsRevision != "" {
- var modified string
- if vcsModified {
- modified = "+modified"
- }
- full = fmt.Sprintf("%s%s (%s)", vcsRevision, modified, vcsTime.Format(time.RFC822))
- simple = vcsRevision
-
- // use short checksum for simple, if hex-only
- if _, err := hex.DecodeString(simple); err == nil {
- simple = simple[:8]
- }
-
- // append date to simple since it can be convenient
- // to know the commit date as part of the version
- if !vcsTime.IsZero() {
- simple += "-" + vcsTime.Format("20060102")
- }
- }
+ full = "unknown"
}
if simple == "" || simple == "(devel)" {