blob: 854db4246685dbb6dd7628a6ec47b412332ef9b4 (
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
64
|
# Maintainer: cubercsl <2014cais01 at gmail dot com>
pkgbase=dae
_pkgname=dae
pkgname=(
$_pkgname
$_pkgname-geoip-v2raycompat
$_pkgname-geosite-v2raycompat
)
pkgver=0.1.10
pkgrel=1
pkgdesc="A Linux lightweight and high-performance transparent proxy solution based on eBPF."
arch=(x86_64)
url="https://github.com/daeuniverse/dae"
license=('AGPL')
makedepends=(clang llvm go)
source=(
"$_pkgname-$pkgver.zip::https://github.com/daeuniverse/dae/releases/download/v$pkgver/dae-full-src.zip"
)
sha256sums=('dbaa2eea00612da81361f6a59a1a9167673df1a0004d595552d42662d0482c18')
build() {
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
export CFLAGS=""
cd "$srcdir"
make VERSION="$pkgver"
}
package_dae() {
provides=($_pkgname)
conflicts=($_pkgname)
depends=(
glibc
dae-geoip
dae-geosite
)
backup=("etc/dae/config.dae")
cd "$srcdir"
install -Dm755 "dae" "$pkgdir/usr/bin/dae"
install -Dm644 "install/dae.service" "$pkgdir/usr/lib/systemd/system/dae.service"
install -Dm640 "install/empty.dae" "$pkgdir/etc/dae/config.dae"
install -Dm644 "example.dae" "$pkgdir/etc/dae/config.dae.example"
}
package_dae-geoip-v2raycompat() {
arch=(any)
pkgdesc="v2ray geoip compat for dae"
depends=(v2ray-geoip)
provides=($_pkgname-geoip)
install -dm755 "$pkgdir/usr/share/dae"
ln -s /usr/share/v2ray/geoip.dat "$pkgdir/usr/share/dae/geoip.dat"
}
package_dae-geosite-v2raycompat() {
arch=(any)
pkgdesc="v2ray geosite compat for dae"
depends=(v2ray-domain-list-community)
provides=($_pkgname-geosite)
install -dm755 "$pkgdir/usr/share/dae"
ln -s /usr/share/v2ray/geosite.dat "$pkgdir/usr/share/dae/geosite.dat"
}
|