arch/pkg/de-p1st-dns/PKGBUILD

38 lines
906 B
Bash
Raw Normal View History

2021-04-23 13:15:37 +02:00
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=dns
_reponame=arch-pkg
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="DNS configuration: Use DNS over TLS"
arch=('any')
url="https://git.privacy1st.de/langfingaz/${_reponame}"
license=('MIT')
groups=()
# systemd-resolvd
depends=('systemd')
# (optional) replacement for resolvconf
depends+=('systemd-resolvconf')
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
install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/"$pkgname".preset
}