blob: 869efc531f177137a5b224ec74e38c6398f9cb38 (
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
|
# Maintainer: Paul Mulders <justinkb at gmail dot com>
# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
pkgname=sozu
pkgver=0.13.6
pkgrel=1
pkgdesc="HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust"
arch=('aarch64' 'i686' 'x86_64')
url="https://github.com/sozu-proxy/sozu"
license=('GPL')
depends=('openssl>=1.0.1')
makedepends=('cargo' 'git')
conflicts=('sozu-git')
backup=('etc/sozu/config.toml')
_commit=e4e7488232ad6523791b94ad201239bcf7eb9b30
source=(
"git+https://github.com/sozu-proxy/sozu.git#commit=$_commit"
'config.toml'
'sozu.service'
)
sha256sums=(
'SKIP'
'350a1cd876d380c2fb64cf59858d922814c291c528e2a7688209150f71ded692'
'b2799a98514bb284fbd10bdbac2d4b330145180fcf9fddede887807d6b08ff84'
)
_gitname='sozu'
build() {
cd "$srcdir/$_gitname"
cargo build --release --all
}
package() {
cd "$srcdir/$_gitname"
install -Dm755 "target/release/sozu" "$pkgdir/usr/bin/sozu"
install -Dm755 "target/release/sozuctl" "$pkgdir/usr/bin/sozuctl"
install -d "$pkgdir/var/lib/sozu"
install -d "$pkgdir/etc/sozu"
install -d "$pkgdir/etc/sozu/ssl"
install -d "$pkgdir/etc/sozu/html"
install -Dm644 "$srcdir/config.toml" "$pkgdir/etc/sozu/config.toml"
for file in certificate.pem key.pem certificate_chain.pem; do
install -Dm644 "lib/assets/$file" "$pkgdir/etc/sozu/ssl/$file"
done
for file in 404.html 503.html; do
install -Dm644 "lib/assets/$file" "$pkgdir/etc/sozu/html/$file"
done
install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-MIT"
install -Dm644 ../sozu.service "$pkgdir"/usr/lib/systemd/system/sozu.service
}
# vim:set ts=2 sw=2 sts=2 et:
|