mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
38 lines
906 B
Bash
38 lines
906 B
Bash
|
# 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
|
||
|
}
|