arch/pkg/de-p1st-dns/PKGBUILD

40 lines
996 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"
2021-05-03 18:45:52 +02:00
pkgver=0.0.3
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')
groups=()
# 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
depends+=('networkmanager')
2021-04-23 13:15:37 +02:00
makedepends=('git')
optdepends=()
provides=()
conflicts=() # 'openresolv' conflicts with 'systemd-resolvd'
replaces=()
backup=()
options=()
install=
changelog=
source=("git+${url}.git")
noextract=()
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
}