blob: fbfafe0f48fd6877e3efa36b5a5f5ae3bcda5fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: ZhangHua <zhanghuadedn at gmail dot com>
# Contributor: Nicolas Stalder <n+archlinux@stalder.io>
pkgname=caddy-trojan
pkgver=2.6.4
pkgrel=1
pkgdesc="Caddy web server with trojan support"
arch=('x86_64' 'aarch64')
url="https://github.com/imgk/caddy-trojan"
license=('GPL3')
makedepends=('go' 'xcaddy')
provides=("caddy")
conflicts=("caddy")
source=(
"caddy.hook"
"caddy.sysusers"
"caddy.tmpfiles"
"https://raw.githubusercontent.com/caddyserver/dist/master/init/caddy.service"
"https://raw.githubusercontent.com/caddyserver/dist/master/init/caddy-api.service"
"https://raw.githubusercontent.com/caddyserver/dist/master/config/Caddyfile"
"https://raw.githubusercontent.com/caddyserver/dist/master/welcome/index.html"
)
sha256sums=('dfadb1f4a1f82024a11c110624680f98b3818305a16dd013363ca398020611ad'
'a9294eeba17a8fd57cf11cef21e2eb3719a016646eeac0764a0d9f9f380a40ef'
'99282b1a57857d23b97883dfd7dd147005956cc04405630d6e4d73bb7069f5ba'
'9da981ab805ce81e646c10e540da9cde819a7ed23c7dcddc8954a6c8a1ec39e2'
'e1522046019c912af380dccfb6ac1a558b4c4df24fe0716bbdc6ad451bb598aa'
'66177d46fa761acb07208065db9b0274cb1b12c02ac43b9bfc9857b698b1ccfe'
'2c0cbf798b116f5500178926dfafe27555625ad0df8594d251826edf5a5f160e')
build() {
MODULES=(
github.com/caddy-dns/route53
github.com/caddy-dns/cloudflare
github.com/caddy-dns/alidns
github.com/caddy-dns/vultr
github.com/caddy-dns/dnspod
github.com/caddy-dns/duckdns
#github.com/caddy-dns/gandi
# Checksum mismatch issue, see https://github.com/libdns/gandi/issues/9
github.com/hairyhenderson/caddy-teapot-module
github.com/caddyserver/transform-encoder
github.com/mholt/caddy-webdav
github.com/imgk/caddy-trojan
github.com/imgk/caddy-pprof
)
xcaddy build v${pkgver} ${MODULES[@]/#/--with }
}
package() {
install -Dm755 caddy "${pkgdir}/usr/bin/caddy"
install -Dm644 "${srcdir}/Caddyfile" "${pkgdir}/usr/share/caddy/Caddyfile"
install -Dm644 "${srcdir}/index.html" "${pkgdir}/usr/share/caddy/index.html"
install -Dm644 "${srcdir}/caddy.service" "${pkgdir}/usr/lib/systemd/system/caddy.service"
install -Dm644 "${srcdir}/caddy-api.service" "${pkgdir}/usr/lib/systemd/system/caddy-api.service"
install -Dm644 "${srcdir}/caddy.sysusers" "${pkgdir}/usr/lib/sysusers.d/caddy.conf"
install -Dm644 "${srcdir}/caddy.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/caddy.conf"
install -Dm644 "${srcdir}/caddy.hook" "${pkgdir}/usr/share/libalpm/hooks/caddy-trojan.hook"
}
|