blob: ca40bb9962d4c346c96a1c6bcf895b0a974e79f0 (
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
|
# Maintainer: Eric Torres <eric.torres@its-et.me>
# Contributor: Filipe Bertelli <filipebertelli@tutanota.com>
# Contributor: Stefan Auditor <stefan.auditor@erdfisch.de>
_pkgname='traefik'
pkgname="${_pkgname}-bin"
pkgver=3.2.1
pkgrel=1
pkgdesc='A modern reverse proxy written in Go'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/traefik/traefik'
license=('MIT')
provides=($_pkgname)
conflicts=($_pkgname)
install="${_pkgname}.install"
backup=(
'etc/traefik/acme.json'
'etc/traefik/traefik.toml'
'etc/traefik/traefik.yaml'
'etc/traefik/traefik.yml'
'etc/logrotate.d/traefik'
)
source=(
'traefik.logrotate'
'traefik.service'
'traefik.sysusers'
'traefik.toml'
)
source_i686=("${_pkgname}_i686_${pkgver}"::"https://github.com/containous/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_386.tar.gz")
source_x86_64=("${_pkgname}_x86_64_${pkgver}"::"https://github.com/containous/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_amd64.tar.gz")
source_armv6h=("${_pkgname}_armv6h_${pkgver}"::"https://github.com/containous/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_armv6.tar.gz")
source_armv7h=("${_pkgname}_armv7h_${pkgver}"::"https://github.com/containous/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_armv7.tar.gz")
source_aarch64=("${_pkgname}_aarch64_${pkgver}"::"https://github.com/containous/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_linux_arm64.tar.gz")
sha256sums=('da59d047177cae773d248684e8484d91c71201f5bc07fe72452efdf9bed1a7f4'
'42f46aa462f7347cc63f4a88e38ba9cebeab9f6bcb4f6f3717dafd17a8018e56'
'9acc04ac38893d05c5f3b1407fbc36d5f7ae179af5f13e12231194f1f469390d'
'abfcfe24e742bf8968749ea79e2c0425bef3d37d16eb60311b5a994312a1e54d')
sha256sums_i686=('954db2697fe9b12e0979054de8e12b3fc96e9d38ba245334806788412f644527')
sha256sums_x86_64=('3d897c588c8edbc4dc0d105d35de81fed0412b55e9677cf462648dc0c76872f5')
sha256sums_armv6h=('c54e5ba4a872eb100a093c8d28ca5062a92841733d35e418d36072903c492b69')
sha256sums_armv7h=('e51c19b219c02560cfd9a0103d9150e50c73a6c5ac76d3644262eec60111b808')
sha256sums_aarch64=('2527e2cf4bac2502cd3a0ff795c5a960b418cefc1b043868e0cdd07c97a482ef')
package() {
cd "${srcdir}"
install -d -m755 "${pkgdir}/var/log/traefik"
install -D -m644 "traefik.logrotate" "${pkgdir}/etc/logrotate.d/traefik"
install -D -m644 "traefik.service" "${pkgdir}/usr/lib/systemd/system/traefik.service"
install -D -m644 "traefik.sysusers" "${pkgdir}/usr/lib/sysusers.d/traefik.conf"
install -D -m644 "traefik.toml" "${pkgdir}/etc/traefik/traefik.toml"
install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
# create empty acme.json file, otherwise the service file will fail
install -Dm600 /dev/null "${pkgdir}/etc/traefik/acme.json"
}
|