mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
40 lines
997 B
Bash
40 lines
997 B
Bash
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
_pkgname=dns
|
|
_reponame=arch-pkg
|
|
pkgname="de-p1st-$_pkgname"
|
|
pkgver=0.0.2
|
|
pkgrel=2
|
|
pkgdesc="DNS configuration: Use DNS over TLS"
|
|
arch=('any')
|
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
|
license=('MIT')
|
|
groups=()
|
|
|
|
# systemd-resolvd
|
|
depends=('systemd')
|
|
# (optional) replacement for resolvconf
|
|
depends+=('systemd-resolvconf')
|
|
# this has only been tested with NetworkManager, so we depend on it
|
|
depends+=('networkmanager')
|
|
|
|
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
|
|
}
|