Commit 4322c50f authored by Leo's avatar Leo
Browse files

community/caddy: set CADDYPATH to default to /etc/caddy

parent 5600c80a
Pipeline #7762 failed with stages
in 6 minutes and 3 seconds
......@@ -2,7 +2,7 @@
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=caddy
pkgver=1.0.0
pkgrel=0
pkgrel=1
pkgdesc="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
url="https://caddyserver.com/"
arch="all !s390x"
......@@ -17,7 +17,7 @@ subpackages="$pkgname-openrc"
install="$pkgname.pre-install"
pkgusers="$pkgname"
pkggroups="$pkgname"
source="$pkgname-$pkgver.tar.gz::https://github.com/mholt/$pkgname/archive/v$pkgver.tar.gz
source="$pkgname-$pkgver.tar.gz::https://github.com/caddyserver/caddy/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
$pkgname.conf
......@@ -29,7 +29,6 @@ export GOPATH="$srcdir"
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
cd "$builddir"
default_prepare
}
......@@ -71,6 +70,6 @@ cleanup_srcdir() {
}
sha512sums="3b77b99634609f9216f51481011b11159b5a7bdb96254783011d9a7e76209853e2eb5eeffdf5243687f4b64eeb36fc18a2f9c7a410ea5ce409608ff6784eaf93 caddy-1.0.0.tar.gz
00fe095efd8d801f0c2c69832c7240858080407ea3696ca07f6b53d3304f7e2784566d8a6b447cb83d7dc4542db551f1b4fa48ff031da7e4a1d4a26e59fc05c5 caddy.initd
7808688e92ab9950403a9b8ad29777f5bd0f75aa8cccc1d49958bb1e5af1b972dfba0c6d31931354f702a3a13933d0a1b8f28b82eed263773d71b79ec95cc15c caddy.confd
e8beb4560739b71804209d2ce29d0eb5a329a77d6ff58bd6b77b7d72dd22bc09d0587e345ad987171b7ff5c475eed3d7f531cfdb826e1467d1eb16aaead44341 caddy.initd
987f8de92997555efb92feac19f82c319ec00c8c75c8ed9f44368a55ab2cc276e47589192a4c8020c62d6c832c89efe3902c0cd6082b766b4380af984d2e72b5 caddy.confd
c24805d17234e6cf40fe1dd102c03f05cf6129d43f58f5567d540a0e4400ce89994820bb0e317f611c65459ae26bcf7110e23a8fecaae11ca78a561892b45d75 caddy.conf"
# caddy options file
CADDY_OPTS="-conf /etc/caddy/caddy.conf -agree"
# CADDYPATH=/etc/caddy
......@@ -7,6 +7,8 @@ pidfile="/var/run/caddy.pid"
command_background=yes
start_stop_daemon_args="--user caddy --group caddy"
: {CADDYPATH:=/etc/caddy}
depend() {
need net localmount
after firewall
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment