arch/pkg/de-p1st-dns/PKGBUILD

32 lines
921 B
Bash
Raw Normal View History

2021-04-23 13:15:37 +02:00
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=dns
2021-04-26 18:28:17 +02:00
_reponame=arch
2021-04-23 13:15:37 +02:00
pkgname="de-p1st-$_pkgname"
pkgver=0.0.5
2021-05-03 18:45:52 +02:00
pkgrel=1
2021-04-23 13:15:37 +02:00
pkgdesc="DNS configuration: Use DNS over TLS"
arch=('any')
2021-04-26 18:25:29 +02:00
url="https://codeberg.org/privacy1st/${_reponame}"
2021-04-23 13:15:37 +02:00
license=('MIT')
# systemd-resolvd
depends=('systemd')
# (optional) replacement for resolvconf
depends+=('systemd-resolvconf')
2021-04-23 13:21:19 +02:00
# this has only been tested with NetworkManager, so we depend on it
2021-05-11 22:34:00 +02:00
depends+=('de-p1st-networkmanager')
2021-04-23 13:15:37 +02:00
makedepends=('git')
install='.install'
2021-04-23 13:15:37 +02:00
conflicts=() # 'openresolv' conflicts with 'systemd-resolvd'
source=("git+${url}.git")
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 DoT.conf "$pkgdir"/etc/systemd/resolved.conf.d/DoT.conf
install -Dm0644 dns.conf "$pkgdir"/etc/NetworkManager/conf.d/dns.conf
2021-05-03 18:45:52 +02:00
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset
2021-04-23 13:15:37 +02:00
}