2023-04-08 02:59:47 -04:00
|
|
|
# Maintainer: Fijxu <fijxu <at> zzls <dot> xyz>
|
|
|
|
pkgname=dnsproxy-git
|
2024-01-13 16:15:18 -03:00
|
|
|
pkgver=v0.62.0.r0.gf1ceef0
|
2023-04-08 02:59:47 -04:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support (git version)"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/AdguardTeam/dnsproxy"
|
|
|
|
license=('Apache')
|
|
|
|
makedepends=('git' 'go')
|
|
|
|
provides=('dnsproxy')
|
|
|
|
conflicts=(dnsproxy-bin dnsproxy-adguard)
|
2023-04-14 12:35:31 -04:00
|
|
|
backup=(etc/dnsproxy/dnsproxy.yaml)
|
2023-08-23 13:32:09 -04:00
|
|
|
install=$pkgname.install
|
2023-04-08 02:59:47 -04:00
|
|
|
source=("dnsproxy-git::git+https://github.com/AdguardTeam/dnsproxy.git"
|
|
|
|
"dnsproxy.yaml"
|
|
|
|
"dnsproxy.service")
|
|
|
|
sha256sums=("SKIP"
|
2023-12-17 19:19:49 -03:00
|
|
|
"35804d7b72453889bce6cf3bc03a499481f0c2f85fb2b02e272a1b5c061b0823"
|
2023-04-08 02:59:47 -04:00
|
|
|
"565eea9808589ecafa81f2229ac1f85b39028e26d488a9a7c0b51afc43d7f42b")
|
|
|
|
_conf=etc/dnsproxy/dnsproxy.yaml
|
|
|
|
|
|
|
|
pkgver() {
|
2023-04-14 12:07:26 -04:00
|
|
|
cd "$srcdir/$pkgname"
|
2023-12-17 19:19:49 -03:00
|
|
|
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
2023-04-08 02:59:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-04-14 12:07:26 -04:00
|
|
|
cd "$pkgname"
|
2024-01-13 16:15:18 -03:00
|
|
|
go mod vendor
|
2023-08-23 13:32:09 -04:00
|
|
|
make build
|
2023-04-08 02:59:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# Thanks "5long" for the package(), configuration files and systemd service
|
|
|
|
package() {
|
2023-04-14 12:07:26 -04:00
|
|
|
cd "$srcdir/$pkgname"
|
2023-04-08 02:59:47 -04:00
|
|
|
install -Dm755 dnsproxy "$pkgdir"/usr/bin/dnsproxy
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/license/dnsproxy/LICENSE
|
|
|
|
install -Dm644 README.md "$pkgdir"/usr/share/doc/dnsproxy/README.md
|
|
|
|
install -Dm644 $srcdir/dnsproxy.yaml "$pkgdir/$_conf"
|
|
|
|
install -Dm644 $srcdir/dnsproxy.service "$pkgdir"/usr/lib/systemd/system/dnsproxy.service
|
|
|
|
}
|
|
|
|
|